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
Lightbulb [SUGGESTION] A NEW GAME MODE - HIDE AND SEEK! Kotangens 5 1,101 07-30-2020, 01:30 PM
Last Post: Kotangens
  [SUGGESTION] Single Player Tutorial Game(s) Space Ace 63 12,209 05-12-2020, 09:10 AM
Last Post: _para
  [SUGGESTION] Relic Duels (game mode) munyul 7 2,500 02-11-2018, 11:38 AM
Last Post: Lyberta
  [FIXED] Handle non-ASCII characters on http://dpmaster.deathmask.net/?game=xonotic Antares* 5 2,293 06-27-2017, 06:41 PM
Last Post: -z-
  [SUGGESTION] Different Input Key Settings for different Game Modes Magician 1 1,731 03-07-2017, 10:41 AM
Last Post: -z-
  [SUGGESTION] Match making/game schduler end user 6 3,255 07-05-2016, 09:56 AM
Last Post: end user
  [SUGGESTION] a sub-forum for user and game server admin communication BuddyFriendGuy 6 3,454 09-04-2015, 02:12 AM
Last Post: BuddyFriendGuy
  [SUGGESTION] A game package should contain all needed components kanatov 2 3,019 03-10-2015, 10:58 PM
Last Post: kanatov
  [SUGGESTION] Make game knowledge/info more obvious - i.e. tips Archer 7 7,351 01-21-2015, 02:03 AM
Last Post: Mr. Bougo
  [SUGGESTION] Game lags when refreshing servers zwz 0 2,194 12-24-2013, 02:25 AM
Last Post: zwz

Forum Jump:


Users browsing this thread:
1 Guest(s)

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