Author Topic: Map Crash Percentages and Easy fixes  (Read 31430 times)

Offline Pacifist

  • Jr. Member
  • **
  • Posts: 54
    • View Profile
Map Crash Percentages and Easy fixes
« on: 10-03-2011, 21:03:45 »
A thread to compile a list of fixes and likely problems for when your map craps out at ?%.

Windowed mode shortcut. Using this will almost always provide you with a error message specifying the
problem file when you crash from your map.

To enter windowed mode make a copy of your FH2.exe and change it's shortcut as follows.

"D:\Games\Battlefield 2\FH2.exe" changes into "D:\Games\Battlefield 2\FH2.exe" +fullscreen 0

If you crash and still don't receive an error message check the rest of the post.


  • Map doesn't show up in loading screen list:  check INFO folder/ DESC file for correct name
  • Map shows in Create Local Game, Server Launcher and BF2CC Map List.  Refuses to run from the map list on a linux server with the message:

"Unable to add Map "(map name)" because it does NOT Exist in the Mod "fh2".
Check the map folder, info sub-folder and (map name).desc file for capitalised names. On Linux servers all file and folder names are required in lower case.

14%
  • check mapdata file
  • check gameplay.con
  • Re-Generate your Overgrowth
  • Crash on dedicated server (server side crash) - Missing surrounding terrain .raw files
  • Check your navmesh (possible isolated vertices)
15%
  • Patch incompatibilities The patch broke or removed one of your statics
  • No serverarchives path in tmp. Only important when using a object_server.zip for custom equipment/statics.
  • Broken terrain.raw
  • One of the items in your object_server.zip is duplicated in the minimod or main game. IE An m10 Early which is in the mod is also bundled in minimod with an identical name will cause a conflict.
  • Check weapon item index(es)
45%-59%
  • Remove vegetation placed on the secondary terrain around the map.
62%
  • Check your custom kits
64%
  • Texture error-Check your statics
74%
  • Check custom sky textures
80%
  • Check custom textures on equipment(Tanks/Planes/Infantry skins and the like)
100%
  • check your spawnable custom kits
  • 'join game' crash. if the map has proper low detail textures generated, but still crashes at 'join game' while on low graphic settings, check the water.con. renderer.waterAnimSpeed needs to be > 0 or the map will crash on low graphic settings at 'join game'.
Easy fixes.

Problem: Finding out what side of the ladder is climbable.
Solution: Go to [Level Editor/Render/Toggle draw collision meshes/Physic meshes] switch it to on. The green side is climbable blue is not.

Problem: Terrain textures resemble a checkerboard.
Solution: Go to [Terrain Editor/Texture/Set low detail Texture(at the bottom of the right hand menu)] Select the only dds file shown. Then select the button below it [Generate Low Detail Map].

Problem: Shadows are pitch black.
Solution: Copy/paste the Objectlight.con from another map into your editor folder.

Problem: Porting over a FH1 map makes the terrain to high.
Solution: Use the terrain height indicator in the levels tweak to adjust it.

Problem: Statically placed overgrowth becomes boxes of texture at distance.
Solution: Generate overgrowth atlas.

Problem: Crashing in editor while placing undergrowth.
Solution: Use this .exe file http://ifihada.com/~spitfire/bf2editorlaa/bf2editor.exe


Post more up as you find them.
« Last Edit: 14-10-2016, 20:10:39 by Roughbeak »

Offline Ts4EVER

  • Banner of THeTA0123
  • Developer
  • ******
  • Posts: 7.812
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #1 on: 10-03-2011, 21:03:59 »

Problem: Static placed overgrowth becomes boxes of texture at distance.
Solution: Remove "Object.isOvergrowth 1" from all objects in the "StaticObjects" file.

Or generate overgrowth atlas.

Offline Wilhelm

  • FH-Betatester
  • ***
  • Posts: 596
  • Betatester
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #2 on: 10-03-2011, 21:03:34 »
Sticky?

Offline RN_Max

  • FH-Betatester
  • ***
  • Posts: 190
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #3 on: 28-05-2011, 18:05:21 »
Quote
Map doesn't show up in loading screen list: check INFO folder/ DESC file for correct name

A similar problem:

