Coder Social home page Coder Social logo

qdm12 / cod4-docker Goto Github PK

View Code? Open in Web Editor NEW
53.0 5.0 10.0 1.67 MB

Runs a Call of duty 4 Modern Warfare (cod4x) dedicated server in a Docker container.

Home Page: https://hub.docker.com/r/qmcgaw/cod4

License: MIT License

Dockerfile 32.11% Go 67.89%
cod4x-server cod4-game scratch docker docker-cod4 custom-mods dedicated-server

cod4-docker's Introduction

COD4 Docker dedicated server

Call of duty 4 dedicated server in a 125MB Docker image.

Docker Cod4

Build status Docker Pulls Docker Stars

GitHub last commit GitHub commit activity GitHub issues

Join Slack channel

Donate PayPal

Requirements

  • COD4 Client game
  • COD4 running on version 1.7 have to update to 1.8-20.1
  • Original COD4 main and zone files required (from the client installation directory)

Features

  • Cod4x server features
  • Works with custom mods and maps (see the Mods section)
  • Built-in HTTP file server for usermaps and mods (only works with .ff and .iwd files for security reasons)
  • Runs without root (safer)
  • Default cod4 configuration file server.cfg when not using mods, with exec server.cfg
  • Works with the cod4x masterlist
  • Cod4x server built from source
  • Other Cod4x files server downloaded from cod4x.me
  • Auto updates to the latest cod4x release
  • Only 125MB
  • See more Docker image tags: Docker Hub tags

Setup

We assume your call of duty 4 game is installed at /mycod4path

  1. On your host, create the directories ./main, ./zone, ./mods and ./usermaps.

  2. From your Call of Duty 4 installation directory:

    • Copy all the .iwd files from /mycod4path/main to ./main
    • Copy all the files from /mycod4path/zone to ./zone
    • (Optional) Copy the mods you want to use from /mycod4path/mods to ./mods
    • (Optional) Copy the maps you want to use from /mycod4path/usermaps to ./usermaps
  3. As the container runs as user ID 1000 by default, fix the ownership and permissions:

    chown -R 1000 main mods usermaps zone
    chmod -R 700 main mods usermaps zone

    You can also run the container with --user="root" (unadvised!) if this doesn't work, or build the image with --build-arg UID=yourid.

  4. Run the following command as root user on your host:

    docker run -d --name=cod4 -p 28960:28960/tcp -p 28960:28960/udp -p 8000:8000/tcp \
        -v /mycod4path/main:/home/user/cod4/main \
        -v /mycod4path/zone:/home/user/cod4/zone \
        -v /mycod4path/mods:/home/user/cod4/mods \
        -v /mycod4path/usermaps:/home/user/cod4/usermaps:ro \
        qmcgaw/cod4 +map mp_shipment

    The command line argument +map mp_shipment is optional and defaults to +set dedicated 2+set sv_cheats "1"+set sv_maxclients "64"+exec server.cfg+map_rotate

    You can also download and modify the docker-compose.yml file and run

    docker-compose up -d

HTTP server for custom mods and maps

By default, the container runs with an HTTP file server for mods and usermaps on port 8000.

  • You can disable it with -e HTTP_SERVER=off
  • You can change its published port with for example -p 9000:8000/tcp
  • You can change its root URL with for example -e ROOT_URL=/cod4. This is useful if you use a reverse proxy.
  1. Locate the relevant cod4 configuration file - for example main/server.cfg or mods/mymod/server.cfg

  2. Modify/add the following lines & change youraddress to your IP or domain name:

    set sv_allowdownload "1"
    set sv_wwwDownload "1"
    set sv_wwwBaseURL "http://youraddress:8000" // supports http, https and ftp addresses
    set sv_wwwDlDisconnected "0"
  3. Feel free to open an issue for help setting this up, such as port forwarding or reverse proxy setup help

Update your game

  1. Make sure you updated your game to version 1.7 first (see this)
  2. Download the COD4x client ZIP file
  3. Using Winrar / 7Zip / Winzip, extract cod4x_client_20_1.zip to your COD4 game directory
  4. Go in the extracted directory cod4-client-manualinstall_20.1 and double click on install.cmd
  5. When launching the multiplayer game, you should see at the bottom right 20.1

