Entry 565
The story maps' statics on systems::statics: one loader, each class's rules in its defs
1h 53mworld
Files20 in 6 directories
carmina_gadelica_probe.rsdun_loireag_probe.rsstory_map_probe.rsworld_probe.rscrates/piney-world/src/story_map/abyss.rsboss_arena.rsdisc.rsgiant.rsholy_ground.rssky.rstruths_core.rscrates/piney-world/src/systems/statics.rscrates/piney-world/src/town/carmina_gadelica.rsdun_loireag.rsfort_ouph.rslia_fail.rsmac_anu.rsrelic_city.rsdocs/engine/statics.mdplans/rust-cleanup.mdMentioned inplans/rust-cleanup.md:302
The map's own systems item (plans/rust-cleanup.md section 2): holy
ground (EVENTAREA02), the giant (EVENTAREA07), the abyss
(EVENTAREA03), the boss arenas (EVENTAREAB0) and the disc
(EVENTAREAB8) built their scenery with holy_ground::StaticModel::load
and StaticObject::load (worklog 531), which differed from the towns'
systems::statics in four ways. Each is settled from the game's code;
there is one loader, its rules in the defs. Nothing drawn changed.
The four differences, from the game
- A model the file lacks.
STATICMODEL::STATICMODEL(INF gcmn 0x005cffd0) takes its model withccStream::GetChunkAdrsF(name, 0)(main 0x00144570), which, finding no chunk and told not to return null, stores to address 0: the game stops. The towns' loader skipped such a row (ModelTable::place), the story maps' failed. One rule now: an error, for the towns too (every town and story map builds). - Origin or dummy. The constructor itself places a row: postype 1
copies the dummy's position, 2 its position and turn, 0 leaves zeros.
Placing::OriginwasEVENTAREA07's, whose rows are all postype 0 (EA_MODELTABLE07at 0x005d2160,EA_OBJTABLE07at 0x005d2200): the same zeros. No rule is needed;Placingis gone. - The names.
EVENTAREAB0's constructor writes the field's two digits over characters 6 and 8 ofEA_MODELTABLEB0'sse1_5names: itsModelsDef::namesisNames::OfFile { from: "se1_5" }(the table's names read as the stage file's), every other def'sNames::Table. - The row cap. A class builds
anmNumobjects:EVENTAREA02's 0 and 1 (the first table's placeholder row never built), the others their whole tables:ObjectsDef::anm_num(None, every row).STATICOBJECTmakes a clump in place of theccAnmfor a row naming no animation; the loader skips such rows, as the towns' did, andevery_built_object_row_names_an_animationchecks over all four volumes' tables that no class builds one, so none is lost.
The defs and the systems
systems::statics::{ModelsDef, ObjectsDef} gain names and anm_num.
StaticModels keeps each row's Model (row, pass, model, place, clip:
the old StaticModel), StaticObjects its Objects. Each story map
names its own static defs: holy_ground::MODELS and OBJECTS by block
and giant::MODELS by block (Infection's tables, which those classes read
on every volume), giant::OBJECTS (block 0; block 1 builds none,
StaticObjects::default()), abyss::MODELS, boss_arena::MODELS,
disc::MODELS and OBJECTS. The maps hold the system objects (models: StaticModels, objects: StaticObjects) and index them as before;
StaticModels::clear is EVENTAREAB0::NextStage's delete. The story maps
as defs with their systems in order (the next steps) move them into each
map's Systems.
Checks
- Golden shots, every PNG byte for byte: the towns' set and the story maps', fields', dungeons' and breaths' (worklog 562, 563).
- Against the game on all four volumes, as for worklog 562
(
test_evarea_rsamong them: every story map's pieces and places). - The crates' tests, piney-game's suite (release);
piney-gen gen --check, clippy with all features, fmt,cairns check,tools/docs.py check.
Still unknown: nothing.