first commit
This commit is contained in:
57
Helps/Readme.txt
Normal file
57
Helps/Readme.txt
Normal file
@@ -0,0 +1,57 @@
|
||||
================================================================================
|
||||
REVENGE VERSION 2, ORIGINAL VERSION BY SCOTT "FROOD" SHINGLER.
|
||||
ZEROPOINT PRODUCTIONS, DECEMBER 2007
|
||||
D.SCHEERENS@GMAIL.COM
|
||||
================================================================================
|
||||
|
||||
|
||||
|
||||
================================================================================
|
||||
TABLE OF CONTENTS.
|
||||
================================================================================
|
||||
1. INTRODUCTION.
|
||||
2. QUICK INSTALLATION GUIDE.
|
||||
|
||||
|
||||
|
||||
================================================================================
|
||||
1. INTRODUCTION.
|
||||
================================================================================
|
||||
Not much has changed in Revenge 2. It fixes the bug which caused a player to
|
||||
immediately get revenge sometimes when he/she entered the server. A new feature
|
||||
in Revenge 2 is the option to broadcast revenge messages, for example:
|
||||
"ABC got revenge on XYZ!". This option can be turned on/off in the configuration
|
||||
file for Revenge2.
|
||||
|
||||
|
||||
================================================================================
|
||||
2. QUICK INSTALLATION GUIDE.
|
||||
================================================================================
|
||||
1. Make sure your server has been shut down.
|
||||
|
||||
2. Copy the Revenge2.u, Revenge2.int and Revenge2.ini files to the system
|
||||
folder of your UT server.
|
||||
|
||||
3. If your server is using redirect upload the Revenge2.u.uz file to the
|
||||
redirect server.
|
||||
|
||||
4. Open your servers configuration file and add the following server package:
|
||||
|
||||
ServerPackages=Revenge2
|
||||
|
||||
5. If you already had the old version of Revenge installed, remove the
|
||||
following lone from the server packages list:
|
||||
|
||||
ServerPackages=Revenge
|
||||
|
||||
You can now also delete the Revenge.u, Revenge.int and Revenge.ini files.
|
||||
|
||||
6. Save the changes to the configuration file.
|
||||
|
||||
7. Add the Revenge 2 mutator to you server. If you have to set this manually
|
||||
in your configuration files, use the following mutator
|
||||
"Revenge2.RevengeMutator".
|
||||
|
||||
8. Start your server.
|
||||
|
||||
|
||||
BIN
Helps/Revenge2.u.uz
Normal file
BIN
Helps/Revenge2.u.uz
Normal file
Binary file not shown.
141
Run.sh
Normal file
141
Run.sh
Normal file
@@ -0,0 +1,141 @@
|
||||
#!/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
|
||||
}
|
||||
function set_iniKeyEx() {
|
||||
crudini --set $OUTPUT_DIR/System/$1 $2 $3 $4
|
||||
}
|
||||
# !!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
|
||||
}
|
||||
function set_iniKey() {
|
||||
set_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() {
|
||||
UFile=$(find $OUTPUT_DIR/System -type f -iname "Revenge2*.u" -exec basename {} \;)
|
||||
BaseName="${UFile%.*}"
|
||||
echo "$BaseName"
|
||||
}
|
||||
function install() {
|
||||
rsync -a $SCRIPT_DIR/System/ $OUTPUT_DIR/System/ --exclude '.git'
|
||||
rsync -a $SCRIPT_DIR/Helps/ $OUTPUT_DIR/Helps/ --exclude '.git'
|
||||
|
||||
echo install ok
|
||||
}
|
||||
function enable() {
|
||||
BaseName="$(getmodprefix)"
|
||||
add_ServerPackage $BaseName
|
||||
|
||||
echo enable ok
|
||||
}
|
||||
function disable() {
|
||||
BaseName="$(getmodprefix)"
|
||||
del_ServerPackage $BaseName
|
||||
|
||||
echo disable ok
|
||||
}
|
||||
function show_help() {
|
||||
echo
|
||||
echo "Usage: $0 { getmodprefix | install | enable | disable } <UT99_INSTALL_DIR> [<UT99_CONFIG_FILE>] [<CONFIG_KEY> <CONFIG_VALUE>]"
|
||||
echo
|
||||
}
|
||||
function check_cfg_file_config() {
|
||||
if [ $# -eq 4 ]
|
||||
then
|
||||
echo "CFG_FILE is unset, setting it to $DEFAULT_CFG_FILE"
|
||||
CFG_FILE=$DEFAULT_CFG_FILE
|
||||
elif [ $# -eq 5 ]
|
||||
then
|
||||
echo "CFG_FILE is set to '$CFG_FILE'"
|
||||
else
|
||||
echo "Wrong number of arguments"
|
||||
show_help
|
||||
exit 9999 # die with error code 9999
|
||||
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_cfg_file_gen() {
|
||||
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_gen "$@"
|
||||
disable "$@"
|
||||
enable "$@"
|
||||
;;
|
||||
'disable')
|
||||
check_game_dir "$@"
|
||||
check_cfg_file_gen "$@"
|
||||
disable "$@"
|
||||
;;
|
||||
*)
|
||||
show_help
|
||||
exit 1
|
||||
;;
|
||||
esac
|
||||
exit 0
|
||||
3
System/Revenge2.ini
Normal file
3
System/Revenge2.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[Revenge2.RevengeMutator]
|
||||
scoreBonus=4
|
||||
broadcastRevenge=true
|
||||
2
System/Revenge2.int
Normal file
2
System/Revenge2.int
Normal file
@@ -0,0 +1,2 @@
|
||||
[Public]
|
||||
Object=(Name=Revenge2.RevengeMutator,Class=Class,MetaClass=Engine.Mutator,Description="Revenge 2,You get bonus points for killing your killer.")
|
||||
BIN
System/Revenge2.u
Normal file
BIN
System/Revenge2.u
Normal file
Binary file not shown.
Reference in New Issue
Block a user