Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: rodriguez1222 on Fri 08/12/2006 10:50:34

Title: Identifier differs from original declaration
Post by: rodriguez1222 on Fri 08/12/2006 10:50:34
I changed the graphics on my Inventory GUI, nothing else, this is the line Im getting the error in:

function show_inventory_window () {

I tried changing around the lines afterward and nothing else happens.  I started a new game and it seems the script is the same by default, but it works fine there.

I've no idea what to do to get it to work, I searched the forum for the specific error with no results.  I'm so close to completion on this thing and was expecting the inventory graphics to be an easy thing to alter...lol..

Any help you could offer would be appreciated.
Thanks
Title: Re: Identifier differs from original declaration
Post by: Ashen on Fri 08/12/2006 11:23:33
Can you show us the entire function?
Title: Re: Identifier differs from original declaration
Post by: Gilbert on Fri 08/12/2006 11:46:35
Did you use a custom inventory or the internal AGS (Sierra) inventory?
Check the function show_inventory_window () to see which one is being used.
If you deleted some default sprites for the internal one, there might be errors when calling it, if you want to use your own button graphics but the internal GUI, make sure you set that the new graphic to use the same slots of the default ones.
Title: Re: Identifier differs from original declaration
Post by: rodriguez1222 on Fri 08/12/2006 12:07:57
it seems the error was in attempting to call the inventory window from two different GUIs.

I deleted the second GUI and remade it and it works now.

Could you possibly put here what the error means, for future reference?

Obviously I did something wrong the first time I created the second GUI but I have no idea what and this prevents me from learning from whatever mistake I made.  I'm a firm believer in the notion that having a working script isn't as important as why it works.

Thanks for the quick responses.  You guys are great!