Files
SirRoboGarage/legacy_bots
SirStone fe8b1eddff Add curated legacy Robocode roster (28 bots) and Tank Royale booter
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.
2026-10-04 22:18:28 +02:00
..

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 28 directories; 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

Not duplicated here. DrussGT is the reference bot, it has decompiled sources in the repo, and its jar is already vendored at tools/robocode_shim/vendor/drussgt/DrussGT.jar with its bot directory in tr_bots/DrussGT. Copying it here would create a second copy to keep in sync.

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 like legacy_bots/Diamond resolves to legacy_bots/Diamond/legacy_bots/Diamond/….
  • boot exits — 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

  1. curl the jar from http://robocode-archive.strangeautomata.com/robots/ into legacy_bots/<Name>/ (rename to <Name>.jar — the base-name rule).
  2. tools/robocode_shim/make_botdir.sh legacy_bots/<Name> --class <fqcn> --jar <abs path> generates <Name>.json + <Name>.sh.
  3. Prove it: one round of run_bridge_battle.sh against a real adversary. A bot that does not fire and move is NOT_USEFUL.
  4. Add an entry to tools/robocode_shim/robots.json (main_class, jar, botdir, status, source_url, license, evidence) and re-run sha256sum into MANIFEST.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").