diff options
| author | Silent <103598001+SebSilent@users.noreply.github.com> | 2026-11-22 21:16:31 -0300 |
|---|---|---|
| committer | Silent <103598001+SebSilent@users.noreply.github.com> | 2026-11-22 21:51:27 -0300 |
| commit | e4f403a836cd6d26c9a30eca6cdcd43263d2368a (patch) | |
| tree | 82e3affad450679eae83af5412f69499be9e6ab3 /docs | |
| parent | 03b09a086592a197db64d91655c6e65c30764d96 (diff) | |
docs: measure the weather document's Mod* axes, vocabulary mismatches and TimeMult
Rebased on current main with the Rain claim corrected after reproduction:
Rain is nonzero in 7 of the 25 data sets (8 types read them), not the 14
HeavyRain-tagged types.
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/README.md | 1 | ||||
| -rw-r--r-- | docs/gamedata.md | 4 | ||||
| -rw-r--r-- | docs/weather.md | 136 |
3 files changed, 139 insertions, 2 deletions
diff --git a/docs/README.md b/docs/README.md index 2645757db..8a491c018 100644 --- a/docs/README.md +++ b/docs/README.md | |||
| @@ -31,6 +31,7 @@ method, scope and caveats. No game data is included. | |||
| 31 | | [rbf0.md](rbf0.md) | 1,263 RBF0 resources, 475,461 elements; UI/Scaleform definitions, not a sectioned container; strict JSON/CSV/XML tree decoder. | | 31 | | [rbf0.md](rbf0.md) | 1,263 RBF0 resources, 475,461 elements; UI/Scaleform definitions, not a sectioned container; strict JSON/CSV/XML tree decoder. | |
| 32 | | [gamedata.md](gamedata.md) | `common.rpf`: 954 streams, 266 XML documents / 118 roots; 0 RBF0/PSIN; a streaming reader (`gamedata_reader.py`) converts 259 documents by root and `type`. | | 32 | | [gamedata.md](gamedata.md) | `common.rpf`: 954 streams, 266 XML documents / 118 roots; 0 RBF0/PSIN; a streaming reader (`gamedata_reader.py`) converts 259 documents by root and `type`. | |
| 33 | | [gamedata_graph.md](gamedata_graph.md) | `common.rpf` mount graph: 25 manifest documents, 30 content-set ids, 14 include refs (12 resolve), 3,386 target refs, 0 cycles. | | 33 | | [gamedata_graph.md](gamedata_graph.md) | `common.rpf` mount graph: 25 manifest documents, 30 content-set ids, 14 include refs (12 resolve), 3,386 target refs, 0 cycles. | |
| 34 | | [weather.md](weather.md) | The weather document measured: 168 types (151 tagged / 17 untagged, a family split), exact-case `Mod*` vocabulary mismatches, axis-to-field Spearman (niceness tracks its field, `Rain` is a 7-of-25 data-set split), `TimeMult` and the inert `Honor*` values. | | ||
| 34 | | [world.md](world.md) | `levels.rpf` placement: 9,918 map files / 680,228 entities measured in 55% of the archive (lower bound; estimate 16k-39.6k / 1.03M-2.64M); `0x7a` resource layout. Building a placed world from entity rows (`world_build.py --placements`): shared geometry per chunk (`EXT_mesh_gpu_instancing`), bounded memory for the whole archive, and per-tier LOD chunk sets with distance bands (`--lod-sets`). | | 35 | | [world.md](world.md) | `levels.rpf` placement: 9,918 map files / 680,228 entities measured in 55% of the archive (lower bound; estimate 16k-39.6k / 1.03M-2.64M); `0x7a` resource layout. Building a placed world from entity rows (`world_build.py --placements`): shared geometry per chunk (`EXT_mesh_gpu_instancing`), bounded memory for the whole archive, and per-tier LOD chunk sets with distance bands (`--lod-sets`). | |
| 35 | | [world_census.md](world_census.md) | Full `levels.rpf` pass: 23,535 maps / 1,670,442 entities, 98.32% stream coverage, sharded and exact; the SixNG 30,785-map difference reconciled map by map (interiors and entity groups). | | 36 | | [world_census.md](world_census.md) | Full `levels.rpf` pass: 23,535 maps / 1,670,442 entities, 98.32% stream coverage, sharded and exact; the SixNG 30,785-map difference reconciled map by map (interiors and entity groups). | |
| 36 | | [world_names.md](world_names.md) | Name resolution: `archetypeName` and map `name`/`parent` are lower-cased joaat; 64-bit keys are MurmurHash3 x64 low 64. With `rpf9_names.py` names, 99.85% of the 1,670,435 entities a whole-archive `world_index` run reads resolve (64-bit verified); 5/23,535 map names, all five confirmed by the map 64-bit key. | | 37 | | [world_names.md](world_names.md) | Name resolution: `archetypeName` and map `name`/`parent` are lower-cased joaat; 64-bit keys are MurmurHash3 x64 low 64. With `rpf9_names.py` names, 99.85% of the 1,670,435 entities a whole-archive `world_index` run reads resolve (64-bit verified); 5/23,535 map names, all five confirmed by the map 64-bit key. | |
diff --git a/docs/gamedata.md b/docs/gamedata.md index dd91439d2..3381e3c8b 100644 --- a/docs/gamedata.md +++ b/docs/gamedata.md | |||
| @@ -533,8 +533,8 @@ How the pieces link, checked by name (case-insensitive) over the archive: | |||
| 533 | and 14 `To` values are weather type names, and 13 pairs have both. | 533 | and 14 `To` values are weather type names, and 13 pairs have both. |
| 534 | - The two `WeatherCycles` names occur in other `common.rpf` documents (2 and 1 documents), not as weather types. | 534 | - The two `WeatherCycles` names occur in other `common.rpf` documents (2 and 1 documents), not as weather types. |
| 535 | 535 | ||
| 536 | Not measured here (hypothesis): what the `Mod*` axes do at runtime (they read as weather-app forecast | 536 | Measured further in [weather.md](weather.md): the `Mod*` axes against the numeric fields, the exact-case |
| 537 | attributes), how `TimeMult` scales a cycle, and what the `Honor*` values gate. | 537 | vocabulary mismatches, `TimeMult`, and the `Honor*` values. |
| 538 | 538 | ||
| 539 | ## `OceanSimPresets` | 539 | ## `OceanSimPresets` |
| 540 | 540 | ||
diff --git a/docs/weather.md b/docs/weather.md new file mode 100644 index 000000000..26e4070a8 --- /dev/null +++ b/docs/weather.md | |||
| @@ -0,0 +1,136 @@ | |||
| 1 | # Weather XML in `common.rpf` | ||
| 2 | |||
| 3 | This note measures the one `CContentsOfWeatherXmlFile` document that drives weather (106,816 bytes inflated at | ||
| 4 | stream offset 0x207000 in `common.rpf`). `gamedata.md` has the element tree and the link checks; this page adds | ||
| 5 | what the `Mod*` axes correlate with, the exact vocabulary mismatches, and the measured behavior of the numeric | ||
| 6 | fields. Counts, schema names and small constants only, no values dump. Everything is reproducible from any | ||
| 7 | copy of the Xbox 1.0.2.1 package with the tooling in `gamedata.md`: carve with `tools/rpf9_carve.py`, then | ||
| 8 | `python -I tools/gamedata_reader.py <work>/carve/common --out <scratch>` and read | ||
| 9 | `CContentsOfWeatherXmlFile_207000.json` (game data, stays local). | ||
| 10 | |||
| 11 | The root has 18 direct children. The load-bearing ones: | ||
| 12 | |||
| 13 | | Child | Count | What it is | | ||
| 14 | |---|---:|---| | ||
| 15 | | `WeatherTypes` | 168 | named weather states the game can select | | ||
| 16 | | `WeatherTypeDatas` | 25 | numeric field sets a type borrows via `DataName` (72 fields each) | | ||
| 17 | | `WeatherAppTypeDatas` | 26 | weather-app presentation entries (19 of them referenced) | | ||
| 18 | | `WeatherCycles` | 2 | named cycles with a `TimeMult` | | ||
| 19 | | `WeatherTimeCycleFileNames` | 25 | `COMMON:/DATA/TIMECYCLE/W_<family>.XML` references | | ||
| 20 | | 8 `Mod*List`s | 3..17 | vocabularies for the `Mod*` tags | | ||
| 21 | | `WeatherTypeIndirectionList` | 15 | `From`/`To` pairs (13 complete, per `gamedata.md`) | | ||
| 22 | | `SkipDebugCycling` | 1 | top-level flag, `True` | | ||
| 23 | | `SinglePlayerOnlyWeathers` | 1 | an empty string | | ||
| 24 | |||
| 25 | ## The 168 types and their `Mod*` tags | ||
| 26 | |||
| 27 | Every type carries `Name`, `ShortName`, `DataName`, `SkipDebugCycling`, and either all eight or none of the | ||
| 28 | `Mod*` tags: `ModAtmosphere`, `ModPrecipitation`, `ModTemperature`, `ModHumidity`, `ModWind`, `ModFetch`, | ||
| 29 | `ModMisc`, `ModNiceness`. The split is 151 fully tagged, 17 with nothing, and it is exactly a family split. | ||
| 30 | The 151 tagged types live in the nine `CLOUDSCAPE_*` families (2 to 38 types each by `DataName`). The 17 | ||
| 31 | untagged ones are the 16 single-type families plus one stray variant of a `CLOUDSCAPE_*` data set. Eleven of | ||
| 32 | the 17 have `Name == DataName` exactly; the other six differ only in case (like `MISTY` borrowing `misty`). | ||
| 33 | |||
| 34 | The `Mod*` axes are not restatements of the numeric data. Seven of the nine axes change *within* a family | ||
| 35 | (for `ModTemperature` and `ModFetch`, 8 of 9 families carry more than one value). Every one of the 151 tagged | ||
| 36 | types references one of 19 distinct `WeatherAppDataName` entries; none of the 17 untagged types has one. | ||
| 37 | `SkipDebugCycling` per type is `True` for 137 and `False` for 31; all 31 `False` ones are tagged (120 of the | ||
| 38 | 151), and every untagged type is `True`. | ||
| 39 | |||
| 40 | ### The vocabularies, exact case | ||
| 41 | |||
| 42 | Comparing type tokens to their list case-sensitively: | ||
| 43 | |||
| 44 | | Axis | List | Used | Off-list (exact case) | | ||
| 45 | |---|---:|---:|---| | ||
| 46 | | `ModAtmosphere` | 17 | 14 | none | | ||
| 47 | | `ModPrecipitation` | 16 | 11 | none | | ||
| 48 | | `ModTemperature` | 9 | 9 | `W_MOD_temperature_cool` x1 | | ||
| 49 | | `ModHumidity` | 5 | 5 | none | | ||
| 50 | | `ModWind` | 11 | 14 | `_Light` x3, `_Mid` x1 (case), `_camlLight` x1 (typo) | | ||
| 51 | | `ModFetch` | 5 | 8 | `_Low` x10, `_High` x26, `_mid` x1 (case) | | ||
| 52 | | `ModMisc` | 7 | 6 | `W_MOD_misc_None` x135, `W_MOD_misc_High` x2 (real misses) | | ||
| 53 | | `ModNiceness` | 3 | 3 | none | | ||
| 54 | |||
| 55 | Case-insensitively only three tokens remain off-list: `W_MOD_wind_camlLight` (one type; two characters from | ||
| 56 | the list's `calmLight`, a genuine typo), and the two `ModMisc` values above, which is what `gamedata.md` | ||
| 57 | already flags (137 of 151 types use a `ModMisc` no list defines). A loader should rank-match case-insensitively | ||
| 58 | and never reject a type over `ModMisc`. | ||
| 59 | |||
| 60 | The vocabularies themselves read as ordered scales, with two catches. `ModPrecipitation` is 15 tokens | ||
| 61 | `W_MOD_precip_{20..100 step 20}` x `{drizzle, rain, HeavyRain}` plus a bare `W_MOD_precip_0`, so the intensity | ||
| 62 | is the middle number, not the list position. `ModHumidity` and `ModNiceness` are written top-down | ||
| 63 | (`VeryHigh` first, `good` first), the other lists bottom-up. | ||
| 64 | |||
| 65 | ## What each axis tracks in the numbers | ||
| 66 | |||
| 67 | Ranking each axis by its own scale (precipitation by the embedded intensity; humidity and niceness | ||
| 68 | bottom-up; the rest by list order; temperature excluding its one `TEST_Mid` entry) and correlating with the | ||
| 69 | fields of the borrowed data set (Spearman, average ranks, over the 151 tagged types): | ||
| 70 | |||
| 71 | | Axis | Best correlation | Value | | ||
| 72 | |---|---|---:| | ||
| 73 | | `ModNiceness` | `Niceness` field | +0.621 | | ||
| 74 | | `ModHumidity` | `WindMax` | +0.598 | | ||
| 75 | | `ModWind` | `WindMin` (n=150) | +0.496 | | ||
| 76 | | `ModPrecipitation` | `WindMax` | +0.451 | | ||
| 77 | | `ModFetch` | `WindGustsSpeedMax` | +0.309 | | ||
| 78 | | `ModTemperature` | `WindMax` | +0.292 | | ||
| 79 | | `ModAtmosphere` | `Rain` | +0.149 | | ||
| 80 | |||
| 81 | Three readings fall out of this. The `ModNiceness` label is a coarse view of the numeric `Niceness` field | ||
| 82 | (bucket means 5.47 bad / 6.69 neutral / 9.85 good, values 1 to 10). Humidity, precipitation and wind all | ||
| 83 | correlate with wind strength rather than with their nominal subject, which says the 25 data sets are ordered | ||
| 84 | mostly by storminess and the axes ride along. And `ModAtmosphere` correlates with nothing, consistent with it | ||
| 85 | being a categorical label (pressure, clarity, haze, mist groups) rather than a scale. | ||
| 86 | |||
| 87 | The `Rain` field does not follow the top precipitation token. It is nonzero in exactly 7 of the 25 data sets | ||
| 88 | (`DRIZZLE` 0.4, `Rain` 0.6, `THUNDERSTORM` 1.0, `HURRICANE` 0.8, `Shower` 0.2, `HAIL` 0.3, `CLOUDSCAPE_HURRICANE` | ||
| 89 | 0.8), and read per type through the borrowed set, 8 of the 168 types are nonzero: the 6 untagged storm names | ||
| 90 | (`DRIZZLE`, `RAIN`, `THUNDERSTORM`, `HURRICANE`, `SHOWER`, `HAIL`) plus `AM_Hurricane` and `AM_Hurricane_Au`. | ||
| 91 | 12 of the 14 types tagged `W_MOD_precip_100_HeavyRain` borrow a data set whose `Rain` is 0, so `Rain > 0` is a | ||
| 92 | property of the borrowed set, not of the precipitation token. | ||
| 93 | |||
| 94 | ## The 25 data sets | ||
| 95 | |||
| 96 | Each `WeatherTypeDatas` entry is 72 numeric fields borrowed by name. Measured ranges: `WindMin` 0.5 to 26, | ||
| 97 | `WindMax` 0.9 to 32, `WindGustsChance` 10 to 100, `WindGustsSpeedMax` 0.5 to 20, `CloudType` 0.01 to 0.67, | ||
| 98 | `Niceness` 1 to 10 (8 distinct), `Fog` binary, `MaxWeatherAccumulation` two values (0 and 0.12). Dead fields | ||
| 99 | in this build: `Honor` is 0.0 in all 25, `IsBlizzard` 0 in all 25, and `MudWashSpeed` and `OceanWaveWindScale` | ||
| 100 | are constant (0 and 0.7). The `IsNice` flag is not a threshold on `Niceness`: the values 5 and 6 each appear | ||
| 101 | with the flag set both ways. | ||
| 102 | |||
| 103 | ## `WeatherCycles` and `TimeMult` | ||
| 104 | |||
| 105 | Two cycles: `SUNNY` with `TimeMult` 2 and `HIGHPRESSURE` with `TimeMult` 1. `TimeMult` is the only numeric | ||
| 106 | field the block has. Each cycle name is the `@name` of one of the 25 referenced `timecycle_keyframe_data` | ||
| 107 | documents, and those documents are structurally ordinary (2 regions, 1,142 variables per region, same as the | ||
| 108 | other 23). Nothing in the archive carries a duration, stage count or keyframe spacing that `TimeMult` could | ||
| 109 | multiply, so it is a pure runtime scalar; what it scales is a runtime question, but it demonstrably changes | ||
| 110 | nothing about the cycle's keyframe structure. | ||
| 111 | |||
| 112 | ## The `Honor*` values | ||
| 113 | |||
| 114 | `WeatherMiscData` holds four values: `HonorThresholdForGraph` 0.1, `HonorThresholdForWeatherChange` 0.1, | ||
| 115 | `HonorDecreaseWaitTime` 30.0, `HonorWeatherChangeTime` 30.0. Read plainly: an honor change has to move at | ||
| 116 | least 0.1 to show on the graph or to trigger a weather change, and both paths wait 30 units. With the per-type | ||
| 117 | `Honor` field at 0.0 in all 25 data sets, there is nothing for these thresholds to gate, so the | ||
| 118 | honor-driven weather path is inert as shipped. | ||
| 119 | |||
| 120 | ## App entries and keyframe documents | ||
| 121 | |||
| 122 | `WeatherAppTypeDatas` has 26 uniquely named entries; the 151 types reference 19 of them. The 7 unreferenced | ||
| 123 | ones (like `PatchyMist` and `Seafog`) carry empty icons and descriptions, placeholders for app states this | ||
| 124 | build never selects. | ||
| 125 | |||
| 126 | All 25 `TimeCycleName` values match a `timecycle_keyframe_data` document `@name` case-insensitively (21 match | ||
| 127 | exactly; the four mixed-case families `misty`, `Fog`, `Rain`, `Shower` have uppercase timecycle names). The 27 | ||
| 128 | keyframe documents are those 25 plus two small ones no weather type references: `underwater_deep` (2 regions, | ||
| 129 | 515 variables each) and `sleet` (2 regions, 520 variables each). | ||
| 130 | |||
| 131 | ## How to reproduce | ||
| 132 | |||
| 133 | Carve and dump as above, then count what this note claims: the 151/17 tag split and its family alignment, the | ||
| 134 | exact-case off-list table, the 7 nonzero-`Rain` data sets and the 8 types that read them, the seven Spearman | ||
| 135 | figures (average ranks, borrowed family fields), the constant `Honor`/`IsBlizzard` fields, and the two | ||
| 136 | unreferenced keyframe documents. None of it needs a key and none of it leaves the local copy. | ||