Space Map Crashing After Adding New Units/Sides

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
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Space Map Crashing After Adding New Units/Sides

Post by Sandtrooper956 »

Recently I have started work on a space map, but am having some trouble. Everytime I try to add a new unit or side into my Clone Wars .lua file, it causes the map to crash for that era. Any help would be appreciated. Thanks in advance!
jojo3450
Rebel Warrant Officer
Rebel Warrant Officer
Posts: 317
Joined: Fri Jul 18, 2014 12:29 am
Projects :: No Mod project currently.
Games I'm Playing :: starwarsBattlefront2
xbox live or psn: No gamertag set

Re: Space Map Crashing After Adding New Units/Sides

Post by jojo3450 »

can u post your .lua file?
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Space Map Crashing After Adding New Units/Sides

Post by Sandtrooper956 »

I'm trying to add heroes into space:

Code: Select all

function SetupUnits()
    ReadDataFile("dc:SIDE\\rep.lvl",   
        "rep_inf_ep3_pilot",
        "rep_inf_ep3_marine",
        "rep_fly_anakinstarfighter_sc",
        "rep_fly_arc170fighter_sc",        
        "rep_veh_remote_terminal",
        "rep_fly_gunship_sc",
        "rep_fly_vwing",
		"rep_hero_obiwan") 
        
    ReadDataFile("SIDE\\cis.lvl",
        "cis_inf_pilot",
        "cis_inf_marine",
        "cis_fly_droidfighter_sc",  
        "cis_fly_droidgunship",
        "cis_fly_greviousfighter",
        "cis_fly_tridroidfighter")
        
    ReadDataFile("SIDE\\tur.lvl",
        "tur_bldg_spa_cis_beam",
        "tur_bldg_spa_cis_chaingun",
        "tur_bldg_spa_rep_beam",
        "tur_bldg_spa_rep_chaingun",
        "tur_bldg_chaingun_roof"
    )
end

myTeamConfig = {
    rep = {
        team = REP,
        units = 32,
        reinforcements = -1,
        pilot    = { "rep_inf_ep3_pilot",26},
        marine   = { "rep_inf_ep3_marine",6},
    },
    cis = {
        team = CIS,
        units = 32,
        reinforcements = -1,
        pilot    = { "cis_inf_pilot",26},
        marine   = { "cis_inf_marine",6},
    }
}

SetHeroClass(CIS, "")
SetHeroClass(REP, "rep_hero_obiwan") 
hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Space Map Crashing After Adding New Units/Sides

Post by hunpeter12 »

Could you generate an error log please and post it?
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Space Map Crashing After Adding New Units/Sides

Post by Sandtrooper956 »

hunpeter12
Command Sergeant Major
Command Sergeant Major
Posts: 260
Joined: Mon Apr 18, 2011 2:53 pm
Projects :: Underground City The Complex [WIP]
Games I'm Playing :: SWBF2

Re: Space Map Crashing After Adding New Units/Sides

Post by hunpeter12 »

It looks like something's calling for com_weap_veh_fly_scoutlasers, but does not find it. Try to fix that first, then manual clean and re-munge just to make sure.
Sandtrooper956
Corporal
Corporal
Posts: 158
Joined: Thu Jul 31, 2014 3:58 pm
Projects :: Just some little things
Games I'm Playing :: SWBF2 and EAW
xbox live or psn: No gamertag set

Re: Space Map Crashing After Adding New Units/Sides

Post by Sandtrooper956 »

Weird because I hadn't made any changes to the ships yet. I just started a space map and messed with .lua a bit, nothing else. Well i'll see what I can do.
Post Reply