Page 1 of 1

new sides not working.

Posted: Mon Dec 01, 2008 5:22 pm
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

Re: new sides not working.

Posted: Mon Dec 01, 2008 5:28 pm
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?

Re: new sides not working.

Posted: Mon Dec 01, 2008 7:24 pm
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.

Re: new sides not working.

Posted: Mon Dec 01, 2008 7:25 pm
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.......

Re: new sides not working.

Posted: Mon Dec 01, 2008 7:41 pm
by obiboba3po
right thanks for that fix ace :)

Re: new sides not working.

Posted: Mon Dec 01, 2008 8:57 pm
by fiddler_on_the_roof
What do I have to rename in order to get the side to work??

Thanks!!