Page 1 of 1

List of Silent Crashes/Freezes for SWBF2 maps

Posted: Mon Jul 30, 2007 9:46 am
by Ace_Azzameen_5
This is a list of known crashes and freezes that a mod map can have without BF2_modtools.exe reporting a problem.

Note: I decided to start this thread and hope to get it added to the Everything you need thread, if it proves useful. Please add any 'silent' crashes or freezes you know of.
After a search and a check of the EYN4SWBF2 thread, I am reasonably sure this hasn't been done-and It should be. How many man hours do we waste on examining crashes and backtracking when others already know exactly how to fix your map? So, without further adieu,

Things That Will silently Crash your Map

Missing Object Assets
Occurs: If your lyr file calls an object that your map doesn't have in its assets or otherwise loaded, your map will crash.
How'd I do that?: You probably deleted some odfs and mshs, and munged before running ZE - which will automatically delete the object from the LYR on start up.

Things That Will silently FREEZE your Map

The Object Limit
Occurs: When you have a certain amount of objects loaded in a certain mode. (Placed in a loaded layer)
Solution Tips: Start Deleting objects - but not in ZE. Open the desired Layer's world/.lyr file in Word Pad. Also open a black document. Start Cutting and pasting objects out of the LYR and save them in the new document. That way, If you remove more objects than necessary you can re-add some exactly where you had them by pasting them back in the lyr.

RE: List of Silent Crashes/Freezes for SWBF2 maps

Posted: Mon Jul 30, 2007 9:55 am
by Master Fionwë
Ace, this is a great idea! Glad someone came up with it.

Another one that can crash a mod map, and this one caused a lot of problems for me:
If you add a custom side, and you have double numbers in a units odf for weapons, or are missing numbers.
Example:
WEAPONSECTION = 1
WeaponName = ""
WeaponAmmo = ""

WEAPONSECTION = 3
WeaponName = ""
WeaponAmmo = ""
That does not show up in the error log.

Posted: Mon Jul 30, 2007 12:07 pm
by MercuryNoodles
Also, pasting in hero weapons without removing the numbers not associated with the WEAPONSECTION lines (or maybe not making them all numbered?) will cause a crash with no error reported.


Good:
WEAPONSECTION = 1
WeaponName = "imp_weap_inf_arccaster"
WeaponAmmo = 5

WEAPONSECTION = 2
WeaponName = "imp_weap_inf_rifle"
WeaponAmmo = 5

WEAPONSECTION = 3
WeaponName = "imp_weap_hero_flamethrower"
WeaponAmmo = 3
Not Good:
WEAPONSECTION = 1
WeaponName = "imp_weap_inf_arccaster"
WeaponAmmo = 5

WEAPONSECTION = 2
WeaponName = "imp_weap_inf_rifle"
WeaponAmmo = 5

WEAPONSECTION = 3
WeaponName2 = "imp_weap_hero_flamethrower"
WeaponAmmo2 = 3

Posted: Mon Jul 30, 2007 1:58 pm
by jangoisbaddest
Another thing that will crash the map without an error report: not having animation files in your map's directory (specifically doors, but I'm sure this applies to all animations as well).

Posted: Mon Jul 30, 2007 2:14 pm
by authraw
One that bugs me to no end is the fact that units that are missing an award weapon will crash when you try to switch weapons. This can be fixed by either adding an award weapon or removing the line in the weaponOdf that causes the game to check for an award weapon.