This is a tutorial on how to host your own Holdfast: Nations at War on a Linux operating system.
This took me a lot of time and effort to get working and figure out what has to be installed and modified exactly. To host your own server, but without the hassle take a look at our Holdfast: Nations at War servers. You can get your own server for less than 1.50 EUR /month with 35% discount if you use code "holdfastlaunch" at checkout.
Note: This has only been tested on Ubuntu 16.041
) Make sure no previous version of Wine has been installed, if it has, uninstall it completely and don't forget to run apt-get autoremove to clean up the remaining files.2
) Add the right architecture, execute:
dpkg --add-architecture i3863
) Download the latest version of Wine, we recommend the development build as it contains multiple fixes that this requires:
wget -nc https://dl.winehq.org/wine-builds/Release.key4
apt-key add Release.key
apt-get install software-properties-common
apt-get install apt-transport-https
sudo apt-get update
apt-get install --install-recommends winehq-devel
apt-get install winetricks
) Install Mono, a .NET runtime library for Wine.
Mono 4.6 download: https://www.sendspace.com/file/jss2rk
Install it with:
wine msiexec /i wine-mono-4.6.0.msi5
) Install Xvfb, which is a virtual display adapter. Holdfast needs the ability to output graphics, although it does not use it.
apt-get install xvfb
To start the virtual adapter:
Xvfb :0 -screen 0 1024x768x16 &6
) Install DirectX, Holdfast needs this as well. We recommend using version 9 as it fully supported by Wine:
) Install all the Holdfast server files to a folder on your server8
) Once you have downloaded the server files, navigate to the folder and execute this command to start the server:
DISPLAY=:0.0 wine "/home/your/path/here/Holdfast NaW.exe" -startserver -batchmode -screen-width 640 -screen-height 480 -screen-quality Fastest -framerate 60 -servercarbonplayers 0 -serverConfigFilePath /home/your/path/here/config.txt -logFile /home/your/path/here/logs_output/outputlog_server5_coastalsiege.txt -logArchivesDirectory /home/your/path/here/logs_archive -s "YOURIPHERE" -p YOURPORTHERE -l "126.96.36.199" -o 7101
Replace "/home/your/path/here" with the path to the Holdfast server folder and hit enter. It will output a lot of warnings, however this is normal.
Congratulations, your server should now be up!If you could not make your Holdfast server work on your Linux operating system, consider buying a cheap server from Oasis Hosting ( https://oasis-hosting.net/gameservers/holdfastnaw/ ) - Servers start 1.50 EUR /month for both Naval AND Land battles. Use discount code "holdfastlaunch" for 35% discount!