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
@@ -48,8 +48,8 @@ Place your files under `client/packs/<pack-path>/` matching the target archive's
|
||||
| `client/packs/lang.vromfs.bin/` | `lang/units.csv`, `lang/menu.csv`, `lang/units_weaponry.csv`, and other localization CSVs | Backed up on demand, restored on disable |
|
||||
| `client/packs/mis.vromfs.bin/` | `gamedata/missions/.../*.blk` multiplayer and custom missions | Backed up on demand, restored on disable |
|
||||
| `client/packs/game.vromfs.bin/` | `danetlibs/...`, `game/...` scripts and configs | Backed up on demand, restored on disable |
|
||||
| `client/packs/ui/atlases.vromfs.bin/` | `gameuiskin/<lowercase_unit_id>_ico.svg` (tech-tree & local web store silhouette icons) | Backed up on demand, restored on disable |
|
||||
| `client/packs/ui/images.vromfs.bin/` | `units/<unit_id>.ddsx` or `.png` (stat-card / crew-slot vehicle images) | Backed up on demand, restored on disable |
|
||||
| `client/packs/ui/atlases.vromfs.bin/` | `gameuiskin/<lowercase_unit_id>_ico.svg` (tech-tree & local web store silhouette icons), `units/<lowercase_unit_id>.ddsx` (default DXT5 crew-slot portrait) | Backed up on demand, restored on disable |
|
||||
| `client/packs/ui/images.vromfs.bin/` | `images/*.png` / `.avif` / `.ddsx` (custom UI images, or vehicle portraits via `wpcost.blk` `customImage:t="!ui/images/..."` / `customTooltipImage:t="!ui/images/..."`; note: plain `.dds` is not supported by UI PictureManager) | Backed up on demand, restored on disable |
|
||||
|
||||
> **Automatic Server Sync**: The local server reads static datasets directly from the overlaid `.vromfs.bin` packs on startup. Any vehicle added or tweaked in `shop.blk` / `wpcost.blk` is automatically picked up for prices, tech-tree prerequisites, Research Points, modifications, Battle Ratings, AI bot pools, and store pack GUIDs—no duplicate server registration needed.
|
||||
|
||||
@@ -145,7 +145,7 @@ commonWeapons {
|
||||
- Duplicate sibling blocks (such as consecutive `range` blocks in `shop.blk`) can be addressed precisely with **`name[index]`** (zero-based); omitting `[index]` selects occurrence `0`;
|
||||
- `[]` refers to the root block of the current document.
|
||||
|
||||
### 4.2 All 7 Patch Operations (`op`)
|
||||
#### All 7 Patch Operations (`op`)
|
||||
|
||||
#### ① `setParam`: Set a parameter (overwrites & deduplicates same-named params if present; appends if absent)
|
||||
|
||||
@@ -322,7 +322,7 @@ country_usa (or country_germany / country_ussr / country_britain / country_japan
|
||||
└─ range { ... } <-- range[5]..range[6]: right-hand Golden Eagle / Pack / Event / Squadron columns
|
||||
```
|
||||
|
||||
Keep three rules in mind when writing `shop.blk.patch.jsonc`:
|
||||
Keep three rules in mind when writing `shop.blk.patch.blk` (or `.patch.jsonc`):
|
||||
|
||||
1. **Each sibling `range` block is one vertical column in the tech tree**: since every column block is named `range`, address them left-to-right (zero-based) as `"range[0]"`, `"range[1]"`, `"range[5]"`, etc.;
|
||||
2. **Collapsible folder groups (`*_group`)**: when multiple variants share one tech-tree folder, `range` contains a child block ending in `_group` (e.g. `us_sherman_group`) whose children are the grouped vehicles; the folder's display label comes from `shop/group/<group_name>` in `units.csv`;
|
||||
|
||||
Reference in new issue
Block a user