Game Development Community

Game crashes when loading

by Michael Hotchkiss · in Technical Issues · 04/04/2007 (9:27 am) · 5 replies

Ok so I'm still new to scripting so I copied the player selection code posted by CS, but now my game crashes when I load the mission. My mistake seems to be in player.cs so I placed a few echo's to see where it is.

Loading compiled script Doomsday1/server/scripts/player.cs.
Loading compiled script Doomsday1/data/shapes/soldier/soldier/soldier4.cs.
Loading compiled script Doomsday1/data/shapes/soldier/soldier/soldier3.cs.
Loading compiled script Doomsday1/data/shapes/soldier/soldier/soldier2.cs.
Loading compiled script Doomsday1/data/shapes/soldier/soldier/soldier1.cs.
Loading compiled script Doomsday1/data/shapes/soldier/soldier/soldier.cs.
Doomsday1/data/shapes/soldier/soldier/soldier4.DTS
test 2
Doomsday1/data/shapes/soldier/soldier/soldier3.DTS
test 2
Doomsday1/data/shapes/soldier/soldier/soldier2.DTS
test 2
Doomsday1/data/shapes/soldier/soldier/soldier1.DTS
test 2
Doomsday1/data/shapes/soldier/soldier/soldier.dts
test 2
test 3
test 4
test 5
test 6
test 7
test 8

player.cs:

datablock DecalData(PlayerFootprint)
{
sizeX = 0.25;
sizeY = 0.25;
textureName = "~/data/shapes/player/footprint";
};
echo( "test 8"); // last echo in console
datablock DebrisData( PlayerDebris ) // this is all the same as the fps player.cs
{
explodeOnMaxBounce = false;

elasticity = 0.15;
friction = 0.5;

lifetime = 4.0;
lifetimeVariance = 0.0;

minSpinSpeed = 40;
maxSpinSpeed = 600;

numBounces = 5;
bounceVariance = 0;

staticOnMaxBounce = true;
gravModifier = 1.0;

useRadiusMass = true;
baseRadius = 1;

velocity = 20.0;
velocityVariance = 12.0;
};
echo( "test 9");


I figured the problem should be in a part that I changed, since it worked before, but I kind of lack the insight to link the the datablock where it seems to stop. Does datablock DebrisData(PlayerDebris) call something else I may have changed?

#1
04/04/2007 (9:58 am)
Datablock PlayerData(PlayerBody)
{
renderFirstPerson = false;
emap = true;

className = Armor;
shapeFile = "~/data/shapes/soldier/soldier/soldier1.dts"; // I had this commented out because I wasn't sure
cameraMaxDist = 6; // what to do with it
computeCRC = true;

The instructions for the plaer selection code said to put the following after datablock PlayerData(PlayerBody)

datablock PlayerData (soldier1 : PlayerBody)
{
shapeFile = "~/data/shapes/soldier/soldier/soldier1.dts";
};

datablock PlayerData (soldier2 : PlayerBody)
{
shapeFile = "~/data/shapes/soldier/soldier/soldier2.dts";
};

datablock PlayerData (soldier3 : PlayerBody)
{
shapeFile = "~/data/shapes/soldier/soldier/soldier3.dts";
};

So I uncommented the shapeFile from the original datablock and now I get a bunch of errors. How should I setup the shapeFiles?
#2
04/04/2007 (10:06 am)
Here are my errors

Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier1.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
test 10
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier1.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier2.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier3.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
#3
04/04/2007 (10:44 am)
Here are my errors

Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier1.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
test 10
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier1.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier2.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
Validation required for shape: Doomsday1/data/shapes/soldier/soldier/soldier3.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 294) PlayerData::preload - Unable to find named animation sequence 'land'!
#4
04/11/2007 (9:47 am)
Ok so my gave is now crashing after %progress = 0.5 in the phase 2 of the missionDownload.

*** Phase 2: Download Ghost Objects
Test Doomsday/client/scripts/missionDownload 1
Mapping string: MissionStartPhase2Ack to index: 1
Test common/server/missionDownload
Test Doomsday/client/scripts/missionDownload 2 %progress = 0.05
Test Doomsday/client/scripts/missionDownload 3
Could not locate texture: Doomsday/data/shapes/buildings/Material #5
Could not locate texture: Doomsday/data/shapes/buildings/Material #4
Could not locate texture: Doomsday/data/shapes/buildings/Material #22

I figured that without the textures the models would just look different, but I don't have enough experience to know for sure.

Any help would be greatly appreciated. I'm not sure if the lack of response is due to insuficient information on my part or the fact that nobody cares. I could really use some help so if I need to include any info please let me know.

Thank you,

Mike
#5
04/11/2007 (10:02 am)
Ok I think I've narrowed it down to the objectView I downloaded and compiled, since I can't run any of the starter games anymore. All I did was install the odjectView.cc and objectView.h. I didn't receive any errors, so is there something I'm missing?