Lua GUI scripting?

Lua GUI scripting?

Postby StefanP.MUC » 10 Mar 2011, 10:05

I just found out that CEGUI supports LUA scripting:
http://www.cegui.org.uk/wiki/index.php/ ... _and_CEGUI
http://www.cegui.org.uk/wiki/index.php/ ... s_from_Lua
http://www.gpwiki.org/index.php/Crazy_E ... _and_CEGUI

This would make it possible to separate the sourcecode and GUI completly and the GUI could be changed without having to recompile OD. This way we could much easier test out new things, write resolution/aspect ratio scripts and change the GUI very quickly.

What do you think of it?
StefanP.MUC
 

Re: Lua GUI scripting?

Postby TheAncientGoat » 10 Mar 2011, 12:18

<3 Lua, you better watch out though, if I had my way we'd have creature logic and room definitions in Lua as well ;)
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: Lua GUI scripting?

Postby StefanP.MUC » 10 Mar 2011, 12:19

I agree, things like AI should be scripted and not hardcoded.
StefanP.MUC
 

Re: Lua GUI scripting?

Postby Bodsda » 10 Mar 2011, 13:25

StefanP.MUC {l Wrote}:I agree, things like AI should be scripted and not hardcoded.


I disagree. There was a discussion a while ago about scripting. If scripting handled core functions, such as AI or communications with a server from a client side, then this opens a massive hole for cheating and people writing there own custom AI scripts.

Bodsda
User avatar
Bodsda
OD Moderator
 
Posts: 195
Joined: 18 Feb 2010, 08:19

Re: Lua GUI scripting?

Postby TheAncientGoat » 10 Mar 2011, 15:12

Client side scripting != scripting... You can have scripts run securely on the server. If you do any logic clientside you can have people compiling cheating clients, (and if you say "hash the clients" I'll ask you why not hash the scripts)
User avatar
TheAncientGoat
Community Moderator
 
Posts: 518
Joined: 27 Dec 2009, 19:06

Re: Lua GUI scripting?

Postby charlie » 10 Mar 2011, 18:22

All game logic (script or compiled) needs to be server side, but there's still room for client-side scripting such as order+creature management.
Free Gamer - it's the dogz
Vexi - web UI platform
User avatar
charlie
Global Moderator
 
Posts: 2131
Joined: 02 Dec 2009, 11:56
Location: Manchester, UK

Who is online

Users browsing this forum: No registered users and 1 guest