Game crashes when added trooper [Solved]

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
AcaelusThorne
Corporal
Corporal
Posts: 153
Joined: Tue Apr 26, 2011 3:30 am
Projects :: Republic Commando Side Mod
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set

Game crashes when added trooper [Solved]

Post 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.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Game crashes when added trupper

Post 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
AQT
Gametoast Staff
Gametoast Staff
Posts: 4910
Joined: Sat Nov 03, 2007 4:55 pm
Location: SoCal, USA

Re: Game crashes when added trupper

Post 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.
User avatar
acryptozoo
Master Bounty Hunter
Master Bounty Hunter
Posts: 1642
Joined: Wed Jun 03, 2009 3:14 pm
Projects :: Yavin Mappack
Games I'm Playing :: Homeworld 2
xbox live or psn: acryptozoo
Location: in the jungles of Yavin IV
Contact:

Re: Game crashes when added trupper

Post 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
AcaelusThorne
Corporal
Corporal
Posts: 153
Joined: Tue Apr 26, 2011 3:30 am
Projects :: Republic Commando Side Mod
Games I'm Playing :: SWBII
xbox live or psn: No gamertag set

Re: Game crashes when added trooper

Post 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")
Post Reply