first commit
This commit is contained in:
1521
Help/readme.html
Normal file
1521
Help/readme.html
Normal file
File diff suppressed because it is too large
Load Diff
201
Run.sh
Normal file
201
Run.sh
Normal file
@@ -0,0 +1,201 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
||||||
|
OUTPUT_DIR="$2"
|
||||||
|
CFG_FILE="$3"
|
||||||
|
DEFAULT_CFG_FILE=UnrealTournament.ini
|
||||||
|
function add_iniKeyEx() {
|
||||||
|
crudini --set $OUTPUT_DIR/System/$1 $2 __$3 $4
|
||||||
|
# Warning: ugly hack with sed to allow multiple key instances + to remove space around '='
|
||||||
|
sed -i "s/[[:space:]]*__$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')[[:space:]]*=[[:space:]]*/$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')=/g" $OUTPUT_DIR/System/$1
|
||||||
|
}
|
||||||
|
# !!Warning!! section is not considered
|
||||||
|
function del_iniKeyEx() {
|
||||||
|
sed -i "/[[:space:]]*$(echo $3 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')[[:space:]]*=[[:space:]]*$(echo $4 | sed -e 's/\([[\/.*]\|\]\)/\\&/g')/d" $OUTPUT_DIR/System/$1
|
||||||
|
}
|
||||||
|
function add_iniKey() {
|
||||||
|
add_iniKeyEx $CFG_FILE $1 $2 $3
|
||||||
|
}
|
||||||
|
# !!Warning!! section is not considered
|
||||||
|
function del_iniKey() {
|
||||||
|
del_iniKeyEx $CFG_FILE $1 $2 $3
|
||||||
|
}
|
||||||
|
function add_ServerPackage() {
|
||||||
|
add_iniKey 'Engine.GameEngine' ServerPackages $1
|
||||||
|
add_iniKey 'XC_Engine.XC_GameEngine' ServerPackages $1
|
||||||
|
}
|
||||||
|
function del_ServerPackage() {
|
||||||
|
del_iniKey 'Engine.GameEngine' ServerPackages $1
|
||||||
|
del_iniKey 'XC_Engine.XC_GameEngine' ServerPackages $1
|
||||||
|
}
|
||||||
|
function add_ServerActors() {
|
||||||
|
add_iniKey 'Engine.GameEngine' ServerActors $1
|
||||||
|
add_iniKey 'XC_Engine.XC_GameEngine' ServerActors $1
|
||||||
|
}
|
||||||
|
function del_ServerActors() {
|
||||||
|
del_iniKey 'Engine.GameEngine' ServerActors $1
|
||||||
|
del_iniKey 'XC_Engine.XC_GameEngine' ServerActors $1
|
||||||
|
}
|
||||||
|
function getmodprefix() {
|
||||||
|
UNUFile=$(find $OUTPUT_DIR/System -type f -name "fnn*.u" -exec basename {} \;)
|
||||||
|
FNNBaseName="${UNUFile%.*}"
|
||||||
|
echo "$FNNBaseName"
|
||||||
|
}
|
||||||
|
function install() {
|
||||||
|
rsync -a $SCRIPT_DIR/Help/ $OUTPUT_DIR/Help --exclude '.git'
|
||||||
|
rsync -a $SCRIPT_DIR/System/ $OUTPUT_DIR/System --exclude '.git'
|
||||||
|
|
||||||
|
echo install ok
|
||||||
|
}
|
||||||
|
function enable() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
VAUFile=$(find $OUTPUT_DIR/System -type f -name "VAH*.u" -exec basename {} \;)
|
||||||
|
VABaseName="${VAUFile%.*}"
|
||||||
|
BP1UFile=$(find $OUTPUT_DIR/System -type f -name "BP1H*.u" -exec basename {} \;)
|
||||||
|
BP1BaseName="${BP1UFile%.*}"
|
||||||
|
BP4UFile=$(find $OUTPUT_DIR/System -type f -name "BP4H*.u" -exec basename {} \;)
|
||||||
|
BP4BaseName="${BP4UFile%.*}"
|
||||||
|
add_ServerPackage $FNNBaseName
|
||||||
|
add_ServerActors $FNNBaseName.NewNetServer
|
||||||
|
add_ServerPackage $BP1BaseName
|
||||||
|
add_ServerPackage $BP4BaseName
|
||||||
|
add_ServerPackage $VABaseName
|
||||||
|
|
||||||
|
echo enable ok
|
||||||
|
}
|
||||||
|
function disable() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
VAUFile=$(find $OUTPUT_DIR/System -type f -name "VAH*.u" -exec basename {} \;)
|
||||||
|
VABaseName="${VAUFile%.*}"
|
||||||
|
BP1UFile=$(find $OUTPUT_DIR/System -type f -name "BP1H*.u" -exec basename {} \;)
|
||||||
|
BP1BaseName="${BP1UFile%.*}"
|
||||||
|
BP4UFile=$(find $OUTPUT_DIR/System -type f -name "BP4H*.u" -exec basename {} \;)
|
||||||
|
BP4BaseName="${BP4UFile%.*}"
|
||||||
|
|
||||||
|
del_ServerPackage $FNNBaseName
|
||||||
|
del_ServerActors $FNNBaseName.NewNetServer
|
||||||
|
del_ServerPackage $BP1BaseName
|
||||||
|
del_ServerPackage $BP4BaseName
|
||||||
|
del_ServerPackage $VABaseName
|
||||||
|
echo disable ok
|
||||||
|
}
|
||||||
|
function enableCG() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
add_ServerActors $FNNBaseName.NewNetCG
|
||||||
|
echo enable ok
|
||||||
|
}
|
||||||
|
function disableCG() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
del_ServerActors $FNNBaseName.NewNetCG
|
||||||
|
echo disable ok
|
||||||
|
}
|
||||||
|
function enableDJ() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
add_ServerActors $FNNBaseName.DoubleJump
|
||||||
|
echo enable ok
|
||||||
|
}
|
||||||
|
function disableDJ() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
del_ServerActors $FNNBaseName.DoubleJump
|
||||||
|
echo disable ok
|
||||||
|
}
|
||||||
|
function enableGM() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
add_ServerActors $FNNBaseName.NewNetGH
|
||||||
|
echo enable ok
|
||||||
|
}
|
||||||
|
function disableGM() {
|
||||||
|
FNNBaseName="$(getmodprefix)"
|
||||||
|
del_ServerActors $FNNBaseName.NewNetGH
|
||||||
|
echo disable ok
|
||||||
|
}
|
||||||
|
function show_help() {
|
||||||
|
echo
|
||||||
|
echo "Usage: $0 { getmodprefix |install | enable | disable } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||||
|
echo " $0 { enableCG | disableCG } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||||
|
echo " $0 { enableDJ | disableDJ } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||||
|
echo " $0 { enableGM | disableGM } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>]"
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
function check_cfg_file() {
|
||||||
|
if [ -z ${CFG_FILE} ]
|
||||||
|
then
|
||||||
|
echo "CFG_FILE is unset, setting it to $DEFAULT_CFG_FILE"
|
||||||
|
CFG_FILE=$DEFAULT_CFG_FILE
|
||||||
|
else
|
||||||
|
echo "CFG_FILE is set to '$CFG_FILE'"
|
||||||
|
fi
|
||||||
|
if [ ! -f $OUTPUT_DIR/System/$CFG_FILE ]
|
||||||
|
then
|
||||||
|
echo "$OUTPUT_DIR/System/$CFG_FILE does not exist"
|
||||||
|
show_help
|
||||||
|
exit 9999 # die with error code 9999
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
function check_game_dir() {
|
||||||
|
### Check if a directory does not exist ###
|
||||||
|
if [ -z $OUTPUT_DIR ]
|
||||||
|
then
|
||||||
|
echo "incorrect <UT99_INSTALL_DIR>"
|
||||||
|
show_help
|
||||||
|
exit 9999 # die with error code 9999
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
case "$1" in
|
||||||
|
'getmodprefix')
|
||||||
|
check_game_dir
|
||||||
|
getmodprefix
|
||||||
|
;;
|
||||||
|
'install')
|
||||||
|
check_game_dir
|
||||||
|
install
|
||||||
|
;;
|
||||||
|
'enable')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disable
|
||||||
|
enable
|
||||||
|
;;
|
||||||
|
'disable')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disable
|
||||||
|
;;
|
||||||
|
'enableCG')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableCG
|
||||||
|
enableCG
|
||||||
|
;;
|
||||||
|
'disableCG')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableCG
|
||||||
|
;;
|
||||||
|
'enableDJ')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableDJ
|
||||||
|
enableDJ
|
||||||
|
;;
|
||||||
|
'disableDJ')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableDJ
|
||||||
|
;;
|
||||||
|
'enableGM')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableGM
|
||||||
|
enableGM
|
||||||
|
;;
|
||||||
|
'disableGM')
|
||||||
|
check_game_dir
|
||||||
|
check_cfg_file
|
||||||
|
disableGM
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
show_help
|
||||||
|
exit 1
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
exit 0
|
||||||
BIN
System/BP1H166.u
Normal file
BIN
System/BP1H166.u
Normal file
Binary file not shown.
BIN
System/BP4H166.u
Normal file
BIN
System/BP4H166.u
Normal file
Binary file not shown.
BIN
System/VAH166.u
Normal file
BIN
System/VAH166.u
Normal file
Binary file not shown.
32
System/fnn166.int
Normal file
32
System/fnn166.int
Normal file
@@ -0,0 +1,32 @@
|
|||||||
|
[Public]
|
||||||
|
;Mutators
|
||||||
|
Object=(Name=fnn166.ST_mutator,Class=Class,MetaClass=Engine.Mutator,Description="FragNewNet v.166")
|
||||||
|
Object=(Name=fnn166.NewNetGH,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Grapple Hook")
|
||||||
|
Object=(Name=fnn166.GiveWeapons,Class=Class,MetaClass=Engine.Mutator,Description="FNN: All Weapons")
|
||||||
|
Object=(Name=fnn166.GiveArmors,Class=Class,MetaClass=Engine.Mutator,Description="FNN: All Armors")
|
||||||
|
Object=(Name=fnn166.NoItemsMap,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Items Map")
|
||||||
|
Object=(Name=fnn166.NoDamageBoost,Class=Class,MetaClass=Engine.Mutator,Description="FNN: No Damage Boost")
|
||||||
|
Object=(Name=fnn166.TeleportToPoint,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Teleport To Point")
|
||||||
|
Object=(Name=fnn166.DoubleJump,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Double Jump")
|
||||||
|
Object=(Name=fnn166.CmdMut,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Commands")
|
||||||
|
Object=(Name=fnn166.BeaconPlayer,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Beacon Player")
|
||||||
|
Object=(Name=fnn166.AntiCamp,Class=Class,MetaClass=Engine.Mutator,Description="FNN: AntiCamp")
|
||||||
|
Object=(Name=fnn166.SpecIdlers,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Idler to Spectator")
|
||||||
|
Object=(Name=fnn166.UnlimitedAmmo,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Unlimited Ammo")
|
||||||
|
Object=(Name=fnn166.NoSmoke,Class=Class,MetaClass=Engine.Mutator,Description="FNN: No Smoke RL")
|
||||||
|
Object=(Name=fnn166.ScoreSave,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Score Save")
|
||||||
|
Object=(Name=fnn166.DisableNewNet,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Disable NewNet")
|
||||||
|
Object=(Name=fnn166.DisableWeapons,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Disable NewNet Weapons")
|
||||||
|
Object=(Name=fnn166.PureAutoPause,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Auto Pause")
|
||||||
|
Object=(Name=fnn166.RXfix,Class=Class,MetaClass=Engine.Mutator,Description="FNN: RX Weapon Fix")
|
||||||
|
Object=(Name=fnn166.BrightPlayer,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Bright Player")
|
||||||
|
Object=(Name=fnn166.XlocMut,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Translocator Toss")
|
||||||
|
|
||||||
|
;Arena
|
||||||
|
Object=(Name=fnn166.NewNetRA,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Rocket Arena")
|
||||||
|
Object=(Name=fnn166.NewNetIG,Class=Class,MetaClass=Engine.Mutator,Description="FNN: InstaGib Arena")
|
||||||
|
Object=(Name=fnn166.NewNetZIG,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Zooming InstaGib Arena")
|
||||||
|
Object=(Name=fnn166.NewNetSA,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Sniper Arena")
|
||||||
|
Object=(Name=fnn166.NewNetSDOM,Class=Class,MetaClass=Engine.Mutator,Description="FNN: Shock Domination Arena")
|
||||||
|
Object=(Name=fnn166.NewNetCG,Class=Class,MetaClass=Engine.Mutator,Description="FNN: ComboGib Arena")
|
||||||
|
Object=(Name=fnn166.NewNetH4X,Class=Class,MetaClass=Engine.Mutator,Description="FNN: H4X Sniper Arena")
|
||||||
BIN
System/fnn166.u
Normal file
BIN
System/fnn166.u
Normal file
Binary file not shown.
Reference in New Issue
Block a user