Side not working

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
carfanaticphil
Rebel Sergeant
Rebel Sergeant
Posts: 219
Joined: Thu Jul 24, 2008 10:58 am

Side not working

Post by carfanaticphil »

On my map, I have 7 classes in the rep side, but only 2 of them appear when i start, the trooper and the sniper. Why is that?
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Side not working

Post by Xavious »

Go ahead and post your lua. Also run bf2_modtools and post your error log. No one can help you if you don't give us anything to work with besides "It's broken!"
User avatar
carfanaticphil
Rebel Sergeant
Rebel Sergeant
Posts: 219
Joined: Thu Jul 24, 2008 10:58 am

Re: Side not working

Post by carfanaticphil »

I fixed everything in the error log
Relevant parts of the lua:
Hidden/Spoiler:
[code] ReadDataFile("dc:SIDE\\jdi.lvl",

"jdi_inf_trooper",
"jdi_inf_sniper",
"jdi_inf_heavy",
"jdi_inf_assault",
"jdi_inf_recon",
"jdi_inf_commando",
"jdi_inf_commander")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hero_darthmaul",
"cis_hover_aat")


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

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "jdi_inf_trooper",9, 25},
sniper = { "jdi_inf_sniper",1, 4},
rocketeer = { "jdi_inf_heavy",1, 4},
support = { "jdi_inf_assault",1, 4},
recon = {"jdi_inf_recon",1, 4},
commando = { "jdi_inf_commando",1, 4},
commander = { "jdi_inf_commander",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},
}
}[/code]
And if it helps, the setup_teams.lua (i think it helps, but i dont quite understand that yet):
Hidden/Spoiler:
[code] -- list of types
local typeList = { "soldier", "pilot", "assault", "sniper", "marine", "engineer", "officer", "special" }[/code]
User avatar
YTGTangerine
Command Sergeant Major
Command Sergeant Major
Posts: 270
Joined: Sat Aug 16, 2008 7:53 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Aw man I can't think of anything creative...

Re: Side not working

Post by YTGTangerine »

Doesn't the trooper look a little out of place there?(in the lua) I don't know how this may cause your problem, but...
Xavious
Sith Master
Sith Master
Posts: 2783
Joined: Mon Jun 12, 2006 3:46 pm

Re: Side not working

Post by Xavious »

You've got a rocketeer, support, commando, and commander class, all of which have not been defined in your setup_teams.lua.

Code: Select all

-- list of types
    local typeList = { "soldier", "pilot", "assault", "sniper", "marine", "engineer", "officer", "special", "rocketeer", "support", "commando", "commander" }
That should do it.
User avatar
carfanaticphil
Rebel Sergeant
Rebel Sergeant
Posts: 219
Joined: Thu Jul 24, 2008 10:58 am

Re: Side not working

Post by carfanaticphil »

thank you :)
Post Reply