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] Single Player Tutorial Game(s) Space Ace 59 7,331 10-07-2018, 05:52 AM
Last Post: SpiKe
  [SUGGESTION] Relic Duels (game mode) munyul 7 1,729 02-11-2018, 11:38 AM
Last Post: Lyberta
  [FIXED] Handle non-ASCII characters on http://dpmaster.deathmask.net/?game=xonotic Antares* 5 1,644 06-27-2017, 06:41 PM
Last Post: -z-
  [SUGGESTION] Different Input Key Settings for different Game Modes Magician 1 1,377 03-07-2017, 10:41 AM
Last Post: -z-
  [SUGGESTION] Match making/game schduler end user 6 2,671 07-05-2016, 09:56 AM
Last Post: end user
  [SUGGESTION] a sub-forum for user and game server admin communication BuddyFriendGuy 6 2,934 09-04-2015, 02:12 AM
Last Post: BuddyFriendGuy
  [SUGGESTION] A game package should contain all needed components kanatov 2 2,640 03-10-2015, 10:58 PM
Last Post: kanatov
  [SUGGESTION] Make game knowledge/info more obvious - i.e. tips Archer 7 6,560 01-21-2015, 02:03 AM
Last Post: Mr. Bougo
  [SUGGESTION] Game lags when refreshing servers zwz 0 1,942 12-24-2013, 02:25 AM
Last Post: zwz
  [SUGGESTION] XonStat In game? dizzy 4 3,803 11-12-2013, 11:20 AM
Last Post: Antibody

Forum Jump:


Users browsing this thread:
1 Guest(s)

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