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 61 23,893 09-12-2022, 10:23 PM
Last Post: cushinga
Lightbulb [SUGGESTION] new game mechanic: Flash Steps ballerburg9005 6 1,829 08-22-2021, 06:21 PM
Last Post: ballerburg9005
Lightbulb [SUGGESTION] A NEW GAME MODE - HIDE AND SEEK! Kotangens 5 2,771 07-30-2020, 01:30 PM
Last Post: Kotangens
  [SUGGESTION] Relic Duels (game mode) munyul 5 4,167 02-11-2018, 10:59 AM
Last Post: martin-t
  [FIXED] Handle non-ASCII characters on http://dpmaster.deathmask.net/?game=xonotic Antares* 5 3,835 06-27-2017, 06:41 PM
Last Post: -z-
  [SUGGESTION] Different Input Key Settings for different Game Modes Magician 1 2,495 03-07-2017, 10:41 AM
Last Post: -z-
  [SUGGESTION] Match making/game schduler end user 6 4,826 07-05-2016, 09:56 AM
Last Post: end user
  [SUGGESTION] a sub-forum for user and game server admin communication BuddyFriendGuy 6 4,747 09-04-2015, 02:12 AM
Last Post: BuddyFriendGuy
  [SUGGESTION] A game package should contain all needed components kanatov 2 3,910 03-10-2015, 10:58 PM
Last Post: kanatov
  [SUGGESTION] Make game knowledge/info more obvious - i.e. tips Archer 7 9,534 01-21-2015, 02:03 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-