Browse Source

Merge branch 'develop' into server-instances

server-instances
Daniel Gibbs 4 years ago
parent
commit
ec12b456c7
  1. 13
      .editorconfig
  2. 22
      .gitattributes
  3. 12
      .github/FUNDING.yml
  4. 48
      .github/ISSUE_TEMPLATE/bug-report.md
  5. 42
      .github/ISSUE_TEMPLATE/feature-request.md
  6. 32
      .github/ISSUE_TEMPLATE/new-server-request.md
  7. 4
      .github/issue_label_bot.yaml
  8. 13
      .github/potential-duplicates.yml
  9. 34
      .github/pull_request_template.md
  10. 4
      .github/release-drafter.yml
  11. 4
      .github/topissuebot.yml
  12. 17
      .github/workflows/create-release.yml
  13. 26
      .github/workflows/git-sync.yml
  14. 21
      .github/workflows/lock.yml
  15. 4
      .github/write-good.yml
  16. 2
      .gitignore
  17. 52
      .travis.yml
  18. 129
      7DaysToDie/sdtdserver
  19. 126
      ARKSurvivalEvolved/arkserver
  20. 135
      ARKSurvivalEvolved/cfg/lgsm-default.ini
  21. 141
      Arma3/arma3server
  22. 77
      Arma3/cfg/lgsm-default.network.cfg
  23. 122
      Arma3/cfg/lgsm-default.server.cfg
  24. 132
      BlackMesa/bmdmserver
  25. 24
      BlackMesa/cfg/lgsm-default.cfg
  26. 132
      BladeSymphony/bsserver
  27. 15
      BladeSymphony/cfg/lgsm-default.cfg
  28. 73
      CODE_OF_CONDUCT.md
  29. 219
      CONTRIBUTING.md
  30. 132
      ChivalryMedievalWarfare/cmwserver
  31. 38
      CounterStrike/cfg/lgsm-default.cfg
  32. 132
      CounterStrike/csserver
  33. 38
      CounterStrikeConditionZero/cfg/lgsm-default.cfg
  34. 132
      CounterStrikeConditionZero/csczserver
  35. 23
      CounterStrikeGlobalOffensive/cfg/lgsm-default.cfg
  36. 155
      CounterStrikeGlobalOffensive/csgoserver
  37. 15
      CounterStrikeSource/cfg/lgsm-default.cfg
  38. 132
      CounterStrikeSource/cssserver
  39. 38
      DayOfDefeat/cfg/lgsm-default.cfg
  40. 132
      DayOfDefeat/dodserver
  41. 38
      DayOfDefeatSource/cfg/lgsm-default.cfg
  42. 132
      DayOfDefeatSource/dodsserver
  43. 35
      DeathmatchClassic/cfg/lgsm-default.cfg
  44. 132
      DeathmatchClassic/dmcserver
  45. 126
      DontStarveTogether/dstserver
  46. 39
      DontStarveTogether/lgsm-default.ini
  47. 15
      DoubleActionBoogaloo/cfg/lgsm-default.cfg
  48. 132
      DoubleActionBoogaloo/dabserver
  49. BIN
      DoubleActionBoogaloo/dependencies/libm.so.6
  50. 124
      FistfulOfFrags/cfg/lgsm-default.cfg
  51. BIN
      FistfulOfFrags/dependencies/libm.so.6
  52. 132
      FistfulOfFrags/fofserver
  53. 123
      GameServerQuery/gsquery.py
  54. 86
      GarrysMod/cfg/lgsm-default.cfg
  55. BIN
      GarrysMod/dependencies/libc.so.6
  56. BIN
      GarrysMod/dependencies/libm.so.6
  57. BIN
      GarrysMod/dependencies/libpthread.so.0
  58. BIN
      GarrysMod/dependencies/libstdc++.so.6
  59. 138
      GarrysMod/gmodserver
  60. 15
      HalfLife2Deathmatch/cfg/lgsm-default.cfg
  61. 132
      HalfLife2Deathmatch/hl2dmserver
  62. 35
      HalfLifeDeathmatch/cfg/lgsm-default.cfg
  63. 131
      HalfLifeDeathmatch/hldmserver
  64. 15
      HalfLifeDeathmatchSource/cfg/lgsm-default.cfg
  65. 132
      HalfLifeDeathmatchSource/hldmsserver
  66. 125
      Insurgency/cfg/lgsm-default.cfg
  67. BIN
      Insurgency/dependencies/libc.so.6
  68. BIN
      Insurgency/dependencies/libm.so.6
  69. BIN
      Insurgency/dependencies/libpthread.so.0
  70. BIN
      Insurgency/dependencies/librt.so.1
  71. 132
      Insurgency/insserver
  72. 179
      JustCause2/cfg/config.lua
  73. 125
      JustCause2/jc2server
  74. 134
      KillingFloor/kfserver
  75. 5
      LICENSE
  76. 15
      Left4Dead/cfg/lgsm-default.cfg
  77. 132
      Left4Dead/l4dserver
  78. 15
      Left4Dead2/cfg/lgsm-default.cfg
  79. 131
      Left4Dead2/l4d2server
  80. 112
      Mumble/mumbleserver
  81. BIN
      NS2Combat/dependencies/libc.so.6
  82. BIN
      NS2Combat/dependencies/libm.so.6
  83. BIN
      NS2Combat/dependencies/libstdc++.so.6
  84. 137
      NS2Combat/ns2cserver
  85. BIN
      NaturalSelection2/dependencies/libc.so.6
  86. BIN
      NaturalSelection2/dependencies/libm.so.6
  87. BIN
      NaturalSelection2/dependencies/libstdc++.so.6
  88. 137
      NaturalSelection2/ns2server
  89. 121
      NoMoreRoomInHell/cfg/lgsm-default.cfg
  90. BIN
      NoMoreRoomInHell/dependencies/libm.so.6
  91. 132
      NoMoreRoomInHell/nmrihserver
  92. 35
      OpposingForce/cfg/lgsm-default.cfg
  93. 132
      OpposingForce/opforserver
  94. 119
      PiratesVikingandKnightsII/cfg/lgsm-default.cfg
  95. 132
      PiratesVikingandKnightsII/pvkiiserver
  96. 46
      ProjectZomboid/cfg/servertest.ini
  97. 126
      ProjectZomboid/pzserver
  98. 104
      README.md
  99. 130
      RedOrchestra/roserver
  100. 35
      Ricochet/cfg/lgsm-default.cfg

13
.editorconfig

@ -0,0 +1,13 @@
# EditorConfig helps developers define and maintain consistent coding styles between different editors and IDEs.
# Atom: Please assure your Atom's config setting Tab Type is set to auto, otherwise Atom-EditorConfig may not work as expected. Also disable whitespace package.
# http://editorconfig.org/
root = true
[*]
charset = utf-8
indent_style = tab
indent_size = 4
trim_trailing_whitespace = true
end_of_line = lf
insert_final_newline = true

22
.gitattributes

@ -0,0 +1,22 @@
# crlf line endings for text files
* text eol=lf
# Denote all files that are truly binary and should not be modified.
*.png binary
*.jpg binary
*.so.6 binary
# Custom for Visual Studio
*.cs diff=csharp
# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain

12
.github/FUNDING.yml

@ -0,0 +1,12 @@
# These are supported funding model platforms
github: dgibbs64 # Replace with up to 4 GitHub Sponsors-enabled usernames e.g., [user1, user2]
patreon: # Replace with a single Patreon username
open_collective: # Replace with a single Open Collective username
ko_fi: # Replace with a single Ko-fi username
tidelift: # Replace with a single Tidelift platform-name/package-name e.g., npm/babel
community_bridge: # Replace with a single Community Bridge project-name e.g., cloud-foundry
liberapay: # Replace with a single Liberapay username
issuehunt: # Replace with a single IssueHunt username
otechie: # Replace with a single Otechie username
custom: [paypal.me/dgibbs64] # Replace with a single custom sponsorship URL

48
.github/ISSUE_TEMPLATE/bug-report.md