Map shows in Create Local Game, Server Launcher and BF2CC Map List.  Refuses to run from the map list on a linux server with the message:

"Unable to add Map "(map name)" because it does NOT Exist in the Mod "fh2".

Check the map folder, info sub-folder and (map name).desc file for capitalised names.

On Linux servers all file and folder names are required in lower case.

Offline Ivancic1941

  • Jr. Member
  • **
  • Posts: 1.072
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #4 on: 04-01-2016, 23:01:38 »
My map crashed at 69%. Could that be roads or something else?
Floppy Wardisc or Floppy Wierdbear

Offline Roughbeak

  • Science of Hooting, PhD
  • Developer
  • ******
  • Posts: 1.438
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #5 on: 05-01-2016, 00:01:26 »
Have you tried locating the issue in Windowed Mode or what message did you receive with it?
« Last Edit: 05-01-2016, 17:01:02 by Roughbeak »

Offline Ivancic1941

  • Jr. Member
  • **
  • Posts: 1.072
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #6 on: 05-01-2016, 19:01:53 »
Here it is from windowed mode

« Last Edit: 05-01-2016, 19:01:32 by Ivancic1941 »
Floppy Wardisc or Floppy Wierdbear

Offline kummitus

  • Jr. Member
  • **
  • Posts: 630
    • View Profile
    • CMP Gaming
Re: Map Crash Percentages and Easy fixes
« Reply #7 on: 05-01-2016, 21:01:48 »
Well that clearly says what's not found.
CMP Gaming

Offline Stubbfan

  • Developer
  • ******
  • Posts: 523
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #8 on: 05-01-2016, 21:01:03 »
well it's rather obvious what the error is.. you can't have a chinese levelname!

Seriously though it's missing colormaps for the surrounding terrain which you have activated either by choice or not. A simple fix for now, go to any other map and copy the missing files into your map. Later on you'll need to make your own custom ones if you intend to use the surrounding terrain.

Offline Outlawz7

  • Newbie
  • *
  • Posts: 7
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #9 on: 17-02-2016, 21:02:22 »
Quote
15% Broken terrain.raw

I have this, anyone know a fix? Deleting it and resaving compiled terrain regenerates the file but doesn't solve the crash.

edit: solved, wasn't terraindata, it was a kit item index conflict in one of the kits.
« Last Edit: 18-02-2016, 20:02:48 by Outlawz7 »

Offline roxor

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #10 on: 26-03-2016, 16:03:43 »
Well my map crashes on 14%
But what is mapdata file??
And what should i check in "gameplayobjects.con" file??

I also suspect a reason
That my map has a vehicle navmesh but its doesnt have any enterable /playable/drivable vehicle

So what should i do??
Please tell me both the things

Offline Ts4EVER

  • Banner of THeTA0123
  • Developer
  • ******
  • Posts: 7.812
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #11 on: 26-03-2016, 16:03:50 »
First of all, are mapping for FH2 or BF2? Because if it is FH2 I might be able to help, but for BF2, not so much.

Offline roxor

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #12 on: 26-03-2016, 19:03:30 »
Well i map for both FH2 and BF2 as i am a hardcore mapper...

So tell me about both...

But as you might know that i am mapping for BF2 give it the first priority...

So tell me please

Offline Ts4EVER

  • Banner of THeTA0123
  • Developer
  • ******
  • Posts: 7.812
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #13 on: 26-03-2016, 20:03:45 »
You are a "hardcore mapper" for FH2 and BF2, yet you do not know what the mapdata.py is?

Anyway, the mapdata.py file is where all the code for FH2 goes. I don't think vBF2 has it, since it deals with stuff like kit limiting, push mode etc.
As for the gameplayobjects.con, it could be any number of things. What kind of objects are you loading?

Offline roxor

  • Jr. Member
  • **
  • Posts: 66
    • View Profile
Re: Map Crash Percentages and Easy fixes
« Reply #14 on: 27-03-2016, 08:03:17 »
Dude...let me clearify....hardcore mapper doesnt means that you know everything...
You also dont know something...even though you are a Developer....

Secondly...
I have some hedgehogs...bunkers and some barbed fences in my map...
And also LCVP'S (static)