[PR #3967] [CLOSED] Experimental program and content support on Horizon 1feb28c #5327

Closed
opened 2026-11-03 05:11:49 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/horizon-rust/horizon/pull/3967
Author: @CateDesu
Created: 10/29/2026
Status: ❌ Closed

Base: main ← Head: main


📝 Commits (3)

  • 81171fd Preserve world and player state across backups
  • a134164 Preserve world and player state across backups
  • ad810c1 Add experimental program and content support

📊 Changes

180 files changed (+22082 additions, -1357 deletions)

View changed files

📝 Cargo.lock (+124 -0)
📝 Cargo.toml (+3 -0)
📝 crates/cargo-horizon-mod/src/main.rs (+231 -0)
📝 crates/horizon-client/examples/mod_port_probe.rs (+159 -8)
📝 crates/horizon-client/examples/probe/first_person_probe.rs (+1 -1)
📝 crates/horizon-client/examples/probe/main.rs (+2 -0)
📝 crates/horizon-client/examples/probe/pack_resources_fixture.rs (+13 -5)
➕ crates/horizon-client/examples/probe/recipe_paths_fixture.rs (+29 -0)
📝 crates/horizon-client/src/audio.rs (+42 -0)
📝 crates/horizon-client/src/command_storage.rs (+16 -13)
➕ crates/horizon-client/src/component_wire.rs (+194 -0)
📝 crates/horizon-client/src/crafting.rs (+5 -19)
📝 crates/horizon-client/src/entity.wgsl (+37 -4)
📝 crates/horizon-client/src/entity_nbt.rs (+41 -2)
📝 crates/horizon-client/src/game.rs (+161 -50)
📝 crates/horizon-client/src/game/advancements.rs (+3 -8)
📝 crates/horizon-client/src/game/bossbars.rs (+1 -1)
📝 crates/horizon-client/src/game/chat.rs (+4 -3)
📝 crates/horizon-client/src/game/combat.rs (+2 -1)
📝 crates/horizon-client/src/game/commands/data.rs (+3 -6)

...and 80 more files

📄 Description

The Pixelmon program is moving to Horizon's native mod system. This draft targeted the older WebAssembly APIs and includes unrelated fork history, so it is being closed rather than merged as a large engine patch.

The current native adapter builds against upstream 12930d623. Program-specific persistence and model texture slots stay in its own staged source. Registry packaging and source review remain separate work. Model appearance is still rough.

The earlier fork work is preserved. Closing this PR does not publish the private program or its assets.

Original draft notes and validation limits

What and why

This is a rough first pass at the engine support used by an unfinished private program. It adds content import and nested recipes, packaged resources, owned entities and meshes, private displays, and bounded inventory and world APIs. The private Pixelmon program, game files, derived DATA and assets are outside this PR.

This is a large draft, not ready to merge. GitHub reports merge conflicts with current main; they remain unresolved in this pinned draft. It also preserves the fork's earlier backup and player persistence work. The reusable changes still need splitting and reconciliation with current main.

Upstream is proposing removal of the WebAssembly runtime and SDK in #3351, with related documentation changes in #3371. This work uses that older system. It needs adaptation to the upstream direction rather than treating this pinned implementation as the final API.

From CateDesu:

I can't keep up with every upstream push, so this uses Horizon 1feb28c. I'll bring in updates in batches after testing. This is a rough patch, and I'll continue working on it.

Vanilla reference

Horizon-only program interfaces reuse the existing native inventory, collision, chunk, rendering and sound paths. The retained fork changes include persistence and player state. This draft does not claim new vanilla or Pixelmon parity.

Self-check

The basic build and play checks passed, but the repository readiness gate does not pass yet.

Check Result
Public tree and local Git history Passed using standalone Python 3.12; the push hook stayed enabled
Native client, control tool, packager and importer Built with two jobs
Current server, client and content packages Built
Isolated integrated-server smoke Starter ownership, visible mesh, one wild battle, private party menus and save/reload passed; experience and spent PP survived reopening
Python tests Crashed with a segmentation fault under system Python 3.14 and 3.11; not fully diagnosed
rustfmt Failed
Clippy with warnings denied Failed on collapsible if statements in the message/model helpers
Workspace tests and remaining readiness steps Incomplete when the bounded python3 tools/pr_ready.py --quick --base upstream/main run stopped after 180 seconds
Broad parity, external TCP play and audio Not verified

The smoke used visual staging for dex 1, 4, 7 and 25. Model appearance remains rough. Individual API and gameplay paths have not all been exercised. The basic smoke is not acceptance of the whole draft.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/horizon-rust/horizon/pull/3967 **Author:** [@CateDesu](https://github.com/CateDesu) **Created:** 10/29/2026 **Status:** ❌ Closed **Base:** `main` ← **Head:** `main` --- ### 📝 Commits (3) - [`81171fd`](https://github.com/horizon-rust/horizon/commit/81171fd1b47927526b89ce91094aadbc70304a6e) Preserve world and player state across backups - [`a134164`](https://github.com/horizon-rust/horizon/commit/a13416402e633b132e28a0fe6ae54dc41e450710) Preserve world and player state across backups - [`ad810c1`](https://github.com/horizon-rust/horizon/commit/ad810c1bdac62b86692d7bf5b05742abf297a323) Add experimental program and content support ### 📊 Changes **180 files changed** (+22082 additions, -1357 deletions) <details> <summary>View changed files</summary> 📝 `Cargo.lock` (+124 -0) 📝 `Cargo.toml` (+3 -0) 📝 `crates/cargo-horizon-mod/src/main.rs` (+231 -0) 📝 `crates/horizon-client/examples/mod_port_probe.rs` (+159 -8) 📝 `crates/horizon-client/examples/probe/first_person_probe.rs` (+1 -1) 📝 `crates/horizon-client/examples/probe/main.rs` (+2 -0) 📝 `crates/horizon-client/examples/probe/pack_resources_fixture.rs` (+13 -5) ➕ `crates/horizon-client/examples/probe/recipe_paths_fixture.rs` (+29 -0) 📝 `crates/horizon-client/src/audio.rs` (+42 -0) 📝 `crates/horizon-client/src/command_storage.rs` (+16 -13) ➕ `crates/horizon-client/src/component_wire.rs` (+194 -0) 📝 `crates/horizon-client/src/crafting.rs` (+5 -19) 📝 `crates/horizon-client/src/entity.wgsl` (+37 -4) 📝 `crates/horizon-client/src/entity_nbt.rs` (+41 -2) 📝 `crates/horizon-client/src/game.rs` (+161 -50) 📝 `crates/horizon-client/src/game/advancements.rs` (+3 -8) 📝 `crates/horizon-client/src/game/bossbars.rs` (+1 -1) 📝 `crates/horizon-client/src/game/chat.rs` (+4 -3) 📝 `crates/horizon-client/src/game/combat.rs` (+2 -1) 📝 `crates/horizon-client/src/game/commands/data.rs` (+3 -6) _...and 80 more files_ </details> ### 📄 Description The Pixelmon program is moving to Horizon's native mod system. This draft targeted the older WebAssembly APIs and includes unrelated fork history, so it is being closed rather than merged as a large engine patch. The current native adapter builds against upstream `12930d623`. Program-specific persistence and model texture slots stay in its own staged source. Registry packaging and source review remain separate work. Model appearance is still rough. The earlier fork work is preserved. Closing this PR does not publish the private program or its assets. <details> <summary>Original draft notes and validation limits</summary> ## What and why This is a rough first pass at the engine support used by an unfinished private program. It adds content import and nested recipes, packaged resources, owned entities and meshes, private displays, and bounded inventory and world APIs. The private Pixelmon program, game files, derived DATA and assets are outside this PR. This is a large draft, not ready to merge. GitHub reports merge conflicts with current main; they remain unresolved in this pinned draft. It also preserves the fork's earlier backup and player persistence work. The reusable changes still need splitting and reconciliation with current main. Upstream is proposing removal of the WebAssembly runtime and SDK in #3351, with related documentation changes in #3371. This work uses that older system. It needs adaptation to the upstream direction rather than treating this pinned implementation as the final API. From CateDesu: > I can't keep up with every upstream push, so this uses Horizon `1feb28c`. I'll bring in updates in batches after testing. This is a rough patch, and I'll continue working on it. ## Vanilla reference Horizon-only program interfaces reuse the existing native inventory, collision, chunk, rendering and sound paths. The retained fork changes include persistence and player state. This draft does not claim new vanilla or Pixelmon parity. ## Self-check The basic build and play checks passed, but the repository readiness gate does not pass yet. | Check | Result | | --- | --- | | Public tree and local Git history | Passed using standalone Python 3.12; the push hook stayed enabled | | Native client, control tool, packager and importer | Built with two jobs | | Current server, client and content packages | Built | | Isolated integrated-server smoke | Starter ownership, visible mesh, one wild battle, private party menus and save/reload passed; experience and spent PP survived reopening | | Python tests | Crashed with a segmentation fault under system Python 3.14 and 3.11; not fully diagnosed | | rustfmt | Failed | | Clippy with warnings denied | Failed on collapsible `if` statements in the message/model helpers | | Workspace tests and remaining readiness steps | Incomplete when the bounded `python3 tools/pr_ready.py --quick --base upstream/main` run stopped after 180 seconds | | Broad parity, external TCP play and audio | Not verified | The smoke used visual staging for dex 1, 4, 7 and 25. Model appearance remains rough. Individual API and gameplay paths have not all been exercised. The basic smoke is not acceptance of the whole draft. </details> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-11-03 05:11:49 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#5327
No description provided.