Code lost... so frustrating
by Dennis Harrington · in Torque Game Builder · 06/03/2006 (12:29 pm) · 6 replies
So I'm using the new version of Torsion and it keeps crashing everytime I try to type: "%this.getPosi" It crashes 3 times in a row as soon as I type the 'i'. I finally get fed up and install Codeweaver (which I've used in the past without problems) and everything appears to be working just fine.
So after working awhile longer I close Codeweaver and save the project and launch T2D for one final play of my game. Nothing happens. So I check all the .cs files in Notepad and my primary game logic file is all binary but it's the .cs file not the .dso.
I check and re-check but alas, my scripting is gone, replaced by the binary version and it seems corrupted at that. What the?! Anyone have any idea how this could've happened? Is there any way to convert a binary back into the source script? I'm assuming not but I figured I'd ask just in case.
It's not going to kill me to re-code it in the instance, but it's about 4 hours of lost work so I'm obviously frustrated. My bigger concern is what can I do to avoid this happening again in the future when a loss like this could be devastating?
Has anyone had any similiar experiences and determined why/how it happened?
Thanks for listening. ;)
So after working awhile longer I close Codeweaver and save the project and launch T2D for one final play of my game. Nothing happens. So I check all the .cs files in Notepad and my primary game logic file is all binary but it's the .cs file not the .dso.
I check and re-check but alas, my scripting is gone, replaced by the binary version and it seems corrupted at that. What the?! Anyone have any idea how this could've happened? Is there any way to convert a binary back into the source script? I'm assuming not but I figured I'd ask just in case.
It's not going to kill me to re-code it in the instance, but it's about 4 hours of lost work so I'm obviously frustrated. My bigger concern is what can I do to avoid this happening again in the future when a loss like this could be devastating?
Has anyone had any similiar experiences and determined why/how it happened?
Thanks for listening. ;)
#2
I guess I do need to look into some version control. I didn't think I'd need it since I'm the only programmer but I suppose it's worth it just for the back up functionality.
Thanks for the response.
06/03/2006 (1:01 pm)
Tom - It's good to hear that the bug has been found and fixed. I do prefer Torsion to Codeweaver as it just "feels" lighter and faster to me so I'll be looking forward to the update.I guess I do need to look into some version control. I didn't think I'd need it since I'm the only programmer but I suppose it's worth it just for the back up functionality.
Thanks for the response.
#3
I'm the sole programmer at Sickhead and i use source control even the smallest code project. Another good reason to use source control is when you work across multiple machines. It's much easier to make sure you have the latest and greatest code wherever you go.
06/03/2006 (1:40 pm)
@Dennis - I usually own up to my bugs, but this time it was a bug in wxWindows. Something really stupid.I'm the sole programmer at Sickhead and i use source control even the smallest code project. Another good reason to use source control is when you work across multiple machines. It's much easier to make sure you have the latest and greatest code wherever you go.
#4
http://tortoisesvn.tigris.org/
06/05/2006 (8:32 am)
I've had great luck using this for source control. The windows client integrates nicely into explorer. http://tortoisesvn.tigris.org/
#5
06/05/2006 (9:14 am)
I concur with the Subversion recommendation above.
#6
06/05/2006 (9:19 am)
While I dont really have a preference in svn or cvs (although, i've been using cvs much longer), the tortoise products all seem to have lag issues because of the way they integrate into explorer. Just seems invasive , I think the way to go is use traditional command line tools... "cvs co myGame" is pretty easy to remember..
Associate Tom Spilman
Sickhead Games
Start using some sort of source control and make a habit of checking stuff in. Aside from some extra protection from catastrophic loss, it makes it easier to track down changes, merge in new releases, and collaborate with others. Subversion and Perforce are good choices.