MOHAA Dedicated Server on Ubuntu 12.04

Back in the day I played Medal of Honor Allied Assault a lot, I think it’s the best game in the series and my personal favorite. Yesterday I somehow felt like picking the game up again, but I ran into several issues. For one, I don’t have a DVD drive in my PC, I somehow managed to tear off the CD keys from my Warchest collection, plus with GameSpy shutting down, it wasn’t really possible to find servers. After a bit of searching online, I found the modded version of MOHAA (plus Breakthrough and Spearhead), where they replace the GameSpy server browser, add FullHD resolution support and whatnot. (plus it runs perfectly on win 8.1 64 bit) The download from their server was pretty slow, so I uploaded it here as a mirror, which you can download from the Downloads page, or from here.
Naturally, you install it, then launch the Medal of Honor Widescreen shortcut placed on the desktop, set your desired resolution and (!) save it.
Once you’re done with that, the game can be launched normally, and the server browser works perfectly too. (there’s also a Medal of Honor Server Browser & Launcher shortcut, if someone wants to browse servers outside the game)
Creating a server – on Ubuntu
I wanted to set up my own Hungarian server on my server machine, so I’d have a good ping and the Hungarian community could find it, if it still exists, so I went ahead and set it up, and I’ll outline the main steps here.
- You need a MOHAA installation (see above).
- On the server machine, create a mohaa folder, and upload all the files and folders from your installed game directory. (it should look something like this)
- Once that’s done, download the linux server files from here.
- Upload the contents of the MOHAA folder from the archive into the mohaa folder on the server.
- Get a server.cfg from here.
- Edit it to your liking, then upload it to the mohaa/main folder on your server.
- Using vi or nano, create a start.sh script in the mohaa folder, which you’ll use to start the server later. It should contain the following:
./mohaa_lnxded +set dedicated 1 +set sv_maxclients 24 +set net_ip yourserverip +set net_port 12203 +exec server.cfg
You need to set execute permissions:
chmod +x start.sh chmod +x mohaa_lnxded
After this, you can start the server with the ./launch.sh command.
If you run into the error where it can’t find the libstdc++.so.5 file, then download it from here.
Copy the contents of the file into the /lib folder on your server and it should work after that. (if it still doesn’t work, then just to be safe, copy the files into your mohaa folder as well)
That’s it 🙂