Skip to content

Commit 4a30a5c

Browse files
committed
add compatabilty message
1 parent d0fbe4a commit 4a30a5c

3 files changed

Lines changed: 17 additions & 9 deletions

File tree

lgsm/data/serverlist.csv

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ av,avserver,Avorion,ubuntu-24.04
1010
bb,bbserver,BrainBread,ubuntu-24.04
1111
bb2,bb2server,BrainBread 2,ubuntu-24.04
1212
bd,bdserver,Base Defense,ubuntu-24.04
13-
bf1942,bf1942server,Battlefield 1942,ubuntu-24.04
14-
bfv,bfvserver,Battlefield: Vietnam,ubuntu-24.04
13+
bf1942,bf1942server,Battlefield 1942,ubuntu-22.04
14+
bfv,bfvserver,Battlefield: Vietnam,ubuntu-22.04
1515
bmdm,bmdmserver,Black Mesa: Deathmatch,ubuntu-24.04
1616
bo,boserver,Ballistic Overkill,ubuntu-24.04
1717
bs,bsserver,Blade Symphony,ubuntu-24.04

lgsm/data/ubuntu-24.04.csv

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ cs
3131
cs2
3232
cscz
3333
csgo
34-
css,libtinfo5:i386
34+
css
3535
ct
3636
dab
3737
dayz
@@ -48,7 +48,7 @@ etl
4848
ets2
4949
fctr
5050
fof
51-
gmod,libtinfo5:i386
51+
gmod
5252
hcu
5353
hl2dm
5454
hldm
@@ -72,7 +72,7 @@ mohaa,libstdc++5:i386
7272
mta,libncursesw5,libxml2-utils
7373
nd
7474
nec
75-
nmrih,libtinfo5:i386
75+
nmrih
7676
ns
7777
ns2,speex,libtbb2
7878
ns2c,speex:i386,libtbb2
@@ -104,7 +104,7 @@ scpsl,mono-complete
104104
scpslsm,mono-complete
105105
sdtd,telnet,expect,libxml2-utils
106106
sf
107-
sfc,libtinfo5:i386
107+
sfc
108108
sm,telnet,expect
109109
sof2
110110
sol
@@ -135,5 +135,5 @@ wf
135135
wmc,openjdk-21-jre
136136
wurm,xvfb
137137
xnt
138-
zmr,libtinfo5:i386
139-
zps,libtinfo5:i386
138+
zmr
139+
zps

lgsm/modules/check_deps.sh

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,6 +348,8 @@ if [ "${commandname}" == "INSTALL" ]; then
348348
fi
349349
fi
350350

351+
info_distro.sh
352+
351353
# Will warn user if their distro is no longer supported by the vendor.
352354
if [ -n "${distrosupport}" ]; then
353355
if [ "${distrosupport}" == "unsupported" ]; then
@@ -356,7 +358,13 @@ if [ -n "${distrosupport}" ]; then
356358
fi
357359
fi
358360

359-
info_distro.sh
361+
if { [ "${distroid}" == "ubuntu" ] && dpkg --compare-versions "${distroversion}" "gt" "24.04"; } || { [ "${distroidlike}" == "debian" ] && dpkg --compare-versions "${distroversion}" "gt" "12"; }; then
362+
if [ "${shortname}" == "bf1942" ] || [ "${shortname}" == "bfv" ]; then
363+
fn_print_warning_nl "${gamename} is not supported on ${distroname}."
364+
fn_script_log_warn "${gamename} is not supported on ${distroname}."
365+
core_exit.sh
366+
fi
367+
fi
360368

361369
if [ ! -f "${tmpdir}/dependency-no-check.tmp" ] && [ ! -f "${datadir}/${distroid}-${distroversioncsv}.csv" ]; then
362370
# Check that the distro dependency csv file exists.

0 commit comments

Comments
 (0)