Is Lua the best / fastest choice for a game server?

I am working on a project where I want users to be able to change and configure as much as possible.

Open source may be a good choice, but not because I want to keep several inner classes private.

The other two options that I was thinking of were plugins as external libraries and Lua scripts.

The problem with libraries (DLLs) is that cross-platform compatibility is required as it is a kind of game server and is mainly intended for use on dedicated servers (often Linux), but many people will also use this on their local machine (mainly Windows).

Due to the fact that the game server application, which should be able to handle many connections and actions related to game performance, is very important, so I have doubts about the Lua scripts.

Are my doubts reasonable or will Lua be a good solution? Also can you come up with some better / different option for my concern?

To summarize the important aspects:

  • cross platform compatibility
  • good performance (-> online game)
  • plugins / scripts that anyone can create if he knows about the language, maybe Lua, C or something else
  • for plugins / scripts with closed source code (not so important, but everything will be fine :)
+3
source share
3

, , , Lua , ... . , . - . , Lua, C/++, , Lua. WoW , Lua / , . , , , , Lua ( : Lua , , )

- , -, FYI: DLL , Linux. "DLL" " " " " .so. LoadLibrary, GetProcAddress FreeLibrary, dlopen, dlsym dlclose.

+5

, , GPL 3, .

+2

Have you ever thought about AngelScript? I don't know much about this either, but it seems to have C ++ syntax and is quite flexible and extremely cross-platform.

+1
source

Source: https://habr.com/ru/post/1720691/


All Articles