GithubHelp home page GithubHelp logo

alexander-krause-glau / btl44 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from frenos/btl44

0.0 1.0 0.0 47 KB

A dedicated server for Battalion 1944 in docker

License: GNU General Public License v3.0

Shell 100.00%

btl44's Introduction

btl44

A dedicated server for Battalion 1944 in docker. Get your community server started easily!

Getting Started

Install Docker on any host that is connected to the internet. To get more information about installing docker, please refer to the official docker documentation.

Then just pull and start this image or simply use

docker run --name btlserver -d frenos/btl44

Configuration

The simplest run configuration is shown above. It will find your IP and set a default server with the name 'Community Server frenos/btl44' on port 7777 with gamemode set to 'Arcade' and without a password.

You can put in your public IP or domain to run on a specific interface, use the ENV variable '$PUBLICIP':

docker run -d --name btlserver -e "PUBLICIP=1.2.3.4" frenos/btl44

If you don't supply a IP, the container will make a single call to Amazon Web Services to find and use your public IP.

The command above will start a server on IP 1.2.3.4 and port 7777 with the name of 'Community Server frenos/btl44'. You can also configure multiple configuration values directly via ENV variables, namely:

  • Servername
  • Port
  • Password
  • Playmode
  • AdminSteamID
  • StartType
  • RequiredPlayers

An example for a private unranked Server with two admins would be

docker run -d --name btlserver -e 'PUBLICIP=1.2.3.4' -e 'SERVERNAME="My awesome Server"' -e 'PASSWORD=secret' -e 'PLAYMODE=unranked' -e 'ADMINSTEAMID=XXX,YYY' -e 'STARTTYPE=ReadyUp' frenos/btl44

where XXX and YYY are two valid SteamIDs. The game will start when all players ready up.

Also check the docker-compose.yml in the /examples directory.

Custom configuration

To use a complete custom configuration, get a "DefaultGame.ini" and customize it to your liking. Then just bind that config into the container:

docker run -d --name btlserver -e 'PUBLICIP=1.2.3.4' -e 'SERVERNAME="My awesome Server"' -e 'PASSWORD=secret' -e 'PLAYMODE=unranked' -e 'ADMINSTEAMID=XXX,YYY' -v /my/configs/DefaultGame.ini:/config/DefaultGame.ini frenos/btl44

The container will then copy that configuration, override values that are passed as ENV vars (e.g. SERVERNAME) and start the gameserver. This allows you to use a single base configuration file for n servers with for example different server names and passwords. Check out the docker-compose.multi.yml in the /examples. When running different servers, make sure they run on different ports. Remember you need the baseport and _baseport+3 as queryport.

If you also want to use custom loadout decks in your server, simply link a loadout directory into the container:

docker run -d --name btlserver -e 'PUBLICIP=1.2.3.4' -e 'SERVERNAME="My awesome Server"' -e 'PASSWORD=secret' -e 'PLAYMODE=unranked' -e 'ADMINSTEAMID=XXX,YYY' -v /my/configs/DefaultGame.ini:/config/DefaultGame.ini  -v /my/configs/Loadouts:/config/Loadouts frenos/btl44

Same as with the DefaultGame.ini the decks are copied to the right directory and can be used in DefaultGame.ini just as the default decks.

Updates

To update stop and restart the container, steamcmd will take care of updating and validating your files.

Links

Battalion Community Server Wiki

btl44's People

Contributors

alexander-krause-glau avatar frenos avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.