Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: DoorKnobHandle on Mon 20/10/2003 21:38:34

Title: GUI Sprites deleted... BUG!?!
Post by: DoorKnobHandle on Mon 20/10/2003 21:38:34
Sorry for another question from me, but...

I deleted the "Inventory GUI" sprites because I made my own, with selfmade sprites of course.

I checked several times, that no object using an old sprite is in that GUI, but when I use "GUIOn (INVENTORY);" the game crashes with that "GUI Sprites deleted" message!

What can I do?
Title: Re:GUI Sprites deleted... BUG!?!
Post by: Pumaman on Mon 20/10/2003 22:00:02
Are you using a custom inventory or the built-in InventoryScreen?

Either way, you should replace the existing sprites rather than deleting them and importing new ones, since that will re-number them.

Use the Re-number Sprite feature to put the three GUI icons back to slots 2041, 2042 and 2043.
Title: Re:GUI Sprites deleted... BUG!?!
Post by: DoorKnobHandle on Mon 20/10/2003 22:02:23
I am using the standard SInventoryScreen!


Thanks for your tip and the slot numbers!

EDIT: How can I rename sprites???
Title: Re:GUI Sprites deleted... BUG!?!
Post by: Pumaman on Mon 20/10/2003 22:07:40
Right-click on the sprite and do "Change sprite number". This was only introduced in v2.56 so if you're using an older version you can't do it.
Title: Re:GUI Sprites deleted... BUG!?!
Post by: DoorKnobHandle on Mon 20/10/2003 22:14:57
I am upgrading.

Thanks!!!