Error - GetSpriteAsBitmap32bit: Unable to find sprite 0

Started by bauldur_rises, Fri 05/02/2021 01:14:52

Previous topic - Next topic

bauldur_rises

Hi all,

So I've undated to v3.5.0, and have been merrily editing away, when I tried to save my work and got the error message "GetSpriteAsBitmap32bit: Unable to find sprite 0".  After being unable to save or build the game, I tried closing a restarting AGS, and now whenever I tried to open my game it presents the same error.

As best as I can tell, the only thing I did that was different was to import a new sprite.  It was a 32bit bmp (though I normally use png).

Does anyone have any ideas on how to fix this?

Thanks

Crimson Wizard

This message means that it cannot find sprite number 0 in your game. Does that sprite still exist?

bauldur_rises

Well, I didn't delete it, and I can't open the game to check.

bauldur_rises

I seem to have solved my problem.  It appears my acspret.spr file was corrupted (I was working off an external hard drive at the time, I don't know if that had anything to do with it).  I was able to copy an old one from a backup, then when AGS opened, I was able to re-import the one sprite I did add.

I guess the lesson is backup often.

Thanks everyone.

Crimson Wizard

Quote from: bauldur_rises on Fri 05/02/2021 10:37:03
Well, I didn't delete it, and I can't open the game to check.

Oh, so it did not let you open the game at all? Guess I misunderstood this part, I thought it was simply showing an error.

SMF spam blocked by CleanTalk