Game Development Community

I just lost my Level!? :(

by Robert Carroll · in Torque Game Builder · 04/02/2011 (1:53 pm) · 8 replies

Hi, I have been working on this level of mine for the past 2 days... maybe about 6 hours total, I recently had it destroyed some how. I made this one behavior and then closed TGB opened it back up, equipped the behavior then ran the game. Then it crashed, I go to open my project and the level doesn't load, so then I load the scene and it looks like it did 5 days ago. Everything gone in a second! :(. Please help! I don't want all that time to go to waste! I also don't want to start again just for this to happen again.

#1
04/02/2011 (6:55 pm)
@Robert - I'm not sure what happened. I have not heard of that crash or error happening before. Did you make sure to save as you went? Is there any way you can use a Windows restore tool to get the version you worked on previously?

I highly recommend you implement some kind of source control, such as SVN or GIT. Having these systems in place will allow you to recover any work you might lose.
#2
04/02/2011 (7:32 pm)
Well, this is weird when I play the file that got corrupted It loads the level in the state that it was right before it got corrupted (or reset). I looked on the console and it said it was loading the same level that got corrupted. Basically It is not the same in Edit Mode and Play Mode. I want the level that is loaded in the play mode. I also noticed on the console it said parse error on the last line of code.
#3
04/02/2011 (7:45 pm)
I'am a very bad explainer btw, here I'll put it in simple terms.

I had a scene say with one red ball.

I runs fine and everything.

I put a blue ball in and put a behavior on it, I keep doing this with all the colors till I get to yellow.

I then put a behavior on this run the game and it crashes.

I load the level back up and it is the level when I saved it with the blue ball.

When I play this level though it has all the colored balls with behaviors exactly how it was before the crash.
#4
04/02/2011 (8:43 pm)
Well, even though this is very annoying (having the level played right) but not being able to edit I have to start over from scratch :( I reinstalled TGB 1.7.5 and now that level won't even load up in the editor, but when sent there "in-game" its perfect.
#5
04/02/2011 (8:45 pm)
Not sure if it helps but you can always open the level file with a text editor and remove the elements that you think might cause the problem.
#6
04/02/2011 (8:47 pm)
I have done that :( I've removed everything but one object and the level still won't load :(
#7
04/03/2011 (8:21 pm)
@Robert - I think one or more of the following are happening:

1. The crash is a result of a syntax error in the code
2. The editor is loading a different file than what your game is trying to load
3. Your editor preferences are wrong and need to be reset
4. You have duplicate names for levels, scripts or objects
#8
04/03/2011 (10:06 pm)
1.) I don't know too much about that...
2.) Yep, I think that is exactly what is going on.
3,) I reinstalled TGB 1.7.5 and it was still glitched so does that count as resting?
4.) Yes, I'm very disorganized, I have about 4 projects with same names of levels.
5.) I had a level called PTB - Copy.t2d, copied PTB, which is different from PTB - Copy.t2d, and when I open the recently copied level it is the original PTB - Copy.t2d.
6.) I've already re-created what was lost, most of the hArd work before was just seein how to do things so his time around was faster and easier.
7.) Every time I save now I create a clone of that level, last time this happen none of my other levels where effected so I hope this reinsures that my work won't be lost.

Thanks for your help :)