Game Development Community

Tutorial.base Crash

by Carter Patterson · in Game Design and Creative Issues · 11/24/2008 (5:17 pm) · 7 replies

I'm trying to mod the tutorial.base but every time I start a level, as soon as the player hits the ground, the game crashes and I can't figure out why. anyone else having the same problem?

About the author

I like to make levels for games, and I like to make games that I want to play. For me, game's aren't about having the greatest next gen graphics, it's about having fun, and I make sure all my work shows that. (of course good graphics never hurt :P )


#1
11/24/2008 (8:13 pm)
What does your console.log say before the engine exits?
#2
11/29/2008 (11:59 am)
*** LOADING MISSION: tutorial.base/data/missions/flat.mis
*** Stage 1 load
common/server/missionLoad.cs (23): Unable to find function clearCenterPrintAll
common/server/missionLoad.cs (24): Unable to find function clearBottomPrintAll
*** Stage 2 load
Executing tutorial.base/data/missions/flat.mis.
*** Mission loaded
Connect request from: IPX:203D2022:302E35373733:8245
Connection established 1429
CADD: 1430 local
*** Sending mission load to client: tutorial.base/data/missions/flat.mis
Loading compiled script creator/editor/cursors.cs.
Loading compiled script creator/editor/editor.bind.cs.
Loading compiled script creator/editor/ObjectBuilderGui.gui.
Loading compiled script creator/editor/EditorGui.gui.
Loading compiled script creator/editor/EditorGui.cs.
Loading compiled script creator/editor/WorldEditorSettingsDlg.gui.
Loading compiled script creator/editor/TerrainEditorVSettingsGui.gui.
General\tTab_general\tgeneral_min_height\t50\tgeneral_scale\t0\tgeneral_water\t0\tgeneral_centerx\t0\tgeneral_centery\t0
Heightfield::eval:0 General
Heightfield::eval:0 General
Tab data: General^Tab_general^general_min_height^50^general_scale^0^general_water^0^general_centerx^0^general_centery^0 tab: Tab_general
Heightfield::eval:0 General
Heightfield::eval:0 General
Loading compiled script creator/editor/editorRender.cs.
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
pushDialog(): Invalid control: DemoEditorAlert
Mapping string: ServerMessage to index: 0
Mapping string: MsgConnectionError to index: 1
Mapping string: MsgLoadInfo to index: 2
creator/editor/EditorGui.cs (878): Unable to find object: '' attempting to call function 'open'
Mapping string: MsgLoadDescripition to index: 3
RSS Feed
- Requesting RSS data at URL: /garagegames/rss/product/tge/oobe
Mapping string: MsgLoadInfoDone to index: 4
Mapping string: MsgClientJoin to index: 5
Mapping string: Welcome to the Torque demo app %1. to index: 6
Mapping string: Test Guy to index: 7
Mapping string: MissionStartPhase1 to index: 8
*** New Mission: tutorial.base/data/missions/flat.mis
*** Phase 1: Download Datablocks & Targets
Mapping string: MissionStartPhase1Ack to index: 0
Warning: shape New Game/data/shapes/3dtorquelogo/torque_logo.dts collision detail 1 (Collision-1) bounds exceed that of shape.
- Got 124 lines.
- Feed title: 'GarageGames: News Headlines'
- Feed link: 'http://www.garagegames.com/'
- Headline #0 : 'GarageGames Forum News - July/August/Sept/Oct'
- Headline Link #0 : 'http://feeds.feedburner.com/~r/garagegames/rss/product/tge/oobe/~3/420929185/15541'
- Headline #1 : 'GarageGames Forum News - June - July 4th'
- Headline Link #1 : 'http://feeds.feedburner.com/~r/garagegames/rss/product/tge/oobe/~3/330012134/15029'
- Headline #2 : 'Press Release: Houdini Apprentice HD 9.5 with Torque Exporter Now Available from GarageGames'
- Headline Link #2 : 'http://feeds.feedburner.com/~r/garagegames/rss/product/tge/oobe/~3/310603172/14871'
Mapping string: MissionStartPhase2 to index: 9
*** Phase 2: Download Ghost Objects
Mapping string: MissionStartPhase2Ack to index: 1
Ghost Always objects received.
Mapping string: MissionStartPhase3 to index: 10
Client Replication Startup has Happened!
fxFoliageReplicator - Client Foliage Replication Startup is complete.
*** Phase 3: Mission Lighting
Successfully loaded mission lighting file: 'tutorial.base/data/missions/flat_9d4d64.ml'
Mission lighting done
Mapping string: MissionStartPhase3Ack to index: 2
Mapping string: MissionStart to index: 11
Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody
Mapping string: dropCameraAtPlayer to index: 3
*** Initial Control Object
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
pushDialog(): Invalid control: DemoEditorAlert
creator/editor/EditorGui.cs (2973): Unable to find object: 'MessageHud' attempting to call function 'close'
#3
11/29/2008 (12:00 pm)
*** ENDING MISSION
*** LOADING MISSION: creator/data/newMission.mis
*** Stage 1 load
common/server/missionLoad.cs (23): Unable to find function clearCenterPrintAll
common/server/missionLoad.cs (24): Unable to find function clearBottomPrintAll
*** Stage 2 load
Executing creator/data/newMission.mis.
*** Mission loaded
*** Sending mission load to client: creator/data/newMission.mis
Loading compiled script creator/editor/cursors.cs.
Loading compiled script creator/editor/editor.bind.cs.
Loading compiled script creator/editor/ObjectBuilderGui.gui.
Loading compiled script creator/editor/EditorGui.gui.
Loading compiled script creator/editor/EditorGui.cs.
Loading compiled script creator/editor/WorldEditorSettingsDlg.gui.
Loading compiled script creator/editor/TerrainEditorVSettingsGui.gui.
General\tTab_general\tgeneral_min_height\t50\tgeneral_scale\t300\tgeneral_water\t0.000\tgeneral_centerx\t0\tgeneral_centery\t0
Heightfield::eval:0 General
Heightfield::eval:0 General
Tab data: General^Tab_general^general_min_height^50^general_scale^300^general_water^0^general_centerx^0^general_centery^0 tab: Tab_general
Heightfield::eval:0 General
Heightfield::eval:0 General
Loading compiled script creator/editor/editorRender.cs.
creator/editor/EditorGui.cs (878): Unable to find object: '' attempting to call function 'open'
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
pushDialog(): Invalid control: DemoEditorAlert
Mapping string: MissionEnd to index: 12
creator/editor/EditorGui.cs (878): Unable to find object: '' attempting to call function 'open'
*** New Mission: creator/data/newMission.mis
*** Phase 1: Download Datablocks & Targets
*** Phase 2: Download Ghost Objects
Ghost Always objects received.
Client Replication Startup has Happened!
fxFoliageReplicator - Client Foliage Replication Startup is complete.
*** Phase 3: Mission Lighting
Lighting mission....

