Game Development Community

all work in editor vanished

by rennie moffat · in Torque Game Builder · 03/02/2010 (5:42 am) · 4 replies

Last night i was working on my game, a demo level really, at the time I was adding many new items, and noticed a problem with copy pasting. One item I was trying to copy paste over and over kept pasting some other object somewhere else and then... every thing disappeared. The project of course has all the sprites and behaviors but nothing in the editor. Not a huge bummer by any means but certainly one of concern. At the time I was working with lots of collisions. Is this something that can happen? Going on what I said any clues as to why, advice, tips etc. beyond making sure you save.



About the author

My thanks to Garage Games and the Garage Games Community combined with owned determination I got one game up, Temple Racer and I am looking to build more interesting, fun games for the mass market of the iOS app store.


#1
03/02/2010 (6:43 pm)
so guess what? It happened again today. The error reported was in, and was essentially the same for the first time, that in my game/data/levels/level1.t2d. One of the sprites, and its subsequent data contained the error.

I was not able to be online today and since had erased it, however, the crash came just as I had finally set up everything in my editor, at least an hours work, and was setting up multiple objects, using the score behavior system from the astroids tutorial. In no way do I know if it was realated to that but it does seem odd, the fact everything vanished AND leaves me somewhat paranoid for future builds. Can I expect future random vanishes? What can I do to prevent it? Also, I do remeber now that the static sprite, with the error in the console was one just like this, with the score behavior attached.


new t2dStaticSprite(25Pt) {
      imageMap = "buckets25ImageMap";
      frame = "0";
      canSaveDynamicFields = "1";
      Position = "-76.981 181.608";
      size = "19.000 39.000";
      CollisionActiveSend = "1";
      CollisionActiveReceive = "1";
      CollisionPhysicsSend = "0";
      CollisionPhysicsReceive = "0";
         mountID = "31";
      _behavior0 = "ScorePointsBehavior	pointValue	25	counter	counter";
   };
#2
03/03/2010 (12:47 am)
To heavily paraphrase Melv: If TGB randomly deleted all of your work, it wouldn't be of any use. I have TGB running continuously for days at a time, working on it several hours a day without any problems. So, as a quick answer, no, you should not expect future random vanishes.

The best way to prevent it, by far, is to SAVE YOUR WORK OFTEN! Never, ever go an hour without saving. It takes about 5 seconds to click on the "Save" icon and, obviously, will save you hours or work.

You should really post the error, too. Without it, I can't look through the code and see what would cause it.
#3
03/03/2010 (5:29 am)
well it is a little difficult for me this week as i am working out of home and not online, but the code i did post was virtually identical to the error. I say that as in I had a virtually identical item as in the above code, same class anyway.

That is good news that you do not experience crashes, Im glad to hear that, but it has happened twice and believe me I know the value of a save. I am not trying to make anyone look bad, just resolve a glitch.


Both times I believe were on a reload. On a reload, after many reloads it just came back up empty. Not sure why. ***one thing of note, that I remember is that the item that was the source of the error, at least its datablock was called "0Pt", in name. I am not sure if 0 means anything significant, I would anticipate that it would.



#4
03/03/2010 (4:56 pm)
In addition to saving often you should be using some sort of source control you can check iterations of you work into. This will prevent you from losing so much data when something goes wrong.