Page 1 of 1

Side not working

Posted: Wed Jun 17, 2009 5:01 pm
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?

Re: Side not working

Posted: Wed Jun 17, 2009 5:05 pm
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!"

Re: Side not working

Posted: Wed Jun 17, 2009 5:13 pm
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]

Re: Side not working

Posted: Wed Jun 17, 2009 5:43 pm
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...

Re: Side not working

Posted: Wed Jun 17, 2009 5:48 pm
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.

Re: Side not working

Posted: Thu Jun 18, 2009 8:35 am
by carfanaticphil
thank you :)