Compare commits
14 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
26857087f9 | ||
|
|
a43e1cec86 | ||
|
|
d85e5f0d16 | ||
|
|
196b208af2 | ||
|
|
e731098dae | ||
| 81f7c798a9 | |||
|
|
91f9940aad | ||
|
|
6c17bfd942 | ||
| 94627e4c84 | |||
|
|
991885366b | ||
| b982a3b938 | |||
| 7c7c0b3fcb | |||
| 660d953263 | |||
| 29a321f217 |
File diff suppressed because it is too large
Load Diff
29
Run.sh
29
Run.sh
@@ -1,8 +1,9 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
OUTPUT_DIR="$2"
|
OUTPUT_DIR="$2"
|
||||||
CFG_FILE="$3"
|
|
||||||
DEFAULT_CFG_FILE=UnrealTournament.ini
|
DEFAULT_CFG_FILE=UnrealTournament.ini
|
||||||
|
CFG_FILE="${3:-$DEFAULT_CFG_FILE}"
|
||||||
|
|
||||||
function add_iniKeyEx() {
|
function add_iniKeyEx() {
|
||||||
crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4
|
crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4
|
||||||
# Warning: ugly hack with sed to allow multiple key instances + to remove space around '='
|
# Warning: ugly hack with sed to allow multiple key instances + to remove space around '='
|
||||||
@@ -35,7 +36,11 @@ function del_ServerActors() {
|
|||||||
del_iniKey 'Engine.GameEngine' ServerActors $1
|
del_iniKey 'Engine.GameEngine' ServerActors $1
|
||||||
del_iniKey 'XC_Engine.XC_GameEngine' ServerActors $1
|
del_iniKey 'XC_Engine.XC_GameEngine' ServerActors $1
|
||||||
}
|
}
|
||||||
|
function getmodprefix() {
|
||||||
|
UFile=$(find $OUTPUT_DIR/System -type f -iname "SmartSB[[:digit:]]*\.u" -exec basename {} \;)
|
||||||
|
BaseName="${UFile%.*}"
|
||||||
|
echo "$BaseName"
|
||||||
|
}
|
||||||
function install() {
|
function install() {
|
||||||
rsync -a $SCRIPT_DIR/Help/ $OUTPUT_DIR/Help/ --exclude '.git'
|
rsync -a $SCRIPT_DIR/Help/ $OUTPUT_DIR/Help/ --exclude '.git'
|
||||||
rsync -a $SCRIPT_DIR/System/ $OUTPUT_DIR/System/ --exclude '.git'
|
rsync -a $SCRIPT_DIR/System/ $OUTPUT_DIR/System/ --exclude '.git'
|
||||||
@@ -45,12 +50,11 @@ function install() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function enable() {
|
function enable() {
|
||||||
SSBUFile=$(find $OUTPUT_DIR/System -type f -iname "SmartSB*.u" ! -name "SmartSBStats.u" -exec basename {} \;)
|
BaseName="$(getmodprefix)"
|
||||||
SSBBaseName="${SSBUFile%.*}"
|
|
||||||
|
|
||||||
add_ServerPackage $SSBBaseName
|
add_ServerPackage $BaseName
|
||||||
add_ServerPackage SmartSBStats
|
add_ServerPackage SmartSBStats
|
||||||
add_ServerActors $SSBBaseName.SmartSBServerActor
|
add_ServerActors $BaseName.SmartSBServerActor
|
||||||
|
|
||||||
#todo: config SSB ?
|
#todo: config SSB ?
|
||||||
|
|
||||||
@@ -58,19 +62,18 @@ function enable() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function disable() {
|
function disable() {
|
||||||
SSBUFile=$(find $OUTPUT_DIR/System -type f -iname "SmartSB*.u" ! -name "SmartSBStats.u" -exec basename {} \;)
|
BaseName="$(getmodprefix)"
|
||||||
SSBBaseName="${SSBUFile%.*}"
|
|
||||||
|
|
||||||
del_ServerPackage $SSBBaseName
|
del_ServerPackage $BaseName
|
||||||
del_ServerPackage SmartSBStats
|
del_ServerPackage SmartSBStats
|
||||||
del_ServerActors $SSBBaseName.SmartSBServerActor
|
del_ServerActors $BaseName.SmartSBServerActor
|
||||||
|
|
||||||
echo disable ok
|
echo disable ok
|
||||||
}
|
}
|
||||||
|
|
||||||
function show_help() {
|
function show_help() {
|
||||||
echo
|
echo
|
||||||
echo "Usage: $0 { install | enable | disable } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
echo "Usage: $0 { getmodprefix | install | enable | disable } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||||
echo
|
echo
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -102,6 +105,10 @@ function check_game_dir() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
|
'getmodprefix')
|
||||||
|
check_game_dir
|
||||||
|
getmodprefix
|
||||||
|
;;
|
||||||
'install')
|
'install')
|
||||||
check_game_dir
|
check_game_dir
|
||||||
install
|
install
|
||||||
|
|||||||
@@ -1,2 +0,0 @@
|
|||||||
[Public]
|
|
||||||
Object=(Name=SmartSB109.SmartSB,Class=Class,MetaClass=Engine.Mutator,Description="SmartSB v109")
|
|
||||||
Binary file not shown.
3
System/SmartSB122.int
Normal file
3
System/SmartSB122.int
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
[Public]
|
||||||
|
Object=(Name=SmartSB122.SmartSB,Class=Class,MetaClass=Engine.Mutator,Description="SmartSB v122")
|
||||||
|
Object=(Name=SmartSB122.SmartSBServerActor,Class=Class,MetaClass=Engine.Actor,Description="")
|
||||||
BIN
System/SmartSB122.u
Normal file
BIN
System/SmartSB122.u
Normal file
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user