Creating a headless SM64COOPDX Server!

I recently wanted to set up a persistent running SM64Coopdx Server but found there was not a whole lot of documentation out there in getting started. Its possibly even something that is a touchy subject. But the talented team behind the project do have this feature available and even though it was a bit of a pain to set up, now that I have gone through the process I wanted to document and provide it in case others were interested and for my own references.

First, start up a container, or vm, or server – I decided to use a proxmox server I have to create a dedicated ubuntu container for this. That part was simple. But you do need to consider space and size requirements. I settled on 2 core, 2048 (2gb) RAM and 6GB disk space. After having the container installed, its time to set it up! Login and install the dependencies

sudo apt-get install libsdl2-dev libcurl4-openssl-dev libglew-dev libz-dev build-essential git

Once completed, pull the repo for sm64coopdx to a folder of your choice. I am choosing to put it in /usr/games

git clone https://github.com/coop-deluxe/sm64coopdx

Now that everything is in the downloaded, we need to modify a few files.

Go to nano src/pc/mumble/mumble.c

Here you need to change the file from libc.h to unistd.h

Save the changes,

Now you can run the ./extract_assets.py

First change the name of the rom to baserom.us.z64

mv Super%20Mario%2064%20%28USA%29.z64 baserom.us.z64

Next run ./extract_assets.py us

./extract_assets.py us

after this completes, run Make HEADLESS=1

There will come a point when the build fails:

The workaround for this is to manually issue:

make build/us_pc/sound/sequences.bin

After this, resume the make using

make HEADLESS=1

the build should resume compiling and after a few minutes will wrap up

Lastly, cd into the build/us_pc directory, copy the baserom into the directory and run the executable with the server flag to set the port to your preference.

After this, simply test connecting to your server via the client, and you should find its successful!

If you would like to come join/play with us, use the direct connection

and point to: sm64coop.futurepr0n.com

You May Also Like

More From Author

+ There are no comments

Add yours