Testing

  1. Make sure you updated your COD4 Game to 1.8-19.0
  2. Launch the COD4 multiplayer game
  3. Click on Join Game
  4. Click on Source at the top until it's set on Favourites
  5. Click on New Favourite on the top right
  6. Enter your host LAN IP Address (i.e. 192.168.1.26)
    • Add the port if you run it on something else than port UDP 28960 (i.e. 192.168.1.26:28961)
  7. Click on Refresh and try to connect to the server in the list

COD4 screenshot

Mods

Assuming:

  • Your mod directory is ./mymod
  • Your main mod configuration file is ./mymod/server.cfg

Set the command line option to +set dedicated 2+set sv_cheats "1"+set sv_maxclients "64"+set fs_game mods/mymod+exec server.cfg +map_rotate

Write protected args

The following parameters are write protected and can't be placed in the server configuration file, and must be in the command passed to the container:

  • +set dedicated 2 - 2: open to internet, 1: LAN, 0: localhost
  • +set sv_cheats "1" - 1 to allow cheats, 0 otherwise
  • +set sv_maxclients "64" - number of maximum clients
  • +exec server.cfg if using a configuration file
  • +set fs_game mods/mymod if using a custom mod
  • +set com_hunkMegs "512" don't use if not needed
  • +set net_ip 127.0.0.1 don't use if not needed
  • +set net_port 28961 don't use if not needed
  • +map_rotate OR i.e. +map mp_shipment should be the last launch argument

By default, the Docker image uses this command.

TODOs

  • UDP proxy for Windows
  • Reload ability of cod4x
  • Docker Healthcheck + HTTP healthcheck endpoint (i.e. for K8s)
  • Add extra ping with udp proxy
  • More env variables
    • Plugins
  • Plugins
  • Built-in mods?

Acknowledgements

  • Credits to the developers of Cod4x server
  • The help I had on Cod4x.me forums

cod4-docker's People

Contributors

qdm12 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

cod4-docker's Issues

Sys_LoadLibrary error: steam_api.so

...
Unable to resolve hostname cod4update.cod4x.me:80
...
Unable to resolve hostname raw.githubusercontent.com:443
Error: Sys_LoadLibrary error: steam_api.so: cannot open shared object file: No such file or directory
Error: steam_api.so not found or it was not possible to load. Error is: no error occurred while loading shared library. Steam is not going to work.

I tried to add static libraries but still same error

It works running only: ./cod4x18_dedrun +map_rotate from this

game not loading. Maybe localization error?

Heho,
I'm trying to get this running, but encounter some errors. Can I use any localization of the game? I have the german game file. The main folder has some additional localized iwd files. In the zone folder is a subfolder "german". Inside are the ff files for the maps etc.
would be grateful, if you had some tips =)

docker-compose.yml:

services:
    cod4:
        image: qmcgaw/cod4
        container_name: cod4
        volumes:
            - ./main:/cod4/main
            - ./zone:/cod4/zone:ro
            - ./mods:/cod4/mods
            - ./usermaps:/cod4/usermaps:ro
        environment:
            - ARGS=+set dedicated 2+set sv_cheats 1+set sv_maxclients 64+set ui_maxclients 64+exec server.cfg+map_rotate
        ports:
            - 28960:28960/udp
        network_mode: bridge

    http:
        image: httpd:alpine
        container_name: cod4-http
        volumes:
            - ./mods:/usr/local/apache2/htdocs/mods:ro
            - ./usermaps:/usr/local/apache2/htdocs/usermaps:ro
        ports:
            - 8000:80
        network_mode: bridge

Error:

Arguments are: +set dedicated 2+set sv_cheats 1+set sv_maxclients 64+set ui_maxclients 64+exec server.cfg+map_rotate
./cod4x18_dedrun: ./libstdc++.so.6: no version information available (required by ./cod4x18_dedrun)
********************************************************
***** RUNNING SERVER AS A ROOT IS GENERALLY UNSAFE *****
********************************************************
2018-11-03T09:34:03.079677100Z 
tty console mode disabled
CoD4 X 1.8 linux-i386 build 2055 May  2 2017
--- Crypto Initializing ---
Testing sha1 hash function - positive.
Testing sha256 hash function - positive.
Testing tiger hash function - positive.
--- Crypto Initialization Complete ---
IP: 127.0.0.1
IP: 172.17.0.3
Opening IP6 socket: [::]:28960 UDP
Opening IP6 socket: [::]:28960 TCP
Opening IP socket: 0.0.0.0:28960 UDP
Opening IP socket: 0.0.0.0:28960 TCP
2018-11-03T09:34:03.080590900Z 
-----------------------------
 CoD4X Auto Update
 Current version: 1.8
 Current subversion: 17.5
 Current build: 2055
