Are source files for a unit the same as props? [Solved]
Moderator: Moderators
-
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.
Hope that made some sense.
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
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!
Now scroll down to this part:
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:
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.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")
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
<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.
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.
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
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:
Thats the first oneucft
{
REQN
{
"class"
"add_imp_player"
}
}
that's teh second one. So now what do i add? The first? the second?ucft
{
REQN
{
"class"
"add_imp_unit"
}
REQN
{
"model"
"hud_imp_wristrocket"
}
REQN
{
"texture"
"hud_imp_wristrocket"
}
}
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
Apparently you can't readI, King of the Universe, wrote:... I can't tell you which REQ file you're looking for ...
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
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.
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
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 
Edit: ahhh. this is so confusing
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.
And i know how you feel.
Edit: ahhh. this is so confusing
And i know how you feel.
-
Rekubot
- Jedi

- Posts: 1080
- Joined: Wed Apr 05, 2006 12:34 pm
- Projects :: No Mod project currently.
- xbox live or psn: Rekubot
- Location: UK
Ohhh. By editing it I mean changing what's inside it
. 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?
Providing you've followed everything in this topic, there shouldn't be any reason why your unit isn't working. Is it working?
-
Elmo
- Field Commander

- Posts: 962
- Joined: Wed Nov 08, 2006 5:13 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
