Create an account


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[SUGGESTION] Lua scripting for the game?

#1
I think Xonotic could use that.

Advantages of Lua over QuakeC:

- Easier to learn and successfully utilize
- Very fast (especially with LuaJIT)
- It's easier to find Lua coder these days than QuakeC one (better known language)
- Fast iteration (possibility to adjust code as the game is running)

Of course, QuakeC should remain both for compatibility and for those who prefer to use it, but IMO Lua's advantages makes it worth offering as an alternative.
Reply

#2
If it would be possible I think the game would support all languages for scripting, the problem is implementing this and staying compatible with QuakeC since no one will rewrite all the gamecode in X language. Also someone with the required knowledge of both the language implementation and engine would need to be motivated enough to pull it off. All of these are quite unlikely.

If I were you and really wanted it to happy I would investigate some kind of Lua-to-QuakeC compiler instead, it's sure lot of work and will not be trivial (since the docs are pretty sparse on QuakeC), but I'm sure it's possible.

Some resources:
http://www.gamers.org/dEngine/quake/spec...c-menu.htm
https://github.com/graphitemaster/gmqcc
Reply

#3
Not now, maybe later without the JIT. Going dynamic to static isn't really an option either, but might be possible if there's a statically typed lua dialect.
[Image: 38483.png]
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  [SUGGESTION] If it is written in a scripting language mzoltan14 19 16,540 09-01-2012, 07:11 AM
Last Post: Mr. Bougo

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum software by © MyBB original theme © iAndrew 2016, remixed by -z-