Page 2 of 2

Posted: Tue Dec 12, 2006 12:04 am
by fat_walrus
add the "p3_inf_watever line under the ReadDataFile("dc:SIDE\\p3.lvl", and then put AddUnitClass (see the mos eisly assault (TATg_eli) script for this part) above the SetHeroClass. Or the simple way is entering the name of the unit over another after adding his readdatafile such as changing the imp_inf_commander to the p3_whatever.

Hope that made some sense.

Posted: Tue Dec 12, 2006 1:22 am
by Elmo
I didn't understand that at all :( I don't have a ("dc:SIDE\\p3.lvl") section in my LUA. And when you say p3 whatever. I don't know what exactly to add. could you show me a pic? :P

Posted: Tue Dec 12, 2006 4:11 am
by Rekubot
Right, put the three letter name of your side in place of the p3 part. So it should look like this. Note: If something in yellow isn't there, it's because you need to add it!
ReadDataFile("dc:SIDE\\sidename.lvl",
"name_of_the_req_file_that_contains_the_unit's_odf")
ReadDataFile("dc:SIDE\\rep.lvl",
"rep_inf_ep3_rifleman",
"rep_inf_ep3_rocketeer",
"rep_inf_ep3_engineer",
"rep_inf_ep3_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_marine",
"rep_hover_fightertank",
"rep_hero_anakin",
"rep_fly_gunship",
"rep_hover_barcspeeder")
ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_pilot",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")

Now scroll down to this part:
SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 40},
assault = { "rep_inf_ep3_rocketeer",1, 2},
engineer = { "rep_inf_ep3_engineer",1, 2},
sniper = { "rep_inf_ep3_sniper",1, 2},
officer = {"rep_inf_ep3_officer",1, 2},
special = { "rep_inf_ep3_jettrooper",1, 2},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_marine",9, 40},
assault = { "snw_inf_wampa",1, 2},
engineer = { "cis_inf_engineer",1, 2},
sniper = { "cis_inf_sniper",1, 2},
officer = {"cis_inf_officer",1, 2},
special = { "cis_inf_droideka",1, 2},
}
}

AddUnitClass(REP, "name_of_unit's_odf_file",9, 40)

SetHeroClass(CIS, "cis_hero_darthmaul")
SetHeroClass(REP, "rep_hero_anakin")
This will put the unit on the republic's side, but if you're using GCW or you just want it to be on the CIS side, change the REP part at the beginning of the AddUnitClass line to CIS, ALL or IMP. Or whatever. Hopefully you can understand that. It isn't difficult at all.

Posted: Tue Dec 12, 2006 12:27 pm
by Elmo
yes, i sort of do, but where is the unit's odf? (the actual name you have to put in?) Where can I find it?

Posted: Tue Dec 12, 2006 3:06 pm
by Rekubot
<Sigh>. You can find the name of the unit's ODF in it's REQ file. Open it (by 'it' I mean the REQ file) in Notepad. If you want to edit the ODF you can find it in the ODF folder, funnily enough. You need to edit that with a program like Notepad as well.

I bet now you're gonna ask where the REQ files can be found. Well, you can find them in the REQ folder, funnily enough again. I can't tell you which REQ file you're looking for, but if you downloaded the unit I'm assuming there's only one or two REQ files in there.

Posted: Tue Dec 12, 2006 4:02 pm
by Elmo
found the req files. Thx! Now here they are. you are right. there were two. Which one do i add and what do i add from them. here they are:
ucft
{
REQN
{
"class"
"add_imp_player"
}
}
Thats the first one
ucft
{
REQN
{
"class"
"add_imp_unit"
}
REQN
{
"model"
"hud_imp_wristrocket"
}
REQN
{
"texture"
"hud_imp_wristrocket"
}
}
that's teh second one. So now what do i add? The first? the second?

Posted: Tue Dec 12, 2006 5:03 pm
by Rekubot
I, King of the Universe, wrote:... I can't tell you which REQ file you're looking for ...
Apparently you can't read ;). But I would hazard a guess at the first one. If not, then try the second one. It's not that difficult is it? There should be two ODF files in the ODF folder called "add_imp_player" and "add_imp_unit".

Posted: Tue Dec 12, 2006 5:09 pm
by Elmo
im sry, i misread it :P But when you say edit the ODF file, waht do u mean?

Posted: Tue Dec 12, 2006 5:34 pm
by Rekubot
Dude, if you don't know what an ODF file is then please read the Getting Started documentation, or/and the BF2 modding FAQ by Teancum. Or better yet, open one up and see for yourself. If it's any hint, it stands for Object Definition File. I don't intend to be rude, but we can't spoon-feed you if modding is something you want to do.

Posted: Tue Dec 12, 2006 6:17 pm
by Elmo
No, i understand what an odf file is. But When you say edit, do you mean change it? copy it? I've read most of the docs and the FAQ thread :wink:

Edit: ahhh. this is so confusing :x I can't understand it. I need a tut, where i can just get all the information a newb needs right in one place/post.:P

And i know how you feel. :lol:

Posted: Tue Dec 12, 2006 6:33 pm
by Rekubot
Ohhh. By editing it I mean changing what's inside it :D. Sorry for the confusion. You don't need to edit it at all if you don't want to. In fact, if the source files come from somebody else there's a chance that you're not allowed to change the ODF file anyway.

Providing you've followed everything in this topic, there shouldn't be any reason why your unit isn't working. Is it working?

Posted: Thu Dec 14, 2006 3:47 pm
by Elmo
ok, I do not want to create more work for you :lol: but would you mind if you put everything together? :lol: If not it's fine.

Like create a tut. :P

I really appreciate all the help


EDIT
It's not working, there are no cps to spawn from now :( And the DT is STILL not there! :x