Curated roster: 34 classic-Robocode archives were downloaded, measured in real
Tank Royale battles and curated to 28 usable bots, now in legacy_bots/<Name>/
(<Name>.jar + <Name>.json + <Name>.sh) with checksums in MANIFEST.sha256.
Six were dropped as NOT_USEFUL and deleted from tr_bots/_salvage/legacy_bots/
and tr_bots/_salvage/tr_wrappers/, with the rationale recorded in
legacy_bots/README.md and tools/robocode_shim/LEGACY_BOTS.md:
- Nene, Seraphim - Azuma-framework melee bots, completely inert (0 scans,
0 shots); getRobotRunnable() returns null so the shim has
no driver path for them.
- Aurora - fires 6 shots and crawls.
- FloodMini, LightningBug, Aristocles - near-stationary turrets: they scan and
fire but land 0 hits and take 10+ hits every round.
DrussGT is the reference bot and is deliberately NOT in legacy_bots/: it lives in
tr_bots/DrussGT and is now vendored with its sources under
tools/robocode_shim/vendor/drussgt/.
Repo-relative paths replace /tmp: every <Name>.sh resolves the shim and the
vendor jars via $REPO (../..), and none hardcodes a server URL, a /tmp data
path, or anything under ~/Downloads. SERVER_URL/SERVER_SECRET come from the
environment, which the booter populates from its own -Dserver.url /
-Dsystem.secret system properties.
Booter: tools/booter/robocode-tankroyale-booter-0.35.5-all.jar, copied from a
local tank-royale build, plus a README covering the real CLI. Note the command
is `boot`; the upstream README's `run` is stale. Verified it discovers all 28
kept bots via both `dir` and `info`.
Licensing: every third-party jar here reads "not stated in jar", and DrussGT is
GPL. The repo owner has explicitly waived this - the repository is PRIVATE and
lives on their own LAN. Do not mirror or redistribute without revisiting that.
.gitignore flipped back to tracking legacy_bots/**/*.jar; an over-broad *.jar
rule already cost us the only copy of DrussGT.jar once.
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="ags.rougedc.RougeDC"
|
|
export SHIM_BOT_JAR="$HERE/RougeDC.jar"
|
|
|
|
: "${SHIM_DATA:=${DRUSSGT_DATA:-$(mktemp -d "${TMPDIR:-/tmp}/tr_shim_data.XXXXXX")}}"
|
|
export SHIM_DATA
|
|
|
|
: "${BOT_NAME:=RougeDC}"
|
|
export BOT_NAME
|
|
: "${BOT_VERSION:=willow}"
|
|
export BOT_VERSION
|
|
: "${BOT_AUTHORS:=unknown}"
|
|
export BOT_AUTHORS
|
|
: "${BOT_DESCRIPTION:=Classic Robocode robot ags.rougedc.RougeDC 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
|