//-----------------------------------------------
Synapse Gaming Lighting Pack

Starting scene lighting...
Starting TGE based scene lighting...
Lighting with light #1 (TGE vector light)...
Lighting object 1 of 1...
Object lighting complete (0.188 seconds)
TGE based scene lighting complete (0.218 seconds)
Starting Synapse Gaming Lighting Pack scene lighting...
Lighting object 1 of 1...
Object lighting complete (0.000 seconds)
Synapse Gaming Lighting Pack scene lighting complete (0.265 seconds)

Lighting Pack lighting system stats:
Interior Lexel Count: 0
Interior Lexel Illumination Count: 0
Interior Lexel Illumination Time (ms): 0.000000
Interior Lexel Illumination Time Total (ms): 0
Interior Lexel Diffuse Count: 0
Interior Object Count: 1
Interior Object Included Count: 0
Interior Object Illumination Count: 0
Interior Surface Included Count: 0
Interior Surface Illumination Count: 0
Interior Surface Illuminated Count: 0
Interior Surface Smoothed Count: 0
Interior Surface Smoothed Lexel Count: 0
Interior Surface Setup Count: 0
Interior Surface Setup Time Total (ms): 0
Interior Surface Merge Count: 0
Interior Surface Merge Time Total (ms): 0
Static Mesh BVPT Potential Occluder Count: 0
Static Mesh Cast Ray Mesh Count: 0
Static Mesh Surface Occluder Count: 0
Terrain Lexel Count: 0
Terrain Lexel Time (ms): 0.000000
Terrain Lexel Time Total (ms): 0
Successfully saved mission lighting file: 'creator/data/newMission_b579e60d.ml'
Total light map memory: 0.000M
Scene lighting complete (0.375 seconds)
//-----------------------------------------------

Mission lighting done
Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody
*** Initial Control Object
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
Obj: Observer -
Obj: WayPointMarker - Misc
Obj: SpawnSphereMarker - Misc
Obj: PlayerBody -
Obj: TorqueLogoItem - Items
Obj: sgTowerFireLightDataBlock -
Obj: sgTempleWindowStaticPSDataBlock -
Obj: sgTempleTorchStaticPSDataBlock -
Obj: sgTempleSmallWindowStaticPSDataBlock -
Obj: sgSpotSwingStaticDataBlock -
Obj: sgSpotDataBlock -
Obj: sgSpot2DataBlock -
Obj: sgRedLightDataBlock -
Obj: sgMountLight -
Obj: sgLanternPSDataBlock -
Obj: sgGooDataBlock -
Obj: sgFirePitStaticPSDataBlock -
Obj: sgFirePitPSDataBlock -
Obj: sgDynamicFireDataBlock -
Obj: sgDefaultLightDataBlock -
Obj: sgBlueLightDataBlock -
Obj: CottageLight -
Obj: test -
#4
11/29/2008 (2:05 pm)
2 things here.

