DrussGT now lives at legacy_bots/DrussGT/{DrussGT.jar,DrussGT.sh,DrussGT.json}
like the other legacy bots. Its jar is committed and recorded in
MANIFEST.sha256 (sha256 5dfc0595...). tr_bots/DrussGT is kept as a
compatibility symlink to ../legacy_bots/DrussGT for in-flight jobs.
The vendored copy under tools/robocode_shim/vendor/drussgt/ is untouched.
35 lines
1.2 KiB
Bash
Executable File
35 lines
1.2 KiB
Bash
Executable File
#!/bin/sh
|
|
# Legacy classic-Robocode robot hosted on Tank Royale by our own shim.
|
|
# Bootable by the official tankroyale booter (SERVER_URL/SERVER_SECRET come from
|
|
# the environment - this script never hardcodes a server address).
|
|
cd "$(dirname "$0")"
|
|
HERE="$(pwd)"
|
|
REPO="$(cd "$HERE/../.." && pwd)"
|
|
|
|
export SHIM_BOT_CLASS="jk.mega.DrussGT"
|
|
export SHIM_BOT_JAR="$HERE/DrussGT.jar"
|
|
|
|
: "${SHIM_DATA:=${DRUSSGT_DATA:-$(mktemp -d "${TMPDIR:-/tmp}/tr_shim_data.XXXXXX")}}"
|
|
export SHIM_DATA
|
|
|
|
: "${BOT_NAME:=DrussGT}"
|
|
export BOT_NAME
|
|
: "${BOT_VERSION:=3.1.4159}"
|
|
export BOT_VERSION
|
|
: "${BOT_AUTHORS:=Jacob}"
|
|
export BOT_AUTHORS
|
|
: "${BOT_DESCRIPTION:=Real classic DrussGT running on Tank Royale via the robocode_shim bridge}"
|
|
export BOT_DESCRIPTION
|
|
: "${BOT_HOMEPAGE:=}"
|
|
export BOT_HOMEPAGE
|
|
: "${BOT_COUNTRY_CODES:=se}"
|
|
export BOT_COUNTRY_CODES
|
|
: "${BOT_GAME_TYPES:=classic,1v1}"
|
|
export BOT_GAME_TYPES
|
|
: "${BOT_PLATFORM:=JVM}"
|
|
export BOT_PLATFORM
|
|
: "${BOT_PROG_LANG:=Java 8}"
|
|
export BOT_PROG_LANG
|
|
|
|
exec java -cp "$REPO/tools/robocode_shim/out:$REPO/tools/robocode_shim/vendor/robocode.jar:$REPO/tools/robocode_shim/vendor/robocode-tankroyale-bot-api-1.0.2.jar" robocode_shim.LegacyBotBridge
|