in0finite / SanAndreasUnity

Open source reimplementation of GTA San Andreas game engine in Unity
https://discord.gg/p6jjud5
MIT License
2.16k stars 355 forks source link

Suggestion: Make dedicated server work more SA:MP-like #130

Closed vico93 closed 2 years ago

vico93 commented 2 years ago

Just discovered this project, was very interested in maybe restart my server on this platform instead of again in SA:MP/classic GTASA, but when i read the documentation about multiplayer i became a bit little frustrated because the way to customize the server looks nothing like how SA:MP (or even MTA) handled this.

Why not implement a scripting engine (not exactly using Pawn, but other embedding engine like Duktape/JavaScript or even Lua) to allow coding gamemods a little bit easier for server owners? Of course the process of coding C#/DLL plugins can still be used to "augumentate" the server like SA:MP plugins did, for example adding brand-new features like MapAndreas, SQL databases and others that the gamemods (written in the embedded language) could use in their code.

Since SA:MP itself is practically dead (plus its a closed source solution by ignorance of the original devs) and the attempts to clone the project as open source are a good distance to be anything real, making the multiplayer of this project similar to the good ol SA:MP could attract other players that still have interest in see "indie" servers going on for a long time.

Anyway, thanks a lot for this!

in0finite commented 2 years ago

No one says that Lua/Pawn/etc should not be implemented as scripting languages. It's just that they are not priority right now, as there are some other more important stuff to fix/implement. The starting point for adding extensions to the game is to have C# plugins which can modify almost anything in the game, and can also be used to write gamemods. That's why it was implemented as a first approach to extend the game. Later on, other languages can be added as needed.

I agree that adding Pawn or Lua can attract other server developers, but some other stuff needs to be finished first.