Recovered game still good?

Started by Mr_Threepwood, Tue 25/07/2006 05:42:07

Previous topic - Next topic

Mr_Threepwood

Alright here's what happened and scared the hell out of me.

I made some bitmap images for an animated cursor in photoshop, then I imported them into AGS, no problems.

I tested the views and everything, it all appeared to be fine.Ã,  So then I set the cursors to be the views and run the game.Ã,  Bam I get hit by tons of errors saying that the sprites are invalid.Ã,  I went to the sprite part in the editor, and got aobut 20 errors saying that the sprites are invalid.Ã,  So now Im freaking out since the only backup I have is 2 days old and I've made tons of progress since then.Ã,  I desperatly try deleting the sprindex file and all of that and after about 30 mins of tinkering around with AGS and getting tons of errors I managed to replace all of the troubled sprites with the default one and the game was now runnable again.

So then I made a backup and then I tried importing the same mouse sprites and doing that again, this time it works though.Ã,  Why would it have done this?

Also, is there any possible way that my game could have a problem in it now after dealing with this?Ã,  I'm hoping that having the tons of errors generated and whatever troubles it caused the engine doesn't somehow manifest itself in my games, even though the sprites are now good.

I think the problem might have been because I accidently had 2 instances of AGS going at once since I wasnt paying attention, editing the same game.

The game appears to run fine I just want to make sure that theres no way that any of my game code could have problems somwhere in it.
I am a mighty pirate

Radiant

Quote
Also, is there any possible way that my game could have a problem in it now after dealing with this?  I'm hoping that having the tons of errors generated and whatever troubles it caused the engine doesn't somehow manifest itself in my games, even though the sprites are now good.
Highly unlikely. If you can use the editor to see all views and all sprites, then that part won't cause any problem - and this is not directly interrelated with GUIs or scripting or anything else, so the worst that could happen (afaik) is that a room has an object that has the wrong sprite attached (which would be bleedingly obvious once you play that room, and similarly easy to fix).

Quote
I think the problem might have been because I accidently had 2 instances of AGS going at once since I wasnt paying attention, editing the same game.
Yes, that would be problematic, as it could cause discrepancies between what's in memory and what's on disk.

Pumaman

Having 2 instances of the game open could well cause problems -- I guess I should really prevent it from doing this.

SSH

If you're going to do that, it would be nicer if subsequent instances were "read-only", like Word does. Or, at the least please don't stop us havign multiple AGSes of different games open.
12

Alynn

That could be something as simple as a flag for that game turned on (IsBeingEdited == 1) {/*don't allow*/} and upon close or unload set that flag to 0...

this would allow multiple AGS's open with different games, but not allow you to open games that are already being edited...

Of course I say simple because I'm not the one that has to code it :P

DoorKnobHandle

It's not that simple, Alynn. Your method would require the exchange of a variable from one program instance to another, which is not possibly just like that. However, there are other ways to do that (although you can always start an application that usually doesn't allow instances and right-click on it to select "Run as user..." and then click "ok").

SMF spam blocked by CleanTalk