Compiling and Running a Headless Server - WryOpussum/sm64ex-coop-wiki-update GitHub Wiki
You can compile sm64ex-coop as a headless server.
To compile a headless server, follow the steps to compile on your platform.
Use the build flag HEADLESS=1
Run the server from the command line using the argument --server <PORT>
Example: ./build/us_pc/sm64.us.f3dex2e.exe --server 7777
As of writing, you cannot change any server settings while running the server. This means that you need to change any settings you want to use prior to running the server. This can be done by editing sm64config.txt
which appears in the same folder of the executable after being run at least once.
Lua mods are supported on the headless server just like the full game. To use a lua mod, add a new line to the bottom of sm64config.txt
:
enable-mod: <MODFILENAME.lua>
Currently not all functions that are available when hosting on the full game are not available to the headless server, and in most situations it is better to just host using the full game.