-----------------------------
2018-11-03T09:34:03.080605100Z 
New subversion 17.5
Update not needed. All files are equal.
----- FS_Startup -----
Current language: english
Current fs_basepath: .
Current fs_homepath: /root/.callofduty4
Current search path:
/root/.callofduty4/main
/root/.callofduty4/main_shared
./main
./main_shared
./players
2018-11-03T09:34:03.564993000Z 
File Handles:
----------------------
0 files in iwd files
couldn't exec default_mp.cfg
couldn't exec q3config_server.cfg
dedicated is write protected.
-------- Plugins initialization completed --------
QUERY LIMIT: Querylimiting is enabled
Couldn't open file ca/ca-bundle.crt
HTTP_SendReceiveData: mbedtls_ssl_handshake returned X509 - Certificate verification failed, e.g. CRL, CA or signature check failed
[S_API] Initialization completed
--- Common Initialization Complete ---
--- Game binary initialization ---
^1Error: Failed to load the CoD4 Game. Can not startup the game
^1--- Game Binary Initialization Failed ---
^5Hitch warning: 798 msec frame time
execing server.cfg
map_rotate...
"sv_mapRotation" is: "gametype dm map mp_shipment gametype war map mp_crossfire"
2018-11-03T09:34:03.801566800Z 
"sv_mapRotationCurrent" is: ""
2018-11-03T09:34:03.801609300Z 
---- Network shutdown ----
Closing IPv4 UDP socket: 5
Closing IPv6 UDP socket: 3
Closing IPv4 TCP socket: 6
Closing IPv6 TCP socket: 4
--------------------------
2018-11-03T09:34:04.029624100Z 
Sys_Error: Unable to load a level as the game has failed to load!
2018-11-03T09:34:04.029670600Z 
applicationmanager.cpp (3087) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
applicationmanager.cpp (3087) : Assertion Failed: CApplicationManager::GetMountVolume: invalid index
applicationmanager.cpp (3238) : Assertion Failed: m_vecInstallBaseFolders.Count() > 0
FillInMachineIDInfo took a total of 0 milliseconds

Update to cod4x v21

Hi again

New server update for cod4x, v21, can you please update it :)

thanks

Masterlist

In order for the server to show up on the Activision Masterlist, you need to use host network mode for the container so that it can bind to the WAN/Internet IP address of your server. Additionally, you need to set +set net_ip 123.123.123.123 +set net_port 28961 as ARGS environment variable.

If using bridge network mode, the container will bind to the IP address of the Docker network and therefore won't show up on the Activision Masterlist, as the heartbeat will send a 'local' IP-address to the Masterserver (e.g. 172.16.X.X.).

Perhaps you can add this to the README :)

Some error in the docker logs

Hi!

I see this errors in the docker logs:
Failed to open serverstatus.xml
Couldn't write q3config_server.cfg
1Error: Waited 227 msec for missing asset "codescripts/delete.gsx"
^3Warning: WARNING: Couldn't open logfile: main/games_mp.log

The permissions are 777 on all direcetories.

Please help.
Thanks

Permissions zone and usermaps folder

Thank you for creating this Docker image!

In the README it says that the zone and usermaps folder should have chmod 400 permissions, but with those permissions the Docker container wouldn't start for me. Changing the permissions chmod 700, just like the main and mods folder, fixed the issue for me.

games_mp.log gets overwritten at every container (re)start

The games_mp.log gets overwritten/cleaned every time the container (re)starts. This is annoying, as I use the .log to parse statistics.

g_logsync is set to 3 in my server.conf, which should append the logfile every time the server is restarted:

    • buffered means that the logs are not written to disk continuously, they are temporarily buffered in memory and written to disk later.
    • continuous means that logs are written to disk when the event takes place. After a server restart a new log will be created. You will lose old logs after a restart/crash.
    • append does the same as continuous but after a server restart the new loglines are appended to the previous log.

