Page 1 of 1
[Help!] CTD when trying to spawn
Posted: 2008-02-05 15:44
by ~KILL~Pirate
I need some help from a DEV or someone with more knowledge about mapping than myself. Trying to do some more testing last night, but now after clicking on spawn point, it simply crashes to desktop now. I basicly have the map set USMC vs MEC for testing. Two spawn points, one for each side and a spawnable jeep at each. The map is loading fine in window mode, then click join game, it brings up my map in background and minimap in foreground. I choose my kit and select spawn point and try to spawn then....... CTD
Posted: 2008-02-05 16:14
by jayceon515
~KILL~....Pirate-X wrote:I need some help from a DEV or someone with more knowledge about mapping than myself. Trying to do some more testing last night, but now after clicking on spawn point, it simply crashes to desktop now. I basicly have the map set USMC vs MEC for testing. Two spawn points, one for each side and a spawnable jeep at each. The map is loading fine in window mode, then click join game, it brings up my map in background and minimap in foreground. I choose my kit and select spawn point and try to spawn then....... CTD
Run it in windowed mode and if you get an error message saying "can't create requested kit" or something along those lines just run your map in the editor and set a default init.con (level settings -> team1 set MEC, team2 set USMC and leave everything else as it is. The editor should automatically set spawnable kits for both factions and then DO NOT manually edit the init.con or it won't work again. You should then have all possible spawnable kits just like in vBF2).
I've tested my map with described setting many times and haven't had any problems yet.
Posted: 2008-02-05 16:31
by ~KILL~Pirate
first, thanks for the help bro.... I ran in in windows mode last night and it didnt give any error messages, it just crashes.....weird. I think it is like you said, not creating kits. I have the settings for teams as you said and didnt change init file and but for some reason it must not be loading kits or a setting I have changed to cause it to crash at spawn without giving any errorrs..
Posted: 2008-02-05 17:17
by jayceon515
I'm not sure I understand what you're trying to say. You CTD when you just click on the white dot on the minimap to spawn (I have never experienced that) or when you click on the kit you want to spawn with and press ENTER?
Posted: 2008-02-05 17:32
by ~KILL~Pirate
I can click on white dot (spawn point) and choose a kit such as support, enginer etc... but as soon as I try to spawn that is when it CTD.. As far as statics, I have around 1600 and prob. less than 100 destroyable...
Posted: 2008-02-05 17:59
by Ragni<RangersPL>
1. Are you using BF2 mod or pr_edit mod to work in the bf2editor?
2. Are you trying to run the map in BF2 or PR?
3. Are you sure you have placed spawn points?
4. Did you set control points properties?
5. Is this your first map?
BTW. Run it in debug mode and search for errors.
Posted: 2008-02-05 18:19
by ~KILL~Pirate
Ragni<RangersPL> wrote:1. Are you using BF2 mod or pr_edit mod to work in the bf2editor?
2. Are you trying to run the map in BF2 or PR?
3. Are you sure you have placed spawn points?
4. Did you set control points properties?
5. Is this your first map?
BTW. Run it in debug mode and search for errors.
1. using PR_edit mod
2. Running map in PR_edit windows mode that Rhino set up and came with PR_edit setup.
3. yes
4. all flags match team and havent changed anything as far as that is concerned.
5. I have fooled around with maps in the past, but never made them playable, so I am pretty much learning as I go....
When I load my map in editor, it just gives me the usual ignored mesh etc... errors and didnt see anything unusual, but at the same time not sure what I would be looking for. I had it working last week, and fooled around with lightmaping but was way too dark so just erased lightmap files and pasted the originals back in to originals settings. Only thing I think I have added since is a river with waterplanes because the regular water levels flooded my Underground bunkers. So basicly the river and map is not lightmapped or envmapped and not sure if that has anything to do with crash...
Posted: 2008-02-05 18:55
by Ragni<RangersPL>
Did you edited your Init.con?
Check this tread for details ->
https://www.realitymod.com/forum/f189-m ... lines.html
You need to make: Team Markers, Kit Request Spawner Set-up and Spawn Kit Setup.
Posted: 2008-02-05 19:11
by ~KILL~Pirate
Yes I aded those and that is when it worked before, but after reading tut again, I dont think I made the init file read-only....hmmm that may the million dollar answer I been looking for. I will look at my init file when I get home. Thanks Ranger, hope that is the simple solution to my problem.
Posted: 2008-02-06 00:36
by ~KILL~Pirate
Checked and did forget to make read-only, but after adding the nescesary commands it still crashes.. Here is my init.con file settings
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\My_Level\
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\My_Level\
run Overgrowth/Overgrowth.con
run Overgrowth/OvergrowthCollision.con
run AmbientObjects.con
run Water.con
run TriggerableTemplates.con
run ../../objects/common/spawners/spawners_common.con
run ../../objects/common/spawners/spawners_us.con
run ../../objects/common/spawners/spawners_mec.con
endIf
rem USMC VERSUS MEC
rem ------------------------------- LevelSettings -------------------------------
rem -----------------------------------------------------------------------------
gameLogic.setTeamName 1 "MEC"
gameLogic.setTeamName 2 "US"
gameLogic.setTeamLanguage 1 "MEC"
gameLogic.setTeamLanguage 2 "English"
gameLogic.setTeamFlag 0 "flag_neutral"
gameLogic.setTeamFlag 1 "flag_mec"
gameLogic.setTeamFlag 2 "flag_us"
gameLogic.setKit 1 0 "mec_riflemanab" "mec_heavy_soldier"
gameLogic.setKit 2 0 "us_riflemanAB" "us_heavywhite_soldier"
gameLogic.setKit 1 1 "mec_rifleman" "mec_heavy_soldier"
gameLogic.setKit 2 1 "us_rifleman" "us_heavy_soldier"
gameLogic.setKit 1 2 "mec_engineer" "mec_heavy_soldier"
gameLogic.setKit 2 2 "us_engineer" "us_heavywhite_soldier"
gameLogic.setKit 1 3 "mec_medic" "mec_lightarmor_soldier"
gameLogic.setKit 2 3 "us_medic" "us_lightarmor_soldier"
gameLogic.setKit 1 4 "mec_officer" "mec_heavy_soldier"
gameLogic.setKit 2 4 "us_officer" "us_heavywhite_soldier"
rem -----------------------------------------------------------------------------
gameLogic.setBeforeSpawnCamera 0/150/0 0/0/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
Here is my gameplay 64 folder settings...
rem ********** Object Spawner **********
if v_arg1 == host
endIf
rem ********** Spawn Points **********
rem [SpawnPointTemplate: usmain_1]
ObjectTemplate.create SpawnPoint usmain_1
ObjectTemplate.activeSafe SpawnPoint usmain_1
ObjectTemplate.modifiedByUser "Jason"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 2
rem [SpawnPoint: usmain_1]
Object.create usmain_1
Object.absolutePosition -54.703/25.000/342.260
Object.rotation 96.434/0.000/0.000
Object.layer 1
rem [SpawnPointTemplate: mecmain_1]
ObjectTemplate.create SpawnPoint mecmain_1
ObjectTemplate.activeSafe SpawnPoint mecmain_1
ObjectTemplate.modifiedByUser "Jason"
ObjectTemplate.isNotSaveable 1
ObjectTemplate.setSpawnPositionOffset 0/1.25/0
ObjectTemplate.setControlPointId 1
rem [SpawnPoint: mecmain_1]
Object.create mecmain_1
Object.absolutePosition 102.818/25.000/-18.891
Object.rotation -43.872/0.000/0.000
Object.layer 1
rem ********** Control Points **********
rem [ControlPointTemplate: usmain]
ObjectTemplate.create ControlPoint usmain
ObjectTemplate.activeSafe ControlPoint usmain
ObjectTemplate.modifiedByUser "Jason"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName usmain
ObjectTemplate.team 2
ObjectTemplate.controlPointId 2
ObjectTemplate.loseControlWhenEnemyClose 0
ObjectTemplate.unableToChangeTeam 1
ObjectTemplate.hoistMinMax 0.2/0.9
rem [ControlPointTemplate: mecmain]
ObjectTemplate.create ControlPoint mecmain
ObjectTemplate.activeSafe ControlPoint mecmain
ObjectTemplate.modifiedByUser "Jason"
ObjectTemplate.setNetworkableInfo ControlPointInfo
ObjectTemplate.isNotSaveable 1
ObjectTemplate.hasMobilePhysics 0
ObjectTemplate.hasCollisionPhysics 1
ObjectTemplate.physicsType Mesh
rem -------------------------------------
ObjectTemplate.addTemplate flagpole
rem -------------------------------------
ObjectTemplate.setControlPointName mecmain
ObjectTemplate.team 1
ObjectTemplate.controlPointId 1
ObjectTemplate.loseControlWhenEnemyClose 0
ObjectTemplate.isUnstrategicControlPoint 1
ObjectTemplate.hoistMinMax 0.2/0.9
if v_arg1 == host
rem [ControlPoint: usmain]
Object.create usmain
Object.absolutePosition -24.227/25.000/338.823
Object.layer 1
rem [ControlPoint: mecmain]
Object.create mecmain
Object.absolutePosition 79.632/25.000/5.227
Object.layer 1
endIf
CombatAreaManager.use 0
CombatAreaManager.timeAllowedOutside 10.000000
Posted: 2008-02-06 17:04
by Ragni<RangersPL>
Add this at the end of the Init.con
gameLogic.setTeamDropVehicle 1 "mark_team1"
gameLogic.setTeamDropVehicle 2 "mark_team2"
Maybe it will help...
Another thing. It looks like you didn't added your combat area in to your "64 players" layer, but I don't know if it will change anything.
Posted: 2008-02-06 17:34
by ~KILL~Pirate
I added that line last night along with every tut I could find on the net trying to figure out why my map is loading fine with no debug errrors and not letting me spawn without CTD. I have gone over every tut and aspect with a fine tooth comb with the same result. Very frustrated at this point. When I try to spawn it just gives a clicking sound and bam.. CTD I am at the point now to where I may just have to create a new map and add my terrain file a few CP, spawn point and try to see if that loads and then just add my objects a few at a time using absolute positions from current map and test that way until I find out what is causing the problem, but absolutely do other want to do that....ughhhh. You dont need combat area though to test a map.....