docs(mods): align handbook chapters with .patch.blk and UI image format notes
This commit is contained in:
1 parent
0af4183cb1
commit
37cbcd806f
9 files changed
+26
-26
No files matched your search
@@ -35,7 +35,7 @@ All mod build and runtime logs flow into the launcher's standard log directory
|
||||
|
||||
Knowing when client builds versus server scripts reload keeps iteration fast while developing:
|
||||
|
||||
1. **Client-side edits (`client/packs/`, `client/gui-patches/`, `client/exe-patches/`, `client/addon/`, `client/files/`, `config-blk.patch.jsonc`)**:
|
||||
1. **Client-side edits (`client/packs/`, `client/gui-patches/`, `client/exe-patches/`, `client/addon/`, `client/files/`, `config-blk.patch.blk` / `.jsonc`)**:
|
||||
- Close the running game client first;
|
||||
- Save your edited mod files and click **Launch** in the launcher: the launcher hashes source file sizes and `mtime` timestamps into a deterministic build fingerprint, automatically rebuilding any affected `.vromfs.bin` packs from `wtoffline/stock/` before starting the game!
|
||||
- Tip: textures inside already-mounted NTFS Junction directories (`client/addon/res/` or `client/files/UserSkins/<subfolder>/`) point directly to your `mods/` folder with zero copying, so restarting the client (or refreshing skins in-game) reads updated assets immediately.
|
||||
@@ -77,7 +77,7 @@ my-awesome-mod.zip
|
||||
## 6. Practical Recommendations for Mod Authors
|
||||
|
||||
1. **Namespace Everything**: format your mod ID as `<author>.<mod-name>` and prefix custom vehicle IDs, weapons, skin subfolders, custom matching RPCs (`wto_mod.<mod_name>.*`), and custom Char actions to avoid collisions between mods;
|
||||
2. **Prefer Incremental Patches Over Replacing Shared Tables**: use `.patch.jsonc` / `.patch.csv` for `shop.blk`, `wpcost.blk`, `unittags.blk`, `units.csv`, and `menu.csv`, and use `$listOps` on shared tuning arrays like `multiVehiclePacks` and `supplyTrophies`;
|
||||
2. **Prefer Incremental Patches Over Replacing Shared Tables**: use `.patch.blk` (or `.patch.jsonc`) / `.patch.csv` for `shop.blk`, `wpcost.blk`, `unittags.blk`, `units.csv`, and `menu.csv`, and use `$listOps` on shared tuning arrays like `multiVehiclePacks` and `supplyTrophies`;
|
||||
3. **Read Stock Profiles, Persist in Isolated Storage**: write all custom mod state to `ctx.storage.forPlayer(userId)` so player saves remain 100% clean if your mod is disabled or uninstalled;
|
||||
4. **Keep UI Logic in Standalone Files**: put custom modals under `client/packs/gui.vromfs.bin/` and keep `client/gui-patches/` down to a few lines wiring the entry button and `gui/css.css` `@import` so game updates rarely break your mod;
|
||||
5. **Run One Full "Enable → Play → Disable → Relaunch" Cycle Before Release**: verify your mod works when enabled, restores stock behavior cleanly when disabled, and coexists peacefully alongside other enabled mods.
|
||||
Reference in new issue
Block a user