How can I prevent the logfile from being overwritten/cleaned every time the container (re)starts?

Thanks!

Server crashes on startup 19.0

My server crashes on startup with this log

Followed ur github instructions 1 by 1!

With the reason:

Server crashed: �BG_LoadWeaponDef: Could not find default weapon

Do you mabye now why? um not using any mods or something.

Also it sets this warning:

^3Warning: WARNING: Could not load weapon file 'weapons/mp/defaultweapon_mp'

Settings for port forwarding and server config

Hi, first of all, thanks for the awesome project!

Situation

I have a working server hosted on a linux box.
I startet the COD4 via steam and client updated correctly out of the box. AWESOME!

What I want

I want to share my server just with my friends... preferably not showing on the master server list.

Port forwarding

Using your docker-compose.yml opened port 8000 and 28960 (mapped then to 54321 and 54320 on my router)
Testing to connect via console

connect privateIP:54320

i got a Timeout.
According to the official Activision documentation, ports for PC have to be:

  • TCP: 3074, 27014-27050
  • UDP: 3074, 3478, 4379-4380, 27000-27031, 27036

Server settings

In the server.cfg there are a few settings i can change... like:

HTTP download

  • set sv_wwwBaseURL "http://yourdomain" change the yourdomain with public ip or is best to have a CNAME on my DNS?

Secure Server

  • set g_password "randomstrongpassword"
  • set rcon_password "randomstrongpassword"
    Are those sufficient security settings, appart from good practice in linux hardening?

guess set sv_privatePassword "private slot passwords" is not needed if g_password is set.

Thanks a lot for your support!
Cheers

how to build with steam disabled?

I build the dockerfile locally for version cod4x v21.2, but now i have the steam enabled version.. as many of us play via wine, we do not want the steam integration, as many do not have steam installed inside wine

So how to build with steam requirement disabled?

IWD files in mod not getting picked up

Hi, thanks for reading.

I'm using GunGame v1.2 with some of my custom skins, music, etc...
This is the content of mods/TomyGunGame:
enterleave.log

gungame
gungame.cfg
gungame_mp.log
maps
mod.ff
q3config_server.cfg
qconsole.log
qconsole.log.old
server.cfg
z_gungame.iwd
z_gunskins.iwd
z_skins.iwd

It works fine if I host it on Windows, but with the Docker image, no content that is in the IWD files works - however the mod itself works fine.

I would appreciate any information that I might be missing :-)

I'm happy to provide any additional information regarding this issue as well.

Docker run command (running on Unraid OS):

docker run
  -d
  --name='cod4'
  --net='bridge'
  -e TZ="Europe/Budapest"
  -e HOST_OS="Unraid"
  -e HOST_HOSTNAME="Titan"
  -e HOST_CONTAINERNAME="cod4"
  -e 'HTTP_SERVER'='on'
  -e 'ROOT_URL'='/'
  -l net.unraid.docker.managed=dockerman
  -l net.unraid.docker.icon='https://images-wixmp-ed30a86b8c4ca887773594c2.wixmp.com/f/db1a12bb-bf19-4284-8703-b6704a2616e6/d1anb5y-9a069c83-9fac-4ed0-be04-f7b97007d494.png?token=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJzdWIiOiJ1cm46YXBwOjdlMGQxODg5ODIyNjQzNzNhNWYwZDQxNWVhMGQyNmUwIiwiaXNzIjoidXJuOmFwcDo3ZTBkMTg4OTgyMjY0MzczYTVmMGQ0MTVlYTBkMjZlMCIsIm9iaiI6W1t7InBhdGgiOiJcL2ZcL2RiMWExMmJiLWJmMTktNDI4NC04NzAzLWI2NzA0YTI2MTZlNlwvZDFhbmI1eS05YTA2OWM4My05ZmFjLTRlZDAtYmUwNC1mN2I5NzAwN2Q0OTQucG5nIn1dXSwiYXVkIjpbInVybjpzZXJ2aWNlOmZpbGUuZG93bmxvYWQiXX0.zORbRaMQ0c4uZWlwsuuiyPrth1sC_Vf--HCU-C3tsx8'
  -p '28960:28960/udp'
  -p '28960:28960/tcp'
  -p '8000:8000/tcp'
  -v '/mnt/user/appdata/cod4/main':'/home/user/cod4/main':'rw'
  -v '/mnt/user/appdata/cod4/zone':'/home/user/cod4/zone':'rw'
  -v '/mnt/user/appdata/cod4/mods':'/home/user/cod4/mods':'rw'
  -v '/mnt/user/appdata/cod4/usermaps':'/home/user/cod4/usermaps':'ro'
  -v '/mnt/user/appdata/cod4/logs':'/home/user/.callofduty4':'rw' 'qmcgaw/cod4' +set dedicated 2 +set sv_maxclients "5" +set fs_game mods/TomyGunGame +exec server.cfg +map_rotate

