Need help - player animations will overwrite each other
by Temasek Polytechnic Tp8 · in Torque Game Engine · 06/27/2006 (9:38 pm) · 3 replies
Well, right now our game has 3 characters - a swat guy, hunter and adam.
The hunter's animation has no problem, but the swat guy's animation overwrites adam's because adam gets loaded before swat. As a result, only one of their animation will be able to work:
From swat.cs: exec("~/data/shapes/swat/player.cs");
From adam.cs: exec("~/data/shapes/adam/player.cs");
This is the error from the console:
Compiling starter.fps/server/scripts/soldier.cs...
Loading compiled script starter.fps/server/scripts/soldier.cs.
Validation required for shape: starter.fps/data/shapes/swat/player.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'land'!
So my question is, is there any way for to not let the animations get overwritten? And also what does the console error mean?
Any help is appreciated.
The hunter's animation has no problem, but the swat guy's animation overwrites adam's because adam gets loaded before swat. As a result, only one of their animation will be able to work:
From swat.cs: exec("~/data/shapes/swat/player.cs");
From adam.cs: exec("~/data/shapes/adam/player.cs");
This is the error from the console:
Compiling starter.fps/server/scripts/soldier.cs...
Loading compiled script starter.fps/server/scripts/soldier.cs.
Validation required for shape: starter.fps/data/shapes/swat/player.dts
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'root'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'run'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'back'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'side'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'fall'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'jump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'standjump'!
Warning: (c:\torque\sdk\engine\game\player.cc @ 290) PlayerData::preload - Unable to find named animation sequence 'land'!
So my question is, is there any way for to not let the animations get overwritten? And also what does the console error mean?
Any help is appreciated.
About the author
#2
I had this exact issue once before.
06/28/2006 (6:08 am)
Your problem is likely that the animation scripts you are loading for your different models all have the same datablock name. Check your animation scripts and make sure each datablock has a different name, otherwise they will overwrite eachother.I had this exact issue once before.
#3
06/28/2006 (5:41 pm)
I solve this problem already thank for everyone help
Associate Scott Burns
GG Alumni
Judging from the errors I'm guessing its the latter. Those errors mean that the animations were not found and failed to load. I'm willing to bet you have a problem with either your ShapeBaseConstructor or your Datablock.