Page 1 of 1

[solved] Lua error messages (trunk)

Posted: Sun Apr 19, 2009 8:53 pm
by 1337
When showing the ingame gui via console command (or key binding for that matter), the following messages are shown:

Code: Select all

CEGUI Error: "Unable to execute Lua script string: 'showCursor()'

[string "showCursor()"]:1: attempt to call global 'showCursor' (a nil value)
" while executing code "showCursor()"
CEGUI Error: "Unable to execute Lua script string: 'hideCursor()'

[string "hideCursor()"]:1: attempt to call global 'hideCursor' (a nil value)
" while executing code "hideCursor()"
Is this a known issue?

Re: Lua error messages (trunk)

Posted: Sun Apr 19, 2009 10:49 pm
by beni
Nah, does not happen on my computer. I also updated everything and still no CEGUI Error. How can I reproduce the error? Does the cursor actually show or not? On my system it is shown flawlessly.

EDIT: Just tested it on a fresh installation on Tardis today. Still no problem.
Maybe it is how you use the showingamegui command? In my keybindings.ini I've got:

Code: Select all

KeyRightControl="OnPress showingamegui true | OnRelease showingamegui false"
However just using the console works as well.

Re: Lua error messages (trunk)

Posted: Mon Apr 20, 2009 12:03 pm
by 1337
It actually is reproducible: You just have to revert to an old revision of the media repository ;)
Otherwise it works find, my apologies for the inconveniences.

Re: Lua error messages (trunk)

Posted: Mon Apr 20, 2009 12:52 pm
by beni
Oh I see. Well the problem is unfortunately that we're not used to update media as regularly as the code when we develop.
Since all Lua code is in the media repository, errors with the GUI are increasingly located in the media.

Not a bad development, but something we need to get used to first.