uploading draft dirs

This commit is contained in:
onimaro 2017-11-13 17:57:31 +11:00
commit 38df91b0ee
12 changed files with 155 additions and 0 deletions

9
ARK/ARK_maj.sh Executable file
View File

@ -0,0 +1,9 @@
#!/bin/bash
[ ! -r "$(dirname $0)/game.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/game.params" && exit 2
source $(dirname $0)/game.params
[ ! -d "${GAME_PATH}" ] && echo "Missing GAME_PATH ${GAME_PATH}" && exit 3
[ -z ${GAME_STEAMID} ] && "Missing App SteamID"
[ ! -d "${GAME_PATH}" ] && mkdir -p ${GAME_PATH}
echo "${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit"
${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit

10
ARK/ARK_server_start.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
[ ! -r "$(dirname $0)/game.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/game.params" && exit 2
source $(dirname $0)/game.params
[ ! -d ${LOG_PATH} ] && mkdir -p ${LOG_PATH}
[ ! -x ${GAME_BIN} ] && echo "Le binaire du jeu n'existe pas : ${GAME_BIN}"
echo "Lancemement du serveur..."
echo "${GAME_BIN} ${GAME_PARAMS}"
nohup ${GAME_BIN} ${GAME_PARAMS} >> ${LOG_PATH}/ark_server.log 2>> ${LOG_PATH}/ark_server.err &

7
ARK/game.params Normal file
View File

@ -0,0 +1,7 @@
GAME_NAME=ARK
GAME_STEAMID=376030
GAME_PATH=/jeux/Ark_dedicated
LOG_PATH=~/logs/${GAME_NAME}
STEAMCMD=/home/steamcmd/steamcmd.sh
GAME_BIN=${GAME_PATH}/ShooterGame/Binaries/Linux/ShooterGameServer
GAME_PARAMS='TheIsland?listen?Port=7779?QueryPort=27015?SessionName=PATATE_Onimaro -server -log'

5
DST/DST.params Normal file
View File

@ -0,0 +1,5 @@
GAME_NAME=DST
GAME_STEAMID=343050
GAME_PATH=/jeux/server_dst/
LOG_PATH=~/logs/${GAME_NAME}/
STEAMCMD=/home/steamcmd/steamcmd.sh

8
DST/DST_maj.sh Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
[ ! -r "$(dirname $0)/DST.params" ] && echo "Fichier de parameteres manquant : $(dirname $0)/DST.params" && exit 2
source $(dirname $0)/DST.params
[ ! -d "${GAME_PATH}" ] && echo "Missing GAME_PATH ${GAME_PATH}" && exit 3
[ -z ${GAME_STEAMID} ] && "Missing App SteamID"
echo "${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit"
${STEAMCMD} +login anonymous +force_install_dir ${GAME_PATH} +app_update ${GAME_STEAMID} +quit

29
DST/DST_server_start.sh Executable file
View File

@ -0,0 +1,29 @@
#!/bin/bash
serveur=$1
reset=$2
[ ${serveur} == "-h" ] && echo "Liste des serveurs :" && echo "$(ls ~steamcmd/.klei/DoNotStarveTogether/)" && exit 0
[ -z ${serveur} ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 1
[ ${serveur} == "-reset" ] && echo "XXX Parametre manquant : nom du serveur XXX" && exit 2
[ ! -z ${reset} ] && [ ${reset} != "-reset" ] && echo "Le deuxieme parametre doit etre -reset ou rien" && exit 3
echo
echo
echo "############################################"
echo "# #"
echo "# Demarrage des serveurs DST #"
echo "# #"
echo "############################################"
echo
echo " Serveur ${serveur}"
echo
[ ! -z ${reset} ] && [ ${reset} == "-reset" ] && echo "Remise a zero du serveur." && rm -rf ~steamcmd/.klei/DoNotStarveTogether/${serveur}Cluster/Master/save/session/* && rm -rf ~steamcmd/.klei/DoNotStarveTogether/${serveur}Cluster/Caves/save/session/*
echo
cd /jeux/server_dst/bin
echo
echo " --- Don't Starve Together, exterieur "
~steamcmd/scripts/DST/DST_shard_start.sh ${serveur} Master
sleep 15
echo
echo " ----- Don't Starve Together, caves "
~steamcmd/scripts/DST/DST_shard_start.sh ${serveur} Caves
echo "Serveur demarre"

10
DST/DST_shard_start.sh Executable file
View File

@ -0,0 +1,10 @@
#!/bin/bash
serveur=$1
shard=$2
[ -z ${serveur} ] && echo "XXX Missing parameter : server name XXX" && exit 1
[ -z ${shard} ] && echo "XXX Missing parameter : shard [dehors|caves] XXX" && exit 1
[ ${shard} != "Master" ] && [ ${shard} != "Caves" ] && echo "XXX Parameter error : shard [dehors|caves] XXX" && exit 1
mkdir -p ~steamcmd/logs/DST
nohup /jeux/server_dst/bin/dontstarve_dedicated_server_nullrenderer -console -cluster ${serveur}Cluster -shard ${shard} >> ~steamcmd/logs/DST/${serveur}_${shard}.out 2>>~steamcmd/logs/DST/${serveur}_${shard}.err &

View File

@ -0,0 +1,18 @@
#!/bin/bash
echo
echo
echo "############################################"
echo "# #"
echo "# Demarrage des serveurs DST #"
echo "# #"
echo "############################################"
echo
cd /home/steamcmd/server_dst/bin
echo
echo " --- Don't Starve Together, extérieur "
/home/steamcmd/server_dst/bin/start_server_caro_dehors.sh
sleep 15
echo " ----- Don't Starve Together, caves "
/home/steamcmd/server_dst/bin/start_server_caro_caves.sh
echo "Serveur demarré"

View File

@ -0,0 +1,18 @@
#!/bin/bash
echo
echo
echo "############################################"
echo "# #"
echo "# Demarrage des serveurs DST #"
echo "# #"
echo "############################################"
echo
cd /home/steamcmd/server_dst/bin
echo
echo " --- Don't Starve Together, extérieur "
/home/steamcmd/server_dst/bin/start_server_lapins_dehors.sh
sleep 15
echo " ----- Don't Starve Together, caves "
/home/steamcmd/server_dst/bin/start_server_lapins_caves.sh
echo "Serveur demarré"

View File

@ -0,0 +1,18 @@
#!/bin/bash
echo
echo
echo "############################################"
echo "# #"
echo "# Demarrage des serveurs DST #"
echo "# #"
echo "############################################"
echo
cd /home/steamcmd/server_dst/bin
echo
echo " --- Don't Starve Together, extérieur "
/home/steamcmd/server_dst/bin/start_server_dehors.sh
sleep 15
echo " ----- Don't Starve Together, caves "
/home/steamcmd/server_dst/bin/start_server_caves.sh
echo "Serveur demarré"

View File

@ -0,0 +1,20 @@
#!/bin/bash
echo
echo
echo "############################################"
echo "# #"
echo "# Demarrage des serveurs DST #"
echo "# Quatrieme #"
echo "############################################"
echo
cd /home/steamcmd/server_dst/bin
echo
echo
echo
echo " --- Don't Starve Together, extérieur "
/home/steamcmd/server_dst/bin/start_server_quatrieme_dehors.sh
sleep 15
echo " ----- Don't Starve Together, caves "
/home/steamcmd/server_dst/bin/start_server_quatrieme_caves.sh
echo "Serveur demarré"

3
add_game.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/bash