Skip to content

Fix host spawning. - #161

Merged
Armored-Dragon merged 2 commits into
alphafrom
fix-host-spawning
Jul 23, 2026
Merged

Fix host spawning.#161
Armored-Dragon merged 2 commits into
alphafrom
fix-host-spawning

Conversation

@Armored-Dragon

Copy link
Copy Markdown
Member

The player spawning is hard-coded and not using the "spawnable" system, which was designed to handle something like this. This PR changes player spawning to use the spawnable system.

What I thought was going to be a quick 10-minute change is going to
become a week-long escapade to fix a race condition.
Player controllers are now a spawnable.
Added "CollisionShape3D" and "RayCast3D" as spawnable nodes for the
player controller.
Changed player position sender to use spawnable native transform calls.
Major refactor in spawnable_manger to help address race condition, and
lots of comments for my sanity.
Player database is now synced as well when joining a server.
Player auto respawning. When a player node is destryoed, it is respawned
after a short time.
It was not a race condition, it was me unexpectedly modifying the
database_id in the middle of syncing.
@Armored-Dragon Armored-Dragon self-assigned this Jul 23, 2026
@Armored-Dragon Armored-Dragon added enhancement New feature or request om-client Issues relating to the OpenMinerva client. alpha Issues pertaining to the alpha channel labels Jul 23, 2026
@Armored-Dragon
Armored-Dragon merged commit c4f29ab into alpha Jul 23, 2026
@Armored-Dragon
Armored-Dragon deleted the fix-host-spawning branch July 23, 2026 18:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

alpha Issues pertaining to the alpha channel enhancement New feature or request om-client Issues relating to the OpenMinerva client.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant