Page 1 of 1

Game crashes when added trooper [Solved]

Posted: Fri Jul 15, 2011 3:49 pm
by AcaelusThorne
I wanted to add the Republic clone commando from Teancums Secret Files and used the: Custom side: How to thread.
To clear this up, yes I did munge and I also put the munge and clear bats into Build/Sides/MAJ
(name of the side).
After Munge I had none errors.

And my LUA looks like this:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")

ReadDataFile("dc:SIDE\\maj.lvl",
"maj_inf_clone_commando")

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,

},
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},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")

AddUntitClass(REP, "maj_inf_clone_commando",1,4)
Like I already sad Game crashes and poorly I can t run the BF2 Moodtools .exe cause I have a german CD.

Re: Game crashes when added trupper

Posted: Fri Jul 15, 2011 7:05 pm
by acryptozoo
AcaelusThorne wrote:I wanted to add the Republic clone commando from Teancums Secret Files and used the: Custom side: How to thread.
To clear this up, yes I did munge and I also put the munge and clear bats into Build/Sides/MAJ
(name of the side).
After Munge I had none errors.

And my LUA looks like this:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")

ReadDataFile("dc:SIDE\\maj.lvl",
"maj_inf_clone_commando")

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,

},
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},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")

AddUntitClass(REP, "maj_inf_clone_commando",1,4)
Like I already sad Game crashes and poorly I can t run the BF2 Moodtools .exe cause I have a german CD.
try changing the rep setup to this
MAJ = {
team = MAJ,
units = 20,
reinforcements = 150,
soldier = { "maj_inf_clone_commando",9, 25

Re: Game crashes when added trupper

Posted: Fri Jul 15, 2011 7:21 pm
by AQT
acryptozoo wrote:try changing the rep setup to this
MAJ = {
team = MAJ,
units = 20,
reinforcements = 150,
soldier = { "maj_inf_clone_commando",9, 25},
You would need to define what team MAJ is first before making this change, so keep it as rep and REP, respectively, but adding the custom unit in the soldier slot is a good idea.

Re: Game crashes when added trupper

Posted: Fri Jul 15, 2011 7:39 pm
by acryptozoo
AQT wrote:
acryptozoo wrote:try changing the rep setup to this
MAJ = {
team = MAJ,
units = 20,
reinforcements = 150,
soldier = { "maj_inf_clone_commando",9, 25},
You would need to define what team MAJ is first before making this change, so keep it as rep and REP, respectively, but adding the custom unit in the soldier slot is a good idea.
:oops: oops missed that bit

Re: Game crashes when added trooper

Posted: Sun Jul 17, 2011 8:58 am
by AcaelusThorne
Ok I fixed it thank you. :thumbs:
My LUA looks like this now:
Hidden/Spoiler:
ReadDataFile("sound\\yav.lvl;yav1cw")
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_anakin",
"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_hero_darthmaul",
"cis_hover_aat")

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

SetupTeams{
rep = {
team = REP,
units = 20,
reinforcements = 150,
soldier = { "rep_inf_clone_commando",9,25},

},
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},
}
}

SetHeroClass(CIS, "cis_hero_darthmaul")