Game Development Community

New player crashing

by Sean · in Torque Game Engine · 05/14/2006 (6:53 am) · 7 replies

I dont understand what is going on here. I made a new player. I made a dts ans dsq. I modified the demo player.cs file. All I did was set play.dts to point to my play.dts and the play_root was set to my play_stand. When I run the torque demo It will sometimes run fine. Other times it will crash(close), or sometimes freeze. Why in my player dts or animation would give me random results like this?

#1
05/14/2006 (7:17 am)
There are some animations that Torque needs, or it will crash. The fall animation is one that comes to mind, in my experience if the engine is trying to play a non existant animation 9 times out of 10 it will crash. I think the death animation is also required. I would recommend commenting out all unavailable animations in the player.cs config file, or better yet add all the animations in - even if they're just dummy ones to save time.
#2
05/15/2006 (4:57 am)
I really think this helped but now my shape wont show. Im 99% its just me. Although I have looked and looked it over. If I point main.cs to my player.cs (original) I get the blue box man. When I point it to my player2.cs file I get no crashing, but no shape also? Even if I drop at player nothing happens.Going to get this working one way or another!
#3
05/15/2006 (9:07 am)
Is your player bigger than the blue box man? It might be dropping through the landscape if the feet are below ground. Have you tried moving the spawn point a lot higher in the air? Give it a go and see if your player drops to earth.
#4
05/15/2006 (10:22 am)
The spawn point is way above, but now that you mention it, I dont think its there when I use my player2.cs file? I will have to check that. My player is 1/2 the size of the blue guy. Is there a way to change the size in the cs file? Also I just had a thought, Will the command line out put help me any here?
#5
05/16/2006 (3:54 pm)
I do infact have a spawn point, my player has dropped to the ground before and was standing there. I dont see anything falling from the spawn point. I guess I could rem out the z++; Is there a way to make my players size 10 in the cs file?
#6
05/16/2006 (4:01 pm)
I've had the ground transform cause crashes with the players too. So i just disable that.
#7
05/16/2006 (4:09 pm)
I do infact have a spawn point, my player has dropped to the ground before and was standing there. I dont see anything falling from the spawn point. I guess I could rem out the z++; Is there a way to make my players size 10 in the cs file?