PDA

View Full Version : Custom made map crashes


Marcus1981
08-19-2005, 10:00 PM
Hi all,

I'm trying to make a new map for BF2 using the newly released editor from EA. I added a new map in the BF2 mod following the guidelines from EA, but whatever I do, it always crashes on loading the map when I try playing it. BF2 just plain crashes back into the desktop after loading the map and verifying the data.

I'm running client 1.2 patch and server 1.2 (dedicated win32).

The dedicated server runs a retail map just fine, but the above happens when playing a custom map.

Even tried to make an absolute minimum map:

2 Controlpoints and 2 spawnpoints on a flat surface with just a couple of meters of texture painted.

Is there a step I'm missing here?

Any help much appreciated...

Marcus.

axis
08-19-2005, 10:03 PM
Have you created a shortcut to BF2.exe something like the following...

E:\games\bf2\BF2.exe +menu 1 +fullscreen 0 +szx 1024 +szy 768

Starting, and crashing, BF2 like that (in windowed mode) should give you an error response (rather than just pure CTD).

Deesies
08-19-2005, 10:35 PM
You can't run maps on dedicated servers unless it's packaged. You should only package when you're finished.

If you wanna test, create a local game.

Marcus1981
08-20-2005, 12:28 AM
Have you created a shortcut to BF2.exe something like the following...

E:\games\bf2\BF2.exe +menu 1 +fullscreen 0 +szx 1024 +szy 768

Starting, and crashing, BF2 like that (in windowed mode) should give you an error response (rather than just pure CTD).

--------------------

Thanks for the suggestion! Unfortunately running in windowed mode produces exactly the same result, the map loads and verifies correctly (which it also did in fullscreen mode, at least the simple map) however....

As soon as I click the 'Join game' button, the window just closes, no messages at all... (on this trial I was running a local server instead of the dedicated one, but that does not seem to make a difference...)

Any additional comment is most welcome!

Thanks all for your input,

Marcus.

P.S. going to give it a go connecting in windowed mode to the ded. server now...

Marcus1981
08-20-2005, 12:47 AM
Running windowed produced an error message this time (hope it's not really in the c++ code from dice, that would make it impossible for me to correct...:

----------------------------------

Debug assertion failed!

Version 1.1.2484.0 Build date:2005-7-9 22:52
Module: GameLogic
File: c:\dice\projects\BF2Branches\BF2JunePatch\Code\BF2 \Game\GameLogic.cpp
Line: 1150

Text: Unable to load Levels/small_tropical_island/GameModes/gpm_cq/64/GamePlayeObjects.con

Current confile:

----------------------------------

It does not specify any Current confile (last line above).

the 'gameplayobjects.con' file exists and contains the following:

----------------------------------

rem ********** Object Spawner **********
if v_arg1 == host

endIf

rem ********** Spawn Points **********
rem [SpawnPointTemplate: TEAM_A_1]
ObjectTemplate.create SpawnPoint TEAM_A_1
ObjectTemplate.activeSafe SpawnPoint TEAM_A_1
ObjectTemplate.modifiedByUser "Marcus"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1

rem [SpawnPoint: TEAM_A_1]
Object.create TEAM_A_1
Object.absolutePosition -15.308/25.000/117.858
Object.rotation -94.447/0.000/0.000
Object.layer 1

rem [SpawnPointTemplate: TEAM_B_1]
ObjectTemplate.create SpawnPoint TEAM_B_1
ObjectTemplate.activeSafe SpawnPoint TEAM_B_1
ObjectTemplate.modifiedByUser "Marcus"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2

rem [SpawnPoint: TEAM_B_1]
Object.create TEAM_B_1
Object.absolutePosition 7.732/25.000/67.765
Object.rotation 95.360/0.000/0.000
Object.layer 1

rem ********** Control Points **********
rem [ControlPointTemplate: TEAM_A]
ObjectTemplate.create ControlPoint TEAM_A
ObjectTemplate.activeSafe ControlPoint TEAM_A
ObjectTemplate.modifiedByUser "Marcus"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName TEAM_A
ObjectTemplate.team 1
ObjectTemplate.controlPointId 1
ObjectTemplate.hoistMinMax 0.2/0.9

rem [ControlPointTemplate: TEAM_B]
ObjectTemplate.create ControlPoint TEAM_B
ObjectTemplate.activeSafe ControlPoint TEAM_B
ObjectTemplate.modifiedByUser "Marcus"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName TEAM_B
ObjectTemplate.team 2
ObjectTemplate.controlPointId 2
ObjectTemplate.hoistMinMax 0.2/0.9

if v_arg1 == host

rem [ControlPoint: TEAM_A]
Object.create TEAM_A
Object.absolutePosition -38.222/25.000/116.076
Object.layer 1

rem [ControlPoint: TEAM_B]
Object.create TEAM_B
Object.absolutePosition 13.903/25.000/67.186
Object.layer 1

endIf

CombatAreaManager.use 0
CombatAreaManager.timeAllowedOutside 10.000000

----------------------------

I'm starting to wonder if something might have gone wrong when applying the 1.2 patch, however the game functions perfectly when playing online...

Anybody seen this before? And if so, does anybody know what causes this to happen?

Help much appreciated,

Marcus.

axis
08-20-2005, 02:16 AM
I read back what ya said after typing a response and noticed you said "after loading the map and verifying the data".

I think I've had this error myself (what sounds like) though can't think just what I needed to do to cure the problem. I think it could have been related to a problem with a spawnpoint, or controlpoint, maybe. I'd double-check their positioning on the map grid and spacing from other objects, maybe even delete them and try again.

Sorry I can't help better than that. :/ I only wish I could remember what I had to do here...

Marcus1981
08-20-2005, 02:22 AM
I read back what ya said after typing a response and noticed you said "after loading the map and verifying the data".

I think I've had this error myself (what sounds like) though can't think just what I needed to do to cure the problem. I think it could have been related to a problem with a spawnpoint, or controlpoint, maybe. I'd double-check their positioning on the map grid and spacing from other objects, maybe even delete them and try again.

Sorry I can't help better than that. :/ I only wish I could remember what I had to do here...

I'll try repositioning them, also what I noticed when running a local server is that my maps appear in a section 'unknown game mode'. Is this normal, or am I maybe doing something wrong there? Further input very much welcome, as soon as I have this solved I'll post the answer here too. I'll definitely check on the reposition tip. Tommorow however cause it's past 3 in the morning here in Holland now.

Appreciate the swift replies, hope we can soon play a new map together :-)

Marcus.

axis
08-20-2005, 01:50 PM
I may have remembered what it was I needed to do here to cure that problem (in my case). If I remember correctly you need to set the Terrain detail level in video options to medium.

If that fails try setting them all to medium (I think it was terrain, though)! :P

...

Marcus1981
08-20-2005, 10:10 PM
Trying this now, will let you know, thanks! :-)

Marcus1981
08-21-2005, 01:58 AM
Setting the detail levels to medium worked!!! Thanks a million, will let you know when my map is finished, screenshots will be on a private site :-)

Thanks again!

Marcus.