Page 1 of 1
[Help] Custom map crash
Posted: 2009-04-27 16:41
by woefie
Hi , im new to mapping
followed almost the most tutorials for mapping.
I started to create a new PR map ,
With terrain,2 outposts ,2spawnpoints,2vehicles. saved all and copy the map to PR levels to start up with PR , when the map fully loaded at 100% it crashes to destop with no errors.
What can i do?
My PC works normal (so far i know) play normal BF on highest settings etc.
Re: Custom map crash
Posted: 2009-04-27 17:13
by marcoelnk
run in windowed mode.
Re: Custom map crash
Posted: 2009-04-28 01:43
by Tonnie
Ok like marcoelnk said, run in windowed mode and try yourmap again. Then look for the file that its says ismissing. If you still have problems take a screenshot of the error window and post here i am sure someone can help you that way...
Good luck mate
Re: Custom map crash
Posted: 2009-04-28 15:40
by woefie

how can i fix this?
Re: Custom map crash
Posted: 2009-04-28 15:50
by J.F.Leusch69
looks like you have meshed up something with the init.con, so just check your init.con and compare it to this
run ../../objects/common/spawners/spawners_common.con
run ../../objects/common/spawners/spawners_us_ziptie.con
run ../../objects/common/spawners/spawners_taliban.con
endIf
rem USMC VERSUS TALIBAN
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "TALIBAN"
gameLogic.setTeamName 2 "US"
gameLogic.setTeamLanguage 1 "MEC"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_taliban"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "taliban_officer" "pr_taliban_soldier1"
gameLogic.setKit 2 0 "us_officer_ziptie" "pr_us_soldier4"
gameLogic.setKit 1 1 "taliban_insurgent1" "pr_taliban_soldier1"
gameLogic.setKit 2 1 "us_riflemanab_ziptie" "pr_us_soldier2"
gameLogic.setKit 1 2 "taliban_insurgent2" "pr_taliban_soldier2"
gameLogic.setKit 2 2 "us_rifleman_ziptie" "pr_us_soldier3"
gameLogic.setKit 1 3 "taliban_scout" "pr_taliban_soldier4"
gameLogic.setKit 2 3 "us_specialist_ziptie" "pr_us_soldier1"
gameLogic.setKit 1 4 "taliban_medic" "pr_taliban_soldier4"
gameLogic.setKit 2 4 "us_medic_ziptie" "pr_us_soldier2"
gameLogic.setKit 1 5 "" ""
gameLogic.setKit 2 5 "" ""
gameLogic.setKit 1 6 "" ""
gameLogic.setKit 2 6 "" ""
rem -----------------------------------------------------------------------------
this is the from op archer
or you have deleted something or so in the pr or pr_edit files so that the texture (which can not be found by the engine).
Re: Custom map crash
Posted: 2009-04-28 15:55
by woefie
Code: Select all
rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor
run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\test_map\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor
else
run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\test_map\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
endIf
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "USMC"
gameLogic.setTeamLanguage 1 "English"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_ch"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "" ""
gameLogic.setKit 2 0 "" ""
gameLogic.setKit 1 1 "" ""
gameLogic.setKit 2 1 "" ""
gameLogic.setKit 1 2 "" ""
gameLogic.setKit 2 2 "" ""
gameLogic.setKit 1 3 "" ""
gameLogic.setKit 2 3 "" ""
gameLogic.setKit 1 4 "" ""
gameLogic.setKit 2 4 "" ""
gameLogic.setKit 1 5 "" ""
gameLogic.setKit 2 5 "" ""
gameLogic.setKit 1 6 "" ""
gameLogic.setKit 2 6 "" ""
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 850
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
gameLogic.setDefaultNumberOfTicketsEx 32 2 50
gameLogic.setDefaultNumberOfTicketsEx 64 1 50
gameLogic.setDefaultNumberOfTicketsEx 64 2 50
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10
rem -----------------------------------------------------------------------------
rem -----------------------------------------------------------------------------
renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
this is the init from my map
Re: Custom map crash
Posted: 2009-04-28 16:10
by J.F.Leusch69
woefie wrote:Code: Select all
rem *** Generated by BF2Editor ***
if v_arg1 == BF2Editor
run Heightdata.con
LevelSettings.InitWorld
run Terrain.con BF2Editor
run StaticObjects.con BF2Editor
run Sounds.con
run Sky.con BF2Editor
run Editor/GamePlayObjects.con host
UndergrowthEditable.create
Undergrowth.load Levels\test_map\
run Overgrowth/Overgrowth.con
Overgrowth.editorEnable 1
run AmbientObjects.con BF2Editor
run Water.con
run TriggerableTemplates.con BF2Editor
else
run Heightdata.con
run Terrain.con v_arg2
run Sky.con v_arg2
run CompiledRoads.con
run Sounds.con
run tmp.con v_arg1
Undergrowth.load Levels\test_map\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
[color=Green]run ../../objects/common/spawners/spawners_common.con
run ../../objects/common/spawners/spawners_us_ziptie.con
run ../../objects/common/spawners/spawners_taliban.con[/color]
endIf
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "[color=Green]TALIBAN[/color]"
gameLogic.setTeamName 2 "[color=Red]US[/color]"
gameLogic.setTeamLanguage 1 "[color=Green]MEC[/color]"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_[color=Green]taliban[/color]"
gameLogic.setTeamFlag 2 "flag_us"
[color=Green]gameLogic.setKit 1 0 "taliban_officer" "pr_taliban_soldier1"
gameLogic.setKit 2 0 "us_officer_ziptie" "pr_us_soldier4"
gameLogic.setKit 1 1 "taliban_insurgent1" "pr_taliban_soldier1"
gameLogic.setKit 2 1 "us_riflemanab_ziptie" "pr_us_soldier2"
gameLogic.setKit 1 2 "taliban_insurgent2" "pr_taliban_soldier2"
gameLogic.setKit 2 2 "us_rifleman_ziptie" "pr_us_soldier3"
gameLogic.setKit 1 3 "taliban_scout" "pr_taliban_soldier4"
gameLogic.setKit 2 3 "us_specialist_ziptie" "pr_us_soldier1"
gameLogic.setKit 1 4 "taliban_medic" "pr_taliban_soldier4"
gameLogic.setKit 2 4 "us_medic_ziptie" "pr_us_soldier2"[/color]
gameLogic.setKit 1 5 "" ""
gameLogic.setKit 2 5 "" ""
gameLogic.setKit 1 6 "" ""
gameLogic.setKit 2 6 "" ""
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/0
if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------
GameLogic.MaximumLevelViewDistance 850
rem -----------------------------------------------------------------------------
gameLogic.setDefaultNumberOfTicketsEx 16 1 50
gameLogic.setDefaultNumberOfTicketsEx 16 2 50
gameLogic.setDefaultNumberOfTicketsEx 32 1 50
gameLogic.setDefaultNumberOfTicketsEx 32 2 50
gameLogic.setDefaultNumberOfTicketsEx 64 1 50
gameLogic.setDefaultNumberOfTicketsEx 64 2 50
gameLogic.setDefaultNumberOfTicketsEx 128 1 50
gameLogic.setDefaultNumberOfTicketsEx 128 2 50
gameLogic.setDefaultTimeToNextAIWave 8
gameLogic.setTicketLossAtEndPerMin 1000
gameLogic.setTicketLossPerMin 1 10
gameLogic.setTicketLossPerMin 2 10
rem -----------------------------------------------------------------------------
rem -----------------------------------------------------------------------------
renderer.globalStaticMeshLodDistanceScale 1
renderer.globalBundleMeshLodDistanceScale 1
renderer.globalSkinnedMeshLodDistanceScale 1
[color=Green]gameLogic.setTeamDropVehicle 1 "mark_team1"
gameLogic.setTeamDropVehicle 2 "mark_team2"[/color]
this is the init from my map
RED = fault
Green= not needed fot
testing
Re: Custom map crash
Posted: 2009-04-28 16:44
by space
Several .con files get changed every time you open the editor, even if you haven't been working on any of the settings that they contain ( the init.con is one of them )
I have a Map start folder with the following files in it, containing the correct lines of code:
Gameplay folder
init.con
terrain.con ( Because I'm making a 4km map )
Everytime I want to pack my map, I paste these files into my map folder, to overwrite the ones that the editor has changed, and then run the map script

Re: Custom map crash
Posted: 2009-04-29 11:01
by woefie
thnx , it worked , but when i create a new map it crash on 14% with objects now and no error in windowed mode
Re: Custom map crash
Posted: 2009-04-29 11:30
by marcoelnk
you probably used a corrupted object ( chekc the list the modding tutorial section ) or messed up your overgrowth. when you do not have any overgrowth set yet try to delete the overgrowth folder and then run the map.
Re: Custom map crash
Posted: 2009-04-29 12:09
by Hans Martin Slayer
you probably used a corrupted object
yea sounds like some corrupt object to me as well.
you can also run the debug mode to find out what's wrong.
just create a new shortcut (copy/ paste the PR shortcut and change the target line so it looks like this (might be differ from this, depends on where your BF2 is located):
"C:\Program files\EA GAMES\Battlefield 2\BF2_r.exe" +modPath mods/pr +menu 1 +fullscreen 0 +ignoreAsserts 1
if the windowed mode fails to give you an helpful error message, the debugger often brings up the reason for the crash.
post the error message here and we'll see if we can help you out.

Re: Custom map crash
Posted: 2009-04-29 12:28
by woefie
hey , it worked when i deleted the overgrowth but when i have overgrowth it crashes how can i fix it that the overgrowth stays without crash?
Re: Custom map crash
Posted: 2009-04-29 15:11
by marcoelnk
go to compile and click generate overgroth atlas. also resave your overgrowth and make sure you dont use a corrupted overgrowth object.
Re: Custom map crash
Posted: 2009-04-29 15:46
by woefie
Nice , thank you guys for your help , it's working now and it's fun
