kaimallea / csgo Goto Github PK
View Code? Open in Web Editor NEWA containerized dedicated server for Counter-Strike: Global Offensive
License: The Unlicense
A containerized dedicated server for Counter-Strike: Global Offensive
License: The Unlicense
Can you help add -authkey YOURAUTHKEYHERE for worshopmaps?
It is possible to make a server and play with friends?
I had a problem with my modem and could not release port 27015. Looking for a method to play on public ip lan
Hi,
Thank you very much for providing this docker image, it have made my life so much easier when handling sourcemod servers! I have a minor issue for me.
A lot of plugins for sourcemod does not use proper releases here on github, which means that you need to use the git binary or the github .zip file for example: https://github.com/kaimallea/csgo/archive/master.zip. The issue is that when downloading master.zip, it will put all content inside a folder called ${repo}-${branch}. Would it be possible to add support for this in the install_plugin() function? Today, these master.zip files does not work with this image.
First off, you're an electric jesus for even attempting this, it's much appreciated. I want to spend as much time relaxing around Docker projects as I do working on them full time.
That said, I can't seem to get the container running. Running:
docker run -d --name csgo -p 27017:27017/udp -p 27017:27017 kmala/csgo -game csgo -console -usercon +game_type 0 +game_mode 0 +mapgroup mg_bomb +map de_dust2
Gives me no servers I can connect to. I'll dump the container logs at the the end of this issue. If you have gotten this to succesfully start and host games and I'm doing something stupid, let me know. If not, let me know and I'll be more than happy to throw some Docker know how into this project and the upstream project to get them working.
./srcds_run: 32: ./srcds_run: pushd: not found
./srcds_run: 35: ./srcds_run: popd: not found
Server will auto-restart if there is a crash.
Using breakpad crash handler
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
LD_LIBRARY_PATH=/home/steam/csgo/bin:/home/steam/csgo:/home/steam/csgo/bin:
#Using breakpad minidump system
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating
No web api auth key specified - workshop downloads will be disabled.
maxplayers set to 64
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Setting mapgroup to 'mg_bomb'
Network: IP 172.17.0.8 ---- Host_NewGame ----
Host_NewGame on map de_dust2
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
ConVarRef room_type doesn't point to an existing ConVar
bot_autodifficulty_threshold_high - 2.0
bot_autodifficulty_threshold_low - -6.0
bot_chatter - normal
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_quota - 10
bot_quota_mode - normal
bot_allow_grenades - 1
bot_allow_pistols - 1
bot_allow_sub_machine_guns - 1
bot_allow_shotguns - 1
bot_allow_rifles - 1
bot_allow_snipers - 1
bot_allow_machine_guns - 1
mp_playercashawards - 1
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -3300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_player_get_killed - 0
mp_teamcashawards - 1
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_t - 1000
cash_team_elimination_hostage_map_ct - 2000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
mp_afterroundmoney - 0
mp_buytime - 90
mp_buy_anywhere - 0
mp_buy_during_immunity - 0
mp_startmoney - 800
mp_maxmoney - 16000
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_defuser_allocation - 0
mp_give_player_c4 - 1
mp_free_armor - 0
mp_molotovusedelay - 15.0
mp_weapons_allow_zeus - 1
mp_weapons_allow_map_placed - 0
mp_weapons_glow_on_ground - 0
mp_ct_default_melee - weapon_knife
mp_ct_default_secondary - weapon_hkp2000
mp_ct_default_primary -
mp_ct_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_secondary - weapon_glock
mp_t_default_primary -
mp_t_default_grenades -
mp_buy_allow_grenades - 1
mp_freezetime - 6
mp_force_pick_time - 15
mp_halftime - 0
mp_match_can_clinch - 1
mp_maxrounds - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
//.steam/sdk32/steamclient.so
with error:
//.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
dlopen failed trying to load:
//.steam/sdk32/steamclient.so
with error:
//.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Hi guys! :P I got an error on docker container start:
exec: "./start.sh": stat ./start.sh: no such file or directory
I'm using rancher 1.6 but I did everything ok ;)
How Can I fix it ? :D
Probably broke in the last commit
EDIT:
so if i delete my server.cfg a new one with the default settings is created, but the autoexec file is never created.
my start params:
#!/bin/bash
PLUGINS=$(cat <<-END
https://mms.alliedmods.net/mmsdrop/1.10/mmsource-1.10.7-git971-linux.tar.gz
https://sm.alliedmods.net/smdrop/1.10/sourcemod-1.10.0-git6478-linux.tar.gz
http://users.alliedmods.net/~kyles/builds/SteamWorks/SteamWorks-git131-linux.tar.gz
https://bitbucket.org/GoD_Tony/updater/downloads/updater.smx
https://github.com/splewis/csgo-practice-mode/releases/download/1.3.3/practicemode_1.3.3.zip
https://github.com/splewis/csgo-pug-setup/releases/download/2.0.5/pugsetup_2.0.5.zip
https://github.com/splewis/csgo-retakes/releases/download/v0.3.4/retakes_0.3.4.zip
https://github.com/b3none/retakes-instadefuse/releases/download/1.4.0/retakes-instadefuse.smx
https://github.com/b3none/retakes-autoplant/releases/download/2.3.0/retakes_autoplant.smx
https://github.com/b3none/retakes-hud/releases/download/2.2.5/retakes-hud.smx
https://ptah.zizt.ru/files/PTaH-V1.1.3-build20-linux.zip
https://github.com/kgns/weapons/releases/download/v1.7.1/weapons-v1.7.1.zip
https://github.com/kgns/gloves/releases/download/v1.0.5/gloves-v1.0.5.zip
END
)
# https://github.com/shanapu/MyWeaponAllocator
# https://github.com/Franc1sco/FixHintColorMessages
docker run \
--rm \
--interactive \
--tty \
--detach \
--mount type=bind,source=$(pwd),target=/home/steam/csgo \
--network=host \
--env "SERVER_HOSTNAME=BoeckelsEsport" \
--env "SERVER_PASSWORD=mbeezy" \
--env "STEAM_ACCOUNT=XXX" \
--env "AUTHKEY=XXX" \
--env "SOURCEMOD_ADMINS=XXX" \
--env "INSTALL_PLUGINS=${PLUGINS}" \
--env "RETAKES=1" \
kmallea/csgo
Hi,
i am stuck at this error when trying to run it for the first time, i know it means out of space but i have mounted a volume of 40G on /home/steam which is dedicated to this instance and i still get this error?
Do you know how to get it running?
its a small vps with only 20G total space available and a data volume mounted on /home/steam
Waiting for user info...OK
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
Error! App '740' state is 0x202 after update job.
root@csgo-server:/home# df -h
Filesystem Size Used Avail Use% Mounted on
udev 968M 0 968M 0% /dev
tmpfs 196M 3.1M 193M 2% /run
/dev/sda1 19G 1.8G 17G 10% /
tmpfs 976M 0 976M 0% /dev/shm
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 976M 0 976M 0% /sys/fs/cgroup
/dev/sda15 61M 121K 60M 1% /boot/efi
tmpfs 196M 0 196M 0% /run/user/0
/dev/sdb 40G 49M 38G 1% /home/steam
Thanks
Hey @kaimallea - I'm working on making some Docker images for CS:GO servers myself and I'm trying to figure out how to deal with the updates that the game gets. Pushing a new tag to the Docker Hub doesn't really work since the host would have to grab a new ~8GB image, but I can't think of a better way.
Any ideas?
Hello,
It seems like the versions of metamod/sourcemod in this repo makes the server coredump on startup in the current state.
/home/steam/csgo/srcds_run: line 318: 294 aborted (core dumped) $hl_cmd
When I removed the addons/metamod folder the server starts up as expected. I'll try to update metamod/sourcemod and see if I can get it to work
Friends can join from outside and works fine.
But i cant connect from my windows machine to cs go server.
Is mysql integrated ? Because i am developping a plugin and i need mysql but it seems that mysql dont is installer.
Ty
Is there a way to disable sourcemod plugins without relying on the storage volume being kept? nextmap blocks using the builtin map vote at the end of the turns.
Hellow,
After following the installation procedure, I wanted to launch the server via my ssh console but I get an error. via portainer I see that the container is well created but I always have this error when I start the server
Hi, I have been trying to deploy this docker but without success.
I am using the bellow command to start docker
docker run --rm --interactive --tty --detach --mount type=bind,source=D:/csgoserver,target=/home/steam/csgo --name teamB44CsgoServer --publish 27015:27015/tcp --publish 27015:27015/udp --publish 27020:27020/tcp --publish 27020:27020/udp --env "SERVER_HOSTNAME=Team B44" --env "SERVER_PASSWORD=123456" --env "RCON_PASSWORD=999999" --env "STEAM_ACCOUNT=MysteamACcount" --env "AUTHKEY=myAuthKey" kmallea/csgo
I am using --plublish because when I use --network=host it does not show up on my LAN tab on csgo
The issue is, I can see my server when I am in my own PC but keeps saying "Server is not responding". See print bellow
I have checked https://canyouseeme.org/ using my ip and port 27015 and it returns that is reachable, so I opened the ports on my router just fine. I just don`t know the issue why it keeps saying my server is not responding.
Attached is the output. Just to mention, I am running this on Windows 10
mkdir: cannot create directory ‘/home/steam/csgo/csgo’: Permission denied
grep: /home/steam/csgo/srcds_run: No such file or directory
/bin/bash: /home/steam/csgo/srcds_run: No such file or directory
I have use volume
docker run \
--rm \
--interactive \
--tty \
--detach \
-v /home/csgo/data:/home/steam/csgo \
--network=host \
--env "SERVER_HOSTNAME=hostname" \
--env "SERVER_PASSWORD=password" \
--env "RCON_PASSWORD=rconpassword" \
--env "STEAM_ACCOUNT=gamelogintoken" \
--env "AUTHKEY=webapikey" \
--env "SOURCEMOD_ADMINS=STEAM_1:0:123456,STEAM_1:0:654321" \
kmallea/csgo
Can this Porject /CSGO Server support IPv6 address? =)
csgo-pugs | Update state (0x61) downloading, progress: 99.93 (24649959272 / 24667874234)
csgo-pugs | Error! App '740' state is 0x602 after update job.
csgo-pugs | ./start.sh: line 34: /home/steam/csgo/csgo/cfg/autoexec.cfg: No such file or directory
csgo-pugs | ./start.sh: line 45: /home/steam/csgo/csgo/cfg/server.cfg: No such file or directory
csgo-pugs | ./start.sh: line 65: /home/steam/csgo/csgo/addons/sourcemod/configs/admins_simple.ini: No such file or directory
csgo-pugs | ./start.sh: line 69: /home/steam/csgo/srcds_run: No such file or directory
I believe I followed all instructions in the README. Am I supposed to copy these files from somewhere?
Thanks
Heya,
Messing around with csgo and docker containers and found this repo which seemed to be recently updated. But when I try and build the container it hangs on
Success! App '740' fully installed.
Any suggestions on how to debug?
This setup used to work, but stopped working some time last year. Even tried removing both container and image and rebuild.
Service definition in compose file:
csgo:
env_file: ./data_env/csgo.env
image: kmallea/csgo:latest
ports:
- target: 27015
published: 27015
protocol: tcp
mode: host
- target: 27015
published: 27015
protocol: udp
mode: host
- target: 27020
published: 27020
protocol: tcp
mode: host
- target: 27020
published: 27020
protocol: udp
mode: host
restart: unless-stopped
volumes:
- "csgo_data:/home/steam/csgo"
- "./data_configs/csgo.cfg:/home/steam/csgo/csgo/cfg/server.cfg"
- "./data_configs/csgo_gamemode_casual_server.cfg:/home/steam/csgo/csgo/cfg/gamemode_casual_server.cfg"
- "./data_configs/csgo/gamemode_competitive_server.cfg:/home/steam/csgo/csgo/cfg/gamemode_competitive_server.cfg"
Docker logs:
csgo_1 | [----] Update complete, launching...
csgo_1 | CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 7 items discarded.
csgo_1 | max open descriptors set to 2048
csgo_1 | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
csgo_1 | /tmp/dumps insufficient permissions - delete and recreate
csgo_1 | [ 0%] Checking for available updates...
csgo_1 | [----] Verifying installation...
csgo_1 | [ 0%] Downloading update...
csgo_1 | [ 0%] Checking for available updates...
csgo_1 | [----] Download complete.
csgo_1 | [----] Extracting package...
csgo_1 | [----] Extracting package...
csgo_1 | [----] Extracting package...
csgo_1 | [----] Extracting package...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Installing update...
csgo_1 | [----] Cleaning up...
csgo_1 | [----] Update complete, launching Steamcmd...
csgo_1 | max open descriptors set to 2048
csgo_1 | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
csgo_1 | [ 0%] Checking for available updates...
csgo_1 | [----] Verifying installation...
csgo_1 | Steam Console Client (c) Valve Corporation - version 1642451655
csgo_1 | -- type 'quit' to exit --
csgo_1 | Loading Steam API...OK
csgo_1 |
csgo_1 | Connecting anonymously to Steam Public...OK
csgo_1 | Waiting for client config...OK
csgo_1 | Waiting for user info...OK
csgo_1 | Please use force_install_dir before logon!
csgo_1 | Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
csgo_1 | Update state (0x3) reconfiguring, progress: 0.00 (0 / 0)
csgo_1 | Error! App '740' state is 0x202 after update job.
csgo_1 | Installing plugins...
csgo_1 | Plugin mmsource-1.10.7-git971-linux.tar.gz is already installed, skipping
csgo_1 | Plugin sourcemod-1.10.0-git6478-linux.tar.gz is already installed, skipping
csgo_1 | Plugin SteamWorks-git131-linux.tar.gz is already installed, skipping
csgo_1 | Plugin download check FAILED for updater.smx
csgo_1 | Plugin practicemode_1.3.3.zip is already installed, skipping
csgo_1 | Plugin pugsetup_2.0.5.zip is already installed, skipping
csgo_1 | Plugin retakes_0.3.4.zip is already installed, skipping
csgo_1 | Plugin retakes-instadefuse.smx is already installed, skipping
csgo_1 | Plugin retakes_autoplant.smx is already installed, skipping
csgo_1 | Plugin retakes-hud.smx is already installed, skipping
csgo_1 | Finished installing plugins.
csgo_1 | grep: /home/steam/csgo/srcds_run: No such file or directory
csgo_1 | /bin/bash: /home/steam/csgo/srcds_run: No such file or directory
Service-definition from my docker-compose.yml:
csgo:
env_file: ./data_env/csgo.env
image: kmallea/csgo:latest
ports:
- target: 27015
published: 27015
protocol: tcp
mode: host
- target: 27015
published: 27015
protocol: udp
mode: host
- target: 27020
published: 27020
protocol: tcp
mode: host
- target: 27020
published: 27020
protocol: udp
mode: host
restart: unless-stopped
volumes:
- "csgo_data:/home/steam/csgo"
Log output:
csgo_1 | Redirecting stderr to '/home/steam/Steam/logs/stderr.txt'
csgo_1 | [ 0%] Checking for available updates...
csgo_1 | [----] Verifying installation...
csgo_1 | Steam Console Client (c) Valve Corporation
csgo_1 | -- type 'quit' to exit --
csgo_1 | Loading Steam API...Failed to init SDL priority manager: SDL not found
csgo_1 | Failed to set thread priority: per-thread setup failed
csgo_1 | OK.
csgo_1 | Failed to set thread priority: per-thread setup failed
csgo_1 |
csgo_1 | Connecting anonymously to Steam Public...Loaded client id: 18364441488310737475
csgo_1 | Listening for IPv4 broadcast on: 27036
csgo_1 | Logged in OK
csgo_1 | Waiting for user info...OK
csgo_1 | ERROR! Failed to install app '740' (Disk write failure)
csgo_1 | CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 2 items discarded.
csgo_1 | CWorkThreadPool::~CWorkThreadPool: work processing queue not empty: 3 items discarded.
csgo_1 | /home/steam/start.sh: line 33: /home/steam/csgo/csgo/cfg/autoexec.cfg: No such file or directory
csgo_1 | /home/steam/start.sh: line 44: /home/steam/csgo/csgo/cfg/server.cfg: No such file or directory
csgo_1 | Installing plugins...
csgo_1 | mkdir: cannot create directory ‘/home/steam/csgo/csgo’: Permission denied
csgo_1 | /bin/bash: /home/steam/csgo/srcds_run: No such file or directory
How do I interact with the server container spawned via docker compose? I want to type commands in the server console.
Hey!
Would you be able to update this script? Its insanely useful!
Thanks.
I get a working server from starting the image, but the .setup
chat command does not work.
It looks like the plugins are not loaded. Is there any additional configuration required to enable the plugins?
This is my docker-compose.yml:
version: "3"
networks:
csgo:
external: true
services:
dedicated:
networks:
- default
- csgo
image: kmallea/csgo
privileged: true
ports:
- "27015:27015/tcp"
- "27015:27015/udp"
- "27020:27020/tcp"
- "27020:27020/udp"
volumes:
- ./:/home/steam/csgo
environment:
STEAM_ACCOUNT: TOKEN
SERVER_PASSWORD: hehe
SERVER_HOSTNAME: asdasd
RCON_PASSWORD: pw123
IP: 0.0.0.0
PORT: 27015
LAN: 1
tty: true
I can see it in Local Network (LAN) in csgo, but cant connect, any idea?
I'm running this container using:
docker run -it -p 27015:27015/tcp -p 27015:27015/udp --env "LAN=1" kmallea/csgo:latest
When game is ready, from my CS:GO client I run:
connect 127.0.0.1:27015
The result is: Connection failed after 30 retries
Any idea?
Hello guys, i have a problem for install csgo server in docker
Error! App '740' state is 0x602 after update job.
src/clientdll/applicationmanager.cpp (1013) : Assertion Failed: m_bStateChangesSavedToDisk
cat: write error: No space left on device
cat: write error: No space left on device
Installing plugins...
Plugin mmsource-1.10.7-git971-linux.tar.gz is already installed, skipping
Plugin sourcemod-1.10.0-git6478-linux.tar.gz is already installed, skipping
Plugin SteamWorks-git131-linux.tar.gz is already installed, skipping
Plugin updater.smx is already installed, skipping
Plugin practicemode_1.3.3.zip is already installed, skipping
Plugin pugsetup_2.0.5.zip is already installed, skipping
Plugin retakes_0.3.4.zip is already installed, skipping
Plugin retakes-instadefuse.smx is already installed, skipping
Plugin retakes_autoplant.smx is already installed, skipping
Plugin retakes-hud.smx is already installed, skipping
Finished installing plugins.
ERROR: Source Engine binary './srcds_linux' not found, exiting
Tue Feb 9 18:23:45 UTC 2021: Server Failed
Here are the errors
thank's for help
Good day
Just like I can add SM_PUGSETUP_* to env and set pug settings, It would be nice to be able to do the same with autoexec.cfg.
Maybe something like
--env "AUTOEXEC_SV_COACHING_ENABLED=1"
Currently I'm a bit unsure where to set those manually as autoexec gets overriden.
Can you add a license to the repo? Also, I'm getting this error and can't connect to the server on LAN, any suggestions?
./srcds_run: 32: ./srcds_run: pushd: not found
./srcds_run: 35: ./srcds_run: popd: not found
Server will auto-restart if there is a crash.
LD_LIBRARY_PATH=/home/steam/csgo/bin:/home/steam/csgo:/home/steam/csgo/bin:
#Using breakpad minidump system
Using breakpad crash handler
#
#Console initialized.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Loading VPK file hashes for pure server operation.
#Game.dll loaded for "Counter-Strike: Global Offensive"
#CGameEventManager::AddListener: event 'server_pre_shutdown' unknown.
#CGameEventManager::AddListener: event 'game_newmap' unknown.
#CGameEventManager::AddListener: event 'finale_start' unknown.
#CGameEventManager::AddListener: event 'round_start' unknown.
#CGameEventManager::AddListener: event 'round_end' unknown.
#CGameEventManager::AddListener: event 'difficulty_changed' unknown.
#GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
Failed to load gamerulescvars.txt, game rules cvars might not be reported to management tools.
Server is hibernating
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
[S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.dll.
No web api auth key specified - workshop downloads will be disabled.
maxplayers set to 64
Unknown command "cl_bobamt_vert"
Unknown command "cl_bobamt_lat"
Unknown command "cl_bob_lower_amt"
Unknown command "cl_viewmodel_shift_left_amt"
Unknown command "cl_viewmodel_shift_right_amt"
Unknown command "cl_teamid_min"
Unknown command "cl_teamid_max"
Unknown command "cl_teamid_overhead"
Unknown command "cl_teamid_overhead_maxdist"
Setting mapgroup to 'mg_bomb'
Network: IP 172.17.0.46 ---- Host_NewGame ----
Host_NewGame on map de_dust2
GameTypes: missing mapgroupsSP entry for game type/mode (custom/custom).
ConVarRef room_type doesn't point to an existing ConVar
bot_autodifficulty_threshold_high - 2.0
bot_autodifficulty_threshold_low - -6.0
bot_chatter - normal
bot_defer_to_human_goals - 0
bot_defer_to_human_items - 1
bot_difficulty - 1
bot_quota - 10
bot_quota_mode - normal
bot_allow_grenades - 1
bot_allow_pistols - 1
bot_allow_sub_machine_guns - 1
bot_allow_shotguns - 1
bot_allow_rifles - 1
bot_allow_snipers - 1
bot_allow_machine_guns - 1
mp_playercashawards - 1
cash_player_bomb_defused - 300
cash_player_bomb_planted - 300
cash_player_damage_hostage - -30
cash_player_interact_with_hostage - 150
cash_player_killed_enemy_default - 300
cash_player_killed_enemy_factor - 1
cash_player_killed_hostage - -1000
cash_player_killed_teammate - -3300
cash_player_rescued_hostage - 1000
cash_player_respawn_amount - 0
cash_player_get_killed - 0
mp_teamcashawards - 1
cash_team_elimination_bomb_map - 3250
cash_team_elimination_hostage_map_t - 1000
cash_team_elimination_hostage_map_ct - 2000
cash_team_hostage_alive - 0
cash_team_hostage_interaction - 500
cash_team_loser_bonus - 1400
cash_team_loser_bonus_consecutive_rounds - 500
cash_team_planted_bomb_but_defused - 800
cash_team_rescued_hostage - 0
cash_team_terrorist_win_bomb - 3500
cash_team_win_by_defusing_bomb - 3250
cash_team_win_by_hostage_rescue - 3500
cash_team_win_by_time_running_out_bomb - 3250
cash_team_win_by_time_running_out_hostage - 3250
mp_afterroundmoney - 0
mp_buytime - 90
mp_buy_anywhere - 0
mp_buy_during_immunity - 0
mp_startmoney - 800
mp_maxmoney - 16000
mp_death_drop_defuser - 1
mp_death_drop_grenade - 2
mp_death_drop_gun - 1
mp_deathcam_skippable - 1
mp_defuser_allocation - 0
mp_give_player_c4 - 1
mp_free_armor - 0
mp_molotovusedelay - 15.0
mp_weapons_allow_zeus - 1
mp_weapons_allow_map_placed - 0
mp_weapons_glow_on_ground - 0
mp_ct_default_melee - weapon_knife
mp_ct_default_secondary - weapon_hkp2000
mp_ct_default_primary -
mp_ct_default_grenades -
mp_t_default_melee - weapon_knife
mp_t_default_secondary - weapon_glock
mp_t_default_primary -
mp_t_default_grenades -
mp_buy_allow_grenades - 1
mp_freezetime - 6
mp_force_pick_time - 15
mp_halftime - 0
mp_match_can_clinch - 1
mp_maxrounds - 0
mp_roundtime - 5
mp_roundtime_defuse - 0
mp_roundtime_hostage - 0
mp_timelimit - 5
mp_warmuptime - 30
mp_warmup_pausetimer - 0
mp_halftime_pausetimer - 0
mp_default_team_winner_no_objective - -1
mp_hostagepenalty - 10
mp_solid_teammates - 1
sv_allow_votes - 1
sv_alltalk - 0
sv_deadtalk - 0
sv_ignoregrenaderadio - 0
mp_teammates_are_enemies - 0
mp_damage_scale_ct_body - 1.0
mp_damage_scale_ct_head - 1.0
mp_damage_scale_t_body - 1.0
mp_damage_scale_t_head - 1.0
mp_friendlyfire - 0
ff_damage_reduction_bullets - 0.1
ff_damage_reduction_grenade - 0.25
ff_damage_reduction_grenade_self - 1
ff_damage_reduction_other - 0.25
mp_limitteams - 2
spec_freeze_panel_extended_time - 0.0
spec_freeze_time - 5.0
mp_forcecamera - 1
mp_respawn_immunitytime - 4.0
mp_respawn_on_death_t - 0
mp_respawn_on_death_ct - 0
mp_display_kill_assists - 1
mp_use_respawn_waves - 0
mp_respawnwavetime_ct - 10.0
mp_respawnwavetime_t - 10.0
mp_randomspawn - 0
mp_randomspawn_los - 1
mp_radar_showall - 0
sv_gravity - 800
sv_accelerate - 5.6
sv_stopspeed - 75
sv_airaccelerate - 12
sv_wateraccelerate - 10
sv_waterfriction - 1
sv_friction - 4.8
sv_bounce - 0
sv_maxvelocity - 3500
sv_maxspeed - 320
mp_ggprogressive_round_restart_delay - 15.0
mp_ggtr_bomb_defuse_bonus - 1.0
mp_ggtr_bomb_detonation_bonus - 1.0
mp_ggtr_bomb_pts_for_flash - 4
mp_ggtr_bomb_pts_for_he - 3
mp_ggtr_bomb_pts_for_molotov - 5
mp_ggtr_bomb_pts_for_upgrade - 2.0
mp_ggtr_bomb_respawn_delay - 0.0
mp_ggtr_end_round_kill_bonus - 1
mp_ggtr_halftime_delay - 0.0
mp_ggtr_last_weapon_kill_ends_half - 0
sv_arms_race_vote_to_restart_disallowed_after - 0
Executing dedicated server config file
exec: couldn't exec server.cfg
Unknown command "mp_deathcam_skippable"
exec: couldn't exec gamemode_casual_server.cfg
Commentary: Could not find commentary data file 'maps/de_dust2_commentary.txt'.
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Error parsing BotProfile.db - unknown attribute 'Rank'
Initializing Steam libraries for secure Internet server
[S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
Setting breakpad minidump AppID = 730
Forcing breakpad minidump interfaces to load
dlopen failed trying to load:
//.steam/sdk32/steamclient.so
with error:
//.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
dlopen failed trying to load:
//.steam/sdk32/steamclient.so
with error:
//.steam/sdk32/steamclient.so: cannot open shared object file: No such file or directory
Looking up breakpad interfaces from steamclient
Calling BreakpadMiniDumpSystemInit
Logging into anonymous gameserver account.
Connection to Steam servers successful.
Assigned anonymous gameserver Steam ID [A:1:2253777923(4418)].
VAC secure mode is activated.
GC Connection established for server version 0
�MasterRequestRestart
Your server needs to be restarted in order to receive the latest update.
Im kinda new to docker-desktop. I cant i can't figure it out how to add files to containerfs. I want to add some new maps and in future some cfg addons. Im using Windows with docker-desktop and PS.
tryed docker cp C:/test CSGOTEST:/containerfs
still nothing ;( can i get some tip? waisted all day with this
From my observation I can suggest calling ./srcds_run using "-port $PORT" where $PORT is environment variable you pass to ie. docker run -e PORT=1234
. CS:GO does not work when you are doing port forwarding - for example when you let Docker forward default 27015/udp port to a random port. And one more thing - "/srcds_run" should be run using /bin/bash explicitly because there is something complicated inside this script and because by default docker run
uses /bin/sh (on ubuntu image).
Best regards!
How is this image supposed to get updates? I see you include something called Updater, but I have no idea what that is, and your readme doesn't mention how updates happen (or are supposed to be done).
I see this:
csgo_1 | Updating server using Steam.
csgo_1 | ----------------------------
csgo_1 | /home/steam/csgo/srcds_run: line 301: ./steam.sh: No such file or directory
csgo_1 | ----------------------------
csgo_1 | Setting breakpad minidump AppID = 740
csgo_1 | Using breakpad crash handler
csgo_1 | Forcing breakpad minidump interfaces to load
csgo_1 | Looking up breakpad interfaces from steamclient
csgo_1 | Calling BreakpadMiniDumpSystemInit
csgo_1 | [S_API FAIL] SteamAPI_Init() failed; SteamAPI_IsSteamRunning() failed.
csgo_1 | [S_API FAIL] SteamAPI_Init() failed; unable to locate a running instance of Steam, or a local steamclient.so.
Followed by this:
csgo_1 | Your server is out of date and will be shutdown during hibernation or changelevel, whichever comes first.
csgo_1 | L 04/01/2020 - 09:31:07: Your server is out of date and will be shutdown during hibernation or changelevel, whichever comes first.
csgo_1 | Host state 5 at Wed Apr 1 09:31:07 2020
csgo_1 | -- sv_shutdown hibernating server right now.
csgo_1 | L 04/01/2020 - 09:31:07: [META] Loaded 0 plugins (1 already loaded)
csgo_1 | Host_ShutdownServer
csgo_1 | CBaseServer::Shutdown
csgo_1 | CSteam3Server::Shutdown
csgo_1 | NET_SteamGameServer_Shutdown
csgo_1 | SteamGameServer_Shutdown
csgo_1 | L 04/01/2020 - 09:31:08: server_message: "quit"
csgo_1 | L 04/01/2020 - 09:31:08: Log file closed
csgo_1 | L 04/01/2020 - 09:31:08: server_message: "restart"
csgo_1 | SV_ShutdownGameDLL
csgo_1 | Host_Shutdown
csgo_1 | Shutdown function NET_Shutdown() not in list!!!
csgo_1 | NET_Shutdown
csgo_1 | NET_CloseAllSockets
csgo_1 | NET_SteamGameServer_Shutdown
After i restarted the server it set a password and i don't know why ?
Hi,
I just started using this container to run a local CS:Go Server. But I am facing issues with autoexec.cfg and server.cfg being empty after more than one start of my container. I narrowed the problem down to the use of 'sed -i -n' introduced in #45 . There seems to be an issue / problem with the usage of sed -i -n that I do not fully understand but is quite easy to reproduce on my machine.
minusbrain@homer:~/dev/csgo(master)$ cat ~/.data/csgo/csgo/cfg/autoexec.cfg
log on
hostname "MyServer"
rcon_password "changeme"
sv_password "changeme"
sv_cheats 0
exec banned_user.cfg
exec banned_ip.cfg
minusbrain@homer:~/dev/csgo(master)$ sed -i -n 's/^hostname.*/hostname "MyNewServer"/' ~/.data/csgo/csgo/cfg/autoexec.cfg
minusbrain@homer:~/dev/csgo(master)$ cat ~/.data/csgo/csgo/cfg/autoexec.cfg
minusbrain@homer:~/dev/csgo(master)$
and if I only use 'sed -i' it works fine
minusbrain@homer:~/dev/csgo(master)$ cat ~/.data/csgo/csgo/cfg/autoexec.cfg
log on
hostname "MyServer"
rcon_password "changeme"
sv_password "changeme"
sv_cheats 0
exec banned_user.cfg
exec banned_ip.cfg
minusbrain@homer:~/dev/csgo(master)$ sed -i 's/^hostname.*/hostname "MyNewServer"/' ~/.data/csgo/csgo/cfg/autoexec.cfg
minusbrain@homer:~/dev/csgo(master)$ cat ~/.data/csgo/csgo/cfg/autoexec.cfg
log on
hostname "MyNewServer"
rcon_password "changeme"
sv_password "changeme"
sv_cheats 0
exec banned_user.cfg
exec banned_ip.cfg
minusbrain@homer:~/dev/csgo(master)$
The only reference I found on this online is a comment on a stackoverflow question here: https://stackoverflow.com/questions/5886564/what-actually-the-meaning-of-n-in-sed#comment87033580_5886611
This container should add a ENV option to add the launchflag -nomaster
if the server administrator wants to hide it from the master serverlist.
Seems to work just fine locally, but how do I host it online? I tried assigning it my IP, but then the logs just output the following, while restarting every 10 seconds:
WARNING: NET_OpenSocket: bind: Cannot assign requested address Couldn't allocate any server IP port, tried 1 addresses <IP REDACTED>Tue Apr 7 19:39:11 UTC 2020: Server restart in 10 seconds
Hey,
I can get the server running without problems via docker-compose, but the server always displays 64 tick, even though I configured 128 tick in the docker-compose (left the default value there). I also have a lot of yellow/red numbers when using net_graph ingame which might be part of the problem.
Any ideas on whats causing the problems or how to debug/test whats going on?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.