Skip to content

Remove the runtime block-state ID limit #72

Todo

Description

@Noel-Alex

Queue job 4. Measure latest BUJA release state requirements, compare representation options, implement a capacity increase preserving vanilla saves and carrier protocol, and validate palette round trips, M1 performance, Create and Saints Dragons scenarios. Document results in docs/STATE-IDS.md.

Activity

  1. self-assigned this
    on Nov 28, 2026
  2. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    Taking queue job 4 in an isolated W6 worktree, with port 25660 and a dedicated Cargo target. First establish state counts and storage/wire boundaries before implementing.

  3. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    Capacity survey: all 33 BUJA port rows inspected from pinned release JARs, 101,103 asset-visible property combinations (not runtime registry counts). Selected u32 global state IDs, preserving u8 local indexes, original low-ID save encoding, vanilla carrier wire projection, and existing native ABI. Implementation and boundary regressions are in the isolated branch; baseline and candidate validation still pending.

  4. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    Gated focused tests now pass: state_allocator_crosses_u16_and_preserves_saved_ids (1/1) and wide_states_roundtrip_all_palette_modes_and_project_to_vanilla (plus two matching world tests, 3/3). Validates the 65,535/65,536 boundary, stable registry identities, all three binary palette modes, malformed-input rejection, Anvil/Pumpkin round trips, and carrier projection. Full pack engine and before/after M1 are still pending; switched to pack profile per machine-wide gate policy.

  5. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    W2 integrated Create + New Age packed startup at main eab4b13 fails in engine/moddedmc-host/src/content.rs block_definitions with custom block carrier slots exhausted (note/target/hive carrier pool), before world initialization. Both packages load, New Age is at 129 additional states incl. the 9 coil/brush states. #113 still retains the same carrier exhaustion path; wider runtime IDs alone do not solve stock-client model carriers. Please address generic carrier capacity/fallback preserving stock client visuals and collision, separate from runtime IDs. W2 will keep full combined scenario pending.

  6. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    W2 state inventory reveals a separate hard allocation conflict: exact released HeatPumpBlock bytecode declares six independent booleans plus six-way FACING (384 states), HeatPipeBlock adds 64. Current W2 branch is 159 additional states, so these two alone require 607; full release inventory requires approximately 652 additional states (excluding five preexisting magnets). Original 400-state cap cannot represent the released state space. Request an explicit W2 cap increase after the generic host carrier allocator is fixed, or an approved generic alternate representation that preserves every source state and stock-client visuals/collision.

  7. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    Capacity evidence is now complete for all 33 pinned BUJA port releases: 3,838 registered blocks / 390,258 actual server-side states (excluding vanilla and dependency-only namespaces), measured on matching Java loader/version groups. Create alone is 31,389, Quark 144,098, Simple Storage Network 114,700. See docs/STATE-IDS.md and STATE-IDS-JAVA.csv on draft #113 (2b60635). Both gated optimized pack binaries (original 16-bit baseline and candidate) compiled successfully. M1 comparison and wide-ID gameplay validation are underway; the cap is not yet lifted on main.

  8. Noel-Alex commented on Nov 28, 2026

    @Noel-Alex
    MemberAuthor

    W6 follow-up: the compact-generation u32 implementation has completed 16 matched optimized M1 runs (all scenario assertions passed; zero sampled compiler contention). The earlier 37–51 MiB memory increase fell to median differences of 0.1–4.45 MiB. Fresh-barrel p50/p95/p99 remain +8.31/+6.85/+5.52%; zero regression is not established. Latest rebased allocator, palette and protocol tests passed, including the u32 sentinel boundary. Current integrated build c57a39a / Pumpkin 3b49b2b0c and freshly packed modules are running the 131 Create and 126 Saints Dragons fixtures with IDs above 425,981. Client-check instructions and measurements are in draft #113. Independent stock-carrier exhaustion has been reproduced and is not fixed by widening runtime identity; no cap-lift or completion claim yet.

  9. Noel-Alex commented on Nov 29, 2026

    @Noel-Alex
    MemberAuthor

    Wide regression checkpoint: Create 53 passed, 1 failed (funnel; low-ID control passed, cause still under investigation). Saints Dragons 11 passed including restart cases, 1 failed (Ivy); low-ID control also fails, tracked separately in #145. No completion claim. Continuing remaining wide scenarios while these failures are investigated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions