tools/raw_recorder + tr_bots/_salvage: recorder source and the legacy port
tools/raw_recorder/RawRecord.java + shadow/GameRecorder.java the observer
that writes the .battle.gz corpora in data/ (gitignored, regenerable)
tools/raw_recorder/query.py, sample_outline.md query helpers
and the shape of a capture
tr_bots/_salvage/ the port audit:
portaudit/{methods,static}.py, shim/, and the tr_wrappers/*.json + *.sh
for 29 rescued legacy bots, with legacy_bots/MANIFEST.sha256
This commit is contained in:
@@ -0,0 +1,65 @@
|
||||
# `_salvage` — work rescued from `/tmp`
|
||||
|
||||
`/tmp` is 43 GB of throwaway scratch on this machine and does not survive a reboot. This directory
|
||||
holds the parts of the legacy-Robocode → Tank-Royale conversion effort that were **only** in `/tmp`
|
||||
and are not reproducible from the repo or from a public download.
|
||||
|
||||
Salvaged on 2026-08-04. Nothing was deleted from `/tmp`; these are copies.
|
||||
|
||||
## Why this matters
|
||||
|
||||
The generated wrappers in `tr_wrappers/` hardcode `/tmp` paths for both the bot jar and the
|
||||
Robocode runtime:
|
||||
|
||||
```sh
|
||||
export SHIM_BOT_JAR="/tmp/bots/voidious.Lukious_1.321.jar"
|
||||
java -cp ".../tools/robocode_shim/out:/tmp/robocode/install/libs/robocode.jar:..." robocode_shim.LegacyBotBridge
|
||||
```
|
||||
|
||||
So the entire legacy bot field — 34 bots — was running off files that a reboot would erase. The
|
||||
jars are now on disk here; **the `.sh` paths still need repointing** (see "Still missing").
|
||||
|
||||
## What is here
|
||||
|
||||
| Path | From `/tmp` | What it is | Committed? |
|
||||
|---|---|---|---|
|
||||
| `legacy_bots/` (34 jars, 2.3 MB) | `/tmp/bots/` | Classic Robocode 1v1 competitive bot jars — Lukious, Dookious, Ascendant, CassiusClay, YersiniaPestis, Diamond, Phoenix, Shadow, Nene, FloodMini, Komarious, Seraphim, Serpentine-era melee bots, etc. | **No** — `.gitignore`d. `MANIFEST.sha256` (committed) is the checksum record. |
|
||||
| `tr_wrappers/` (34 dirs, 412 KB) | `/tmp/tr_bots/` | The generated Tank-Royale wrapper per bot: `<Bot>.sh` (launcher, sets `SHIM_BOT_CLASS`/`SHIM_BOT_JAR`) + `<Bot>.json` (TR bot manifest). Pure text. | Yes |
|
||||
| `portaudit/` | `/tmp/portaudit/` | `methods.py`, `static.py` — port-audit scripts that walk a decompiled Java tree and inventory method signatures / stub coverage. | Yes |
|
||||
| `shim/README.md` | — | Note on where the shim source actually lives and what was deliberately not duplicated. | Yes |
|
||||
|
||||
## What builds what
|
||||
|
||||
- **`legacy_bots/*.jar`** — nothing builds these. They are prebuilt, closed-source competitive
|
||||
robots published as compiled jars by their authors (Robocode repository / RoboRumble). Verified:
|
||||
these exact jars are **not** present anywhere else in the repo.
|
||||
- **`tr_wrappers/*.sh`** — generated by `tools/robocode_shim/make_botdir.sh` from
|
||||
`tools/robocode_shim/robots.json`. Both live in the repo; re-running the generator should
|
||||
reproduce these wrappers, but the salvaged copies are the as-used state and are kept as evidence.
|
||||
`DrussGT/` is excluded — see below.
|
||||
- **`portaudit/*.py`** — standalone scripts, run with `python3 methods.py <tree>`; hardcode
|
||||
`/tmp/portaudit/src` as their root.
|
||||
|
||||
## DrussGT — deliberately NOT salvaged
|
||||
|
||||
`/tmp/drussgt/` holds **decompiled DrussGT Java source** (`jk/melee`, `jk/mega`, `jk/tree`,
|
||||
`jk/precise` — 22 `.java` + 43 `.class`), present as five near-identical copies
|
||||
(`/tmp/drussgt/src/jk`, `/tmp/portaudit/src/jk`, `/tmp/shim_out/jk`, `/tmp/dbg_src/jk`,
|
||||
`/tmp/dbg_out/jk`, `/tmp/DrussGT_extracted/jk` — verified byte-identical between trees).
|
||||
|
||||
This is **the single most irreplaceable artifact in `/tmp`** and it is **still only in `/tmp`**.
|
||||
It was skipped because another job is actively working on DrussGT and `tr_bots/DrussGT/` +
|
||||
`tools/robocode_shim/` were declared off-limits to this pass. `DrussGT.jar` itself is byte-identical
|
||||
to `tools/robocode_shim/vendor/drussgt/DrussGT.jar`, already in the repo — so only the
|
||||
*decompiled* tree is at risk. **Whoever owns that job must copy `/tmp/drussgt/src` into the repo.**
|
||||
|
||||
## Still missing / needed
|
||||
|
||||
1. `/tmp/drussgt/src` (decompiled DrussGT) — not salvaged, see above. **Highest risk.**
|
||||
2. Repoint the hardcoded `/tmp` paths in `tr_wrappers/*.sh`:
|
||||
- `SHIM_BOT_JAR` → `../../_salvage/legacy_bots/<jar>`
|
||||
- `/tmp/robocode/install/libs/robocode.jar` → `../../tools/robocode_shim/vendor/robocode.jar`
|
||||
- the `bot-api` path points into `/home/davide/Downloads`, also not durable.
|
||||
This was left alone deliberately: `tools/robocode_shim/` is owned by the other active job.
|
||||
3. `legacy_bots/*.jar` are gitignored, so a **clone of this repo will not have them**. They live
|
||||
only on this disk. If they matter, re-fetch from the Robocode repository, or lift the ignore.
|
||||
Reference in New Issue
Block a user