Add the REM interface generators (tools) and ignore dumps, logs and server files

make_icon_3db, make_image_3db and make_hud_txm with their helpers, standalone
(the name CRC table is in flcrc.py). The .gitignore keeps crash dumps, logs,
traces, debug symbols and everything of the server out of the mod.
This commit is contained in:
2026-10-20 14:01:12 +02:00
parent 574536f419
commit 6eb785d57c
7 changed files with 598 additions and 1 deletions
+19
View File
@@ -0,0 +1,19 @@
# REM tools
Generators for the REM interface art (Python 3, no extra packages). Inputs are PNGs (8 or 16 bit),
the pictures of the old ClientHook are in `EXE/REM/UI`.
| Script | Makes |
|---|---|
| `make_icon_3db.py <in.png> <out.3db> <name> [--color]` | a NeuroNet-style icon (grey, tinted by the game), e.g. the REM bar icons in `DATA/INTERFACE/NEURONET/ICONS/rem_*.3db` |
| `make_image_3db.py <in.png> <out.3db> <name> [--size N] [--nocrop] [--crop x0,y0,x1,y1]` | a coloured picture for the REM windows (medals, row icons, banners) in `DATA/INTERFACE/REM/IMAGES` |
| `make_hud_txm.py <out.txm> <name>=<in.png> ...` | the HUD texture file `DATA/INTERFACE/REM/rem_hud.txm` (target marks) |
`<name>` must be unique per file: it becomes the material, texture and mesh names, and
Freelancer keys materials globally by the CRC of the name. `utf.py` (UTF files) and `flcrc.py`
(Freelancer's name CRC) are shared helpers.
Examples:
python tools/make_image_3db.py EXE/REM/UI/ICON/Cargo_icon.png DATA/INTERFACE/REM/IMAGES/icon_cargo.3db icon_cargo --size 128
python tools/make_image_3db.py EXE/REM/UI/CONTRACTS/combat_image.png DATA/INTERFACE/REM/IMAGES/contracts_banner.3db contracts_banner --size 512 --nocrop --crop 0,420,1600,1220