duplicate sprite numbers - how to remove?

Started by EnterTheStory (aka tolworthy), Thu 27/11/2008 10:00:29

Previous topic - Next topic

EnterTheStory (aka tolworthy)

My game shut down while saving yesterday, resulting in corrupted sprite files. So I'm busy adding sprites from earlier backups. For speed, I save the entire sprite folder from the old backup, then 'import multiple sprites'. But strangely, this results in TWO identical sprites (with identical numbers) for each imported sprite. Is there any way to remove the second sprite? The game won't let me delete it because the number is of course used.

I don't have this problem when pasting over corrupt sprites one by one (using the clipboard), but this takes literally hours, since every single change means every other sprite in the folder is loaded again, with multiple error messages for each one (many of my sprite folders have over a 100 sprites in each).

Is there an easier way to recover sprites from a backup, without changing any other parts of the game?

Dualnames

I'm not sure for this but if you right click on a sprite i think you can change the number. I mean you can , but i'm not sure if this was added after 2.72
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Gilbert

That feature was implemented before V2.72. I'm quite sure about it.

EnterTheStory (aka tolworthy)

You can in 2.72. I haven't tried that yet - be interesting to see if it changes just one instance of a number or both.

However, good news (I think) - after a lot of trying different backups, I think I've got a fixed version that won't need me to replace many sprites (hurrah!)

Dualnames

There's no need to go and find a backup. You have two sprites with inentical numbers.
Change one of them to the number of sprites you've added+1.
Worked on Strangeland, Primordia, Hob's Barrow, The Cat Lady, Mage's Initiation, Until I Have You, Downfall, Hunie Pop, and every game in the Wadjet Eye Games catalogue (porting)

Trent R

#5
Why bother with your manual backups (which are excellent to have, so don't get rid of them) first? Have you tried the .bak files?

~Trent
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

EnterTheStory (aka tolworthy)

Quote from: Trent R on Fri 28/11/2008 09:03:02
Why bother with your manual backups (which are excellent to have, to don't get rid of them) first? Have you tried the .bak files?

~Trent

Yes, that's how I finally recovered most of it. For some reason I used two of the three.baks and forgot the third one. :)

SMF spam blocked by CleanTalk