I AM SO FRIGGIN' FRUSTRATED!!!!!!!!!!!!!!!!!!!!!!!!
by Jovani Adolfo · in Torque 3D Beginner · 07/20/2012 (10:29 am) · 18 replies
All day I've been trying to fix the most ANNOYING problem!!!! Every time the character dies I can't click to respawn him. I've been copying all sorts of scripts from my old game JceBlox and none of them seem to fix it!!!!!!!!!!!!!!!! PLEASE HELP ME PEOPLE OF GG AND COMMUNITY!!!!!!!!!
Thread is locked
#2
07/20/2012 (10:45 am)
For help and solutions you'll need to supply more information about what is causing the problem? Stock death and respawning works, so working from there what have you changed?
#3
07/20/2012 (10:47 am)
When my player dies, (Falling, being hit, shooting ground, etc.) When I click to respawn, nothing happens, and I can't seem to find any errors that I know of in the console.
#4
If you're not seeing anything in the console, try adding in some echo messages throughout the script portions in question to verify that things are working as expected. This will help you to narrow down the problem area.
07/20/2012 (10:58 am)
Is this a project based upon the Full Template, Empty, or what? Are you using stock death and respawning mechanism, or something custom?If you're not seeing anything in the console, try adding in some echo messages throughout the script portions in question to verify that things are working as expected. This will help you to narrow down the problem area.
#5
07/20/2012 (11:21 am)
Based on full template, stock death, the problem is that I won't respawn. When a player clicks he/she is supposed to respawn, this doesn't happen. Where is the script that defines the respawning and stuff like this (The click to respawn thing for example blockland when it says "CLICK TO RESPAWN" That's supposed to happen, nothing to do with the gui just the player itself. I tried replacing player.cs with the player.cs from my older game but didn't seem to do the trick. I've been using a lot of scripts from my other game none of which fix this problem.
#6
Inside of gameCore.cs, you'll find an onDeath() method. Inside of onDeath() you'll see that client is switched over to the observer camera (corpse mode) and is unhooked from the now dead player object.
Inside of camera.cs you'll find the corpse mode switch for what happens when the trigger is hit when in observer mode. This sends us to preparePlayer() in gameCore.cs which gets the player ready for spawning again.
Without knowing what changes you've made I can only say to scan through those areas very carefully, comparing with the stock unchanged code if you have to. Look for variable transpositions or even misspellings since that won't necessarily cause a syntax error.
07/20/2012 (11:35 am)
Then you've evidently changed something to prevent it from working correctly since it does work in the stock scripts for the Full Template.Inside of gameCore.cs, you'll find an onDeath() method. Inside of onDeath() you'll see that client is switched over to the observer camera (corpse mode) and is unhooked from the now dead player object.
Inside of camera.cs you'll find the corpse mode switch for what happens when the trigger is hit when in observer mode. This sends us to preparePlayer() in gameCore.cs which gets the player ready for spawning again.
Without knowing what changes you've made I can only say to scan through those areas very carefully, comparing with the stock unchanged code if you have to. Look for variable transpositions or even misspellings since that won't necessarily cause a syntax error.
#7
07/20/2012 (12:56 pm)
I fixed it just copied all of the scripts from my old game based on the full template as well
#8
07/20/2012 (12:59 pm)
Wouldn't it be better to learn from the experience and figure out where & what the actual problem was?
#9
07/20/2012 (1:51 pm)
Doesn't really matter so long as I fixed it.
#10
(Problem was in camera.cs)
07/20/2012 (8:25 pm)
Alright, I found out the problem, deleted the scripts folder and added all of the scripts back from my game that was exported to .zip I feel a lot more independent about the whole problem fixing situation now!(Problem was in camera.cs)
#11
07/21/2012 (4:21 pm)
"Doesn't really matter so long as I fixed it." Haha classic.
#13
07/22/2012 (5:10 pm)
You shouldn't be worrying about that guys, I already figured out the problem, fixed it and learned from the experience. Get over it because I know not knowing the problem was bad and I reversed that... So no more worrying.
#14
07/22/2012 (5:13 pm)
the problem was that in the camera.cs script, I had changed the camera mode to "lose" instead of "corpse" so that is why it would not let me respawn.
#15
Why did I even type this? lol
08/11/2012 (5:20 am)
The problem with your 'fix' is that you have no idea what was wrong in the first place. Next time you run into a problem and 'fix' it by replacing all the scripts you'll be overwriting all your 'work'. You ever hear the saying 'give a man a fish and he can eat for a day. Teach that man to fish and he can eat for the rest of his life'? We're trying to teach you how to fish, but you just want your dinner.Why did I even type this? lol
#16
08/12/2012 (8:49 pm)
DUDE FOR THE LAST FIVE HUNDRED COMMENTS I MADE I LOOKED FOR THE PROBLEM, FOUND OUT WHAT THE PROBLEM WAS, REDID THE FOLDER, AND FINALLY, FIXED THE PROBLEM, I LEARNED FROM THE EXPERIENCE. I EXPLAINED THE PROBLEM 5,000 TIMES!!!!!!!
#17
sorry couldn't resist :)
08/13/2012 (9:43 am)
I told you 1 million times ... don't exaggerate !! lolsorry couldn't resist :)
#18
08/13/2012 (12:11 pm)
This thread has run it's course. Locked.
Torque 3D Owner Jovani Adolfo