Files
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

3.3 KiB

DrussGT — vendored decompiled source

What this is

src/ is DECOMPILED Java source, recovered by a Java decompiler (CFR/Procyon-class output) from the compiled DrussGT.jar competitive Robocode bot by "jk" (DrussGT 2.0, the Dr. Bloodmoney/G2000 lineage).

It is NOT the original author's source. No debug symbols, comments, or original method names survive; identifiers are decompiler-reconstructed and may be renamed, reordered, or inlined. Do not treat it as a reference implementation for style, and do not "fix up" it as if it were authored code.

Where it came from

  • Recovered into /tmp/drussgt/src/ (also present byte-identically as /tmp/portaudit/src/ and /tmp/DrussGT_extracted/; a near-copy with one patched file lives at /tmp/dbg_src/).
  • Copied into this repo at tools/robocode_shim/vendor/drussgt/src/ so that a rebuild never depends on /tmp, which is wiped on reboot.
  • MANIFEST.sha256 records the exact contents; verify with sha256sum -c MANIFEST.sha256 from this directory.

src/ contains 67 files: 22 .java files plus the decompiler-emitted .class files that were left alongside them. The .class files are gitignored (root .gitignore rule *.class) and are not the build input — DrussGT.jar supplies them.

Packages contained

Package Files
jk.mega DrussGT.java (main bot), BulletPowerPredictor, DataToGun, BufferManager, EnemyMoves, Insulter
jk.mega.dGun DrussGunDC, GFRange, Indice, PreciseMinMaxGFs
jk.mega.dMove DrussMoveGT, MovePredictor, BulletTracker, EnemyWave, PlaceTime, PredictionStatus
jk.melee MeleeRadar
jk.precise + jk.precise.util EnergyDomeWorker, PreciseUtils, PreciseWave
jk.tree KDTree
jk.math FastTrig

Provenance and licensing caveat

DrussGT is third-party, GPL-licensed competitive-bot code by an external author. It is vendored here for interoperability/port analysis only. The upstream DrussGT.jar itself is deliberately not committed to this repo (see tools/robocode_shim/.gitignore, rule *.jar) — it must be obtained separately from the upstream distribution and passed via the DRUSSGT_JAR environment variable.

Redistributing this decompiled source, like the original, carries the same GPL obligation as the upstream bot. Check the upstream terms before publishing anything derived from it.

Relationship to DrussGT.jar and compile_drussgt.sh

compile_drussgt.sh rebuilds DrussGT from these sources against the genuine Robocode API. Its defaults are all in-repo:

  • ROBOCODE_JAR -> vendor/robocode.jar
  • DRUSSGT_SRC -> vendor/drussgt/src (this directory's src/)
  • DRUSSGT_JAR -> vendor/drussgt/DrussGT.jar (must exist locally; not tracked)
  • output -> out/drussgt/

Two files are deliberately excluded from the javac invocation: jk/mega/dGun/GFRange.java and jk/mega/dGun/Indice.java. The same two classes are also declared inline at the bottom of DrussGunDC.java, so compiling all 22 files fails with duplicate class. The jar already ships them, so the build lets the jar supply those two plus the six genuinely-unsourced classes (JKDCUtils, NormalDistribution, StoreScan, DCRobotState, DCWave, Scan).

Run it with:

ROBOCODE_JAR=vendor/robocode.jar ./compile_drussgt.sh