Skip to content

Commit c8d1a7c

Browse files
dgibbs64Claiyc
andauthored
feat(newserver): Last Oasis (#3565)
Co-authored-by: Claiyc <[email protected]>
1 parent f289ebe commit c8d1a7c

File tree

3 files changed

+202
-0
lines changed

3 files changed

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

lgsm/functions/info_messages.sh

100644100755
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1032,6 +1032,16 @@ fn_info_message_jk2(){
10321032
} | column -s $'\t' -t
10331033
}
10341034

1035+
fn_info_message_lo(){
1036+
echo -e "netstat -atunp | grep MistServer"
1037+
echo -e ""
1038+
{
1039+
echo -e "${lightblue}DESCRIPTION\tDIRECTION\tPORT\tPROTOCOL${default}"
1040+
echo -e "> Game\tINBOUND\t${port}\tudp"
1041+
echo -e "> Query\tINBOUND\t${queryport}\tudp"
1042+
} | column -s $'\t' -t
1043+
}
1044+
10351045
fn_info_message_kf(){
10361046
{
10371047
fn_port "header"
@@ -1643,6 +1653,8 @@ fn_info_message_select_engine(){
16431653
fn_info_message_jc3
16441654
elif [ "${shortname}" == "jk2" ]; then
16451655
fn_info_message_jk2
1656+
elif [ "${shortname}" == "lo" ]; then
1657+
fn_info_message_lo
16461658
elif [ "${shortname}" == "kf" ]; then
16471659
fn_info_message_kf
16481660
elif [ "${shortname}" == "kf2" ]; then

0 commit comments

Comments
 (0)