Forum

LUA for the HUD?

Post tutorials on how to do certain tasks within game or engine code here.

Moderator: InsideQC Admins

LUA for the HUD?

Postby Downsider » Thu Apr 07, 2011 11:19 am

Why are people so scared of additional dependencies? :?

LUA's light-weight and portable..
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby revelator » Thu Apr 07, 2011 12:48 pm

cant say im afraid the problem is more that i know zip about how to do it :( gotta read up on it someday.

wouldnt be bad for the menu system either.
User avatar
revelator
 
Posts: 2567
Joined: Thu Jan 24, 2008 12:04 pm
Location: inside tha debugger

Postby Arkage » Thu Apr 07, 2011 4:28 pm

I have been playing around with the thought of using http://berkelium.org/ for HUD / menus recently, but I dont have the time to even try. Plus I doubt I know enough to sucesfully implemt it.

But being able to make menus or huds in HTML/CSS/Javascript would really lower the barrier. It would be nice for something like darkplaces where it chould have intergrated editors for particles or realtime lights (well a less console depent editior for the lights). (all most like an open source cross platform udk :) ).
User avatar
Arkage
 
Posts: 66
Joined: Thu Nov 19, 2009 4:17 pm

Postby Downsider » Thu Apr 07, 2011 10:10 pm

I added Lua to my own un-Quake-related engine the other day, it's not hard to bind functions and pass variables through the stack, actually quite easy.
User avatar
Downsider
 
Posts: 621
Joined: Tue Sep 16, 2008 1:35 am

Postby mh » Thu Apr 07, 2011 10:39 pm

I've nothing against the concept aside from the fact that it's work I'd be unwilling to undertake without a serious push from a mod team behind it. Otherwise "hey everyone, my engine supports Lua" is a complete non-feature; a tick in a checkbox that means and achieves absolutely nothing useful.

Also the fact that implementing something like this is really only 10% of the work. The other 90% lies in defining interfaces between the scripting library and the rest of the engine code, figuring out where the walls that Thou Shalt Not Pass are, and working through all the weird little edge cases where things break down (don't kid yourself - they exist with everything).
We had the power, we had the space, we had a sense of time and place
We knew the words, we knew the score, we knew what we were fighting for
User avatar
mh
 
Posts: 2292
Joined: Sat Jan 12, 2008 1:38 am

Postby frag.machine » Thu Apr 07, 2011 11:40 pm

The biggest problem to me is adding a new requirement (Lua knowledge) to modders. As mh said, the implementation itself wouldn't be nothing complicated - but doing something flexible enough / easy to use enough for the majority is another completely different beast.
I know FrikaC made a cgi-bin version of the quakec interpreter once and wrote part of his website in QuakeC :) (LordHavoc)
User avatar
frag.machine
 
Posts: 2090
Joined: Sat Nov 25, 2006 1:49 pm


Return to Programming Tutorials

Who is online

Users browsing this forum: No registered users and 1 guest