as promised, heres the tut:
Putting custom source files in shipped sides
for this tut, the example will be commander cody, as this tutorial is made by request of putting commander cody ingame. and this should be helpful for
any custom source file.
NOTE: THIS IS NOT A TUT ON MAKING CUTSOM SIDES, IT just tells you how to add a unit to a side.
1) extract the zipped folder
2) open the extracted folder and you should see the following sub-folders:
-effects
-sounds
-msh
-odf
3) ignore the sound folder, it works fine without it, and im not sure what to do with it.
NOTE: DO NOT do steps 4-6 if you side folder has rep and common, or if you have successfully gotten skins in game.
4) go to assets/sides/rep and copy the whole folder into youre maps own side folder. (which is
data_***/side)
5) go to assets/sides/common and copy the whole folder into youre maps own side folder.
6) go to data_***/build/sides/all and you should see munge.bat and clean.bat. copy both of these, and paste them into youre rep side folder under youre map
7) open up the msh folder and hold ctrl+a to highlight everything. copy and paste everything into youre data_***/sides/rep/msh folder. if it asks to replace something, say no.
step 8: open up the odf folder, and copy and paste everything into youre rep/odf folder. if it asks to replace something, say no.
NOTE: The reason why you press no, is so that the default weapons will be used, so there will be default sound. i do not know how to get the custom sounds working.
9) open up effects, copy and paste everything into youre rep/effects folder.
NOTE: when you copy effects, msh, and odf, make sure its under data_***/sides/rep, and not assets/sides/rep
10) open up youre lua_con. (For new scripters, thats data_***/common/scripts/***_c.con. NOT .bak!)
11) find this line:
(If there is no dc: there, add it now)
12) add this:
somewhere in the list of units. (NOT at the end) make sure it flows though. (IE: commas are in correct places)
13) go to this line:
Code: Select all
SetHeroClass(REP, "rep_hero_anakin")
after it, press the enter key and add this right below it:
Code: Select all
AddUnitClass(REP,"rep_hero_cody", 1,4)
14) save this lua, were almost done.
15) you will notice, there is no req for cody. so we need to create one. go to data_***/sides/rep/req and make a new file in note pad. copy this into it:
Code: Select all
ucft
{
REQN
{
"class"
"rep_hero_cody"
}
}
16) name this req: rep_hero_cody.
17) go back one folder. (Into the main rep side folder)
18) open rep.req. (NOT rephell.req!!)
19) with the rest of the heros in this req, add this:
20) open up visual munge. select sides: everything and
clean not munge. we must clean first. long story short, we copied and pasted, and mod tools is annoying, so we must clean first.
21) when clean is done, now you may munge everything. (LOL for Teamcum: DO NOT STOP THE MUNGE!!!)
22) play and enjoy
