Mon Sep 16 2019
This commit is contained in:
parent
d5ef6e9949
commit
fed09be3c3
@ -319,14 +319,21 @@ function map_sync () # $1: [InstanceName]
|
|||||||
local Config="$InstanceConfigDir/$Instance/LinuxServer-KFGame.ini"
|
local Config="$InstanceConfigDir/$Instance/LinuxServer-KFGame.ini"
|
||||||
for MapFile in $(find "$CustomMapsDir" -type f -name '*.kfm' -printf "%f\n")
|
for MapFile in $(find "$CustomMapsDir" -type f -name '*.kfm' -printf "%f\n")
|
||||||
do
|
do
|
||||||
MapName=$(echo "$MapFile" | grep -Po '([^\/]*).kfm')
|
MapName=$(echo "$MapFile" | sed -r 's|.kfm$||g')
|
||||||
if [[ ! -f "$Config" ]]; then
|
if [[ ! -f "$Config" ]]; then
|
||||||
echo "$Config does not exist!"
|
echo "$Config does not exist!"
|
||||||
elif grep -qP "MapName=$MapName[ $]" "$Config"; then
|
elif grep -qP "MapName=$MapName[ $]" "$Config"; then
|
||||||
echo "$MapName is already in $Config."
|
echo "$MapName is already in $Config."
|
||||||
else
|
else
|
||||||
echo "Adding $MapName to $Config."
|
echo "Adding $MapName to $Config."
|
||||||
echo -e "\n[$MapName KFMapSummary]\nMapName=$MapName" >> "$Config"
|
echo -e "
|
||||||
|
[$MapName KFMapSummary]
|
||||||
|
MapName=$MapName
|
||||||
|
bPlayableInSurvival=True
|
||||||
|
bPlayableInWeekly=True
|
||||||
|
bPlayableInVsSurvival=True
|
||||||
|
bPlayableInEndless=True
|
||||||
|
bPlayableInObjective=False" >> "$Config"
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
else
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
Name: kf2-srv
|
Name: kf2-srv
|
||||||
Version: 0.2.0
|
Version: 0.2.1
|
||||||
Release: 1%{dist}
|
Release: 1%{dist}
|
||||||
Summary: Killing Floor 2 server
|
Summary: Killing Floor 2 server
|
||||||
Group: Amusements/Games
|
Group: Amusements/Games
|
||||||
@ -20,7 +20,7 @@ Requires: steamcmd
|
|||||||
Provides: %{name}
|
Provides: %{name}
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Killing Floor 2 server
|
Command line tool for managing a set of Killing Floor 2 servers.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
|
|
||||||
@ -75,6 +75,9 @@ if [[ $1 -eq 0 ]] ; then # Uninstall
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Sep 16 2019 GenZmeY <genzmey@gmail.com> - 0.2.1-1
|
||||||
|
- --map-sync bugfixes.
|
||||||
|
|
||||||
* Mon Sep 16 2019 GenZmeY <genzmey@gmail.com> - 0.2.0-1
|
* Mon Sep 16 2019 GenZmeY <genzmey@gmail.com> - 0.2.0-1
|
||||||
- Add --map-sync implementation to kf2-srv.
|
- Add --map-sync implementation to kf2-srv.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user