SCI Programming.com
Welcome, Guest. Please login or register.
May 20, 2012, 08:41 PM
Home Gallery Arcade Chat Shop Search Help Login Register
Home Fan Made Games Sierra Games Tools Tutorials Member Sites
Developer Desktop

Home  >  SCI Community  >  SCI Programming  >  SCI Community How To's & Tutorials  >  Topic: Ever Rebuild while your Game was Running ... Here's How to fix it. « previous next »
Pages: [1] Print
Author Topic: Ever Rebuild while your Game was Running ... Here's How to fix it.  (Read 698 times)
Cloudee1
Just Another User
*

Karma: 2
Offline Offline

Posts: 576



Peekaboo!

$1819.00 Buckazoids
View Inventory
Give Money

Burger Time

coyaba ?id=1000008636
View Profile WWW
« on: Dec 20, 2006, 03:13 AM »

Sooner or later it happens to everybody. You code in some room, added in a programControl() and had no way to exit the screen besides the windows button when you actually tested it. Then you were so eager to fix whatever you were testing that you forget to actually close the now minimized Dos window. Then you compiled and then it happens, you hit the rebuild game button. SciStudio does not like this one bit, not one bit at all.

Congratulations you have now corrupted your game all while watching sci studio crash to a something strange happened error. When the dust clears, you spot it. That Dos window,hiding out down there in the task bar looking all innocent. Don't worry, your game isn't lost in fact there is a really really simple way to get everything back up and running again.

Enter your game's folder. When you look at the file names, you should notice that there is no resource.001 file, instead there is something named respak.tmp. This wierd new file is in fact your resource file and all you need to do to fix it is simply rename it to it's original resource.001

That's it, you have saved your game from the brink of utter destruction. Well it happens to me alot anyway, and there's nothing so scary as that first time. Hope this makes someone elses first time a little less scary.
Logged

Chillin like a Villian

41134_goldld0.gif 49626_silverpropcomp.gif
gumby
Sr. Programmer
****

Karma: 1
Offline Offline

Posts: 467



$3770.00 Buckazoids
View Inventory
Give Money



View Profile
« Reply #1 on: Jul 9, 2010, 07:16 AM »

Does this technique only work for fixing SCI Studio (not Companion) environments?  I've corrupted my own work several times now, and I was unsuccessful at recovering (admittedly, I only attempted to recover after the first failure).

Let's hear it for regular backups people!
Logged

50206_rope_firstplace.png
Cloudee1
Just Another User
*

Karma: 2
Offline Offline

Posts: 576



Peekaboo!

$1819.00 Buckazoids
View Inventory
Give Money

Burger Time

coyaba ?id=1000008636
View Profile WWW
« Reply #2 on: Jul 9, 2010, 02:50 PM »

Did you corrupt your game by rebuilding while it was running? I have done that a couple of times while using companion and the technique is similar. Companion creates a backup or alternate, or whatever you want to call it,  resource and resource map file. Rename those back to their regular names, and your ready to roll again.

I did have a game get corrupted in companion that was not because of rebuilding, it apparantly just went to crap and yes, a backup was my only option in that case. luckily I was still able to extract my new views and access the scripts so I simply copied and pasted the new stuff to the old version. All and all I was able to get everything back to how it was at the time of corruption in just about an hour or so.
Logged

Chillin like a Villian

41134_goldld0.gif 49626_silverpropcomp.gif
gumby
Sr. Programmer
****

Karma: 1
Offline Offline

Posts: 467



$3770.00 Buckazoids
View Inventory
Give Money



View Profile
« Reply #3 on: Jul 11, 2010, 03:36 PM »

Yeah, I corrupted the game by rebuilding while it was running within companion.  Next time it happens, I'll go looking for the 'backup' resource files.  Thanks for pointing me in the right direction.
Logged

50206_rope_firstplace.png
gumby
Sr. Programmer
****

Karma: 1
Offline Offline

Posts: 467



$3770.00 Buckazoids
View Inventory
Give Money



View Profile
« Reply #4 on: Jul 23, 2010, 02:10 PM »

Didn't take long and I corrupted again.  This time I exited SCI Comp, renamed resource.001.bak to resource.001, reopened Comp and everything was just fine.
Logged

50206_rope_firstplace.png
Collector
Sr. Programmer
****

Karma: 3
Offline Offline

Posts: 349



$1818.00 Buckazoids
View Inventory
Give Money



View Profile WWW
« Reply #5 on: Nov 30, 2010, 01:37 AM »

While going through these threads it occurred to me that this should not be that hard to put a check in the compiler to see if the game's EXE is running before it starts its compile. If using DOSBox to run the game you might need to check to see if DOSBox is running instead. Now if the source gets cleaned up and commented enough for someone to take this on.
Logged
Pages: [1] Print 
Home  >  SCI Community  >  SCI Programming  >  SCI Community How To's & Tutorials  >  Topic: Ever Rebuild while your Game was Running ... Here's How to fix it. « previous next »
Jump to:  
Page created in 0.126 seconds with 22 queries.
The SCI Programming Community
Copyright © 2007 - 2012, All Rights Reserved.
Forums Powered by SMF 1.1.16 | SMF © 2011, Simple Machines