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.
7.5 KiB
legacy_bots/ — classic Robocode champions on Tank Royale
One directory per legacy (Robocode 1.x) bot, each holding the third-party
<Name>.jar, a <Name>.sh launcher and a <Name>.json identity file. The jars
are committed on purpose: they are not reproducible from this repo, and an
over-broad *.jar ignore rule already cost us the only copy of DrussGT.jar
once. Checksums live in MANIFEST.sha256:
cd legacy_bots && sha256sum -c MANIFEST.sha256
Each directory satisfies the official tankroyale booter contract: every file
in the directory shares the same base filename, which equals the directory name.
The booter therefore resolves <Name>.sh and starts it; the jar is simply the
payload our own shim loads. tools/robocode_shim/robots.json is the
machine-readable manifest (main class, version, style, status, source URL,
license, sha256, evidence).
How a bot actually runs
These are classic robots, not Tank Royale natives. Our own bridge,
tools/robocode_shim/src/robocode_shim/LegacyBotBridge.java, loads the jar,
instantiates the robot class, and synthesises the classic IPeer on top of the
Tank Royale bot API. The booter is only a process launcher — it does not know
anything about Robocode, so the bridge stays ours. The two are complementary.
<Name>.sh never hardcodes a server address. SERVER_URL / SERVER_SECRET are
read from the environment (the booter supplies them from its own -Dserver.url
/ -Dserver.secret), and the Tank Royale bot API picks them up from there.
Roster
Kept — status: WORKS (fire and move, 2-round battles via the shim)
Ascendant, BlitzBat, BrokenSword, CassiusClay, Cigaret, CigaretBH, Coriantumr, Diamond, DiamondHawk, DiamondStealer, Dookious, GresSuffurd, HawkOnFire, Jen, Komarious, LionWWSVMvoid, Lukious, Phoenix, RetroGirl, RougeDC, Shadow, TripHammer, WallAvoider, WaveSurferGF, WaveSurferPG, YersiniaPestis.
Kept but weak — status: WORKS_WEAK
| Bot | Why |
|---|---|
PatternRobot |
fires (8 shots) but barely moves |
KurtWaveSurfer |
fires a lot and lands real hits (104 shots / 30 hits) but only moves on 265 of 1755 ticks — kept, flagged |
Removed — status: NOT_USEFUL (no entry in legacy_bots/, no entry in robots.json)
Six candidates were downloaded, measured and then dropped: jars deleted from
tr_bots/_salvage/legacy_bots/, wrapper dirs deleted from
tr_bots/_salvage/tr_wrappers/. They are recorded here so the decision is not
re-litigated every time someone redownloads the archive.
| Bot | Measured | Reason |
|---|---|---|
| Nene | 0 shots | melee, inert: implements IBasicRobot directly, getRobotRunnable() returns null — the shim has no driver for it |
| Seraphim | 0 shots | same Azuma-framework blocker as Nene |
| Aurora | 0 shots, crawls | nothing to work with |
| FloodMini | 25 shots, 0 hits, 10 hits taken | near-stationary turret |
| LightningBug | 36 shots, 0 hits, 10 hits taken | near-stationary turret |
| Aristocles | 39 shots, 0 hits, 10 hits taken | near-stationary turret |
Nene/Seraphim would need a second driver path in the shim (an Azuma-framework adapter) before they are worth resurrecting. The other three fire but never move, so they are dead weight as sparring partners.
Dropping the six inert bots from the tree leaves 29 directories (28 legacy
champions plus the reference bot DrussGT); the
2-round survey that fed the drop list counted 26 bots that both fired and
moved, because PatternRobot and KurtWaveSurfer fire but are weak movers —
they are kept here as WORKS_WEAK rather than dropped.
DrussGT
DrussGT — the reference bot — is now a first-class member of this tree at
legacy_bots/DrussGT/{DrussGT.jar,DrussGT.sh,DrussGT.json}, using the same
layout as every other legacy bot. Its jar is committed here and recorded in
MANIFEST.sha256; it is also vendored (with decompiled sources) at
tools/robocode_shim/vendor/drussgt/ for port analysis. tr_bots/DrussGT is
kept as a compatibility symlink to legacy_bots/DrussGT for in-flight jobs.
Running a battle
# subject = any bot in this tree, adversary = a Tank Royale bot dir
SHIM_BOTDIR=$PWD/legacy_bots/Diamond tools/robocode_shim/run_bridge_battle.sh \
/home/davide/Projects/tank-royale/sample-bots/java/build/archive/SpinBot 2
# offline triage, no server (~2 s, has known false negatives)
SHIM_BOT_JAR=$PWD/legacy_bots/Diamond/Diamond.jar SHIM_BOT_CLASS=voidious.Diamond \
tools/robocode_shim/run_smoke.sh
Using the official booter
BOOTER=/home/davide/Projects/tank-royale/booter/build/libs/robocode-tankroyale-booter-0.35.5.jar
java -jar "$BOOTER" dir legacy_bots # list directories
java -jar "$BOOTER" info legacy_bots/Diamond
java -Dserver.url=... -Dserver.secret=... -jar "$BOOTER" boot legacy_bots/Diamond legacy_bots/Dookious
boot reads quit / boot {dir} / stop {pid} on stdin and prints
{pid};{dir} / stopped {pid} / lost {pid}. Note the real subcommand is
boot, not run (some READMEs say otherwise).
Two booter quirks, both verified here:
- Pass absolute bot directories. The booter
cds into the bot directory and then runs the script by the path you gave it, so a relative path likelegacy_bots/Diamondresolves tolegacy_bots/Diamond/legacy_bots/Diamond/…. bootexits — and kills every bot — on stdin EOF. Pipe something into it (sleep 30 | java -jar booter.jar boot …) or it quits immediately.
<Name>.sh deliberately does not overwrite BOT_* when they are already set,
so booter/GUI-provided identity (including BOT_GAME_TYPES, which the booter
emits as "classic, 1v1" with a space) wins over the .json defaults.
Recording a battle of two legacy bots
cd tools/raw_recorder
JAR=/home/davide/Projects/tank-royale/runner/examples/lib/robocode-tankroyale-runner.jar
mkdir -p /tmp/rawrec_lb # the recording dir must exist first
java -cp "shadow-classes:out:$JAR" RawRecord --dir /tmp/rawrec_lb --rounds 2 \
--bot ../../legacy_bots/Diamond --bot ../../legacy_bots/Dookious
python3 query.py /tmp/rawrec_lb/game-*.battle.gz --verify
Licensing
Every license field in robots.json reads "not stated in jar (RoboRumble
archive distribution)". No bot carries an explicit licence, so none of them is
known to be GPL, and none of them is known to be permissively licensed either.
The repo owner has explicitly waived this concern: the repository is PRIVATE
and lives on their own LAN, and the jars are committed so the tree is
self-contained and reproducible. Do not mirror or redistribute this repo without
revisiting that decision.
Adding a new bot
curlthe jar fromhttp://robocode-archive.strangeautomata.com/robots/intolegacy_bots/<Name>/(rename to<Name>.jar— the base-name rule).tools/robocode_shim/make_botdir.sh legacy_bots/<Name> --class <fqcn> --jar <abs path>generates<Name>.json+<Name>.sh.- Prove it: one round of
run_bridge_battle.shagainst a real adversary. A bot that does not fire and move isNOT_USEFUL. - Add an entry to
tools/robocode_shim/robots.json(main_class, jar, botdir, status, source_url, license, evidence) and re-runsha256sumintoMANIFEST.sha256.
portaudit/
tr_bots/_salvage/portaudit/{methods.py,static.py} were one-off static
analyses of a decompiled source tree under /tmp/portaudit/src that no longer
exists. They are not migrated: dead scripts with no live input. The shim
itself records what it still needs in tools/robocode_shim/LEGACY_BOTS.md
("Missing-API summary").