From fa31ec93c6fff5421874e85455583d4b5df4100f Mon Sep 17 00:00:00 2001 From: Andrew Marchukov Date: Thu, 17 Feb 2022 20:05:42 +0300 Subject: [PATCH] fixes (changelog in readme) --- AutoUpdater/restart-ins.sh | 2 +- Dockerfile | 4 ++-- README.md | 30 +++++++++++++++++++++++++----- config/ini/Engine.ini | 5 ----- config/ini/GameUserSettings.ini | 7 +++++++ modmap.env | 2 +- 6 files changed, 36 insertions(+), 14 deletions(-) create mode 100644 config/ini/GameUserSettings.ini diff --git a/AutoUpdater/restart-ins.sh b/AutoUpdater/restart-ins.sh index c5b0be9..2a4865b 100644 --- a/AutoUpdater/restart-ins.sh +++ b/AutoUpdater/restart-ins.sh @@ -2,7 +2,7 @@ docker stop sandstorm-modmap docker rm sandstorm-modmap docker pull andrewmhub/insurgency-sandstorm -docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \ +docker run -d --restart unless-stopped --env-file /home/user/coop-modmap/modmap.env \ --name sandstorm-modmap --net=host \ -v /home/user/coop-modmap/Mods:/home/steam/steamcmd/sandstorm/Insurgency/Mods:rw \ -v /home/user/coop-modmap/config/ini:/home/steam/steamcmd/sandstorm/Insurgency/Saved/Config/LinuxServer:ro \ diff --git a/Dockerfile b/Dockerfile index c3c7bb8..1dd3153 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,9 +18,9 @@ RUN apt-get update && apt-get install --no-install-recommends --no-install-s apt-get clean autoclean && \ apt-get autoremove -y && \ rm -rf /var/lib/{apt,dpkg} /var/{cache,log} && \ - su "steam" -c "./home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/steamcmd/sandstorm/ +app_update 581330 validate +quit && \ + su "steam" -c "./home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/steamcmd/sandstorm/ +login anonymous +app_update 581330 validate +quit && \ mkdir -p /home/steam/steamcmd/sandstorm/Insurgency/Saved/SaveGames" WORKDIR /home/steam/steamcmd USER steam -ENTRYPOINT /home/steam/steamcmd/steamcmd.sh +login anonymous +force_install_dir /home/steam/steamcmd/sandstorm/ +app_update 581330 +quit && \ +ENTRYPOINT /home/steam/steamcmd/steamcmd.sh +force_install_dir /home/steam/steamcmd/sandstorm/ +login anonymous +app_update 581330 +quit && \ /home/steam/steamcmd/sandstorm/Insurgency/Binaries/Linux/InsurgencyServer-Linux-Shipping -hostname="$HOSTNAME" -Port=$PORT -QueryPort=$QUERYPORT ${LAUNCH_SERVER_ENV} diff --git a/README.md b/README.md index ec2995c..17ee03d 100644 --- a/README.md +++ b/README.md @@ -9,6 +9,18 @@

