new sides 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
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

new sides not working.

Post by fiddler_on_the_roof »

So I added the rep212th to my map, and I added it in the lua, with the "dc:SIDE\\rep212th, and when I play, the rep212th doesn't show up. I tried putting it so that every unit was rep212th, but then the game just crashed. Here is the only rep212th lua
Hidden/Spoiler:
[code] ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("dc:SIDE\\rep212th.lvl",
"rep_inf_ep2_jettrooper_rifleman",
"rep_inf_ep2_jettrooper_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_jettrooper_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_recon",
"rep_inf_ep3_commander",
"rep_hover_fightertank",
"rep_hero_obiwan",
"rep_hover_barcspeeder,")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hover_aat",
"cis_hero_grievous")

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

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep2_jettrooper_rifleman",9, 25},
assault = { "rep_inf_ep2_jettrooper_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_jettrooper_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_ep3_officer",1,4)
AddUnitClass(REP, "rep_inf_ep3_jettrooper",1,4)
AddUnitClass(REP, "rep_inf_ep3_recon",1,4)
AddUnitClass(REP, "rep_inf_ep3_commander",1,4)[/code]
And here is the lua I want to use.
Hidden/Spoiler:
[code] ReadDataFile("sound\\yav.lvl;yav1cw")
ReadDataFile("SIDE\\rep.lvl",
"rep_inf_ep2_jettrooper_rifleman",
"rep_inf_ep2_jettrooper_rocketeer",
"rep_inf_ep2_engineer",
"rep_inf_ep2_jettrooper_sniper",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper
ReadDataFile("dc:SIDE\\rep212th.lvl",
"rep_inf_ep3_officer",
"rep_inf_ep3_jettrooper",
"rep_inf_ep3_recon",
"rep_inf_ep3_commander",
"rep_hover_fightertank",
"rep_hero_obiwan",
"rep_hover_barcspeeder,")
ReadDataFile("SIDE\\cis.lvl",
"cis_inf_rifleman",
"cis_inf_rocketeer",
"cis_inf_engineer",
"cis_inf_sniper",
"cis_inf_officer",
"cis_inf_droideka",
"cis_hover_aat",
"cis_hero_grievous")

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

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_ep2_jettrooper_rifleman",9, 25},
assault = { "rep_inf_ep2_jettrooper_rocketeer",1, 4},
engineer = { "rep_inf_ep2_engineer",1, 4},
sniper = { "rep_inf_ep2_jettrooper_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_ep3_officer",1,4)
AddUnitClass(REP, "rep_inf_ep3_jettrooper",1,4)
AddUnitClass(REP, "rep_inf_ep3_recon",1,4)
AddUnitClass(REP, "rep_inf_ep3_commander",1,4)[/code]
Am I missing anything that I need to do, and I did add the rep212th to the sides folder, and to the _build/sides folder.

By the way, this is the 212th from the convo pack.

thanks
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: new sides not working.

Post by obiboba3po »

okay well a few things:
-you said you put the rep212 to the _build folder. that wont work. you gotta make a empty folder in _bulild and then put an empty munged folder in that.
-did you add munge and clean.bat to the rep212 side folder? that may have an effect.


oh and another note, you wont be able to have reqs wiht the same name but from different sides. the game will get confused :runaway: and will prbly just crash. either get rid of the default rep stuff in the lua or change some req names around.

EDIT: wait to the 2nd lua is yours?
User avatar
AceMastermind
Gametoast Staff
Gametoast Staff
Posts: 3285
Joined: Mon Aug 21, 2006 6:23 am
Contact:

Re: new sides not working.

Post by AceMastermind »

obiboba3po wrote:okay well a few things:
-you said you put the rep212 to the _build folder. that wont work. you gotta make a empty folder in _bulild and then put an empty munged folder in that.
-did you add munge and clean.bat to the rep212 side folder? that may have an effect.
Fixed:
-You said you put the rep212th in the _BUILD\sides folder. That wont work. You've got to make an empty folder named rep212th in _BUILD\sides and then put a munge.bat and clean.bat in it.
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new sides not working.

Post by fiddler_on_the_roof »

obiboba3po wrote:okay well a few things:
-you said you put the rep212 to the _build folder. that wont work. you gotta make a empty folder in _bulild and then put an empty munged folder in that.
-did you add munge and clean.bat to the rep212 side folder? that may have an effect.


oh and another note, you wont be able to have reqs wiht the same name but from different sides. the game will get confused :runaway: and will prbly just crash. either get rid of the default rep stuff in the lua or change some req names around.

EDIT: wait to the 2nd lua is yours?
-ok
-yes, I did put the clean and munge.bat into it.

Ok, thanks.

testing.......
obiboba3po
2008 Most Technically Challenging Avatar
Posts: 2376
Joined: Tue Feb 12, 2008 7:46 pm
Projects :: No Mod project currently.
Games I'm Playing :: League of Legends
xbox live or psn: No gamertag set
Location: NJ, USA

Re: new sides not working.

Post by obiboba3po »

right thanks for that fix ace :)
fiddler_on_the_roof
1st Lieutenant
1st Lieutenant
Posts: 460
Joined: Wed Nov 12, 2008 5:28 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: new sides not working.

Post by fiddler_on_the_roof »

What do I have to rename in order to get the side to work??

Thanks!!
Post Reply