Quote:common/server/missionLoad.cs (23): Unable to find function clearCenterPrintAll
common/server/missionLoad.cs (24): Unable to find function clearBottomPrintAll

Make sure there is a file in "common/server/" called missionLoad.cs and make sure it is getting exec'd.

Quote:Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody
Could not register dust emitter for class: PlayerBody

Look in server/scripts/player.cs somewhere around line 331, you should have the following particle emitters.
//----------------------------------------------------------------------------
// Foot puffs
//----------------------------------------------------------------------------

datablock ParticleData(LightPuff)
{
   dragCoefficient      = 2.0;
   gravityCoefficient   = -0.01;
   inheritedVelFactor   = 0.6;
   constantAcceleration = 0.0;
   lifetimeMS           = 800;
   lifetimeVarianceMS   = 100;
   useInvAlpha          = true;
   spinRandomMin        = -35.0;
   spinRandomMax        = 35.0;
   colors[0]     = "1.0 1.0 1.0 1.0";
   colors[1]     = "1.0 1.0 1.0 0.0";
   sizes[0]      = 0.1;
   sizes[1]      = 0.8;
   times[0]      = 0.3;
   times[1]      = 1.0;
};

datablock ParticleEmitterData(LightPuffEmitter)
{
   ejectionPeriodMS = 35;
   periodVarianceMS = 10;
   ejectionVelocity = 0.2;
   velocityVariance = 0.1;
   ejectionOffset   = 0.0;
   thetaMin         = 20;
   thetaMax         = 60;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   useEmitterColors = true;
   particles = "LightPuff";
};

//----------------------------------------------------------------------------
// Liftoff dust
//----------------------------------------------------------------------------

datablock ParticleData(LiftoffDust)
{
   dragCoefficient      = 1.0;
   gravityCoefficient   = -0.01;
   inheritedVelFactor   = 0.0;
   constantAcceleration = 0.0;
   lifetimeMS           = 1000;
   lifetimeVarianceMS   = 100;
   useInvAlpha          = true;
   spinRandomMin        = -90.0;
   spinRandomMax        = 500.0;
   colors[0]     = "1.0 1.0 1.0 1.0";
   sizes[0]      = 1.0;
   times[0]      = 1.0;
};

datablock ParticleEmitterData(LiftoffDustEmitter)
{
   ejectionPeriodMS = 5;
   periodVarianceMS = 0;
   ejectionVelocity = 2.0;
   velocityVariance = 0.0;
   ejectionOffset   = 0.0;
   thetaMin         = 90;
   thetaMax         = 90;
   phiReferenceVel  = 0;
   phiVariance      = 360;
   overrideAdvance = false;
   useEmitterColors = true;
   particles = "LiftoffDust";
};


//----------------------------------------------------------------------------

datablock DecalData(PlayerFootprint)
{
   sizeX       = 0.25;
   sizeY       = 0.25;
   textureName = "~/data/shapes/malePlayer/footprint";
};
If not, place the code above in that area. It should help fix the problem.
#5
11/30/2008 (8:38 am)
I added the peace of script to player.cs but it didn't work, and I can't find missionload.cs.
#6
11/30/2008 (10:10 am)
It's already obvious that common/server/missionLoad.cs exists
Quote:*** LOADING MISSION: tutorial.base/data/missions/flat.mis
*** Stage 1 load
.....
*** Stage 2 load
Those are echo statements from function loadMission and function loadMissionStage2() which are located in that file.

This error:
Quote:common/server/missionLoad.cs (23): Unable to find function clearCenterPrintAll
common/server/missionLoad.cs (24): Unable to find function clearBottomPrintAll
Refers to those two "print" functions not being found - because they don't exist in the tutorial.base example. You will find them in the demo or starter.fps or starter.racing in ~/server/scripts/centerprint.cs

This error:
Quote:Could not register dust emitter for class: PlayerBody
The particle effect mentioned doesn't exist for the tutorial.base example - you'll need to look at the player.cs for the starter.fps to see how they work for it's player datablock, just adding the above code will not work with the tutorial.base player without additions to the PlayerBody datablock.

All of the other errors that I see are all part of the poorly written scripts for the tutorial.base example, workarounds for the demo crap, and general (minor) bugs in the GG editor scripts - they are stock errors and wouldn't be causing your crash.

EDIT: added tags for clarification.
#7
11/30/2008 (10:11 am)
I have heard of your problem before. Are you using a different model for your player? If so make sure it has a landing animation and that the animations are being loaded correctly.