+
+ Changelog + +``` +Feb 17, 2022 +some fixes in modmap.env +mod.io token moved from Engine.ini to GameUserSettings.ini (because NWI) +fixed steam warning in dockerfile "Please use force_install_dir before logon!" +changed readme +``` +
+ This repository contains a docker image with a dedicated server for Insurgency Sandstorm that you can fully customize to your need for COOP and PVP servers. This image will be build daily so you don’t have to update anything inside a container. I tried to build the image as “best-practice” as possible and to document everything for you. @@ -31,6 +43,14 @@ docker run -d --restart always --env-file /home/user/coop-modmap/modmap.env \ ``` Examples config files in directory [config](https://github.com/AndrewMarchukov/insurgency-sandstorm-server-dockerize/tree/master/config) +Optional launch options: + +```-NoEAC``` have problem with EAC just disable it + +```-nominidumps``` some crash dump handler that uploads crash information to insurgency devs servers this option disable it + + + ### docker-compose.yml example ```dockerfile version: '3.7' @@ -57,7 +77,7 @@ services: HOSTNAME=[ISMC] MOD MAPS ONLY @120hz PORT=12345 QUERYPORT=54321 -LAUNCH_SERVER_ENV=-MapCycle=MapCycle -Mods ModList=Mods.txt -mutators=ISMCarmory_legacy,ImprovedAI,NoRestrictedArea,ScaleBotAmount,AdvancedSupplyPoints,WelcomeMessage,JoinLeaveMessage,FpLegs,JumpShoot -GameStatsToken=my_token -GameStats -GSLTToken=my_token -ModDownloadTravelTo=TORO?Scenario=Scenario_TORO_Checkpoint_Security +LAUNCH_SERVER_ENV=-MapCycle=MapCycle -Mods -ModList=Mods.txt -mutators="ISMCarmory_legacy,ImprovedAI,NoRestrictedArea,ScaleBotAmount,AdvancedSupplyPoints,WelcomeMessage,JoinLeaveMessage,FpLegs,JumpShoot" -GameStatsToken=my_token -GameStats -GSLTToken=my_token -ModDownloadTravelTo=TORO?Scenario=Scenario_TORO_Checkpoint_Security ``` ## Server auto update @@ -65,9 +85,9 @@ Autoupdate game server. This script will keep your game servers automaticly upda Requirements: [rcon-cli](https://github.com/gorcon/rcon-cli/releases) ``` -wget https://github.com/gorcon/rcon-cli/releases/download/v0.9.1/rcon-0.9.1-amd64_linux.tar.gz -tar -xvzf rcon-0.9.1-amd64_linux.tar.gz -cp rcon-0.9.1-amd64_linux/rcon /usr/local/bin/ +wget https://github.com/gorcon/rcon-cli/releases/download/v0.10.1/rcon-0.10.1-amd64_linux.tar.gz +tar -xvzf rcon-0.10.1-amd64_linux.tar.gz +cp rcon-0.10.1-amd64_linux/rcon /usr/local/bin/ ``` Get restart script example @@ -93,7 +113,7 @@ systemctl start my-server-check.service ## Tips and Tricks ### How to save RAM on UE4 Linux(Docker) dedicated server -if you launch multiple servers on same host you can save some memory, on 2 servers more than 1gb memory saved. +if you launch multiple servers on same host you can save some memory, on 2 game servers more than 1gb memory saved. Make sure that parameter set on 1 after host reboot diff --git a/config/ini/Engine.ini b/config/ini/Engine.ini index dfd8502..d4c53a1 100644 --- a/config/ini/Engine.ini +++ b/config/ini/Engine.ini @@ -1,8 +1,3 @@ -[/Script/ModKit.ModIOClient] -bHasUserAcceptedTerms=True -bCachedUserDetails=True -AccessToken=my_token - [/Script/OnlineSubsystemUtils.IpNetDriver] MaxInternetClientRate=100000 MaxClientRate=100000 diff --git a/config/ini/GameUserSettings.ini b/config/ini/GameUserSettings.ini new file mode 100644 index 0000000..0168b4f --- /dev/null +++ b/config/ini/GameUserSettings.ini @@ -0,0 +1,7 @@ +[/Script/ModKit.ModIOClient] +bHasUserAcceptedTerms=True +AccessToken=write_here_modio_token +AccessExpiryTime=-1 +bCachedUserDetails=False +CachedUser=(ID=0,NameId="",Username="",DateOnline=0,Avatar=(Thumb_50x50="",Thumb_100x100="",Filename="",Original=""),Timezone="",Language="",ProfileUrl="") + diff --git a/modmap.env b/modmap.env index 43461db..4c59b7b 100644 --- a/modmap.env +++ b/modmap.env @@ -1,4 +1,4 @@ HOSTNAME=[ISMC] MOD MAPS ONLY @120hz PORT=12345 QUERYPORT=54321 -LAUNCH_SERVER_ENV=-MapCycle=MapCycle -Mods ModList=Mods.txt -mutators=ISMCarmory_legacy,ImprovedAI,NoRestrictedArea,ScaleBotAmount,AdvancedSupplyPoints,WelcomeMessage,JoinLeaveMessage -GameStatsToken=my_token -GameStats -GSLTToken=my_token -ModDownloadTravelTo=TORO?Scenario=Scenario_TORO_Checkpoint_Security +LAUNCH_SERVER_ENV=-MapCycle=MapCycle -Mods -ModList=Mods.txt -mutators="ISMCarmory_legacy,ImprovedAI,NoRestrictedArea,ScaleBotAmount,AdvancedSupplyPoints,WelcomeMessage,JoinLeaveMessage" -GameStatsToken=my_token -GameStats -GSLTToken=my_token -ModDownloadTravelTo=TORO?Scenario=Scenario_TORO_Checkpoint_Security