BUG: naming characters and GUIs

Started by NiksterG, Sun 22/03/2009 00:28:56

Previous topic - Next topic

NiksterG

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?
Check out my games! (Not all made with AGS)

Trent R

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
To give back to the AGS community, I can get you free, full versions of commercial software. Recently, Paint Shop Pro X, and eXPert PDF Pro 6. Please PM me for details.


Current Project: The Wanderer
On Hold: Hero of the Rune

Pumaman

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.


SMF spam blocked by CleanTalk