Crash after map 100% loads

Making or wanting help making your own asset? Check in here
Ibrahim-Turk
Posts: 22
Joined: 2013-03-20 10:56

Re: Crash after map 100% loads

Post by Ibrahim-Turk »

Would anyone be willing to download my map and have a look at it yourself? I've put alot of work into this Level and do not want to make it for no reason...
SShadowFox
Posts: 1123
Joined: 2012-01-25 21:35

Re: Crash after map 100% loads

Post by SShadowFox »

Try replacing your init.con with this:

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\farah\
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\farah\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con

endIf

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

run ../../Factions/faction_init.con 1 "mec"
run ../../Factions/faction_init.con 2 "gb"

rem -----------------------------------------------------------------------------

gameLogic.setBeforeSpawnCamera 139/27/123 -20/-11/0

if v_arg1 == BF2Editor
LevelSettings.CustomTextureSuffix ""
else
texturemanager.customTextureSuffix ""
endIf
rem -----------------------------------------------------------------------------

GameLogic.MaximumLevelViewDistance 1000

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
If this doesn't work, open your map on the Editor again, then open the "init.con" and replace these lines:

Code: Select all

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 -----------------------------------------------------------------------------
With these:

Code: Select all

rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------

run ../../Factions/faction_init.con 1 "mec"
run ../../Factions/faction_init.con 2 "gb"

rem -----------------------------------------------------------------------------
There is a small chance that you, either removed one of the lines accidentally or Rhino did it, if that's the case, then this might be the solution.

EDIT: As your map loaded 100% before:

1 - Generate the map "init.con" on the Editor.
2 - Open your "water.con"
3 - Search for this line:

Code: Select all

renderer.waterAnimSpeed 0
and replace with this:

Code: Select all

renderer.waterAnimSpeed 1
Then it might work.

Only do this if the above doesn't work.

BTW, is your map for PR or BF2?
Last edited by SShadowFox on 2013-03-29 01:38, edited 2 times in total.
Image
[R-DEV]Spec:The suggestion is not accepted, I merely wanted to comment.

Shame doesn't work on me, Nor on men of my caliber.
Ibrahim-Turk
Posts: 22
Joined: 2013-03-20 10:56

Re: Crash after map 100% loads

Post by Ibrahim-Turk »

My maps for PR
Post Reply

Return to “PR:BF2 Community Modding”