Log output:

2023/08/30 18:38:43 INFO [S_API] Initialization completed
2023/08/30 18:38:43 INFO begin $init
2023/08/30 18:38:43 INFO end $init 0 ms
2023/08/30 18:38:43 INFO Adding fastfile 'code_post_gfx_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'localized_code_post_gfx_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'common_mp' to queue
2023/08/30 18:38:43 INFO Adding fastfile 'mod' to queue
2023/08/30 18:38:43 INFO --- Common Initialization Complete ---
2023/08/30 18:38:43 INFO Hunk available: 10, Hunk total: 10
2023/08/30 18:38:43 INFO ^5Hitch warning: 2526 msec frame time
2023/08/30 18:38:43 INFO execing server.cfg
2023/08/30 18:38:43 INFO dedicated is write protected.
2023/08/30 18:38:43 INFO Loading fastfile 'code_post_gfx_mp'
2023/08/30 18:38:43 INFO used 0.47 MB memory in DB alloc
2023/08/30 18:38:43 INFO sv_maxclients is write protected.
2023/08/30 18:38:43 INFO sv_cheats is write protected.
2023/08/30 18:38:43 INFO g_gametype will be changed upon restarting.
2023/08/30 18:38:43 INFO execing gungame.cfg
2023/08/30 18:38:43 INFO map_rotate...
2023/08/30 18:38:43 INFO "sv_mapRotation" is: "gametype dm map mp_backlot gametype dm map mp_crash gametype dm map mp_bubba gametype dm map mp_nuketown gametype dm map mp_modern_rust gametype dm map mp_smalltownx gametype dm map mp_crash_snow gametype dm map mp_strike gametype dm map mp_warehouse_13"
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO "sv_mapRotationCurrent" is: ""
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO Loaded fastfile 'code_post_gfx_mp' in 2ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'localized_code_post_gfx_mp'
2023/08/30 18:38:43 INFO used 0.69 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'localized_code_post_gfx_mp' in 6ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'common_mp'
2023/08/30 18:38:43 INFO used 39.00 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'common_mp' in 137ms (0ms waiting)
2023/08/30 18:38:43 INFO Loading fastfile 'mod'
2023/08/30 18:38:43 INFO used 0.99 MB memory in DB alloc
2023/08/30 18:38:43 INFO Loaded fastfile 'mod' in 4ms (0ms waiting)
2023/08/30 18:38:43 INFO ------ Server Initialization ------
2023/08/30 18:38:43 INFO Server: mp_backlot
2023/08/30 18:38:43 INFO SV_SpawnServer checksum feed: 0x5c0a802
2023/08/30 18:38:43 INFO ----- FS_Startup -----
2023/08/30 18:38:43 INFO fs_homepath is write protected.
2023/08/30 18:38:43 INFO fs_game is write protected.
2023/08/30 18:38:43 INFO Current language: english
2023/08/30 18:38:43 INFO Current fs_basepath: .
2023/08/30 18:38:43 INFO Current fs_homepath: /home/user/cod4
2023/08/30 18:38:43 INFO Current search path:
2023/08/30 18:38:43 INFO /home/user/cod4/mods/TomyGunGame
2023/08/30 18:38:43 INFO ./mods/TomyGunGame
2023/08/30 18:38:43 INFO /home/user/cod4/usermaps/mp_backlot
2023/08/30 18:38:43 INFO ./usermaps/mp_backlot
2023/08/30 18:38:43 INFO /home/user/cod4/main
2023/08/30 18:38:43 INFO /home/user/cod4/main_shared
2023/08/30 18:38:43 INFO ./main
2023/08/30 18:38:43 INFO ./main_shared
2023/08/30 18:38:43 INFO ./players
2023/08/30 18:38:43 INFO 
2023/08/30 18:38:43 INFO File Handles:
2023/08/30 18:38:43 INFO handle 1: qconsole.log
2023/08/30 18:38:43 INFO ----------------------
2023/08/30 18:38:43 INFO 0 files in iwd files
2023/08/30 18:38:43 INFO Adding fastfile 'mp_backlot' to queue
2023/08/30 18:38:43 INFO Loading fastfile 'mp_backlot'
2023/08/30 18:38:43 INFO used 51.89 MB memory in DB alloc
2023/08/30 18:38:43 INFO Waited 200 msec for asset 'maps/mp/mp_backlot.d3dbsp' of type 'col_map_mp'.
2023/08/30 18:38:43 INFO ------- Game Initialization -------
2023/08/30 18:38:43 INFO gamename: Call of Duty 4
2023/08/30 18:38:43 INFO gamedate: Feb 12 2009
2023/08/30 18:38:43 INFO fs_ignoreLocalized is cheat protected.
2023/08/30 18:38:43 INFO fs_ignoreLocalized is cheat protected.
2023/08/30 18:38:43 INFO Loaded fastfile 'mp_backlot' in 298ms (0ms waiting)
2023/08/30 18:38:44 INFO -----------------------------------
2023/08/30 18:38:44 INFO ^3Warning: WARNING: Could not load weapon file 'weapons/mp/frag_no_cook_mp'
2023/08/30 18:38:44 INFO By using this software you agree to the usage conditions you can find at https://github.com/callofduty4x/CoD4x_Server#usage-conditions-for-server-hosters
2023/08/30 18:38:44 INFO -----------------------------------
2023/08/30 18:38:44 INFO ^4Calculate referenced files checksums...
2023/08/30 18:38:44 INFO ^4CRC32 for zone/code_post_gfx_mp.ff is b144581c Len 89196
2023/08/30 18:38:44 INFO ^4CRC32 for zone/common_mp.ff is 4ef7a074 Len 13517381
2023/08/30 18:38:44 INFO ^4CRC32 for mods/TomyGunGame/mod.ff is ccdd43c7 Len 210478
2023/08/30 18:38:44 INFO ^4CRC32 for zone/mp_backlot.ff is f4cc856b Len 39998207
2023/08/30 18:38:44 INFO Sending master heartbeat from 0.0.0.0:28960 to 188.165.57.239:20810
2023/08/30 18:38:44 INFO Resolving cod4master.activision.com 
2023/08/30 18:38:44 INFO Sending master heartbeat from 0.0.0.0:28960 to 84.21.7.14:20810
2023/08/30 18:38:44 INFO Masterserver needs token to complete registration
2023/08/30 18:38:44 INFO Sending master heartbeat from [::]:28960 to [2a02:730:1220::187]:20810
2023/08/30 18:38:44 INFO Masterserver needs token to complete registration
2023/08/30 18:38:44 INFO Sending master heartbeat from [::]:28960 to [2001:41d0:a:37ad::17]:20810
2023/08/30 18:38:44 INFO cod4master.activision.com resolved to 185.34.107.159:20810
2023/08/30 18:38:44 INFO ^5Hitch warning: 1073 msec frame time
2023/08/30 18:38:44 INFO Steam: Server connected successfully
2023/08/30 18:38:45 INFO GameServer is not VAC Secure!
2023/08/30 18:38:45 INFO GameServer SteamID: [A:1:1483797506]
2023/08/30 18:38:46 INFO Can not register server on the masterserver. Server needs to provide a valid token in cvar sv_authtoken.
2023/08/30 18:38:46 INFO Can not register server on the masterserver. Server needs to provide a valid token in cvar sv_authtoken.

Frp

Hi there,i'd like to know,if i usd FRP proxy ,how can i public my server (show up on the Activision Masterlist).

Add Healthcheck

Perhaps you might be interested in the Healthcheck I added to my image. It checks if the COD4 server is still up/responding by sending 'getinfo' via RCON (using netcat) to the server every 30 seconds.
If for some reason the container would still run, but the healthcheck fails (e.g. the CoD4 server process is frozen), the Docker container will be marked as 'unhealthy'. Using a Docker image called 'autoheal' it will automatically restart the container.

Since our repos are too far apart, I cannot do a proper pull request, but feel free to copy the bits you need from my fork :)

Security Alert

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.