@ -0,0 +1,48 @@
---
name: Bug Report
about: Found a bug? Raise a report.
title: "[BUG]"
labels: 'type: bug'
assignees: ''
---
Issues raised here are **ONLY** for:
* LinuxGSM bugs.
* Feature suggestions.
* Code contributions.
Issues raised here are **NOT** for:
* General support.
* Specific game server issues (e.g CS:GO, TF2).
* Dedicated server issues (e.g Ubuntu, CentOS).
* Anything not directly related to LinuxGSM development.
For general support visit the **[LinuxGSM-Support](https://linuxgsm.com/support)**.
***Please use the template below, deleting the above text***
## User Story
As a [user description], I want [desired action] so that [desired outcome].
## Basic info
* **Distro:** [Ubuntu 18.04]
* **Game:** [Garry's Mod]
* **Command:** [Monitor]
* **LinuxGSM version:** [v20.1.3]
## Further Information
A clear description of what the bug is and any ideas on how to resolve it. Plus any further context that might be relevant to the issue.
## To Reproduce
Steps to reproduce the behaviour:
1. Go to '...'
2. Click on '....'
3. Scroll down to '....'
4. See error
## Expected behaviour

42
.github/ISSUE_TEMPLATE/feature-request.md

@ -0,0 +1,42 @@
---
name: Feature Request
about: Suggest an idea for LinuxGSM.
title: "[FEATURE]"
labels: 'type: feature request'
assignees: ''
---
Issues raised here are **ONLY** for:
* LinuxGSM bugs.
* Feature suggestions.
* Code contributions.
Issues raised here are **NOT** for:
* General support.
* Specific game server issues (e.g CS:GO, TF2).
* Dedicated server issues (e.g Ubuntu, CentOS).
* Anything not directly related to LinuxGSM development.
For general support visit the **[LinuxGSM Support](https://linuxgsm.com/support)** page.
***Please use the template below, deleting the above text***
## User Story
As a [user description], I want [desired action] so that [desired outcome].
## Basic info
* **Distro:** [Ubuntu 20.04]
* **Game:** [Garry's Mod]
* **Command:** [Monitor]
* **LinuxGSM version:** [v20.1.3]
## Further Information
A clear description of what the feature is and any ideas on how to achieve this.
## Further Reading
Provide any useful documentation or resources that might help.

32
.github/ISSUE_TEMPLATE/new-server-request.md

@ -0,0 +1,32 @@
---
name: New Server Request
about: Suggest a new game server to be added.
title: "[Server Request]"
labels: 'type: game server request'
assignees: ''
---
## What game server would you like adding?
[game server]
## Can you link to any tutorials or guides?
Provide any useful documentation or resources that might help.
## Is the server on Steam?
* [ ] Yes
* [ ] No
If yes Use SteamDB to get the appid. (https://steamdb.info).
[appid]
## Is the server supported on Linux?
We only support Linux servers and do **not** support Wine.
* [ ] Yes
* [ ] No

4
.github/issue_label_bot.yaml

@ -0,0 +1,4 @@
label-alias:
bug: 'type: bug'
feature_request: 'type: feature request'
question: 'question'

13
.github/potential-duplicates.yml

@ -0,0 +1,13 @@
# Label name and color to set, when potential duplicates are detected
issueLabel: "duplicate"
labelColor: 579e01
# If similarity is higher than this threshold, issue will be marked as duplicate
threshold: 0.60
# Comment to post when potential duplicates are detected
referenceComment: >
Potential duplicates:
{{#issues}}
- [#{{ number }}] {{ title }} ({{ accuracy }}%)
{{/issues}}

34
.github/pull_request_template.md

@ -0,0 +1,34 @@
# Description
Please include a summary of the change and which issues are fixed.
Fixes #[issue]
## Type of change
* [ ] Bug fix (a change which fixes an issue).
* [ ] New feature (change which adds functionality).
* [ ] New Server (new server added).
* [ ] Refactor (restructures existing code).
* [ ] Comment update (typo, spelling, explanation, examples, etc).
## Checklist
PR will not be merged until all steps are complete.
* [ ] This pull request links to an issue.
* [ ] This pull request uses the `develop` branch as its base.
* [ ] This pull request Subject follows the Conventional Commits standard.
* [ ] This code follows the style guidelines of this project.
* [ ] I have performed a self-review of my code.
* [ ] I have checked that this code is commented where required.
* [ ] I have provided a detailed with enough description of this PR.
* [ ] I have checked If documentation needs updating.
## Documentation
If documentation does need updating either update it by creating a PR (preferred) or request a documentation update.
* User docs: https://github.com/GameServerManagers/LinuxGSM-Docs
* Dev docs: https://github.com/GameServerManagers/LinuxGSM-Dev-Docs
**Thank you for your Pull Request!**

4
.github/release-drafter.yml

@ -0,0 +1,4 @@
template: |
## What’s Changed
$CHANGES

4
.github/topissuebot.yml

@ -0,0 +1,4 @@
# Configuration for top-issue-bot
labelName: ":thumbsup: Top Issue!"
labelColor: "f442c2"
numberOfIssuesToLabel: 5

17
.github/workflows/create-release.yml

@ -0,0 +1,17 @@
name: Release Drafter
on:
push:
# branches to consider in the event; optional, defaults to all
branches:
- master
jobs:
update_release_draft:
runs-on: ubuntu-latest
steps:
# Drafts your next Release notes as Pull Requests are merged into "master"
- uses: release-drafter/release-drafter@v5
with:
config-name: release-drafter.yml
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

26
.github/workflows/git-sync.yml

@ -0,0 +1,26 @@
name: Github to Bitbucket sync
# This action will sync the github repo with a backup bitbucket repo.
# This will allow LinuxGSM to use Bitbucket as and alternative download if github fails.
on:
push:
branches:
- master
- 'develop'
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- name: webfactory/ssh-agent
uses: webfactory/ssh-agent@v0.4.1
with:
ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
- name: repo-sync
uses: wei/git-sync@v2.1.0
with:
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
source_repo: "https://github.com/GameServerManagers/LinuxGSM"
source_branch: "refs/heads/*"
destination_repo: "git@bitbucket.org:GameServerManagers/linuxgsm.git"
destination_branch: "refs/heads/*"

21
.github/workflows/lock.yml

@ -0,0 +1,21 @@
name: 'Lock Threads'
on:
schedule:
- cron: '0 0 * * *'
jobs:
lock:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
issue-lock-comment: >
This issue has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.
pr-lock-comment: >
This pull request has been automatically locked since there
has not been any recent activity after it was closed.
Please open a new issue for related bugs.

4
.github/write-good.yml

@ -0,0 +1,4 @@
# .github/write-good.yml
writeGood: true
alex: true
spellchecker: true

2
.gitignore

@ -1,2 +1,2 @@
*.db
.idea
.idea

52
.travis.yml

@ -1,26 +1,44 @@
language: bash
sudo: false
language: node_js
dist: bionic
node_js:
- "stable"
env:
- DISTRO=ubuntu-trusty
global:
secure: VsS98cwJ5X/Ev3HEm7KEOPftYay+7jNTHepTS7d+gQNHcDR1UYKTmqlQNSIoUC52Ejs1cHq43jOfle4330zDPOYI0v5BMri6/iZKpmMxAw6KWNiUgSkziTP2kHC4NRLwEoU2WQTI3JZQjrBEfsPmD81+yR/eWXV3rph+YcSOxao=
before_script:
- curl -L "https://shunit2.googlecode.com/files/shunit2-2.1.6.tgz" | tar zx
- curl -L "https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shunit2/shunit2-2.1.6.tgz" | tar zx
install:
- npm install gamedig
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- tmux
- mailutils
- postfix
- lib32gcc1
- libstdc++6
- libstdc++6:i386
- telnet
- expect
script:
- postfix
- jq
- lib32gcc1
- lib32stdc++6
- shellcheck
- libcurl4-openssl-dev
- libdw-dev
- cmake
- bash tests/tests_jc2server.sh
- bash tests/tests_ts3server.sh
jobs:
include:
- stage: "Jobs"
name: "code coverage"
script: bash tests/tests_kcov.sh; kcov --bash-method=DEBUG coverage tests/tests_mcserver.sh
- script: bash tests/tests_mcserver.sh
name: "Minecraft"
- script: bash tests/tests_jc2server.sh
name: "Just Cause 2"
- script: bash tests/tests_fctrserver.sh
name: "Factorio"
- script: bash tests/tests_ts3server.sh
name: "Teamspeak 3"
- script: bash tests/tests_defaultcfg/tests_defaultcfg.sh
name: "_default.cfg checks"
after_success:
- bash <(curl -Ls https://coverage.codacy.com/get.sh)

129
7DaysToDie/sdtdserver

@ -1,129 +0,0 @@
#!/bin/bash
# 7 Days To Die
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
ip="0.0.0.0"
updateonstart="off"
# http://7daystodie.gamepedia.com/Server
fn_parms(){
parms="-configfile=${servercfgfullpath} -dedicated"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="294420"
# Server Details
servicename="sdtd-server"
gamename="7 Days To Die"
engine="unity3d"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./startserver.sh"
servercfg="${servicename}.xml"
servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/serverconfig.xml"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${rootdir}/log/server"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
gamelog="${gamelogdir}/${servicename}-game.log"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

126
ARKSurvivalEvolved/arkserver

@ -1,126 +0,0 @@
#!/bin/bash
# ARK: Survivial Evolved
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms="TheIsland?listen"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="376030"
# Server Details
servicename="ark-server"
gamename="ARK: Survivial Evolved"
engine="unreal4"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/ShooterGame"
executabledir="${systemdir}/Binaries/Linux"
executable="./ShooterGameServer"
servercfgdir="${systemdir}/Saved/Config/LinuxServer"
servercfg="GameUserSettings.ini"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.ini"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

135
ARKSurvivalEvolved/cfg/lgsm-default.ini

@ -1,135 +0,0 @@
[ServerSettings]
AllowFlyerCarryPvE=False
AllowThirdPersonPlayer=False
AlwaysNotifyPlayerLeft=False
AutoSavePeriodMinutes=15.000000
ClampResourceHarvestDamage=False
DayCycleSpeedScale=1.000000
DayTimeSpeedScale=1.000000
DifficultyOffset=0.200000
DinoCharacterFoodDrainMultiplier=1.000000
DinoCharacterHealthRecoveryMultiplier=1.000000
DinoCharacterStaminaDrainMultiplier=1.000000
DinoCountMultiplier=1.000000
DinoDamageMultiplier=1.000000
DinoResistanceMultiplier=1.000000
DisableStructureDecayPvE=False
DontAlwaysNotifyPlayerJoined=False
EnablePvPGamma=False
GlobalVoiceChat=False
HarvestAmountMultiplier=1.000000
HarvestHealthMultiplier=1.000000
KickIdlePlayersPeriod=2400.000000
NewMaxStructuresInRange=6000.000000
NightTimeSpeedScale=1.000000
NoTributeDownloads=False
PlayerCharacterFoodDrainMultiplier=1.000000
PlayerCharacterHealthRecoveryMultiplier=1.000000
PlayerCharacterStaminaDrainMultiplier=1.000000
PlayerCharacterWaterDrainMultiplier=1.000000
PlayerDamageMultiplier=1.000000
PlayerResistanceMultiplier=1.000000
ProximityChat=False
ProximityVoiceChat=False
PvEStructureDecayDestructionPeriod=0.000000
PvEStructureDecayPeriodMultiplier=1.000000
RCONEnabled=True
RCONPort=32330
ResourcesRespawnPeriodMultiplier=1.000000
ServerAdminPassword=adminpassword
ServerCrosshair=False
ServerForceNoHUD=False
ServerHardcore=False
ServerPassword=
ServerPVE=False
ShowMapPlayerLocation=False
StructureDamageMultiplier=1.000000
StructureResistanceMultiplier=1.000000
TamedDinoDamageMultiplier=1.000000
TamedDinoResistanceMultiplier=1.000000
TamingSpeedMultiplier=1.000000
XPMultiplier=1.000000
[/Script/ShooterGame.ShooterGameUserSettings]
MasterAudioVolume=1.000000
MusicAudioVolume=1.000000
SFXAudioVolume=1.000000
VoiceAudioVolume=1.000000
CameraShakeScale=1.000000
bFirstPersonRiding=False
bThirdPersonPlayer=False
bShowStatusNotificationMessages=True
TrueSkyQuality=0.270000
FOVMultiplier=1.000000
GroundClutterDensity=1.000000
bFilmGrain=False
bMotionBlur=True
bUseDFAO=True
bUseSSAO=True
bShowChatBox=True
bCameraViewBob=True
bInvertLookY=False
bFloatingNames=True
bChatBubbles=True
bHideServerInfo=False
bJoinNotifications=False
bCraftablesShowAllItems=True
LookLeftRightSensitivity=1.000000
LookUpDownSensitivity=1.000000
GraphicsQuality=2
ActiveLingeringWorldTiles=10
ClientNetQuality=3
LastServerSearchType=0
LastServerSearchHideFull=False
LastServerSearchProtected=False
HideItemTextOverlay=False
bDistanceFieldShadowing=True
LODScalar=1.000000
HighQualityMaterials=True
HighQualitySurfaces=True
bTemperatureF=False
bDisableTorporEffect=False
bChatShowSteamName=False
bChatShowTribeName=True
EmoteKeyBind1=0
EmoteKeyBind2=0
bUseVSync=False
ResolutionSizeX=1280
ResolutionSizeY=720
LastUserConfirmedResolutionSizeX=1280
LastUserConfirmedResolutionSizeY=720
WindowPosX=-1
WindowPosY=-1
bUseDesktopResolutionForFullscreen=False
FullscreenMode=2
LastConfirmedFullscreenMode=2
Version=5
[ScalabilityGroups]
sg.ResolutionQuality=100
sg.ViewDistanceQuality=3
sg.AntiAliasingQuality=3
sg.ShadowQuality=3
sg.PostProcessQuality=3
sg.TextureQuality=3
sg.EffectsQuality=3
sg.TrueSkyQuality=3
sg.GroundClutterQuality=3
sg.IBLQuality=1
sg.HeightFieldShadowQuality=3
[SessionSettings]
SessionName=arkserver
QueryPort=27015
Port=7777
;MultiHome=INSERT_IPv4_HERE ;Example:192.168.0.9. If not just remove any line containing MultiHome.
[/Script/Engine.GameSession]
MaxPlayers=127
[MultiHome]
;MultiHome=True ;If MultiHome=IPv4 is filled in. If not just remove any line containing MultiHome.
[MessageOfTheDay]
Message=Welcome to ARK Server
Duration=5

141
Arma3/arma3server

@ -1,141 +0,0 @@
#!/bin/bash
# ARMA 3
# Server Management Script
# Author: Daniel Gibbs
# Contributor: Scarsz
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms="-netlog -ip=${ip} -cfg=${networkcfgfullpath} -config=${servercfgfullpath} -mod=${mods}"
}
# ARMA 3 Modules
# add mods with relative paths:
# mods/\@CBA_A3\;
# or several mods as:
# mods/\@CBA_A3\;mods/\@task_force_radio
# and chmod modules directories to 775
mods=""
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
# Stable
appid="233780"
# Development
# appid="233780 -beta development"
# Server Details
servicename="arma3-server"
gamename="ARMA 3"
engine="realvirtuality"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./arma3server"
servercfg="${servicename}.server.cfg"
networkcfg="${servicename}.network.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
networkcfgfullpath="${servercfgdir}/${networkcfg}"
servercfgdefault="${servercfgdir}/lgsm-default.server.cfg"
networkcfgdefault="${servercfgdir}/lgsm-default.network.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

77
Arma3/cfg/lgsm-default.network.cfg

@ -1,77 +0,0 @@
//
// network.cfg - Defines network tuning parameters
//
// This file is to be passed to the -cfg parameter on the command line for the server
// See http://community.bistudio.com/wiki/basic.cfg
// The following settings are the suggested settings
// BANDWIDTH SETTINGS
// Bandwidth the server is guaranteed to have (in bps)
// General guideline is NumberOfPlayers * 256kb
// Default: 131072
MinBandwidth=5120000;
// Bandwidth the server can never go above (in bps)
// For a single server, use full network speed; decrease when running multiple servers
MaxBandwidth=10240000;
// PACKET SETTINGS
// Maximum number of packets per frame.
// Increasing the value potentially decreases lag, but increases desync
// Default: 128
MaxMsgSend=2048;
// Maximum payload of guaranteed packet (in b)
// Small messages are packed to larger packets
// Guaranteed packets are used for non-repetitive events, like shooting
// Lower value means more packets are sent, so less events will get combined
// Default: 512
MaxSizeGuaranteed=512;
// Maximum payload of non-guaranteed packet (in b)
// Increasing this value may improve bandwidth requirement, but may also increase lag
// Largest factor in desync
// Guidance is half of MaxSizeGuaranteed
// Default: 256
MaxSizeNonguaranteed=256;
// Maximal size of a packet sent over the network
// Only necessary if ISP forces lower packet size and there are connectivity issues
// Default: 1400
// class sockets{maxPacketSize=1400};
// SMOOTHNESS SETTINGS
// Minimal error required to send network updates for far units
// Smaller values will make for smoother movement at long ranges, but will increase network traffic
// Default: 0.003
MinErrorToSend=0.01;
// Minimal error required to send network updates for near units
// Using larger value can reduce traffic sent for near units
// Also controls client to server traffic
// Default: 0.01
MinErrorToSendNear=0.02;
// GEOLOCATION SETTINGS
// Server latitude
serverLatitude=52;
serverLatitudeAuto=52;
// Server Longitude
serverLongitude=0;
serverLongitudeAuto=0;
// MISC
// View Distance (not sure if this actually works)
viewDistance=10000;
// Maximum size (in b) for custom face or sound files
// Default: 0
MaxCustomFileSize=0;
// Server language
language="English";
steamLanguage="English";
// Adapter
adapter=-1;
// Windowed mode
Windowed=0;
3D_Performance=1.000000;

122
Arma3/cfg/lgsm-default.server.cfg

@ -1,122 +0,0 @@
// ArmA 3 Server Config File
//
// More info about parameters:
// https://community.bistudio.com/wiki/server.cfg
// PORTS
// Server Port
// default: 2302.
serverport=2302;
// Steam Master Port
// default: 2304.
steamport=2304;
// Steam Query Port
// default: 2303.
steamqueryport=2303;
// GENERAL SETTINGS
// Server Name
hostname = "arma3server";
// Server Password
//password = "arma3pass";
// Admin Password
passwordAdmin = "arma3adminpass";
// Server Slots
maxPlayers = 32;
// Logfile
logFile = "arma3server.log";
// Minimum Required Client Build
//requiredBuild = 95691
// Message of the Day (MOTD)
motd[]={
"Welcome to My Arma 3 Server",
"TS3 Server: teamspeak.somewhere.com",
"Web: www.example.com"
};
// MOTD Interval (Seconds)
motdInterval = 30;
// VOTING
// Server Mission Start
// minimum number of clients before server starts mission
voteMissionPlayers = 1;
// Accepted Vote Threshold
// 0.33 = 33% clients.
voteThreshold = 0.33;
// INGAME SETTINGS
// Disable Voice over Net (VoN)
// 0 = voice enabled.
// 1 = voice disabled.
disableVoN = 0;
// VoN Codec Quality
// 0-10 = 8kHz (narrowband).
// 11-20 = 16kHz (wideband).
// 21-30 = 32kHz (ultrawideband).
vonCodecQuality = 3;
//Persistent Battlefield
// 0 = disable.
// 1 = enable.
persistent = 1;
// Time Stamp Format
// none, short, full
timeStampFormat = "short";
// SERVER SECURITY/ANTI HACK
// Verify Signitures for Client Addons
// 0 = off.
// 1 = weak protection (depricated).
// 2 = full protection.
verifySignatures = 2;
// Secure Player ID
// 1 = Server warning message.
// 2 = Kick client.
requiredSecureId = 2;
// Kick Duplicate Player IDs
kickDuplicate = 1;
// BattlEye Anti-Cheat
// 0 = disable
// 1 = enable
BattlEye = 1;
// Allowed File Extentions
allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"};
allowedHTMLLoadExtensions[] = {"htm","html","xml","txt"};
// SCRIPTING ISSUES
onUserConnected = ""; //
onUserDisconnected = ""; //
doubleIdDetected = ""; //
// SIGNATURE VERIFICATION
// kick = kick (_this select 0)
// ban = ban (_this select 0)
onUnsignedData = "kick (_this select 0)";
onHackedData = "kick (_this select 0)";
onDifferentData = "";

132
BlackMesa/bmdmserver

@ -1,132 +0,0 @@
#!/bin/bash
# Black Mesa: Deathmatch
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="dm_bounce"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game bms -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="346680"
# Server Details
servicename="bmdm-server"
gamename="Black Mesa: Deathmatch"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/bms"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

24
BlackMesa/cfg/lgsm-default.cfg

@ -1,24 +0,0 @@
// Black Mesa server.cfg file
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
mp_timelimit 900
mp_warmup_time 30
// sv_lan 0
// mp_flashlight 1
// mp_forcerespawn 0
// mp_friendlyfire 0
// mp_fraglimit 45

132
BladeSymphony/bsserver

@ -1,132 +0,0 @@
#!/bin/bash
# Blade Symphony
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
defaultmap="duel_winter"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-autoupdate -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="228780"
# Server Details
servicename="bs-server"
gamename="Blade Symphony"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/berimbau"
executabledir="${filesdir}"
executable="./srcds_run.sh"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

15
BladeSymphony/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

73
CODE_OF_CONDUCT.md

@ -0,0 +1,73 @@
# Contributor Covenant Code of Conduct
## Our Pledge
In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, sex characteristics, gender identity and expression,
level of experience, education, socio-economic status, nationality, personal
appearance, race, religion, or sexual identity and orientation.
## Our Standards
Examples of behavior that contributes to creating a positive environment
include:
* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members
Examples of unacceptable behavior by participants include:
* The use of sexualized language or imagery and unwelcome sexual attention or advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a professional setting
## Our Responsibilities
Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.
Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.
## Scope
This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.
## Enforcement
Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team at me@danielgibbs.co.uk. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.
Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.
## Attribution
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
[homepage]: https://www.contributor-covenant.org
For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq

219
CONTRIBUTING.md

@ -0,0 +1,219 @@
# Contributing to LinuxGSM
👍🎉 Thank you for taking the time to contribute! 🎉👍
The following is a set of guidelines for contributing to LinuxGSM, which are hosted in the [GameServerManagers Organization](https://github.com/gameservermanagers) on GitHub. These are mostly guidelines, not rules. Use your best judgment, and feel free to propose changes to this document in a pull request.
## Table of Contents
[Contributing to LinuxGSM](#contributing-to-linuxgsm)
* [Table of Contents](#table-of-contents)
* [Code of Conduct](#code-of-conduct)
* [🎉 Bug/Enhancement Contributions 🐛](#bug-enhancement-contributions)
+ [🐛Reporting Bugs](#reporting-bugs)
- [Before Submitting A Bug Report](#before-submitting-a-bug-report)
- [How Do I Submit A (Good) Bug Report?](#how-do-i-submit-a--good--bug-report-)
+ [🎉Suggesting Features](#suggesting-features)
- [Before Submitting An Feature Suggestion](#before-submitting-an-feature-suggestion)
- [How Do I Submit A (Good) Feature Suggestion?](#how-do-i-submit-a--good--feature-suggestion-)
+ [🎮 Game Server Requests](#game-server-requests)
- [Before Submitting a Game Server Request](#before-submitting-a-game-server-request)
- [How Do I Submit A (Good) Game Server Request?](#how-do-i-submit-a--good--game-server-request-)
+ [🎮 Game Server Specific Issues](#game-server-specific-issues)
* [💻 Code Contributions](#code-contributions)
+ [Pull Requests](#pull-requests)
- [Pull Request naming convention](#pull-request-naming-convention)
+ [Testing](#testing)
- [Pull Request Status Checks](#pull-request-status-checks)
- [Test Environment](#test-environment)
+ [:wine_glass: Styleguides](#-wine-glass--styleguides)
- [Git Commit Messages](#git-commit-messages)
- [BASH Styleguide](#bash-styleguide)
* [:blue_book: Document Contributions](#-blue-book--document-contributions)
+ [Documentation Styleguide](#documentation-styleguide)
* [Issue and Pull Request Labels](#issue-and-pull-request-labels)
## Code of Conduct
This project and everyone participating in it are governed by the [LinuxGSM Code of Conduct](https://github.com/GameServerManagers/linuxgsm/blob/master/CODE_OF_CONDUCT.md). By participating, you are expected to uphold this code. Please report unacceptable behaviour to [daniel.gibbs@linuxgsm.com](mailto:daniel.gibbs@linuxgsm.com).
## 🎉 Bug/Enhancement Contributions 🐛
### 🐛Reporting Bugs
This section guides you through submitting a bug report for LinuxGSM. Following these guidelines help maintainers and the community understand your report 📝, reproduce the behaviour💻, and find any related reports 🔎.
Before creating bug reports, please check [this list](https://github.com/GameServerManagers/linuxgsm/blob/master/CONTRIBUTING.md#before-submitting-a-bug-report) as you might find out that you don’t need to create one. When you are creating a bug report, please [include as many details as possible](https://github.com/GameServerManagers/linuxgsm/blob/master/CONTRIBUTING.md#how-do-i-submit-a-good-bug-report). Fill out [the required template]([https://github.com/GameServerManagers/LinuxGSM/issues/new/choose](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose)), the information it asks for helps us resolve issues faster.
#### Before Submitting A Bug Report
* **Check the [documentation](https://docs.linuxgsm.com).** You might be able to find the cause of the problem and fix things yourself.
* **Check that the problem is not related to** [**support page**](https://linuxgsm/com/support) for links to other support options.
* **Check the** [**support page**](https://linuxgsm/com/support) for links to other support options.
* **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the problem has already been reported. If it has **and the issue is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
#### How Do I Submit A (Good) Bug Report?
Bugs are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose).
* **Use a clear and descriptive title** for the issue to identify the problem.
* **Complete the user story** to give a summary of the issue.
* **Provide basic info** to help us understand the context of the issue.
* **Provide further info** to give specifics and more detail.
* **Give steps to reproduce** the issue, allowing developers to follow steps that lead to the issue.
* **Explain what you expect** to happen, so we know what you think should occur.
### 🎉Suggesting Features
This section guides you through submitting a feature suggestion for LinuxGSM, including completely new features and minor improvements to existing functionality. Following these guidelines help maintainers and the community understand your suggestion 📝 and find related suggestions 🔎.
#### Before Submitting An Feature Suggestion
* **Check the** [**documentation**](https://docs.linuxgsm.com/%5D(https://docs.linuxgsm.com/)) to confirm that the enhancement doesn’t already exist.
* **Check your** [**LinuxGSM version**](https://docs.linuxgsm.com/commands/update-lgsm)**.** A newer version of LinuxGSM may already have your enhancement.
* **Perform a** [**cursory search**](https://github.com/search?q=org:GameServerManagers%20type:issues&type=Issues) to see if the enhancement has already been suggested. If it has **and the enhancement is still open**, add a comment to the existing issue and give it a thumbs up instead of opening a new one.
#### How Do I Submit A (Good) Feature Suggestion?
Features are tracked as [GitHub issues](https://guides.github.com/features/issues/). Create an issue and provide the following information by filling in [the issues form](https://github.com/GameServerManagers/LinuxGSM/issues/new/choose).
* **Use a clear and descriptive title** for the issue to identify the problem.
* **Complete the user story** to give a summary of the issue.
* **Provide basic info** to help us understand the context of the enhancement.
* **Provide further info** to give specifics and more detail.
* **Provide any further reading** materials that might assist in developing the enhancement.
### 🎮 Game Server Requests
This section guides you through submitting a game server request for LinuxGSM, Following these guidelines help maintainers and the community understand your game server request 📝.
#### Before Submitting a Game Server Request
* **Check for existing** [**game server requests**](https://github.com/GameServerManagers/LinuxGSM/labels/type%3A%20game%20server%20request) to see if the new game server has already been suggested. If it has **and if the new game server is still open**, give it a thumbs.
* **Check the game server is supported on Linux**, this does not include Wine servers which we do not support.
#### How Do I Submit A (Good) Game Server Request?
* The title should be as follows: **[Server Request] Game Name**
* **Provide Steam App ID** if applicable
* **Supply any documentation/how-to guides** for the game server.
### 🎮 Game Server Specific Issues
LinuxGSM is a management script that acts as a wrapper around game servers. These game servers are developed by different game developers such as Valve, Epic and Facepunch to name a few.
LinuxGSM has no control over the development and limited knowledge of issues directly relating to the game servers themselves. The same also applies for any mods, add-ons, maps etc.
If there is an issue with a specific game server or mod the best action may be to contact the game/mod developers on there support forums. If it is unclear some community members should be able to help.
A [list](https://docs.linuxgsm.com/support/game-server) of known game developer forums is available on the [LinuxGSM docs](https://docs.linuxgsm.com/support/game-server).
## 💻 Code Contributions
### Pull Requests
The process described here has several goals:
* Maintain LinuxGSM quality.
* Fix problems that are important to users.
* Engage the community in working toward the best possible LinuxGSM.
* Enable a sustainable system for LinuxGSM maintainers to review contributions.
Please follow these steps to have your contribution considered by the maintainers:
1. Follow all check-list in [the template](https://github.com/GameServerManagers/LinuxGSM/blob/master/.github/pull_request_template.md)
2. Follow the [style guides](#styleguides)
3. After you submit your pull request, verify that all [status checks](https://help.github.com/articles/about-status-checks/) are passing
What if the status checks are failing? If a status check is failing, and you believe that the failure is unrelated to your change, please leave a comment on the pull request explaining why you believe the failure is unrelated. A maintainer will re-run the status check for you. If we conclude that the failure was a false positive, then we will open an issue to track that problem with our status check suite.
While the prerequisites above must be satisfied before having your pull request reviewed, the reviewer(s) may ask you to complete additional design work, tests, or other changes before your pull request can be ultimately accepted.
#### Pull Request naming convention
When naming a pull request to ensure that it is following [Conventional Commits](https://www.conventionalcommits.org/) standards; as your pull request commits will be squashed, with the PR subject becoming the commit that is used for generating the [changelog](https://github.com/GameServerManagers/LinuxGSM/releases) for the next release.
The pull request subject line should always be able to complete the following sentence:
If applied, this commit will _your subject line here_
For example:
* If applied, this commit will **refactor subsystem X for readability**
* If applied, this commit will **update getting started documentation**
* If applied, this commit will **remove deprecated methods**
* If applied, this commit will **release version 1.0.0**
* If applied, this commit will **merge pull request #123 from user/branch**
Notice how this doesn’t work for the other non-imperative forms:
* If applied, this commit will **fixed bug with Y**
* If applied, this commit will **change the behaviour of X**
* If applied, this commit will **more fixes for broken stuff**
* If applied, this commit will **sweet new API methods**
Below is an example of the subject line for a pull request:
**feat(alerts): add slack support to alerts**
**fix(csgoserver): remove SteamCMD auth requirement 32-bit workaround**
### Testing
#### Pull Request Status Checks
When a Pull Request is submitted, a series of status check tests are conducted. These tests will asses the code quality, complete CI tests etc. To get your PR merged these status checks must pass.
#### Test Environment
It is recommended that you have a testing environment available to test your code during development. To test your own code you must change some variables within the `linuxgsm.sh` file. This will force the use of your own code branch.
```bash
## GitHub Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="GameServerManagers"
githubrepo="LinuxGSM"
githubbranch="master"
```
### :wine_glass: Styleguides
#### Git Commit Messages
LinuxGSM uses the Conventional commits standard to allow other developers to get easy to understand, descriptive commit messages as you develop. While it is recommended that you use this standard for your commits, as your commits will eventually be squashed when your PR is merged following this standard is not strictly enforced for commits, however, it is recommended for more complex commits.
#### BASH Styleguide
LinuxGSM uses [ShellCheck](https://www.shellcheck.net/) to follow BASH best practices. It is recommended that you make use of linter tools for your text editor such as [linter-shellcheck](https://atom.io/packages/linter-shellcheck). LinuxGSM uses [Codacy](https://app.codacy.com/manual/GameServerManagers/LinuxGSM/dashboard) to analyse any Pull Requests to give you feedback on code standards.
LinuxGSM also has some of its style standards that should be followed. These are available in the [dev docs](https://dev-docs.linuxgsm.com/)
## :blue_book: Document Contributions
As well as code contributions it is possible to contribute by writing and improving documentation. Documents contributions can be submitted similarly by submitting a Pull Request.
### Documentation Styleguide
LinuxGSM has various documentation available to assist [users](https://docs.linuxgsm.com) and [developers](dev-docs.linuxgsm.com). LinuxGSM primarily uses [GitBook](http://gitbook.com/) which uses the [Markdown](https://www.markdownguide.org/) document standard. LinuxGSM uses [Codacy](https://app.codacy.com/manual/GameServerManagers/LinuxGSM/dashboard) to analyse any Pull Requests to give you feedback on markup standards.
## Issue and Pull Request Labels
This section lists the labels we use to help us track and manage issues and pull requests.
[GitHub search](https://help.github.com/articles/searching-issues/) makes it easy to use labels for finding groups of issues or pull requests you're interested in. There are several categories of labels available:
**command** Labels
Highlights the LinuxGSM command the Issue/PR relates too.
**info** Labels
Labels to help pinpoint what the issue or PR relates too.
variants:
* _distro_
* _engine_
* _game_
* _info_
**outcome** Labels
Labels that identify why an issue was closed.
**status** Labels
Labels to update people on the status of the issue.
**type** Labels
Labels identifying the type of issue, such as a bug, feature, refactor etc.

132
ChivalryMedievalWarfare/cmwserver

@ -1,132 +0,0 @@
#!/bin/bash
# Chivalry: Medieval Warfare
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="aocffa-moor_p"
maxplayers="16"
port="7000"
queryport="7010"
clientport="27005"
adminpassword="adminpassword"
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms="${defaultmap}\?steamsockets\?adminpassword=${adminpassword}\?port=${port}\?queryport=${queryport} -seekfreeloadingserver"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="220070"
# Server Details
servicename="cmw-server"
gamename="Chivalry: Medieval Warfare"
engine="unreal3"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/Binaries/Linux"
executable="./UDKGameServer-Linux"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

38
CounterStrike/cfg/lgsm-default.cfg

@ -1,38 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
CounterStrike/csserver

@ -1,132 +0,0 @@
#!/bin/bash
# Counter Strike
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="de_dust2"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game cstrike -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
appidmod="cstrike"
# Server Details
servicename="cs-server"
gamename="Counter Strike 1.6"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

38
CounterStrikeConditionZero/cfg/lgsm-default.cfg

@ -1,38 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
CounterStrikeConditionZero/csczserver

@ -1,132 +0,0 @@
#!/bin/bash
# Counter Strike: Condition Zero
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="de_dust2"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game czero -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
appidmod="czero"
# Server Details
servicename="cscz-server"
gamename="Counter Strike: Condition Zero"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/czero"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

23
CounterStrikeGlobalOffensive/cfg/lgsm-default.cfg

@ -1,23 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
exec banned_user.cfg
exec banned_ip.cfg
writeid
writeip

155
CounterStrikeGlobalOffensive/csgoserver

@ -1,155 +0,0 @@
#!/bin/bash
# Counter Strike: Global Offensive
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
# https://developer.valvesoftware.com/wiki/Counter-Strike:_Global_Offensive_Dedicated_Servers#Starting_the_Server
# [Game Modes] gametype gamemode
# Arms Race 1 0
# Classic Casual 0 0
# Classic Competitive 0 1
# Demolition 1 1
# Deathmatch 1 2
gamemode="0"
gametype="0"
defaultmap="de_dust2"
mapgroup="random_classic"
maxplayers="16"
tickrate="64"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# Required: Game Server Login Token
# GSLT is required for running a public server.
# More info: http://gameservermanagers.com/gslt
gslt=""
# Optional: Workshop Parameters
# https://developer.valvesoftware.com/wiki/CSGO_Workshop_For_Server_Operators
# To get an authkey visit - http://steamcommunity.com/dev/apikey
# authkey=""
# ws_collection_id=""
# ws_start_map=""
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game csgo -usercon -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +sv_setsteamaccount ${gslt} -tickrate ${tickrate} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers_override ${maxplayers} +mapgroup ${mapgroup} +game_mode ${gamemode} +game_type ${gametype} +host_workshop_collection ${ws_collection_id} +workshop_start_map ${ws_start_map} -authkey ${authkey}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="740"
# Server Details
servicename="csgo-server"
gamename="Counter Strike: Global Offensive"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/csgo"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

15
CounterStrikeSource/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

132
CounterStrikeSource/cssserver

@ -1,132 +0,0 @@
#!/bin/bash
# Counter Strike: Source
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="de_dust2"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="232330"
# Server Details
servicename="css-server"
gamename="Counter Strike: Source"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/cstrike"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

38
DayOfDefeat/cfg/lgsm-default.cfg

@ -1,38 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
DayOfDefeat/dodserver

@ -1,132 +0,0 @@
#!/bin/bash
# Day of Defeat
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="dod_Anzio"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game dod -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
appidmod="dod"
# Server Details
servicename="dod-server"
gamename="Day of Defeat"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

38
DayOfDefeatSource/cfg/lgsm-default.cfg

@ -1,38 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
DayOfDefeatSource/dodsserver

@ -1,132 +0,0 @@
#!/bin/bash
# Day of Defeat: Source
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="dod_Anzio"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game dod -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="232290"
# Server Details
servicename="dods-server"
gamename="Day of Defeat: Source"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dod"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

35
DeathmatchClassic/cfg/lgsm-default.cfg

@ -1,35 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
DeathmatchClassic/dmcserver

@ -1,132 +0,0 @@
#!/bin/bash
# Deathmatch Classic
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="dcdm5"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game dmc -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
appidmod="dmc"
# Server Details
servicename="dmc-server"
gamename="Deathmatch Classic"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dmc"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

126
DontStarveTogether/dstserver

@ -1,126 +0,0 @@
#!/bin/bash
# Dont Starve Together
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms=""
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="343050"
# Server Details
servicename="dst-server"
gamename="Dont Starve Together"
engine="dontstarve"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/bin"
executable="./dontstarve_dedicated_server_nullrenderer"
servercfg="settings.ini"
servercfgdir="${HOME}/.klei/DoNotStarveTogether"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.ini"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

39
DontStarveTogether/lgsm-default.ini

@ -1,39 +0,0 @@
[network]
default_server_name = dstserver
default_server_description = Welcome to dstserver
server_port = 10999
server_password = password
# max_players = 1 .. 64
max_players = 16
# pvp = true | false
pvp = false
# game_mode = endless | survival | wilderness
game_mode = endless
# enable_autosaver = true | false
enable_autosaver = true
# tick_rate = [ 10 | 15 | 30 | 60 ]
tick_rate = 30
connection_timeout = 8000
server_save_slot = 1
# enable_vote_kick = true | false
enable_vote_kick = true
# pause_when_empty = true | false
pause_when_empty = true
[account]
dedicated_lan_server = false
[STEAM]
DISABLECLOUD = true
[MISC]
CONSOLE_ENABLED = true
autocompiler_enabled = true

15
DoubleActionBoogaloo/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

132
DoubleActionBoogaloo/dabserver

@ -1,132 +0,0 @@
#!/bin/bash
# Double Action: Boogaloo
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="da_rooftops"
maxplayers="10"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="317800"
# Server Details
servicename="da-server"
gamename="Double Action: Boogaloo"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/dab"
executabledir="${filesdir}"
executable="./dabds.sh"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

BIN
DoubleActionBoogaloo/dependencies/libm.so.6

Binary file not shown.

124
FistfulOfFrags/cfg/lgsm-default.cfg

@ -1,124 +0,0 @@
// ****************************************************************************
// *
// Fistful of Frags - server.cfg *
// Version 271015 *
// *
// ****************************************************************************
// ............................. Basic Settings ............................. //
// Hostname for server.
hostname "<hostname>"
// RCON - remote console password.
rcon_password "<rconpassword>"
// Server password - for private servers.
sv_password ""
// Contact email for server sysop.
sv_contact "email@example.com"
// LAN Mode - If set the server will not show on the internet.
// Default: sv_lan 0
sv_lan 0
// ............................... Map Cycles ............................... //
// info: There are several predefined mapcycles available that are listed below.
// You can also create your own custom mapcycle.
// "mapcycle.txt" - All Shootout/2 Team Shootout/4 Team Shootout maps
// "mapcycle_12.txt" - All 12 slot maps for Shootout/2 Team Shootout/4 Team Shootout
// "mapcycle_32.txt" - All 32 slot maps for Shootout/2 Team Shootout/4 Team Shootout
// "mapcycle_tp.txt" - All Teamplay maps
// "mapcycle_gt.txt" - All Ghost Town maps
mapcyclefile "mapcycle.txt"
// ....................... Time Limits/Round Settings ....................... //
// Time spend on a single map (in minutes) before switching to a new one automatically.
// Default: mp_timelimit 0
mp_timelimit 15
// ........................ Server Specific Commands ........................ //
// info: any commands that only apply to this game.
// Game Modes
// 1 = Shootout/2 Team Shootout/4 Team Shootout/Ghost Town
// 2 = Teamplay
// 3 = Break Bad
// 4 = Elimination
fof_sv_currentmode 1
// Teamplay
// 0 = Free-for-all
// 1 = Team Deathmatch
mp_teamplay 0
// Team numbers
// 2 = Vigilantes & Desperados
// 3 = Vigilantes, Desperados & Bandidos
// 4 = Vigilantes, Desperados, Bandidos & Rangers
fof_sv_maxteams 4
// Friendly fire - Allows team members to injure other members of their team.
// 0 = Friendly fire disabled
// 1 = Friendly fire enabled
mp_friendlyfire 0
// ............................. Communication ............................. //
// Enable communication over voice via microphone.
// Default: sv_voiceenable 1
sv_voiceenable 1
// Players can hear all other players, no team restrictions.
// Default: sv_alltalk 0
sv_alltalk 1
// ............................. Fast Download .............................. //
// info: Allows custom maps to be downloaded to the client.
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
// Default: sv_allowdownload 1
sv_allowdownload 1
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
// Example:
// server location: maps/custommap.bsp
// web server location: http://example.com/custom/maps/custommap.bsp
// sv_downloadurl "http://example.com/custom"
// Default: sv_downloadurl ""
sv_downloadurl ""
// ................................ Ban List ............................... //
// personal banlist based on user IDs.
exec banned_user.cfg
// personal banlist based on user IPs.
exec banned_ip.cfg
writeid
writeip
// ............................. Server Logging ............................. //
//Enables logging to file, console, and udp < on | off >.
log on
// Log server bans in the server logs.
// Default: sv_logbans 1
sv_logbans 1
// Echo log information to the console.
// Default: sv_logecho 1
sv_logecho 1
// Log server information in the log file.
// Default: sv_logfile 1
sv_logfile 1
// Log server information to only one file.
// Default: sv_log_onefile 0
sv_log_onefile 0

BIN
FistfulOfFrags/dependencies/libm.so.6

Binary file not shown.

132
FistfulOfFrags/fofserver

@ -1,132 +0,0 @@
#!/bin/bash
# Fistful Of Frags
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="fof_depot"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game fof -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="295230"
# Server Details
servicename="fof-server"
gamename="Fistful of Frags"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/fof"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

123
GameServerQuery/gsquery.py

@ -1,123 +0,0 @@
#! /usr/bin/env python
# -*- coding: utf-8 -*-
# Game Server Query
# Author: Anonymous & Daniel Gibbs
# # Website: http://gameservermanagers.com
# Version: 030515
import optparse
import socket
import sys
class GameServer:
def __init__( self, options, arguments ):
self.option = options
self.argument = arguments
#
self.server_response_timeout = 5
self.default_buffer_length = 1024
#
if self.option.engine == 'source':
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
if self.option.engine == 'goldsource':
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
if self.option.engine == 'spark':
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
if self.option.engine == 'realvirtuality':
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
if self.option.engine == 'unity3d':
self.query_prompt_string = '\xFF\xFF\xFF\xFFTSource Engine Query\0'
elif self.option.engine == 'unreal':
self.query_prompt_string = '\x5C\x69\x6E\x66\x6F\x5C'
elif self.option.engine == 'unreal2':
self.query_prompt_string = '\x79\x00\x00\x00\x00'
elif self.option.engine == 'avalanche':
self.query_prompt_string = '\xFE\xFD\x09\x10\x20\x30\x40'
self.connected = False
self.response = None
self.sanity_checks()
def fatal_error( self, error_message, error_code=1 ):
sys.stderr.write( 'ERROR: ' + str(error_message) + '\n' )
sys.exit( error_code )
def exit_success( self, success_message='' ):
sys.stdout.write( 'OK: ' + str(success_message) + '\n' )
sys.exit( 0 )
def responding( self ):
# Connect.
connection = socket.socket( socket.AF_INET, socket.SOCK_DGRAM )
connection.settimeout( self.server_response_timeout )
try:
self.connected = connection.connect( ( self.option.address, int(self.option.port) ) )
except socket.timeout:
self.fatal_error( 'Request timed out', 1 )
except:
self.fatal_error( 'Unable to connect', 1 )
# Send.
connection.send( self.query_prompt_string )
# Receive.
try:
self.response = connection.recv( self.default_buffer_length )
except socket.error:
self.fatal_error( 'Unable to receive', 2 )
connection.close()
# Response.
if self.response == None:
self.fatal_error( 'No response', 3 )
if len( self.response ) < 10 :
sys.exit( 'Short response.', 3 )
else:
self.exit_success( str( self.response ) )
def sanity_checks( self ):
if not self.option.address:
self.fatal_error( 'No IPv4 address supplied.', 4 )
if not self.option.port:
self.fatal_error( 'No port supplied.', 4 )
if __name__ == '__main__':
parser = optparse.OptionParser(
usage = 'usage: python %prog [options]',
version = '%prog 0.0.1'
)
parser.add_option(
'-a', '--address',
action = 'store',
dest = 'address',
default = False,
help = 'The IPv4 address of the server.'
)
parser.add_option(
'-p', '--port',
action = 'store',
dest = 'port',
default = False,
help = 'The IPv4 port of the server.'
)
parser.add_option(
'-e', '--engine',
action = 'store',
dest = 'engine',
default = False,
help = 'Engine type: avalanche, goldsource, realvirtuality, spark, source, unity3d, unreal, unreal2.'
)
parser.add_option(
'-v', '--verbose',
action = 'store_true',
dest = 'verbose',
default = False,
help = 'Display verbose output.'
)
parser.add_option(
'-d', '--debug',
action = 'store_true',
dest = 'debug',
default = False,
help = 'Display debugging output.'
)
options, arguments = parser.parse_args()
#
server = GameServer( options, arguments )
server.responding()

86
GarrysMod/cfg/lgsm-default.cfg

@ -1,86 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
lua_log_sv 0
sv_rcon_banpenalty 0
sv_rcon_maxfailures 20
sv_rcon_minfailures 20
sv_rcon_minfailuretime 20
// Network Settings
sv_downloadurl ""
sv_loadingurl ""
net_maxfilesize 64
sv_maxrate 40000
sv_minrate 40000
sv_maxupdaterate 66
sv_minupdaterate 10
sv_maxcmdrate 60
sv_mincmdrate 10
// Server Settings
sv_airaccelerate 100
sv_gravity 600
sv_allow_wait_command 0
sv_allow_voice_from_file 0
sv_turbophysics 0
sv_max_usercmd_future_ticks 12
gmod_physiterations 2
sv_client_min_interp_ratio 1
sv_client_max_interp_ratio 2
think_limit 20
sv_region 0
sv_noclipspeed 5
sv_noclipaccelerate 5
sv_lan 0
sv_alltalk 1
sv_contact youremail@changeme.com
sv_cheats 0
sv_allowcslua 0
sv_pausable 0
sv_filterban 1
sv_forcepreload 1
sv_footsteps 1
sv_voiceenable 1
sv_voicecodec vaudio_speex
sv_timeout 120
sv_deltaprint 0
sv_allowupload 0
sv_allowdownload 0
// Sandbox Settings
sbox_noclip 0
sbox_godmode 0
sbox_weapons 0
sbox_playershurtplayers 0
sbox_maxprops 100
sbox_maxragdolls 50
sbox_maxnpcs 10
sbox_maxballoons 10
sbox_maxeffects 0
sbox_maxdynamite 0
sbox_maxlamps 5
sbox_maxthrusters 20
sbox_maxwheels 20
sbox_maxhoverballs 20
sbox_maxvehicles 1
sbox_maxbuttons 20
sbox_maxemitters 0
// Misc Config
exec banned_user.cfg
exec banned_ip.cfg
heartbeat

BIN
GarrysMod/dependencies/libc.so.6

Binary file not shown.

BIN
GarrysMod/dependencies/libm.so.6

Binary file not shown.

BIN
GarrysMod/dependencies/libpthread.so.0

Binary file not shown.

BIN
GarrysMod/dependencies/libstdc++.so.6

Binary file not shown.

138
GarrysMod/gmodserver

@ -1,138 +0,0 @@
#!/bin/bash
# Garry's Mod
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Workshop Variables
# http://wiki.garrysmod.com/page/Workshop_for_Dedicated_Servers
workshopauth=""
workshopcollectionid=""
# Start Variables
defaultmap="gm_construct"
gamemode="sandbox"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game garrysmod -strictportbind -ip ${ip} -port ${port} +host_workshop_collection ${workshopcollectionid} -authkey ${workshopauth} +clientport ${clientport} +tv_port ${sourcetvport} +gamemode ${gamemode} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="4020"
# Server Details
servicename="gmod-server"
gamename="Garry's Mod"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/garrysmod"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

15
HalfLife2Deathmatch/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

132
HalfLife2Deathmatch/hl2dmserver

@ -1,132 +0,0 @@
#!/bin/bash
# Half Life 2: Deathmatch
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="dm_lockdown"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game hl2mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="232370"
# Server Details
servicename="hl2dm-server"
gamename="Half Life 2: Deathmatch"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl2mp"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

35
HalfLifeDeathmatch/cfg/lgsm-default.cfg

@ -1,35 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

131
HalfLifeDeathmatch/hldmserver

@ -1,131 +0,0 @@
#!/bin/bash
# Half Life: Deathmatch
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="crossfire"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game valve -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
# Server Details
servicename="hldm-server"
gamename="Half Life: Deathmatch"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/valve"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

15
HalfLifeDeathmatchSource/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

132
HalfLifeDeathmatchSource/hldmsserver

@ -1,132 +0,0 @@
#!/bin/bash
# Half-Life Deathmatch: Source
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="crossfire"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game hl1mp -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="255470"
# Server Details
servicename="hldms-server"
gamename="Half-Life Deathmatch: Source"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/hl1mp"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

125
Insurgency/cfg/lgsm-default.cfg

@ -1,125 +0,0 @@
// ****************************************************************************
// *
// Ingurgency - server.cfg *
// Version 150815 *
// *
// ****************************************************************************
// ............................. Basic Settings ............................. //
// Hostname for server.
hostname "<hostname>"
// RCON - remote console password.
rcon_password "<rconpassword>"
// Server password - for private servers.
sv_password ""
// Contact email for server sysop.
sv_contact "email@example.com"
// LAN Mode - If set the server will not show on the internet.
// Default: sv_lan 0
sv_lan 0
// ......................... Matchmaking Playlists ......................... //
// info: Selecting a playlist will allow the server to show up in matchmaking.
// Playlists use predefined settings and mapcycle.
// You do not need to select a mapcycle as the server will cycle though the
// predefined playlist mapcycle.
//
// If you want to change the predefined playlist mapcycle you can create a
// custom mapcycle but only with maps from the playlist mapcycle.
//
// You can also create your own custom playlists.
// http://steamcommunity.com/sharedfiles/filedetails/?id=461776759
// "nwi/comp"
// "nwi/coop"
// "nwi/coop_elite"
// "nwi/coop_hardcore"
// "nwi/pvp_sustained"
// "nwi/pvp_tactical"
//
sv_playlist "nwi/coop"
// ............................... Map Cycles ............................... //
// info: There are several predefined mapcycles available that are listed below.
// You can also create your own custom mapcycle.
// "mapcycle.txt" - by default this contains the most popular options
// "mapcycle_all.txt" - all possible map/mode combinations for PvP
// "mapcycle_ambush.txt" - all ambush (VIP) maps
// "mapcycle_attackdefend.txt" - push & strike maps
// "mapcycle_checkpoint.txt" - all checkpoint maps
// "mapcycle_comp.txt" - firefight & elimination maps
// "mapcycle_cooperative.txt" - survival, coop, hunt maps
// "mapcycle_firefight.txt" - all firefight maps
// "mapcycle_flashpoint.txt" - all flashpoint maps
// "mapcycle_hunt.txt" - all hunt maps
// "mapcycle_infiltrate.txt" - all infiltrate (CTF) maps
// "mapcycle_objrespawn.txt" - all firefight & flashpoint featuring respawning for completing objectives
// "mapcycle_occupy.txt" - all occupy maps
// "mapcycle_practice.txt"
// "mapcycle_push.txt" - all push maps
// "mapcycle_singlelife.txt" - strike & ambush single life modes
// "mapcycle_skirmish.txt" - all skirmish maps
// "mapcycle_strike.txt" - all strike maps
// "mapcycle_survival.txt" - all survival maps
// "mapcycle_sustained_combat.txt"
// "mapcycle_tactical_operations.txt"
// "mapcycle_workshop.txt" - used by Workshop system
//
//mapcyclefile "mapcycle.txt"
// ............................. Fast Download .............................. //
// info: Allows custom maps to be downloaded to the client.
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
// Default: sv_allowdownload 1
sv_allowdownload 1
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
// Example:
// server location: maps/custommap.bsp
// web server location: http://example.com/custom/maps/custommap.bsp
// sv_downloadurl "http://example.com/custom"
// Default: sv_downloadurl ""
sv_downloadurl ""
// ................................ Ban List ............................... //
// sv_nwi_banlist is the official banlist.
sv_nwi_banlist 1
// personal banlist based on user IDs.
exec banned_user.cfg
// personal banlist based on user IPs.
exec banned_ip.cfg
writeid
writeip
// ............................. Server Logging ............................. //
//Enables logging to file, console, and udp < on | off >.
log on
// Log server bans in the server logs.
// Default: sv_logbans 1
sv_logbans 1
// Echo log information to the console.
// Default: sv_logecho 1
sv_logecho 1
// Log server information in the log file.
// Default: sv_logfile 1
sv_logfile 1
// Log server information to only one file.
// Default: sv_log_onefile 0
sv_log_onefile 0

BIN
Insurgency/dependencies/libc.so.6

Binary file not shown.

BIN
Insurgency/dependencies/libm.so.6

Binary file not shown.

BIN
Insurgency/dependencies/libpthread.so.0

Binary file not shown.

BIN
Insurgency/dependencies/librt.so.1

Binary file not shown.

132
Insurgency/insserver

@ -1,132 +0,0 @@
#!/bin/bash
# Insurgency
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="ministry"
maxplayers="16"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game insurgency -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="237410"
# Server Details
servicename="ins-server"
gamename="Insurgency"
engine="source"
# Directories
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
selfname="$(basename $0)"
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/insurgency"
executabledir="${filesdir}"
executable="./srcds_linux"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

179
JustCause2/cfg/config.lua

@ -1,179 +0,0 @@
-- Welcome to the JC2-MP server configuration file!
--[[
SERVER OPTIONS
Server-related options.
--]]
Server =
{
-- The maximum number of players that can be on the server at any
-- given time. Make sure your connection and server can handle it!
-- Default value: 5000
MaxPlayers = 5000,
-- Used to control what IP this server binds to. Unless you're a dedicated
-- game host, you don't need to worry about this.
-- Default value: ""
BindIP = "",
-- The port the server uses.
-- Default value: 7777
BindPort = 7777,
-- The time before a player is timed out after temporarily losing
-- connection, or crashing without properly disconnecting.
-- Default value (in milliseconds): 10000
Timeout = 10000,
-- The name of the server, as seen by players and the server browser.
-- Default value: "JC2-MP Server"
Name = "JC2-MP Server",
-- The server description, as seen by players and the server browser.
-- Default value: "No description available"
Description = "No description available.",
-- The server password.
-- Default value: ""
Password = "",
-- Controls whether the server announces its presence to the master server
-- and therefore to the server browser.
-- Default value: true
Announce = true,
-- Controls how often synchronization packets are broadcast by the server
-- in milliseconds
-- Default value (in milliseconds): 180
SyncUpdate = 180,
-- CAUTION: Setting this variable to true unlocks a number of potentially
-- unsafe operations, which include:
-- * Native Lua packages (.dll, .so)
-- * Execution of Lua from arbitrary paths (Access to loadfile/dofile)
-- * Unbound io functions, allowing for access to the entire file-system
-- Default value: false
IKnowWhatImDoing = false
}
--[[
SYNCRATE OPTIONS
Sync rate options. These values control how often synchronization
packets are sent by the clients, in milliseconds. This lets you
control how frequent the sync comes in, which may result in a
smoother or less laggy experience
--]]
SyncRates =
{
-- Default value (in milliseconds): 75
Vehicle = 75,
-- Default value (in milliseconds): 120
OnFoot = 120,
-- Default value (in milliseconds): 1000
Passenger = 1000,
-- Default value (in milliseconds): 250
MountedGun = 250,
-- Default value (in milliseconds): 350
StuntPosition = 350
}
--[[
STREAMER OPTIONS
Streamer-related options. The streamer is responsible for controlling the
visibility of objects (including players and vehicles) for other players.
What this means is that if you want to extend the distance at which objects
remain visible for players, you need to change the StreamDistance.
--]]
Streamer =
{
-- The default distance before objects are streamed out.
-- Default value (in metres): 500
StreamDistance = 500
}
--[[
VEHICLE OPTIONS
Vehicle-related options.
--]]
Vehicle =
{
-- The number of seconds required for a vehicle to respawn after
-- vehicle death.
-- Default value (in seconds): 10
-- For instant respawn: 0
-- For no respawning: nil
DeathRespawnTime = 10,
-- Controls whether to remove the vehicle if respawning is turned off,
-- and the vehicle dies.
-- Default value: false
DeathRemove = false,
-- The number of seconds required for a vehicle to respawn after it is
-- left unoccupied.
-- Default value (in seconds): 45
-- For instant respawn: 0
-- For no respawning: nil
UnoccupiedRespawnTime = 45,
-- Controls whether to remove the vehicle if respawning is turned off,
-- and the vehicle is left unoccupied.
-- Default value: false
UnoccupiedRemove = false,
}
--[[
PLAYER OPTIONS
Player-related options.
--]]
Player =
{
-- The default spawn position for players. If you do not use a script
-- to handle spawns, such as the freeroam script, then this spawn position
-- will be used.
-- Default value: Vector3( -6550, 209, -3290 )
SpawnPosition = Vector3( -6550, 209, -3290 )
}
--[[
MODULE OPTIONS
Lua module-related options.
--]]
Module =
{
--[[
To prevent a large number of errors building up, modules are automatically
unloaded after a certain number of errors in a given timespan. Each error
adds to a counter, which is decremented if there has not been an error
in a certain amount of time.
This allows you to adjust the number of errors before the module is unloaded,
as well as the time since the last error for the counter to be decremented.
--]]
-- The maximum number of errors before a module is unloaded.
-- Default value: 5
MaxErrorCount = 5,
-- The time from the last error necessary for the error counter to be decremented.
-- Default value (in milliseconds): 500
ErrorDecrementTime = 500
}
--[[
WORLD OPTIONS
Default settings for worlds.
--]]
World =
{
-- The default time of day at world creation.
-- Default value (in hours): 0.0
Time = 0.0,
-- The increment added to the time of day each second.
-- Default value (in minutes): 1
TimeStep = 1,
-- The default weather severity at world creation.
-- Default value: 0
WeatherSeverity = 0

125
JustCause2/jc2server

@ -1,125 +0,0 @@
#!/bin/bash
# Just Cause 2
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
updateonstart="off"
fn_parms(){
parms=""
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="261140"
# Server Details
servicename="jc2-server"
gamename="Just Cause 2"
engine="avalanche"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./Jcmp-Server"
servercfg="config.lua"
servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/default_config.lua"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
#gamelogdir="" # No server logs available
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

134
KillingFloor/kfserver

@ -1,134 +0,0 @@
#!/bin/bash
# Killing Floor
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
defaultmap="KF-BioticsLab.rom"
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms="server ${defaultmap}?game=KFmod.KFGameType?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
# Start Variables for Objective mode
#defaultmap="KFO-Steamland"
#parms="server ${defaultmap}?Game=KFStoryGame.KFStoryGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="215360"
# Server Details
servicename="kf-server"
gamename="Killing Floor"
engine="unreal2"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/System"
executabledir="${systemdir}"
executable="./ucc-bin"
servercfg="${servicename}.ini"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/Default.ini"
compressedmapsdir="${rootdir}/Maps-Compressed"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${rootdir}/log/server"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
gamelog="${gamelogdir}/${servicename}-game.log"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

5
LICENSE

@ -1,6 +1,6 @@
The MIT License (MIT)
MIT License
Copyright (c) 2015 Daniel Gibbs
Copyright (c) 2012-2020 Daniel Gibbs
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
@ -19,4 +19,3 @@ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

15
Left4Dead/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

132
Left4Dead/l4dserver

@ -1,132 +0,0 @@
#!/bin/bash
# Left 4 Dead
# Server Management Script
# Author: Daniel Gibbs
# Contributor: Summit Singh Thakur
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="l4d_hospital01_apartment"
maxplayers="8"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game left4dead -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} -tickrate ${tickrate} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="222840"
# Server Details
servicename="l4d-server"
gamename="Left 4 Dead"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

15
Left4Dead2/cfg/lgsm-default.cfg

@ -1,15 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0

131
Left4Dead2/l4d2server

@ -1,131 +0,0 @@
#!/bin/bash
# Left 4 Dead 2
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="c5m1_waterfront"
maxplayers="8"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game left4dead2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="222860"
# Server Details
servicename="l4d2-server"
gamename="Left 4 Dead 2"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/left4dead2"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

112
Mumble/mumbleserver

@ -1,112 +0,0 @@
#!/bin/bash
# Mumble
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Server Details
gamename="Mumble"
servicename="mumble-server"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./murmur.x86"
servercfg="murmur.ini"
servercfgdir="${filesdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
logdir="${rootdir}/log"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
fn_parms(){
parms="-fg -ini ${servercfgfullpath}"
}
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

BIN
NS2Combat/dependencies/libc.so.6

Binary file not shown.

BIN
NS2Combat/dependencies/libm.so.6

Binary file not shown.

BIN
NS2Combat/dependencies/libstdc++.so.6

Binary file not shown.

137
NS2Combat/ns2cserver

@ -1,137 +0,0 @@
#!/bin/bash
# NS2: Combat
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
defaultmap="co_core"
port="27015"
maxplayers="24"
ip="0.0.0.0"
updateonstart="off"
servername="NS2C Server"
webadminuser="admin"
webadminpass="admin"
webadminport="8080"
configpath="server1"
modstorage="server1/Workshop"
mods=""
password=""
# Add the following line to the parms if you want a private server. Ensuring
# that the password variable above is not left empty.
# -password \"${password}\"
# http://wiki.unknownworlds.com/ns2/Dedicated_Server
fn_parms(){
parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${rootdir}/${configpath}\" -modstorage \"${rootdir}/${modstorage}\" -mods \"${mods}\""
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="313900"
# Server Details
servicename="ns2c-server"
gamename="NS2: Combat"
engine="spark"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}/ia32"
executable="./ns2combatserver_linux32"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

BIN
NaturalSelection2/dependencies/libc.so.6

Binary file not shown.

BIN
NaturalSelection2/dependencies/libm.so.6

Binary file not shown.

BIN
NaturalSelection2/dependencies/libstdc++.so.6

Binary file not shown.

137
NaturalSelection2/ns2server

@ -1,137 +0,0 @@
#!/bin/bash
# Natural Selection 2
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
defaultmap="ns2_summit"
port="27015"
maxplayers="24"
ip="0.0.0.0"
updateonstart="off"
servername="NS2 Server"
webadminuser="admin"
webadminpass="admin"
webadminport="8080"
configpath="server1"
modstorage="server1/Workshop"
mods=""
password=""
# Add the following line to the parms if you want a private server. Ensuring
# that the password variable above is not left empty.
# -password \"${password}\"
# http://wiki.unknownworlds.com/ns2/Dedicated_Server
fn_parms(){
parms="-name \"${servername}\" -port ${port} -webadmin -webdomain ${ip} -webuser ${webadminuser} -webpassword \"${webadminpass}\" -webport ${webadminport} -map ${defaultmap} -limit ${maxplayers} -config_path \"${rootdir}/${configpath}\" -modstorage \"${rootdir}/${modstorage}\" -mods \"${mods}\""
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="4940"
# Server Details
servicename="ns2-server"
gamename="Natural Selection 2"
engine="spark"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./server_linux32"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

121
NoMoreRoomInHell/cfg/lgsm-default.cfg

@ -1,121 +0,0 @@
// ****************************************************************************
// *
// No More Room in Hell - server.cfg *
// Version 150815 *
// *
// ****************************************************************************
// ............................. Basic Settings ............................. //
// Hostname for server.
hostname "<hostname>"
// RCON - remote console password.
rcon_password "<rconpassword>"
// Server password - for private servers.
sv_password ""
// Contact email for server sysop.
sv_contact "email@example.com"
// LAN Mode - If set the server will not show on the internet.
// Default: sv_lan 0
sv_lan 0
// ............................... Map Cycles ............................... //
// info: There are several predefined mapcycles available that are listed below.
// You can also create your own custom mapcycle.
// "mapcycle.txt" - all maps
// "mapcycle_objective.txt" - objective maps only
// "mapcycle_survival.txt" - survival maps only
//
mapcyclefile "mapcycle.txt"
// ....................... Time Limits/Round Settings ....................... //
// Time spend on a single map (in minutes) before switching to a new one automatically.
// Default: mp_timelimit 1
mp_timelimit 45
// Maximum number of rounds to spend on a map before moving to the next one.
// Default: mp_maxrounds 2
mp_maxrounds 2
// ........................ Server Specific Commands ........................ //
// info: any commands that only apply to this game.
// Difficulty
// info: http://git.io/v35eI
// "casual" - casual difficulty.
// "classic" - classic difficulty.
sv_difficulty "classic"
// Server tags - Tags show up on the in-game server browser. This helps
// users filter servers.
// vanilla - he server runs the default settings.
// custom - the server runs custom gameplay settings or mods.
// example: sv_tags "custom, fastdl"
sv_tags ""
// Friendly fire - Allows team members to injure other members of their team.
// Default: mp_friendlyfire 0
mp_friendlyfire 0
// ............................. Communication ............................. //
// Enable communication over voice via microphone.
// Default: sv_voiceenable 1
sv_voiceenable 1
// Players can hear all other players, no team restrictions.
// Default: sv_alltalk 0
sv_alltalk 1
// ............................. Fast Download .............................. //
// info: Allows custom maps to be downloaded to the client.
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
// Default: sv_allowdownload 1
sv_allowdownload 1
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
// Example:
// server location: maps/custommap.bsp
// web server location: http://example.com/custom/maps/custommap.bsp
// sv_downloadurl "http://example.com/custom"
// Default: sv_downloadurl ""
sv_downloadurl ""
// ................................ Ban List ............................... //
// personal banlist based on user IDs.
exec banned_user.cfg
// personal banlist based on user IPs.
exec banned_ip.cfg
writeid
writeip
// ............................. Server Logging ............................. //
//Enables logging to file, console, and udp < on | off >.
log on
// Log server bans in the server logs.
// Default: sv_logbans 1
sv_logbans 1
// Echo log information to the console.
// Default: sv_logecho 1
sv_logecho 1
// Log server information in the log file.
// Default: sv_logfile 1
sv_logfile 1
// Log server information to only one file.
// Default: sv_log_onefile 0
sv_log_onefile 0

BIN
NoMoreRoomInHell/dependencies/libm.so.6

Binary file not shown.

132
NoMoreRoomInHell/nmrihserver

@ -1,132 +0,0 @@
#!/bin/bash
# No More Room in Hell
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="nmo_broadway"
maxplayers="8"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game nmrih -insecure -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="317670"
# Server Details
servicename="nmrih-server"
gamename="No More Room in Hell"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/nmrih"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

35
OpposingForce/cfg/lgsm-default.cfg

@ -1,35 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

132
OpposingForce/opforserver

@ -1,132 +0,0 @@
#!/bin/bash
# Half-Life: Opposing Force
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="op4_bootcamp"
maxplayers="16"
port="27015"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game gearbox -strictportbind +ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="90"
appidmod="gearbox"
# Server Details
servicename="opfor-server"
gamename="Half-Life: Opposing Force"
engine="goldsource"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/gearbox"
executabledir="${filesdir}"
executable="./hlds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
defaultcfg="${servercfgdir}/server.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

119
PiratesVikingandKnightsII/cfg/lgsm-default.cfg

@ -1,119 +0,0 @@
// ****************************************************************************
// *
// Pirates, Vikings, and Knights II *
// Version 150815 *
// *
// ****************************************************************************
// ............................. Basic Settings ............................. //
// Hostname for server.
hostname "<hostname>"
// RCON - remote console password.
rcon_password "<rconpassword>"
// Server password - for private servers.
sv_password ""
// Contact email for server sysop.
sv_contact "email@example.com"
// LAN Mode - If set the server will not show on the internet.
// Default: sv_lan 0
sv_lan 0
// ............................... Map Cycles ............................... //
// You can create your own custom mapcycle.
mapcyclefile "mapcycle.txt"
// ....................... Time Limits/Round Settings ....................... //
// Time spend on a single map (in minutes) before switching to a new one automatically.
// Default: mp_timelimit 0
mp_timelimit 20
// Wait for the end of round before changing map.
// Default: mp_timelimit_waitroundend 0
mp_timelimit_waitroundend 1
// Round duration in minutes.
// Default: mp_roundtime 3
mp_roundtime 3
// Round limit in number of rounds.
// Default: mp_roundlimit 0
// Win limit in number of rounds.
// Default: mp_winlimit 0
mp_winlimit 0
// ........................ Server Specific Commands ........................ //
// Server tags - Tags show up on the in-game server browser. This helps
// users filter servers.
// vanilla - he server runs the default settings.
// custom - the server runs custom gameplay settings or mods.
// example: sv_tags "custom, fastdl"
sv_tags ""
// Friendly fire - Allows team members to injure other members of their team.
// Default: mp_friendlyfire 0
mp_friendlyfire 0
// ............................. Communication ............................. //
// Enable communication over voice via microphone.
// Default: sv_voiceenable 1
sv_voiceenable 1
// Players can hear all other players, no team restrictions.
// Default: sv_alltalk 0
sv_alltalk 0
// ............................. Fast Download .............................. //
// info: Allows custom maps to be downloaded to the client.
// Allows clients to download custom maps and textures etc. from the server at 20 kbps.
// Default: sv_allowdownload 1
sv_allowdownload 1
// Allows clients to download custom maps, textures etc. from a web server with no transfer limit.
// Example:
// server location: maps/custommap.bsp
// web server location: http://example.com/custom/maps/custommap.bsp
// sv_downloadurl "http://example.com/custom"
// Default: sv_downloadurl ""
sv_downloadurl ""
// ................................ Ban List ............................... //
// personal banlist based on user IDs.
exec banned_user.cfg
// personal banlist based on user IPs.
exec banned_ip.cfg
writeid
writeip
// ............................. Server Logging ............................. //
//Enables logging to file, console, and udp < on | off >.
log on
// Log server bans in the server logs.
// Default: sv_logbans 1
sv_logbans 1
// Echo log information to the console.
// Default: sv_logecho 1
sv_logecho 1
// Log server information in the log file.
// Default: sv_logfile 1
sv_logfile 1
// Log server information to only one file.
// Default: sv_log_onefile 0
sv_log_onefile 0

132
PiratesVikingandKnightsII/pvkiiserver

@ -1,132 +0,0 @@
#!/bin/bash
# No More Room in Hell
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass=""
# Start Variables
defaultmap="bt_island"
maxplayers="24"
port="27015"
sourcetvport="27020"
clientport="27005"
ip="0.0.0.0"
updateonstart="off"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Source_Dedicated_Server
fn_parms(){
parms="-game pvkii -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="17575"
# Server Details
servicename="pvkii-server"
gamename="Pirates, Vikings, and Knights II"
engine="source"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/pvkii"
executabledir="${filesdir}"
executable="./srcds_run"
servercfg="${servicename}.cfg"
servercfgdir="${systemdir}/cfg"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/lgsm-default.cfg"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${systemdir}/logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

46
ProjectZomboid/cfg/servertest.ini

@ -1,46 +0,0 @@
nightlengthmodifier=1.0
PVP=true
PauseEmpty=false
GlobalChat=true
Open=true
ServerWelcomeMessage= <RGB:1,0,0> Welcome to Project Zomboid MP ! to chat locally press "t", to global chat press "y" or add "/all" before chatting <LINE> Press /help to have a list of server commands <LINE> <RGB:1,1,1>
LogLocalChat=false
AutoCreateUserInWhiteList=false
DisplayUserName=true
SpawnPoint=0,0,0
SafetySystem=true
ShowSafety=true
SafetyToggleTimer=100
SafetyCooldownTimer=120
SpawnItems=
DefaultPort=16261
ResetID=834499345
Mods=
Map=Muldraugh, KY
SpawnRegions=servertest_spawnregions.lua
DoLuaChecksum=true
Public=false
PublicName=pzserver
PublicDescription=
MaxPlayers=64
PingFrequency=10
PingLimit=400
HoursForLootRespawn=0
MaxItemsForLootRespawn=4
ConstructionPreventsLootRespawn=true
DropOffWhiteListAfterDeath=false
NoFireSpread=false
NoFire=false
AnnounceDeath=false
MinutesPerPage=1.0
HoursForCorpseRemoval=0
SaveWorldEveryMinutes=0
PlayerSafehouse=false
AdminSafehouse=false
SafehouseAllowTrepass=true
SafehouseAllowFire=true
SafehouseAllowLoot=true
SafehouseAllowRespawn=false
SafehouseDaySurvivedToClaim=0
SafeHouseRemovalTime=144
AllowDestructionBySledgehammer=true

126
ProjectZomboid/pzserver

@ -1,126 +0,0 @@
#!/bin/bash
# Project Zomboid
# Server Management Script
# Author: Daniel Gibbs
# Contributions: Bryce Van Dyk (SingingTree)
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="anonymous"
steampass="password"
# Start Variables
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms=""
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Steam
appid="380870"
# Server Details
servicename="pz-server"
gamename="Project Zomboid"
engine="projectzomboid"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}"
executabledir="${filesdir}"
executable="./start-server.sh"
servercfg="servertest.ini"
servercfgdir="${HOME}/Zomboid/Server"
servercfgfullpath="${servercfgdir}/${servercfg}"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${HOME}/Zomboid/Logs"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

104
README.md

File diff suppressed because one or more lines are too long

130
RedOrchestra/roserver

@ -1,130 +0,0 @@
#!/bin/bash
# Red Orchestra: Ostfront 41-45
# Server Management Script
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
version="121215"
#### Variables ####
# Notification Email
# (on|off)
emailnotification="off"
email="email@example.com"
# Steam login
steamuser="username"
steampass="password"
# Start Variables
defaultmap="RO-Arad.rom"
ip="0.0.0.0"
updateonstart="off"
fn_parms(){
parms="server ${defaultmap}?game=ROGame.ROTeamGame?VACSecured=true -nohomedir ini=${servercfg} log=${gamelog}"
}
#### Advanced Variables ####
# Github Branch Select
# Allows for the use of different function files
# from a different repo and/or branch.
githubuser="dgibbs64"
githubrepo="linuxgsm"
githubbranch="master"
# Server Details
servicename="ro-server"
gamename="Red Orchestra: Ostfront 41-45"
engine="unreal2"
# Steam
appid="223250"
# Directories
rootdir="$(dirname $(readlink -f "${BASH_SOURCE[0]}"))"
selfname=$(basename $(readlink -f "${BASH_SOURCE[0]}"))
lockselfname=".${servicename}.lock"
filesdir="${rootdir}/serverfiles"
systemdir="${filesdir}/system"
executabledir="${systemdir}"
executable="./ucc-bin"
servercfg="${servicename}.ini"
servercfgdir="${systemdir}"
servercfgfullpath="${servercfgdir}/${servercfg}"
servercfgdefault="${servercfgdir}/default.ini"
compressedmapsdir="${rootdir}/Maps-Compressed"
backupdir="${rootdir}/backups"
# Logging
logdays="7"
gamelogdir="${rootdir}/log/server"
scriptlogdir="${rootdir}/log/script"
consolelogdir="${rootdir}/log/console"
gamelog="${gamelogdir}/${servicename}-game.log"
scriptlog="${scriptlogdir}/${servicename}-script.log"
consolelog="${consolelogdir}/${servicename}-console.log"
emaillog="${scriptlogdir}/${servicename}-email.log"
gamelogdate="${gamelogdir}/${servicename}-game-$(date '+%d-%m-%Y-%H-%M-%S').log"
scriptlogdate="${scriptlogdir}/${servicename}-script-$(date '+%d-%m-%Y-%H-%M-%S').log"
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%d-%m-%Y-%H-%M-%S').log"
##### Script #####
# Do not edit
fn_getgithubfile(){
filename=$1
exec=$2
fileurl=${3:-$filename}
filepath="${rootdir}/${filename}"
filedir=$(dirname "${filepath}")
# If the function file is missing, then download
if [ ! -f "${filepath}" ]; then
if [ ! -d "${filedir}" ]; then
mkdir "${filedir}"
fi
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}/${fileurl}"
echo -e " fetching ${filename}...\c"
if [ "$(command -v curl)" ]||[ "$(which curl >/dev/null 2>&1)" ]||[ -f "/usr/bin/curl" ]||[ -f "/bin/curl" ]; then
:
else
echo -e "\e[0;31mFAIL\e[0m\n"
echo "Curl is not installed!"
echo -e ""
exit
fi
curl=$(curl --fail -o "${filepath}" "${githuburl}" 2>&1)
if [ $? -ne 0 ]; then
echo -e "\e[0;31mFAIL\e[0m\n"
echo " ${curl}"|grep "curl:"
echo -e "${githuburl}\n"
exit
else
echo -e "\e[0;32mOK\e[0m"
fi
if [ "${exec}" ]; then
chmod +x "${filepath}"
fi
fi
if [ "${exec}" ]; then
source "${filepath}"
fi
}
fn_runfunction(){
fn_getgithubfile "functions/${functionfile}" 1
}
fn_functions(){
# Functions are defined in fn_functions.
functionfile="${FUNCNAME}"
fn_runfunction
}
fn_functions
getopt=$1
fn_getopt

35
Ricochet/cfg/lgsm-default.cfg

@ -1,35 +0,0 @@
// Server Name
hostname "<hostname>"
// RCON Password
rcon_password "<rconpassword>"
// Server Password
sv_password ""
// Server Logging
log on
sv_logbans 1
sv_logecho 1
sv_logfile 1
sv_log_onefile 0
// disable autoaim
sv_aim 0
// disable clients' ability to pause the server
pausable 0
// maximum client movement speed
sv_maxspeed 320
// 20 minute timelimit
mp_timelimit 20
// cheats off
sv_cheats 0
// load ban files
exec listip.cfg
exec banned.cfg

Some files were not shown because too many files changed in this diff

Loading…
Cancel
Save