Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Dedicated Server Linux: Difference between revisions

From MARNE Wiki
Twig (talk | contribs)
No edit summary
Twig (talk | contribs)
No edit summary
Line 7: Line 7:
* Git
* Git
* Podman
* Podman
* A text editor (e.g. Vim)
* A text editor (e.g. vim)


=== Generating <code>auth.toml</code> ===
=== Generating <code>auth.toml</code> ===

Revision as of 21:14, 16 February 2026

Running the MARNE Dedicated Server on Linux

Prerequisites

Ensure the following dependencies are installed:

  • Git
  • Podman
  • A text editor (e.g. vim)

Generating auth.toml

Download the pre-release version of maxima from here

After logging in, locate the generated auth.toml file:

  • Windows:
 %APPDATA%\Roaming\ArmchairDevelopers\Maxima\data
  • Linux:
 $HOME/.local/share/maxima

Copy the contents of auth.toml into the same auth.toml inside the MARNE repository.

Container Setup

On the machine that will host the dedicated server, execute the following commands individually:

git clone https://github.com/silkker/MARNE
cd MARNE
vim auth.toml   # Paste the contents from your main machine
vim tmux.conf   # Optional (uncomment from Containerfile if used)
podman build --no-cache -t marne_tonga:latest .

Running the Container

Run the container with:

podman run --replace -it \
  --name marne_tonga \
  -p 25200:25200/udp \
  -p 11079:11079/tcp \
  --security-opt seccomp=unconfined \
  marne_tonga:latest

Type exit once it gets into a shell.

Start the container by running

podman start -ai marne_tonga

Game Directory Setup

Create the Battlefield 1 directory:

mkdir -p /opt/games/bf1

Run Maxima setup:

wlheadless-run -c cage -- $HOME/maxima.sh

(Press Ctrl+C once completed.)

Registry Configuration

Import required registry files:

PROTONPATH=$HOME/.local/share/maxima/wine/proton \
WINEPREFIX=$HOME/.local/share/maxima/wine/prefix \
umu-run $HOME/.local/share/maxima/wine/prefix/drive_c/windows/syswow64/regedit.exe \
$HOME/dll_overrides.reg
PROTONPATH=$HOME/.local/share/maxima/wine/proton \
WINEPREFIX=$HOME/.local/share/maxima/wine/prefix \
umu-run $HOME/.local/share/maxima/wine/prefix/drive_c/windows/syswow64/regedit.exe \
$HOME/game.reg

Anti-Cheat Bypass and dinput8.dll

Rename the original anti-cheat launcher:

mv /opt/games/bf1/EAAntiCheat.GameServiceLauncher.exe \
   /opt/games/bf1/EAAntiCheat.GameServiceLauncher.exe.bak

Download and place the MARNE DLL:

curl -L https://github.com/silkker/MARNE/raw/refs/heads/main/Marne.dll \
     -o /opt/games/bf1/dinput8.dll

Server Configuration

Edit server settings as you wish:

vim /opt/games/bf1/ServerSettings.txt

Launch the server:

wlheadless-run -c cage -- maxima-cli launch \
  --game-path /opt/games/bf1/bf1.exe \
  --game-args=-mserver battlefield-1