View Full Version : How to make your own RavenShield SDK
WoRmX
31st March 2004, 01:09
Well i was planning on making a small picture with the processes of the compiler while compiling a .u file but it turned out in 1 big picture with everything on it lol
well anyway here it is:
http://members.lycos.nl/wormx/sdktutorial.jpg
Have fun reading/trying!! if u got any questions just ask, cuz i can understand the tutorial is a bit unclear at some points... but its very hard to explain this cuz its actually just some kind of logic u need to have and find urself...
Well anyway, hope u like it
bye
(btw, wormxv2 is on his way! cuz i will release it in a few days for free.... if this short msg disturbs u just delete it and dont gimme warn points inmidiatly :\)
aapje
31st March 2004, 01:14
Pinned my good friend :)
SuperCman
31st March 2004, 01:57
Cool stuff, i remember when i tried to do this, i just rearranged and fixed small things in the u files, but kept more or less intact, yet able to compile. You just go ahead and delete everything, keeping really only the skeleton of each class heh.
snowcatxx87
31st March 2004, 04:24
Very nice work. You know, I feel ashamed for asking this, but what is an SDK?
SuperCman
31st March 2004, 06:38
Software Development Kit.
shyva
31st March 2004, 13:14
good job dude nicely
WoRmX
31st March 2004, 13:22
yeah supercman, its just the skeleton... its just for compiling only, so it doesnt matter what is in the .uc files of the original .u files... as long as the functions and vars are there its fine... Because u copy back ur original files later that DO contain all the needed stuff.
Damage Inc.
31st March 2004, 13:33
cool...ok just want to make sure that i get this right the first time,
ok im in my core\classes\commandlet.uc so i make the code go
from this:
defaultproperties
{
LogToStdout=True
IsServer=True
IsClient=True
IsEditor=True
LazyLoad=True
ShowBanner=True
}
to:
defaultproperties
{
}
hehe i hope this is right cause i have all of my uc files like that
now lol well all the ones u said to do in the tutorial
WoRmX
31st March 2004, 15:04
well it will probally work i think, but i deleted the full default properties,
so also:
defaultproperties
{
}
if u know any program language i suggest u write a program that does all this for u ;)
Damage Inc.
31st March 2004, 15:38
well it works lol it compiled my .u, hehe if i knew program language i would
lol but i dont so if i do any thing its all in notepad lol btw thanks for the help
frikos
31st March 2004, 17:19
how do i extract my files to a uc-file? sry for nooby-question
but i tried wotgreal, UTPT, it was possible to decompile, but i have to copy and save each class/fuction step by step (that will be many :/ )
Damage Inc.
31st March 2004, 17:39
what i did was
1: Open UnrealED
2: Open the Actor Class Browser
3: Click File --> Export All Scripts
then they should be in ur raven shield folder
frikos
31st March 2004, 20:40
ok it worked thanks
before i wanted to wtach a film this evening, but now i'll delete those things ;)
don't know any language, that couls do that for me :cry:
edit:
i wondered why in my *.uc files there are only the defaultproperties, there are any functions shown...
but when i look in utpt the same class has all things like functions etc, but not my uc-file... is that important? how to change it??!
cheat00000r
31st March 2004, 23:32
yeah a good tutorial thx wormx
:)
drewpaul86
1st April 2004, 00:28
u only have the defaultproperties as part of ubi's protection they removed the textbuffers so we couldn't recompile thier original .u files as easily. use utpt or wotgreal if u want.
SuperCman
1st April 2004, 00:51
Yea wormx i was thinking that, just a program to go through the uc files, bring them up as text, remove all information inside { }, save.
WoRmX
1st April 2004, 00:56
Originally posted by Damage_Inc_014 on 31st March 2004 at 14:39
what i did was
1: Open UnrealED
2: Open the Actor Class Browser
3: Click File --> Export All Scripts
then they should be in ur raven shield folder
That wont work... Thats why i say u need to use wotgreal exporter thingy... Because all the files are textbuffered and only show the defaultpropertys.... and wotgreal exporter or utpt show the full class.
i wrote some stuff that opens every .uc and empty all functions(all types... so also native final and simulated ect ect) emptys all structs emptys all enums and deletes all the defaultpropertys and save them again. All u had to do is put enums at top when nesceserry
if i can find the prog ill upload it, but i just formatted my hd and lost alot :\ also forgot to backup all my binarys of my hacks lol... well i still got the sources but have to recompile everything again ffs
drewpaul86
1st April 2004, 02:12
Originally posted by WoRmX on 30th March 2004 at 16:09
(btw, wormxv2 is on his way! cuz i will release it in a few days for free.... if this short msg disturbs u just delete it and dont gimme warn points inmidiatly :\)
is this gonna be a uscript release or d3d?
Damage Inc.
1st April 2004, 04:14
ok well now im kindof confused on how to export the .uc files all of the
tutorials that i look at use unrealED =/ so what do i do lol
snowcatxx87
1st April 2004, 07:29
wotgreal
Damage Inc.
1st April 2004, 09:18
yea thats what i need help with i dont know any thing about wotgreal and
all of the tutorials i see they use unrealed then wotgreal to edit the code
drewpaul86
1st April 2004, 09:23
wotgreal has it's own batch export.
all the tut's u read say ued bc the games they were written for didn't have the textbuffers taken out.
Damage Inc.
2nd April 2004, 11:52
ok well i found the batch exporter but all i still see it the default properties...
btw when i come to the site now there is a lil flash banner and its playing
some outcast song over and over...was wondering whats goin on?
//Edit
Ok i got the flash banner taken care of
//Edit
http://www.wotgreal.com/files/wotgrealExporter.zip
ok if u are having the same problem as me with the exporter then
this is what u need lol took me long enough to figure out what i needed
wow wormx now i see why it took u so long to make ur sdk lol
Dynamo16
3rd April 2004, 12:51
hm, help me, how it work?
Damage Inc.
4th April 2004, 01:29
to work the exporter all u have to do is select all of the .u files export them
then go to ur raven shield folder (they will be in there) then just go by what
wormx's tutorial says
drewpaul86
7th April 2004, 23:58
ok, to all those that have been attempting to make thier own SDK, and was doing this following wormX's example, basically u just wasted a bunch of time unless u paid attention to follow up posts that damage has made and i have responded to. almost everything that worm posted was right, but there is one major step that if u did, u just wasted all that time u spent making this.
in wormx's pic, it says take
enum eHitZones
{
head;
neck;
body;
legs;
arms;
}
and make it into this:
enum eHitZones
{
}
DON'T. I'm sry i didn't see this error earlier, i noticed damage_inc's version of an sdk he was starting, and noticed this, and corrected him, but didn't realize that he was told to do so in the SDK Proccess pic posted by WormX. If u do this u will get an error saying there must be at least one prop in an enum, but if u delete them, there isn't anything.
This is a WARNING and correction of the pic that WormX has posted. sry to all those that spent time working on the classes, i just found out when someone asked me for help and showed me both, thier core.u classes and thier ucc make error.
I repeat, do NOT empty the enum, the same goes with the structs.
cya
pwnkiller
8th April 2004, 13:32
Ok, i have written myself a .uc cleaner and it works fine, but now i have a different problem.
My helloworldcommandlet wont compile, i keep getting
Analyzing...
Parsing Object
Parsing Subsystem
Parsing Commandlet
Parsing HelloWorldCommandlet
C:\Program Files\Red Storm Entertainment\RavenShield\Core\Classes\HelloWorldC omm
andlet.uc(5) : Error, Missing ';' in 'Class'
Failed due to errors.
but there is a ; at the end stupid compiler, helloworldcommandlet is as follows:
//================================================== ==============================
// HelloWorldCommandlet.
//================================================== ==============================
class HelloWorldCommandlet extends Commandlet
export;
var int intparm;
var string strparm;
function int Main (string Parms)
{}
defaultproperties
{}
oh and if anyone wants the VB 6 SP 3 source for my UC Cleaner let me know and i will put it on a site for download, cant compile it right now, or I would but my c2.exe wont work for some reason. It only removes code from functions it leaves structs and enums alone as well as leaving state nesting the same just removes all code from the nested functions. Unfortunatly i havent gone so far as to incorperate a syntax fix but i may at a later date.
Bad_TeddY
13th April 2004, 01:41
can u upload the .uc cleaner ??
SuperCman
13th April 2004, 02:01
Im interested in seeing your source, I'm always interested in learning about VB.
If you need to, you can upload it here, upload it to a site outside of mpc, or you can send it to me and i can get it uploaded onto the MPC ftp.
pwnkiller
13th April 2004, 07:00
SuperCman, I dont have a website, so I will have to email the source to you for the download section. Just a warning its not perfect, just a heck of a lot faster than doing it by hand. You can do a directory at a time, but when you do, it auto saves over each file just a warning.
SuperCman
14th April 2004, 06:59
Allrite, when you get 15 or 20 posts (whatever is the limit) I'll pm you and you can email it to me. I'm not worried about it's effectiveness in cleaning .u files that much, more taking a peek at the code to see how you did this, I'm still an amateur programmer.
pwnkiller
14th April 2004, 08:12
Figured i would reply to get my post count up :P But I am currently working on an update for it, when i have that finished, i will let you know as well as everyone else who is curious. I have also got my compiler working again, so i will have an EXE version to release soon as well.
drewpaul86
14th April 2004, 18:57
i have the source, i can send it to u when i see u cman.
frikos
14th April 2004, 19:18
then i will wait for your Uc-cleaner becuase its a boring work :)
Damage Inc.
15th April 2004, 09:00
i was wanting to know if it was ok to delete the var's that make errors?
WoRmX
15th April 2004, 12:11
what error?
Damage Inc.
15th April 2004, 12:46
ok so i take that as a no, well i have been getting errors when i
compile my engine.u and when i delete the var that its saying
has errors it lets me move on to the next .uc file
pwnkiller
16th April 2004, 02:52
What errors are you getting and in what classes? You really shouldnt get any errors in Variable declarations so I am interested in knowing what is happening. Also make sure every variable declare has a semicolon after it, just a thought.
Damage Inc.
16th April 2004, 10:53
well i think i did something wrong when i started working on my engine
so im starting over, im trying to take it slower this time lol do i need to
empty out the event, simulated event to?
//Edit
Oh and what about the replication do i empty out those?
supadupe
17th April 2004, 01:51
is it still woth it to do this even though myconsole hook just got ownzored by pb?
Damage Inc.
17th April 2004, 13:42
i think that theres another way to hook it into the game
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.