Mysterious Crash
Moderator: Moderators
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Mysterious Crash
I'm having a problem with two units from a custom side on my map. Whenever I call for the units in my lua the map crashes right before it reaches the team selection screen. I'm fairly certain the problem is with the unit's models, as they work when their models are changed. I've tried cleaning (both manual and through modtools visualmunge) and munging to no avail. I've checked the side's msh folder and the appropriate msh and tga files are there. There are also no severity 3 or greater errors in my error log relating to either unit (I have a few from a custom first person, but those don't crash the game).
Any ideas what might be causing this?
Any ideas what might be causing this?
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mysterious Crash
First and foremost, welcome to GT. 
Could you please post your LUA? Also, do your unit .msh files have .option files associated with them? If so, what are their contents?
Could you please post your LUA? Also, do your unit .msh files have .option files associated with them? If so, what are their contents?
-
FragMe!
- Gametoast Staff

- Posts: 2244
- Joined: Sat May 13, 2006 12:34 am
- Projects :: Not sure keep changing my mind.
- xbox live or psn: No gamertag set
- Location: Origin name GT_FragMe
- Contact:
Re: Mysterious Crash
Also how "custom" are these units? Are they just odf changes or are they new models?
Are they using new special weapons and are all the odfs for those there? This includes the ord and fx files.
Are they using new special weapons and are all the odfs for those there? This includes the ord and fx files.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Mysterious Crash
Welcome on GT.
So i had a problem a while ago without error log too.
But i had an munge error. was there somthing to you?
And it would be usefull if you can show us your lua/units odf?
You sayed they both crash the game. Have you tryed to load only one of the units?
The other thing is, Try to load the units, but do not use them in the game. So call them in the
ReadDataFile("dc:Side\\UNIT.lvl",
What ever)
but use stock BF Units in the
SetUpTeams.
than try to remove the weapons with stock weapons.
So i had a problem a while ago without error log too.
But i had an munge error. was there somthing to you?
And it would be usefull if you can show us your lua/units odf?
You sayed they both crash the game. Have you tryed to load only one of the units?
The other thing is, Try to load the units, but do not use them in the game. So call them in the
ReadDataFile("dc:Side\\UNIT.lvl",
What ever)
but use stock BF Units in the
SetUpTeams.
than try to remove the weapons with stock weapons.
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Re: Mysterious Crash
My lua (problem units in red, all others work):
@FragMe!: They are new models, with weapon changes as well. However so are several of the other units I'm loading in my lua, and they haven't experienced any problems (though the sniper is using a weapon only he uses, I'll look into that). I don't believe I'm using any fx files that are not stock.
The models do not have a msh.option files associated with them.
Regarding munge errors, I didn't get anything out of the ordinary just a few "(WILL BE SLOW!)" warnings, but I've never experienced a crash due to those. The really strange thing I've noticed is the models have worked before, but I've recently cleaned, and that's when the crash began to occur.
@Anakin: I've tried loading the units in the "ReadDataFile" section with out calling for them in SetupTeams. Map works fine. And I've tried only loading one unit, this still causes the crash.
Also, thanks for the warm welcome everyone (and quick replies).
Hidden/Spoiler:
The models do not have a msh.option files associated with them.
Regarding munge errors, I didn't get anything out of the ordinary just a few "(WILL BE SLOW!)" warnings, but I've never experienced a crash due to those. The really strange thing I've noticed is the models have worked before, but I've recently cleaned, and that's when the crash began to occur.
@Anakin: I've tried loading the units in the "ReadDataFile" section with out calling for them in SetupTeams. Map works fine. And I've tried only loading one unit, this still causes the crash.
Also, thanks for the warm welcome everyone (and quick replies).
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mysterious Crash
Code: Select all
SetupTeams{
rep = {
team = REP,
units = 24,
reinforcements = 150,
soldier = { "rep_inf_rifleman",9, 25},
assault = { "rep_inf_rocketeer",2, 6},
engineer = { "rep_inf_engineer",2, 6},
sniper = { "rep_inf_sniper",2, 6},
officer = {"rep_inf_assault",2, 6},
special = { "rep_inf_jettrooper",1, 4},
extra1 = { "rep_inf_support",1, 2},
extra2 = { "rep_inf_commander",0, 1},
},
cis = {
team = CIS,
units = 24,
reinforcements = 150,
soldier = { "cis_inf_bdroid",9, 25},
assault = { "cis_inf_rocketeer",2, 6},
engineer = { "cis_inf_merc2",2, 6},
sniper = { "cis_inf_sniper",2, 6},
officer = {"cis_inf_sbd",2, 6},
special = { "cis_inf_droideka",1, 4},
extra1 = { "cis_inf_bx",1, 2},
extra2 = { "cis_inf_OOM-9",0, 1},
}
}Code: Select all
-- list of types
local typeList = { "soldier", "pilot", "assault", "sniper", "marine", "engineer", "officer", "special", "extra1", "extra2" }- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Mysterious Crash
i think so because the cis did not crash and the extra1 from the rep did not eighter.
what about the units and weapon odfs?
can you pack all nesseary files in a zip and upload? than i would test them in my mod and mybe i find the error
what about the units and weapon odfs?
can you pack all nesseary files in a zip and upload? than i would test them in my mod and mybe i find the error
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: Mysterious Crash
Doesn't matter; the class types have to exist anyways.Anakin wrote:i think so because the cis did not crash and the extra1 from the rep did not eighter.
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Re: Mysterious Crash
Yes I've done that.Marth8880 wrote: Have you made the necessary changes in setup_teams.lua to accomodate extra1 and extra2? When doing something like that, you need to add the class to the setup_teams script like so:
Sure thing, that has the units odfs, their base odfs, weapon odf, msh and tga files (I also included their req files as well as the side req).Anakin wrote: can you pack all nesseary files in a zip and upload? than i would test them in my mod and mybe i find the error
http://www.mediafire.com/?d2uoqya3xq7cwvs
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Mysterious Crash
You should've just uploaded the entire side, there are so many files missing it's impossible to tell if you had something missing or set up wrong. I can tell you the unit models work fine even though the geometry addons, custom animation, weapon geometry, cloth ODFs and some textures and option files weren't included. I encountered crashing once I started to uncomment weaponsection 1 in the rep_inf_default_commander.odf. The sniper's weapons worked fine aside from no geometry due to missing msh files.
Post your BFront2.log so we can take a look at it, you may have overlooked something.
Post your BFront2.log so we can take a look at it, you may have overlooked something.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: Mysterious Crash
So i tryed it now too. i found this part:
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(625)
Team missing class "rep_inf_sniper" (check the side's .req file)
The unit isn't show in the list too, but nothing is crashing. So You said there is no Severity Message: 3 or higher. Search for "sniper" and "commander" in your error log, maybe there is something
Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(625)
Team missing class "rep_inf_sniper" (check the side's .req file)
The unit isn't show in the list too, but nothing is crashing. So You said there is no Severity Message: 3 or higher. Search for "sniper" and "commander" in your error log, maybe there is something
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Re: Mysterious Crash
Entirely correct, The full side is here. I'll remember this in the future.AceMastermind wrote:You should've just uploaded the entire side, there are so many files missing it's impossible to tell if you had something missing or set up wrong.
I should've posted it in the first place:AceMastermind wrote:Post your BFront2.log so we can take a look at it, you may have overlooked something.
Hidden/Spoiler:
I do not get that error when running the game (just checked my log).Anakin wrote: Message Severity: 2
C:\Battlefront2\main\Battlefront2\Source\Team.cpp(625)
Team missing class "rep_inf_sniper" (check the side's .req file)
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Mysterious Crash
How long does it take you to munge these? I reduced the munge time considerably by removing the -hiresshadow switches from the msh.option files and adding -nocollision to a msh.option file for all units. When you create a custom side you should only include files that are essential or modified in order to reduce bloat. When a side gets to be as large as this I would suggest breaking it up into separate but organized smaller ones to make troubleshooting problems easier.
The first complete munge resulted in this munge error:
The first test run in game resulted in a crash with this error:
The first complete munge resulted in this munge error:
The problem looks like its at the end of the file.ERROR[configmunge effects\com_sfx_weap_rft_exp_lg.fx]:This file is missing a closing bracket somewhere!
1 Errors 0 Warnings
The first test run in game resulted in a crash with this error:
com_weap_inf_shockgrenade_exp.odf doesn't exist in the files you uploaded. Troubleshooting has come to a standstill.Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Explosion.cpp(171)
Explosion base class "com_weap_inf_shockgrenade_exp" not found
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Re: Mysterious Crash
It usually doesn't take to long usually, a few minutes. But you're right, I could reduce file size considerably, I made the side a while ago and have sort of thrown assets into since then. I'll rebuild a new side and only take what I need from this one. I'll also add those lines to the msh.option files when I get the time.AceMastermind wrote:How long does it take you to munge these? I reduced the munge time considerably by removing the -hiresshadow switches from the msh.option files and adding -nocollision to a msh.option file for all units. When you create a custom side you should only include files that are essential or modified in order to reduce bloat. When a side gets to be as large as this I would suggest breaking it up into separate but organized smaller ones to make troubleshooting problems easier.
"com_weap_inf_shockgrenade_exp.odf" and the other "com_" files can be found in the common side here. The fx file is another one of the assets I threw in there, I've gotten that error many times, and never experienced any problems. Which of course means I'm not using it, which means I'll be getting rid of that shortly.AceMastermind wrote: The first complete munge resulted in this munge error:The problem looks like its at the end of the file.ERROR[configmunge effects\com_sfx_weap_rft_exp_lg.fx]:This file is missing a closing bracket somewhere!
1 Errors 0 Warnings
The first test run in game resulted in a crash with this error:com_weap_inf_shockgrenade_exp.odf doesn't exist in the files you uploaded. Troubleshooting has come to a standstill.Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\Explosion.cpp(171)
Explosion base class "com_weap_inf_shockgrenade_exp" not found
- AceMastermind
- Gametoast Staff

- Posts: 3285
- Joined: Mon Aug 21, 2006 6:23 am
- Contact:
Re: Mysterious Crash
I'm not getting any crashes from rep_inf_sniper or rep_inf_commander, all weapons check out fine.
-
Dreadnot9
- Chief Warrant Officer

- Posts: 341
- Joined: Wed Jun 06, 2012 2:05 pm
- Projects :: Rising Conflict CW v2.0
- xbox live or psn: Steam is Dreadnot9
Re: Mysterious Crash
Hmm that's odd. I'll try a manual clean.
EDIT: Thanks for troubleshooting.
EDIT: Thanks for troubleshooting.
