Author Topic: Unable to Find Parent Object?  (Read 997 times)

An add-on playertype I made crashes the game. This is what the console log says:

Unable to find parent object[My Add-On]Dts for PlayerData.
I've tried everything, and nothing works. Any help here?

Giving out the code would help

Okay. Just for privacy, I've replaced the name of the add-on with [Add-On] and 8.

Code: [Select]
// Load dts shapes and merge animations

datablock TSShapeConstructor([Add-On]Dts)

{

baseShape  = "./[Add-On].dts";

sequence0  = "./8_root.dsq root";



sequence1  = "./8_run.dsq run";

sequence2  = "./8_run.dsq walk";

sequence3  = "./8_back.dsq back";

sequence4  = "./8_side.dsq side";



sequence5  = "./8_root.dsq crouch";

sequence6  = "./8_run.dsq crouchRun";

sequence7  = "./8_back.dsq crouchBack";

sequence8  = "./8_side.dsq crouchSide";



sequence9  = "./8_root.dsq look";

sequence10 = "./8_headside.dsq headside";

sequence11 = "./8_root.dsq headUp";



sequence12 = "./8_jump.dsq jump";

sequence13 = "./8_jump.dsq standjump";

sequence14 = "./8_fall.dsq fall";

sequence15 = "./8_root.dsq land";



sequence16 = "./8_armattack.dsq armAttack";

sequence17 = "./8_root.dsq armReadyLeft";

sequence18 = "./8_root.dsq armReadyRight";

sequence19 = "./8_root.dsq armReadyBoth";

sequence20 = "./8_root.dsq spearready"; 

sequence21 = "./8_root.dsq spearThrow";



sequence22 = "./8_root.dsq talk"; 



sequence23 = "./8_death.dsq death1";



sequence24 = "./8_root.dsq shiftUp";

sequence25 = "./8_shiftDown.dsq shiftDown";

sequence26 = "./8_root.dsq shiftAway";

sequence27 = "./8_shiftTo.dsq shiftTo";

sequence28 = "./8_shiftLeft.dsq shiftLeft";

sequence29 = "./8_shiftRight.dsq shiftRight";

sequence30 = "./8_rotCW.dsq rotCW";

sequence31 = "./8_rotCCW.dsq rotCCW";



sequence32 = "./8_root.dsq undo";

sequence33 = "./8_root.dsq plant";



sequence34 = "./8_root.dsq sit";



sequence35 = "./8_wrench.dsq wrench";



   sequence36 = "./8_activate.dsq activate";

   sequence37 = "./8_activate.dsq activate2";



   sequence38 = "./8_root.dsq leftrecoil";

};   


datablock PlayerData(Rot[Add-On]Zombie : [Add-On]Dts)

{

//category = "Vehicles";

minJetEnergy = 0;

jetEnergyDrain = 0;

canJet = 0;

maxItems   = 0; //total number of bricks you can carry

maxWeapons = 0; //this will be controlled by mini-game code

maxTools = 0;

maxDamage = 150;

runforce = 100 * 90;

maxForwardSpeed = 4;

maxBackwardSpeed = 4;

maxSideSpeed = 4;

attackpower = 10;

jumpsound = "ZombieJumpSound";



BrickDestroyMaxVolume = 250;

BrickMaxJumpHeight = 20;

uiName = "Zombie [Add-On]";

rideable = true;

canRide = true;

BrickKillRadius = 2;



};

function Rot[Add-On]Zombie::ondisabled(%this,%obj)

{

parent::ondisabled(%this,%obj);

ZombieDefault::ondisabled(%this,%obj);

}

function Rot[Add-On]Zombie::onCollision(%this, %obj, %col, %fade, %pos, %norm)

{

parent::oncollision(%this, %obj, %col, %fade, %pos, %norm);

ZombieDefault::onCollision(%this, %obj, %col, %fade, %pos, %norm);

}

function Rot[Add-On]Zombie::onMount(%a,%player,%vehicle,%d,%e,%f)

{

ZombieDefault::onMount(%a,%player,%vehicle,%d,%e,%f);

parent::onMount(%a,%player,%vehicle,%d,%e,%f);

}

function Rot[Add-On]Zombie::onUnMount(%a,%player,%vehicle,%d,%e,%f)

{

ZombieDefault::onUnMount(%a,%player,%vehicle,%d,%e,%f);

parent::onUnMount(%a,%player,%vehicle,%d,%e,%f);

}

function Rot[Add-On]Zombie::onAdd(%this,%obj)

{

parent::onAdd(%this,%obj);

ZombieDefault::onAdd(%this,%obj);

}

Do you have the files "./8_activate.dsq", "./8_run.dsq", "./8_root.dsq", etc.?


Then clearly they won't work if you start trying to add them as animations.

Can you simply remove the animations, or will it not work?

As I have said multiple times in the PMs, set them to "8_root.dsq", which you do have.

You will need to make an "8_look" animation, too.

I posted this about a moment before I noticed you had sent me the message. Sorry.

So 8_run.dsq run
will become
     8_root.dsq run?

Yes. Although that means your zombie type won't animate when you walk...?

Mmm.

How about the one just with a new model? Why does that one not work?

Sequence import failed:  sequence node "main" not found in base shape.

Um...