New Units don't appear

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
boyohboyohboy
Recruit Womprat Killer
Posts: 12
Joined: Sat Oct 10, 2009 8:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: up :)

New Units don't appear

Post by boyohboyohboy »

I'm trying to put a commando unit on all the factions. I put the AddUnitClass function in my lua but it still doesn't work. Here's my clone wars lua:

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_clone_commando",
"rep_hover_fightertank",
"rep_hero_kiyadimundi",
"rep_hover_barcspeeder",
"rep_walk_oneman_atst",
"rep_walk_atte",
"rep_fly_gunship_sc",
"rep_hover_fightertank")

ReadDataFile("dc:SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_inf_commando",
"cis_hero_jangofett",
"cis_hover_aat",
"cis_hover_stap",
"cis_tread_snailtank",
"cis_walk_spider",
"cis_fly_droidgunship_sc")

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_laser",
"tur_bldg_tower")

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep3_rifleman",9, 25},
assault = { "rep_inf_ep3_rocketeer",1, 4},
engineer = { "rep_inf_ep3_engineer",1, 4},
sniper = { "rep_inf_ep3_sniper",1, 4},
officer = {"rep_inf_ep3_officer",1, 4},
special = { "rep_inf_ep3_jettrooper",1, 4},

},
cis = {
team = CIS,
units = 20,
reinforcements = 150,
soldier = { "cis_inf_rifleman",9, 25},
assault = { "cis_inf_rocketeer",1, 4},
engineer = { "cis_inf_engineer",1, 4},
sniper = { "cis_inf_sniper",1, 4},
officer = {"cis_inf_officer",1, 4},
special = { "cis_inf_droideka",1, 4},
}
}
AddUnitClass(REP, "rep_inf_clone_commando",1, 2)
AddUnitClass(CIS, "cis_inf_commando",1, 2)


SetHeroClass(CIS, "cis_hero_jangofett")
SetHeroClass(REP, "rep_hero_kiyadimundi")


And here is my GCW Lua:

ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_inf_specialops",
"all_hero_luke_jedi",
"imp_hover_speederbike",
"all_hover_combatspeeder",
"all_fly_snowspeeder",
"all_fly_gunship_sc" )

ReadDataFile("dc:SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_inf_clone_commando",
"imp_hero_emperor",
"imp_fly_destroyer_dome",
"imp_walk_atat",
"imp_walk_atst_jungle",
"imp_hover_fightertank",
"imp_hover_speederbike",
"imp_fly_trooptrans" )

ReadDataFile("SIDE\\tur.lvl",
"tur_bldg_tat_barge",
"tur_bldg_laser")

SetupTeams{
all = {
team = ALL,
units = 20,
reinforcements = 150,
soldier = { "all_inf_rifleman",9, 25},
assault = { "all_inf_rocketeer",1,4},
engineer = { "all_inf_engineer",1,4},
sniper = { "all_inf_sniper",1,4},
officer = { "all_inf_officer",1,4},
special = { "all_inf_wookiee",1,4},
},
imp = {
team = IMP,
units = 20,
reinforcements = 150,
soldier = { "imp_inf_rifleman",9, 25},
assault = { "imp_inf_rocketeer",1,4},
engineer = { "imp_inf_engineer",1,4},
sniper = { "imp_inf_sniper",1,4},
officer = { "imp_inf_officer",1,4},
special = { "imp_inf_dark_trooper",1,4},
},
}
AddUnitClass(ALL, "all_inf_specialops",1,2)
AddunitClass(IMP, "imp_inf_clone_commando",1,2)



SetHeroClass(ALL, "all_hero_luke_jedi")
SetHeroClass(IMP, "imp_hero_emperor")


Is there something I did wrong? :?
mswf
Master Bounty Hunter
Master Bounty Hunter
Posts: 1674
Joined: Tue Mar 31, 2009 3:40 pm
Location: Twello, The Netherlands
Contact:

Re: New Units don't appear

Post by mswf »

Did you made a correct .req, make sure you put all the files in the correct folders, make sure you munged your sides via visualmunge.
There you have it, a short checklist.
User avatar
boyohboyohboy
Recruit Womprat Killer
Posts: 12
Joined: Sat Oct 10, 2009 8:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: up :)

Re: New Units don't appear

Post by boyohboyohboy »

Do I need to make an individual req for each new class?
User avatar
General_Nate
Lieutenant General
Lieutenant General
Posts: 689
Joined: Sun Jun 28, 2009 4:01 pm
Projects :: None because BFII is not working
Games I'm Playing :: Minecraft
xbox live or psn: No gamertag set
Location: 127.0.0.1

Re: New Units don't appear

Post by General_Nate »

All of this is explained in the Jedi Creation doc.
User avatar
boyohboyohboy
Recruit Womprat Killer
Posts: 12
Joined: Sat Oct 10, 2009 8:54 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: up :)

Re: New Units don't appear

Post by boyohboyohboy »

Ok, I think I see what I did wrong.
Munging now.
Post Reply