Repository navigation
GB5 part 1: a joined terrain lab edits the server's world (rcon admins only) - #1527
Merged
Merged
Conversation
transfix
force-pushed
the
feat/gb5-world-relay
branch
from
November 24, 2026 21:01
fe22a63 to
b6d176c
Compare
transfix
force-pushed
the
feat/gb5-world-relay
branch
from
November 25, 2026 00:11
b6d176c to
3c8ef31
Compare
A lab joined to a relay whose document runs the same generated_world node now shows the relay's world and sends its Regenerate to the relay: - GeneratedWorldRelay (both hosts: cvcGL's node and GeneratedWorldRuntime) follows the relay's world_on with a "follow" request, sends the panel's rebuilds as (room-call "server.regenerate" NODE PARAMS-JSON), and logs in with world.request: rcon (world.server.password). world.server.status says what the relay did. - poll_generated_world says whether a rebuild was the panel's (asked); SceneWorld::follow_generated asks with "follow", so a replica never sends its follow on. write_generated_world_keys is the shared key writer. - arisrv: server.regenerate, an admin call (forbidden until server.rcon), remakes the document's generated world; publish_world_on takes it to every client. - world_controls: an admin password field, Log in as admin, server status. - Tests: AriadneOneWorld.AJoinedLabShowsTheRelaysWorldAndSendsItsRegenerate, ctest arisrv_world_regenerate.
transfix
force-pushed
the
feat/gb5-world-relay
branch
from
November 25, 2026 04:19
3c8ef31 to
0a0ef38
Compare
transfix
enabled auto-merge (squash)
November 25, 2026 04:19
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.
GB5 part 1 (ARIADNE_WORLDS section 18.8): the terrain lab in One World. A lab joined to a relay whose document runs the same
generated_worldnode now edits the relay's world, which is the room's. Only a connection the server's rcon password made an admin can change it.Stacked on #1518 (GB4), which is stacked on #1508. Until those squash-merge, this diff also shows their commits. I'll rebase it onto master as each one lands.
What changes
GeneratedWorldRelay(scene_generated_world.h/.cpp). Both hosts use it: cvcGL's generated node and the headlessGeneratedWorldRuntime.follow(): when the relay'sconf.rooms.<room>.world_onlists the node with params other than the world shown, the keys take those params and ask for afollow. The node makes that world itself and never sends it back. It looks again only whenworld_on's stamp moves.ask(): the panel's Regenerate, Randomize andworld.autoedits go to the relay as(room-call "server.regenerate" NODE PARAMS-JSON), and the node makes nothing itself. The world the relay makes comes back throughworld_on, to every client's lab and replica.login(): a newworld.request: rconsendsworld.server.passwordasserver.rconand clears the key.world.server.statussays what the relay did ("refused: …", "the server's world (seed N)").room_call_client::for_app(app)joined: arigl, or a document withrelay:. A host that joined none, or a relay that doesn't run the node, behaves as before.poll_generated_worldreports whether a rebuild was the panel's (asked).SceneWorld::follow_generatednow asks withfollow(notregenerate), so a client's replica never sends its follow on.write_generated_world_keysholds the key writes thatfollow_generatedused to do inline.arisrv
server.regenerate NODE PARAMSforbiddenunlessserver.rconmade the caller's connection an admin.follow_generatedon the document's world. The world is made at the next sync, andpublish_world_ontakes it to every client.{node, asked, seed}, withaskedfalse when the world already is that one. A node the document doesn't run isinvalid.world_controls.ari: an "Admin password" field (masked), "Log in as admin", and a "server status" line.Docs: ARIADNE.md, ARISRV_IDENTITY 2.5 (the admin call), and ARIADNE_WORLDS (GB5 part 1, and what's still open).
Still open in GB5
world_on, so a client can check the world it made against the relay's, and fetch the bytes by content address when they differ. This overlaps Ariadne OW5q: a sea the relay's storms grow; clients follow it and draw the relay's world at its time #1521'sroom_world_onchanges.SceneColliders.from_tick). Today a replica swaps its colliders in as soon as they're ready.Tests
AriadneOneWorld.AJoinedLabShowsTheRelaysWorldAndSendsItsRegeneratecovers, without a relay:world_on;arisrv_world_regenerate(ctest, relay plus client):server.rcon;askedwith seed 4242;asked: false, so the relay made it;