Skip to content

Commit eda883d

Browse files
Frisaskydgibbs64
authored andcommitted
feat(newserver): Action: Source (#2507)
1 parent fc13af0 commit eda883d

File tree

3 files changed

+165
-0
lines changed

3 files changed

+165
-0
lines changed
Lines changed: 158 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,158 @@
1+
##################################
2+
######## Default Settings ########
3+
##################################
4+
# DO NOT EDIT WILL BE OVERWRITTEN!
5+
# Copy settings from here and use them in either
6+
# common.cfg - applies settings to every instance
7+
# [instance].cfg - applies settings to a specific instance
8+
9+
#### Server Settings ####
10+
11+
## SteamCMD Login | https://docs.linuxgsm.com/steamcmd#steamcmd-login
12+
steamuser="username"
13+
steampass='password'
14+
15+
## Server Start Settings | https://docs.linuxgsm.com/configuration/start-parameters
16+
ip="0.0.0.0"
17+
port="27015"
18+
clientport="27005"
19+
sourcetvport="27020"
20+
defaultmap="act_airport"
21+
maxplayers="20"
22+
23+
## Server Start Command | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
24+
fn_parms(){
25+
parms="-game ahl2 -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +tv_port ${sourcetvport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
26+
}
27+
28+
#### LinuxGSM Settings ####
29+
30+
## Notification Alerts
31+
# (on|off)
32+
33+
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
34+
displayip=""
35+
36+
# More info | https://docs.linuxgsm.com/alerts#more-info
37+
postalert="off"
38+
postdays="7"
39+
posttarget="https://hastebin.com"
40+
41+
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
42+
discordalert="off"
43+
discordwebhook="webhook"
44+
45+
# Email Alerts | https://docs.linuxgsm.com/alerts/email
46+
emailalert="off"
47+
48+
emailfrom=""
49+
50+
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
51+
iftttalert="off"
52+
ifttttoken="accesstoken"
53+
iftttevent="linuxgsm_alert"
54+
55+
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
56+
mailgunalert="off"
57+
mailguntoken="accesstoken"
58+
mailgundomain="example.com"
59+
mailgunemailfrom="[email protected]"
60+
mailgunemail="[email protected]"
61+
62+
# Pushbullet Alerts | https://docs.linuxgsm.com/alerts/pushbullet
63+
pushbulletalert="off"
64+
pushbullettoken="accesstoken"
65+
channeltag=""
66+
67+
# Pushover Alerts | https://docs.linuxgsm.com/alerts/pushover
68+
pushoveralert="off"
69+
pushovertoken="accesstoken"
70+
71+
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
72+
# You can add a custom cURL string eg proxy (useful in Russia) or else in "curlcustomstring".
73+
# like a "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help", if you not need
74+
# any custom string in curl - simple ignore this parameter.
75+
telegramalert="off"
76+
telegramtoken="accesstoken"
77+
telegramchatid=""
78+
curlcustomstring=""
79+
80+
## Updating | https://docs.linuxgsm.com/commands/update
81+
updateonstart="off"
82+
83+
## Backup | https://docs.linuxgsm.com/commands/backup
84+
maxbackups="4"
85+
maxbackupdays="30"
86+
stoponbackup="on"
87+
88+
## Logging | https://docs.linuxgsm.com/features/logging
89+
consolelogging="on"
90+
logdays="7"
91+
92+
## Monitor | https://docs.linuxgsm.com/commands/monitor
93+
# Query delay time
94+
querydelay="1"
95+
96+
#### LinuxGSM Advanced Settings ####
97+
98+
# ANSI Colors
99+
ansi="on"
100+
101+
# Message Display Time
102+
sleeptime="0.5"
103+
104+
# Stop Mode | https://docs.linuxgsm.com/steamcmd/stopmode
105+
# 1: tmux kill
106+
# 2: CTRL+c
107+
# 3: quit
108+
# 4: quit 120s
109+
# 5: stop
110+
# 6: q
111+
# 7: exit
112+
# 8: 7 Days to Die
113+
# 9: Gold Source
114+
# 10: Teamspeak 3
115+
stopmode="3"
116+
117+
## SteamCMD Settings
118+
# Server appid
119+
appid="985050"
120+
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
121+
branch=""
122+
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
123+
steammaster="true"
124+
125+
## LinuxGSM Server Details
126+
# Do not edit
127+
gamename="Action: Source"
128+
engine="source"
129+
glibc="2.15"
130+
131+
#### Directories ####
132+
# Edit with care
133+
134+
## Server Specific Directories
135+
systemdir="${serverfiles}/ahl2"
136+
executabledir="${serverfiles}"
137+
executable="./srcds_run"
138+
servercfg="${servicename}.cfg"
139+
servercfgdefault="server.cfg"
140+
servercfgdir="${systemdir}/cfg"
141+
servercfgfullpath="${servercfgdir}/${servercfg}"
142+
143+
## Backup Directory
144+
backupdir="${lgsmdir}/backup"
145+
146+
## Logging Directories
147+
logdir="${rootdir}/log"
148+
gamelogdir="${systemdir}/logs"
149+
lgsmlogdir="${logdir}/script"
150+
consolelogdir="${logdir}/console"
151+
lgsmlog="${lgsmlogdir}/${servicename}-script.log"
152+
consolelog="${consolelogdir}/${servicename}-console.log"
153+
alertlog="${lgsmlogdir}/${servicename}-alert.log"
154+
postdetailslog="${lgsmlogdir}/${servicename}-postdetails.log"
155+
156+
## Logs Naming
157+
lgsmlogdate="${lgsmlogdir}/${servicename}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
158+
consolelogdate="${consolelogdir}/${servicename}-console-$(date '+%Y-%m-%d-%H:%M:%S').log"

lgsm/data/serverlist.csv

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ahl,ahlserver,Action half-life
2+
ahl2,ahl2server,Action: Source
23
arma3,arma3server,ARMA 3
34
sdtd,sdtdserver,7 Days to Die
45
ark,arkserver,ARK: Survival Evolved

lgsm/functions/install_config.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,12 @@ elif [ "${shortname}" == "ahl" ]; then
153153
fn_fetch_default_config
154154
fn_default_config_remote
155155
fn_set_config_vars
156+
elif [ "${shortname}" == "ahl2" ]; then
157+
gamedirname="ActionSource"
158+
array_configs+=( server.cfg )
159+
fn_fetch_default_config
160+
fn_default_config_remote
161+
fn_set_config_vars
156162
elif [ "${shortname}" == "ark" ]; then
157163
gamedirname="ARKSurvivalEvolved"
158164
fn_check_cfgdir

0 commit comments

Comments
 (0)