Adventure Game Studio

AGS Support => Advanced Technical Forum => Topic started by: NiksterG on Sun 22/03/2009 00:28:56

Title: BUG: naming characters and GUIs
Post by: NiksterG on Sun 22/03/2009 00:28:56
I think I found a small bug:

I named one of my GUIs "gPlayerDeck" and then tried to name one of my characters "cPlayerDeck". I made sure the first letters are different, so technically they are different names. But I still got an error:

---------------------------
Adventure Game Studio
---------------------------
This script name is already used by another item.
---------------------------
OK   
---------------------------


I can get around it by naming my character cPlayerDeckc, but that's annoying. Is it a bug, or did I do something wrong?
Title: Re: BUG: naming characters and GUIs
Post by: Trent R on Sun 22/03/2009 07:58:18
It's something with the internally workings of AGS. If you were just to type Pla the autocomplete would come up with PLAYERDECK next to a gray box. It is an automatically created define, and I think it does it for all Guis, Characters, and Views.

To solve, rename your Gui or Character.


~Trent
Title: Re: BUG: naming characters and GUIs
Post by: Pumaman on Sun 22/03/2009 16:39:20
It's to maintain backwards compatibility with previous versions of AGS, where characters, GUIs and Views were accessible with a capitalised name, as Trent has indicated.