[Help] Custom map crash
-
woefie
- Posts: 13
- Joined: 2009-04-27 16:28
[Help] Custom map crash
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.
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.
-
marcoelnk
- Retired PR Developer
- Posts: 1581
- Joined: 2007-03-03 11:30
-
Tonnie
- Retired PR Developer
- Posts: 2014
- Joined: 2007-07-31 14:59
Re: Custom map crash
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
Good luck mate
HangMan: BF2 Editor, it has very strict limitations memory wise, and crashes all the time. Its like a girl. Treat it with respect and take it slow and you'll get places. Rush and get ahead of yourself and it will turn around and punch you in the mouth
-
J.F.Leusch69
- Retired PR Developer
- Posts: 2988
- Joined: 2008-04-23 16:37
Re: Custom map crash
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).
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).
-
woefie
- Posts: 13
- Joined: 2009-04-27 16:28
Re: Custom map crash
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-
J.F.Leusch69
- Retired PR Developer
- Posts: 2988
- Joined: 2008-04-23 16:37
Re: Custom map crash
woefie wrote:this is the init from my mapCode: 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]
RED = fault
Green= not needed fot testing
-
space
- Posts: 2337
- Joined: 2008-03-02 06:42
Re: Custom map crash
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
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
-
woefie
- Posts: 13
- Joined: 2009-04-27 16:28
Re: Custom map crash
thnx , it worked , but when i create a new map it crash on 14% with objects now and no error in windowed mode
-
marcoelnk
- Retired PR Developer
- Posts: 1581
- Joined: 2007-03-03 11:30
Re: Custom map crash
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.

-
Hans Martin Slayer
- Retired PR Developer
- Posts: 4090
- Joined: 2007-01-21 02:20
Re: Custom map crash
yea sounds like some corrupt object to me as well.you probably used a corrupted object
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):
if the windowed mode fails to give you an helpful error message, the debugger often brings up the reason for the crash."C:\Program files\EA GAMES\Battlefield 2\BF2_r.exe" +modPath mods/pr +menu 1 +fullscreen 0 +ignoreAsserts 1
post the error message here and we'll see if we can help you out.
-
woefie
- Posts: 13
- Joined: 2009-04-27 16:28
Re: Custom map crash
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?
-
marcoelnk
- Retired PR Developer
- Posts: 1581
- Joined: 2007-03-03 11:30
Re: Custom map crash
go to compile and click generate overgroth atlas. also resave your overgrowth and make sure you dont use a corrupted overgrowth object.

-
woefie
- Posts: 13
- Joined: 2009-04-27 16:28
Re: Custom map crash
Nice , thank you guys for your help , it's working now and it's fun 


[/URL]