Adventure Game Studio

AGS Support => Beginners' Technical Questions => Topic started by: Unknown_Terror on Fri 26/01/2007 17:54:46

Title: Error [line 78]: Undefined Token (SOLVED)
Post by: Unknown_Terror on Fri 26/01/2007 17:54:46
I was just changing the GUI to suit the looks i wanted, I deleted all the buttons from ICONBAR and started fresh, all was going fine and the game ran normal, then i deleted the buttons in INVENTORY on the GUI Editor and thats when the game stopped working....I tried to replace it with the proper names etc... but it won't work

The error i get when trying to test is this:

Error [line 78]: Undefined Token 'invCustomInv'
line 78 looks like this...  78      invCustomInv.ScrollUp();

Now i don't know what caused this to be a  problem....I'm guessing it was because i deleted the Inventory Up button, but i replaced it and it's still the same message...

Do i need to change the Script name to "invCustomInv.ScrollUp" or the Click setting, i aint a clue, any help is much appreciated Thanks guys
Title: Re: Error [line 78]: Undefined Token
Post by: Akatosh on Fri 26/01/2007 17:59:23
This scripting command refers to a custom inventory window named "invCustomInv".

You deleted the custom inventory window named "invCustomInv".

You replaced the gui control named "ScrollUpArrow" or something like that.

There is no custom inventory window named "invCustomInv".

The code tries to refer to a custom inventory window named "invCustomInv".

Any clue what went wrong yet?
Title: Re: Error [line 78]: Undefined Token
Post by: Unknown_Terror on Fri 26/01/2007 18:02:09
Amazing thanks for fast reply

God i feel so stupid, i realise now that I did delete the invCustomInv Inventory box, i guess the script was still expecting it to be there, Now i've replaced it and the game works again. For some reason i just couldn't see that it was missing.

Can't thank you enoughÃ,  ;)
Title: Re: Error [line 78]: Undefined Token
Post by: Akatosh on Fri 26/01/2007 18:17:53
You're welcome  :)

Everyone makes noob mistakes at the beginning. Also, welcome to the forums!