Mod: port off flecs onto native MafiaNet replication#17
Open
Kheartz wants to merge 1 commit into
Open
Conversation
8a37e36 to
bf5940d
Compare
Segfaultd
approved these changes
Jun 15, 2026
bf5940d to
7a40563
Compare
The framework replaced flecs + the streamer/message entity-sync layer with native ReplicaManager3 + RPC4 (#201/#205). Port HogwartsMP onto it: - Humans are NetworkEntity subclasses: a shared HumanEntity (spawnProfile + nickname in the construction snapshot) and a client ClientHuman that binds the local player when owned or spawns a student proxy otherwise. Both register the same "HogwartsMP::Human" type with the EntityRegistry. - The server builds avatars in onPlayerConnect via ReplicationManager (CreateEntity/SetOwner/SetViewer); World.spawnHuman spawns server-owned NPCs. Per-entity spawn/update/despawn messages are gone. - Chat moves to the framework's built-in ChatMessage RPC and chat/connect callbacks; weather is a plain WeatherState + migrated SetWeather RPC. - Scripting Human now derives the framework's NetworkID-based Player builtin; the old flecs Entity builtin is removed. - Size the interest grid for Hogwarts' cm-scale coordinates. - Rename the SDK's SHA1_WORKSPACE_BLOCK to avoid a clash with mafianet's DR_SHA1.h, now pulled in transitively by the networking headers.
7a40563 to
45778b0
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The framework replaced flecs + the streamer/message entity-sync layer with native ReplicaManager3 + RPC4 (MafiaHub/Framework@4bd235e). Port HogwartsMP onto it:
Used MafiaHub/MafiaMP@bb8c21b as a reference.
Verified client-server interaction. One hiccup was solved by changes that I proposed upstream MafiaHub/Framework#206
GHA checks failing--should be addressed by MafiaHub/Framework#207