Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: JpSoft on Sun 20/07/2008 15:56:37

Title: Scripts, Sprites and GUIs lost
Post by: JpSoft on Sun 20/07/2008 15:56:37
This morning i was working on my game when the power supply fails and my computer shut down. When the energy returns, i tried to load the game, but i received too many error messages, including some asking for "HelpModule.ash" and "CustomMaps.ash", which are scripts from the map editor im creating as a individual application. I copied both scripts in the game main folder (both files for any script) and the game finally opened, but now the game contains this scripts(when this scripts was not part of the game), but lost the two it originally have, even when the script files are still in the game folder. Also, all the sprites are working unproperly and the worst lost, 16 GUIs, specially the GUI for one player menu :-[... Only the global script and room scripts keep untouched.

I saved the folder and did some trys, but i was unable to recover the GUIs or the lost scripts: functions and engine. Is there any way to recover that from the files in the game folder? More important, is there anyway to recover the GUIs???? Some took me days to complete it.

My last complete backup is from 1 month ago... Lucky, the map editor looks untouched (i forgot to mention that i had 2 AGS opened at the switch off moment: one for each program) and a lot of functions are included in both projects, but others not.

Thanks for any help. If anyone need the files in order to recover the scripts or the GUIs, just let me know and i can send you the rmaining folder zipped.

Jp

Title: Re: Scripts, Sprites and GUIs lost
Post by: Pumaman on Sun 20/07/2008 17:40:14
You could try this:

1. delete SPRINDEX.DAT
2. delete acsprset.spr
3. rename backup_acsprset.spr to acsprset.spr
4. delete Game.agf
5. rename Game.agf.bak to Game.agf

obviously take a copy of the game folder before you try that. It might help you out, but the lesson here is that power failures can happen ... back up your game as often as possible!!
Title: Re: Scripts, Sprites and GUIs lost
Post by: JpSoft on Mon 21/07/2008 11:46:56
Thanks a lot for the answer.

I tried what you said, but the game remains damaged, even when i was able now to save a lot of sprites. The GUIs do not appear and script modules neither. Since both files of each script are in the main directory yet, i suppose there must be a way to recover at least the plain text.

I have an auto-backup program to save some files every time i shut down the computer, but i re-started the game from 0 around 1 month ago using a lot of functions from the old one and my fault was that i forgot to update the new files to be saved in the backup program.

Again, thank you very much

Jp

EDIT I recovered both scripts by this way: i created a new empty game, then create 2 new scripts and replaced the script files for the old ones (properly renamed)  ;D