Skip to content

Commit 45de90e

Browse files
committed
add lastoasis
1 parent ad91fb5 commit 45de90e

File tree

4 files changed

+205
-0
lines changed

4 files changed

+205
-0
lines changed
Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
##################################
2+
######## Default Settings ########
3+
##################################
4+
# DO NOT EDIT, ANY CHANGES 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+
#### Game Server Settings ####
10+
11+
## Predefined Parameters | https://docs.linuxgsm.com/configuration/start-parameters
12+
servername="LinuxGSM"
13+
ip="0.0.0.0"
14+
port="7777"
15+
queryport="27015"
16+
customerkey=""
17+
providerkey=""
18+
slots="100"
19+
20+
## Server Parameters | https://docs.linuxgsm.com/configuration/start-parameters#additional-parameters
21+
startparameters="-log -force_steamclient_link -messaging -NoLiveServer -EnableCheats -backendapiurloverride='backend.last-oasis.com' -identifier=${servername} -port=${port} -CustomerKey=${customerkey} -ProviderKey=${providerkey} -slots=${slots} -QueryPort=${queryport} -OverrideConnectionAddress=${ip}"
22+
23+
#### LinuxGSM Settings ####
24+
25+
## LinuxGSM Stats
26+
# Send useful stats to LinuxGSM developers.
27+
# https://docs.linuxgsm.com/configuration/linuxgsm-stats
28+
# (on|off)
29+
stats="off"
30+
31+
## Notification Alerts
32+
# (on|off)
33+
34+
# Display IP | https://docs.linuxgsm.com/alerts#display-ip
35+
displayip=""
36+
37+
# More info | https://docs.linuxgsm.com/alerts#more-info
38+
postalert="off"
39+
40+
# Discord Alerts | https://docs.linuxgsm.com/alerts/discord
41+
discordalert="off"
42+
discordwebhook="webhook"
43+
44+
# Email Alerts | https://docs.linuxgsm.com/alerts/email
45+
emailalert="off"
46+
47+
emailfrom=""
48+
49+
# IFTTT Alerts | https://docs.linuxgsm.com/alerts/ifttt
50+
iftttalert="off"
51+
ifttttoken="accesstoken"
52+
iftttevent="linuxgsm_alert"
53+
54+
# Mailgun Email Alerts | https://docs.linuxgsm.com/alerts/mailgun
55+
mailgunalert="off"
56+
mailgunapiregion="us"
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+
pushoveruserkey="userkey"
71+
72+
# Rocket.Chat Alerts | https://docs.linuxgsm.com/alerts/rocket.chat
73+
rocketchatalert="off"
74+
rocketchatwebhook="webhook"
75+
rocketchattoken=""
76+
77+
# Slack Alerts | https://docs.linuxgsm.com/alerts/slack
78+
slackalert="off"
79+
slackwebhook="webhook"
80+
81+
# Telegram Alerts | https://docs.linuxgsm.com/alerts/telegram
82+
# You can add a custom cURL string eg proxy (useful in Russia) in "curlcustomstring".
83+
# For example "--socks5 ipaddr:port" for socks5 proxy see more in "curl --help".
84+
telegramapi="api.telegram.org"
85+
telegramalert="off"
86+
telegramtoken="accesstoken"
87+
telegramchatid=""
88+
curlcustomstring=""
89+
90+
## Updating | https://docs.linuxgsm.com/commands/update
91+
updateonstart="off"
92+
93+
## Backup | https://docs.linuxgsm.com/commands/backup
94+
maxbackups="4"
95+
maxbackupdays="30"
96+
stoponbackup="on"
97+
98+
## Logging | https://docs.linuxgsm.com/features/logging
99+
consolelogging="on"
100+
logdays="7"
101+
102+
## Monitor | https://docs.linuxgsm.com/commands/monitor
103+
# Query delay time
104+
querydelay="1"
105+
106+
## ANSI Colors | https://docs.linuxgsm.com/features/ansi-colors
107+
ansi="on"
108+
109+
#### Advanced Settings ####
110+
111+
## Message Display Time | https://docs.linuxgsm.com/features/message-display-time
112+
sleeptime="0.5"
113+
114+
## SteamCMD Settings | https://docs.linuxgsm.com/steamcmd
115+
# Server appid
116+
appid="920720"
117+
steamcmdforcewindows="no"
118+
# SteamCMD Branch | https://docs.linuxgsm.com/steamcmd/branch
119+
branch=""
120+
betapassword=""
121+
# Master Server | https://docs.linuxgsm.com/steamcmd/steam-master-server
122+
steammaster="false"
123+
124+
## Stop Mode | https://docs.linuxgsm.com/features/stop-mode
125+
# 1: tmux kill
126+
# 2: CTRL+c
127+
# 3: quit
128+
# 4: quit 120s
129+
# 5: stop
130+
# 6: q
131+
# 7: exit
132+
# 8: 7 Days to Die
133+
# 9: GoldSrc
134+
# 10: Avorion
135+
# 11: end
136+
stopmode="2"
137+
138+
## Query mode
139+
# 1: session only
140+
# 2: gamedig (gsquery fallback)
141+
# 3: gamedig
142+
# 4: gsquery
143+
# 5: tcp
144+
querymode="1"
145+
querytype=""
146+
147+
## Console type
148+
consoleverbose="yes"
149+
consoleinteract="no"
150+
151+
## Game Server Details
152+
# Do not edit
153+
gamename="Last Oasis"
154+
engine="unreal4"
155+
glibc="2.17"
156+
157+
#### Directories ####
158+
# Edit with care
159+
160+
## Game Server Directories
161+
systemdir="${serverfiles}/Mist"
162+
executabledir="${systemdir}/Binaries/Linux"
163+
executable="./MistServer-Linux-Shipping"
164+
servercfgdir="${systemdir}/Saved/Config/LinuxServer"
165+
servercfg="Game.ini"
166+
servercfgdefault="Game.ini"
167+
servercfgfullpath="${servercfgdir}/${servercfg}"
168+
169+
## Backup Directory
170+
backupdir="${lgsmdir}/backup"
171+
172+
## Logging Directories
173+
logdir="${rootdir}/log"
174+
gamelogdir="${systemdir}/Saved/Logs"
175+
lgsmlogdir="${logdir}/script"
176+
consolelogdir="${logdir}/console"
177+
lgsmlog="${lgsmlogdir}/${selfname}-script.log"
178+
consolelog="${consolelogdir}/${selfname}-console.log"
179+
alertlog="${lgsmlogdir}/${selfname}-alert.log"
180+
postdetailslog="${lgsmlogdir}/${selfname}-postdetails.log"
181+
182+
## Logs Naming
183+
lgsmlogdate="${lgsmlogdir}/${selfname}-script-$(date '+%Y-%m-%d-%H:%M:%S').log"
184+
consolelogdate="${consolelogdir}/${selfname}-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
@@ -51,6 +51,7 @@ jc3,jc3server,Just Cause 3
5151
jk2,jk2server,Jedi Knight II: Jedi Outcast
5252
kf,kfserver,Killing Floor
5353
kf2,kf2server,Killing Floor 2
54+
lo,loserver,Last Oasis
5455
l4d,l4dserver,Left 4 Dead
5556
l4d2,l4d2server,Left 4 Dead 2
5657
mc,mcserver,Minecraft

