Guide: How to set up a Drakan Dedicated Server on Linux

Discuss Drakan: Order of the Flame with fellow players and post any technical problems here where an 'unofficial' support team will try and help you. Gameplay help questions can go here too.
Post Reply
User avatar
Reith
Hatchling
Posts: 4
Joined: Fri Nov 01, 2013 1:12 pm
Location: Poland

Guide: How to set up a Drakan Dedicated Server on Linux

Post by Reith »

Guide on how to run Drakan Dedicated Serrver on Linux machine. Preferably low power computers, SBCs or cheap cloud hostings, as server doesn't require much power to run on modern hardware. This will also work on headless machines connected via VNC or RDP protocols. This guide will be using Debian 11 distribution, but similar can be achieved also on Ubuntu.

Firstly you need to install Wine (Windows compatibility layer) and all its dependencies:

Enable 32 bit architecture:

Code: Select all

sudo dpkg --add-architecture i386


Add WineHQ repository:

Code: Select all

sudo apt update
sudo apt -y install gnupg2 software-properties-common
wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Code: Select all

sudo apt-add-repository https://dl.winehq.org/wine-builds/debian/

Code: Select all

sudo apt update


Install Wine 6 on Debian 11:

Code: Select all

wget -O- -q https://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11/Release.key | sudo apt-key add -    
echo "deb http://download.opensuse.org/repositories/Emulators:/Wine:/Debian/Debian_11 ./" | sudo tee /etc/apt/sources.list.d/wine-obs.list

Code: Select all

sudo apt update


Choose Wine Stable or Staging:

Code: Select all

sudo apt install --install-recommends winehq-stable

Code: Select all

sudo apt install --install-recommends winehq-staging


Set up Wine prefix:
Skip Wine Mono & Gecko installtion, becasue they're not required.

Code: Select all

WINEARCH=win32 WINEPREFIX=~/.DrakanWine wine wineboot 


Install Winetricks:

Code: Select all

wget  https://raw.githubusercontent.com/Winetricks/winetricks/master/src/winetricks
chmod +x winetricks


Full game is requied. Either buy used copy or obtain it from reputable sources like Internet Archive. Always verify checksums of disc image to ensure that files are clean and undamaged. MD5 checksums for Redump (disc preservation database) compatible European version:

Code: Select all

e46717b570ee2d43ad61169011e5d5a5 *Drakan - Order of the Flame (Europe) (Track 1).bin
a35765ee6ec1834d532b50515177cd9e *Drakan - Order of the Flame (Europe) (Track 2).bin
175048cf2ec5439fcb6f4cfc2f3d454a *Drakan - Order of the Flame (Europe) (Track 3).bin
c2b062cdeb36d96775b4103412beb16b *Drakan - Order of the Flame (Europe) (Track 4).bin
7c2ccd37eb332a688de1b5381cee5609 *Drakan - Order of the Flame (Europe) (Track 5).bin
af32871187ece69918d0499f2c24c7fc *Drakan - Order of the Flame (Europe) (Track 6).bin
a00ff1ded2479426989a1c5b1f6f621c *Drakan - Order of the Flame (Europe) (Track 7).bin
b3d21641b9b549efedae8faa36226065 *Drakan - Order of the Flame (Europe) (Track 8).bin
7f96df742a1953bf9a6de928ef472418 *Drakan - Order of the Flame (Europe).cue

Install game on Windows and then extract game files to Linux box or install directly from CD using Wine wine ./Setup/SETUP.EXE to ~/Games/Drakan.


There are two known unofficial patches. Install only one of them, as they're incompatible with each other.
Download additional server related files from Google Drive.

AiO Patch Final:
  1. Install Patch 445 (despite what Arokh Lair's description says don't skip on that one),
  2. Install AiO Patch Final 2.170,
  3. Install additional multiplayer levels of your choice,
  4. Extract server related files to game folder,
  5. Optionally extract Mechanist's modified DDRAW.DLL for disabling on-screen drawing, which lowers CPU usage.
Disable CSMT and crash dialogs. Disable 3D renderer and sound:

Code: Select all

WINEPREFIX=~/.DrakanWine ./winetricks csmt=off nocrashdialog autostart_winedbg=disabled renderer=no3d sound=disabled


Community Patch:
  1. Install Community Patch 153.01a,
  2. Install Updated multiplayer levels pack,
  3. Extract server related files to game folder,
  4. Optionally extract Mechanist's modified DDRAW.DLL for disabling on-screen drawing, which lowers CPU usage.
Disable CSMT and crash dialogs. Disable 3D renderer and set sound to ALSA (sound is requied to run the game on this patch):

Code: Select all

sudo apt install cabextract
WINEPREFIX=~/.DrakanWine ./winetricks csmt=off nocrashdialog autostart_winedbg=disabled renderer=no3d sound=alsa dmime dmusic


Import Engine Settings and optionally Wine DLL Overrides if you decided to use modified DDRAW.DLL.

Code: Select all

WINEPREFIX=~/.DrakanWine wine regedit ~/Games/Drakan/Drakan_Engine_Settings.reg
WINEPREFIX=~/.DrakanWine wine regedit ~/Games/Drakan/Drakan_DllOverrides.reg


Start Server:

Code: Select all

cd ~/Games/Drakan
WINEPREFIX=~/.DrakanWine wine ./DrakanServer.exe +dedicated +queryport 27046 +master +hostname "Test Server" +name "SERVER" +maxplayers 16 +scorelimit 20 +timelimit 20 +levellist "Ground Only"

Also you can limit CPU usage by setting desired server update rate in game console e.g. maxrate 50.

Image

Sources:
https://computingforgeeks.com/how-to-in ... on-debian/

User avatar
Arokhs Twin
Site Admin
Posts: 1295
Joined: Wed Jul 18, 2001 9:36 pm
Location: United Kingdom
Contact:

Re: Guide: How to set up a Drakan Dedicated Server on Linux

Post by Arokhs Twin »

That's great, thanks for sharing this.
By fire and by blood I join with thee in the Order of the Flame!
Webmaster of Arokh's Lair

Post Reply