Error: One or more Inventory screen graphics deleted (SOLVED)

Started by , Sun 30/04/2006 20:32:43

Previous topic - Next topic

averagegilo

Hi.  This is my first posting so please bear with me, as the current problem I'm having may be a little unclear.  I've been experimenting programming a game from scratch, rather than creating one, using the 'demo1' file and adding new graphics.  The main problem is my GUI.  I would like to use a Space quest 4 type GUI, so I've exported the GUI from 'Demo1' and edited this, so that the 'text based' and the 'monkey island' style boxes remain active, but do not appear on the screen.

The main problem is that my inventory box does not work.  Anytime I click on the inventory box, after picking up an object, the game exits and the message:

'An error has occured.  Please contact the game author for support, as this is likely to be a scripting error and not a bug in AGS.  (ACI version 2.61.747)

Error:  InventoryScreen:  One or more of the Inventory screen graphics have been deleted'

I have tried to create my own GUI, with mixed success  ???  But my scripting skills are a little rusty, so I decided to take the easy route.

At the moment, its proving not so easy.  Can anyone help??

Scorpiorus

Hello and welcome to the forums :)

QuoteError:Ã,  InventoryScreen:Ã,  One or more of the Inventory screen graphics have been deleted

With starting from scratch you probably mean you use the EmptyGame template, but it has no sprites on the list at all, including those that are used by the built-in InventoryWindow you want to use.

You need to import 3 sprites and change their numbers to 2041, 2042 and 2043 respectively (right click over each and select Change sprite number...)

See the following thread:

http://www.adventuregamestudio.co.uk/yabb/index.php?topic=16474.0

averagegilo

#2
Quote from: Gilbot V7000a on Fri 03/09/2004 02:16:11
It's quite possibly you deleted some of the button graphics of the built-in inv. window (the hard-coded in engine one, not the one customizable in the GUI section).

You have 2 choices:
1. Use a customized GUI for inventory, as you originally did.
2. Add back several sprites, then:
    right-click --> Change sprite number
    and set them to the sprite numbers of the missing button sprites (I think they're 2041, 2042 and 2043).

How do I do this?  I haven't got anywhere near this many sprites in my game.  I've started from scratch and imported the GUI over from Demo1.

strazer

(Please use your own threads instead of digging up old ones.)

What exactly do you have problems with? Go to the sprite manager, import a new sprite and do as Gilbot said.

Scorpiorus

Yeah, just import any three sprites and change their numbers to 2041, 2042 and 2043! Right-click over one and select Change sprite number... Enter the corresponding number for each this way.

averagegilo

Hey thanks guys.  I didn't realise you could change the sprite numbers.  All resolved.    Expect a one room, one puzzle game on here by next week.  I promise the next game will be a bigger effort.  This one is just to prove that I can make a game.

SMF spam blocked by CleanTalk