lgsm/functions/info_messages.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -950,6 +950,16 @@ fn_info_message_justcause3(){
950950
} | column -s $'\t' -t
951951
}
952952

953+
fn_info_message_lo(){
954+
echo -e "netstat -atunp | grep MistServer"
955+
echo -e ""
956+
{
957+
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
958+
echo -e "> Game\tINBOUND\t${port}\tudp"
959+
echo -e "> Query\tINBOUND\t${queryport}\tudp"
960+
} | column -s $'\t' -t
961+
}
962+
953963
fn_info_message_minecraft(){
954964
echo -e "netstat -atunp | grep java"
955965
echo -e ""
@@ -1616,6 +1626,8 @@ fn_info_message_select_engine(){
16161626
fn_info_message_justcause2
16171627
elif [ "${shortname}" == "jc3" ]; then
16181628
fn_info_message_justcause3
1629+
elif [ "${shortname}" == "lo" ]; then
1630+
fn_info_message_lo
16191631
elif [ "${shortname}" == "kf2" ]; then
16201632
fn_info_message_kf2
16211633
elif [ "${shortname}" == "mc" ]||[ "${shortname}" == "pmc" ]||[ "${shortname}" == "wmc" ]; then

lgsm/functions/info_parms.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,12 @@ fn_info_parms_kf2(){
7777
defaultmap=${defaultmap:-"NOT SET"}
7878
}
7979

80+
fn_info_parms_lo(){
81+
servername=${servername:-"NOT SET"}
82+
port=${port:-"0"}
83+
queryport=${queryport:-"0"}
84+
}
85+
8086
fn_info_parms_mordhau(){
8187
port=${port:-"0"}
8288
queryport=${queryport:-"0"}
@@ -270,6 +276,8 @@ elif [ "${shortname}" == "jk2" ]; then
270276
fn_info_parms_jk2
271277
elif [ "${shortname}" == "kf2" ]; then
272278
fn_info_parms_kf2
279+
elif [ "${shortname}" == "lo" ]; then
280+
fn_info_parms_lo
273281
elif [ "${shortname}" == "mohaa" ]; then
274282
fn_info_parms_mohaa
275283
elif [ "${shortname}" == "mom" ]; then

0 commit comments

Comments
 (0)