Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: Alynn on Wed 31/03/2004 17:22:14

Title: Sprites gone but not forgotten (BUG)
Post by: Alynn on Wed 31/03/2004 17:22:14
Ok, I seemed to have lost the 13 sprites I imported last night into my game, not a huge deal, at first I thought I didn't save, however, All the scripting I did last night for the view to work in the sprites I made last night were there. Well that was strange, but since I only lost 13 sprites, I wasn't too worried, I could just reimport them... so thats what I started to do... which worked fine

Then I tried to change their sprite numbers to what they were last night, and lo and behold, it said that sprite number already existed...

So what it seems to me, AGS still sees the sprites numbers, but they arent showing up in the sprite manager...

Is this a bug, or is there a fix that someone knows about that they can enlighten me with (**BTW AGS 2.6 SP1 version**)

EDIT: Oddly enough the first sprite still shows up in the room as an object, but if I try to change it it says the sprite doesn't exist... so I really don't know what is going on anymore...

Also, I can add new sprites with no problems, just can't change the numbers to what I had them last night.
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Pumaman on Wed 31/03/2004 20:12:53
Did the sprites all appear in the sprite manager when you originally imported them? Which method of import did you use (paste from clipboard/import from file/import multiple files)?
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Alynn on Wed 31/03/2004 20:52:16
Yes they did... I made the view (which disappeared as well but I figured that had to do with the sprites going bye bye)

And I believe I did them one at a time...

I also found that the inventory icon I imported last night was gone (same number problem) and that was a one time import...

Also, that inventory item I made last night disappeared alog with the sprite that went with it... and all the interactions I had set up last night...

All in all it looks like my game file got corrupted... but not badly enough to kill my entire game... But I hope that info helps
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Pumaman on Wed 31/03/2004 20:54:52
Seems like the sprite file got saved successfully, but the game data file didn't. You're not running low on disk space, are you?

You said the script was still there - was it a room script or in the global script?

Also, are any of the files in the game folder marked Read-only?
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Alynn on Wed 31/03/2004 21:23:47
2.35GB free... so I know I'm not low on disk space....

and it was a room script

However, the inventory scripts I did last night were not saved... and a couple of the global script changes I made...

And nothing is read only.

Oh and I did test the game quite a few times last night while making sure all the interactions I was adding were correct, and everything worked like it was supposed to...
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Pumaman on Wed 31/03/2004 21:38:00
Strange - it seems like the room and sprite files were saved properly, but for some reason the main game file wasn't saved. I have to say I'm baffled as to what might cause that, I've never had a report of this happening before. Either it should all save or nothing.

Has it only happened the once?
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Alynn on Wed 31/03/2004 23:19:32
Well, after I found out about it today I havn't closed AGS (as I was in the middle of editing when I found out that little problem, so I'm afraid of it happening again...

HOWEVER, I just did a save, and check the files, and  ac2game.ags, ac2game.dta, were updated to the corect time, I'm asuming the spr file is only saved if anything new was added to the sprites, and the last sprite I added was 2 hours earlier, so that is the right time... all the backup files are timed just before that....

So I guess maybe it was just a hiccup (my term for odd things that happen probably 1 in a million chance with the hard drive working, and memory usage, so on and so forth...)
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Gilbert on Thu 01/04/2004 02:38:06
Hmmm are you sure you'd checked all the folders in the sprite manager?
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Alynn on Thu 01/04/2004 04:40:36
yup all the folders, they are nowhere to be found...
Title: Re:Sprites gone but not forgotten (BUG)
Post by: Pumaman on Thu 01/04/2004 21:13:30
Very odd. Well, I'll add a tool to the editor to detect and remove any "orphan" sprites, so at least it could clean the game up that way. But if it happens again, please do let me know.