DreamWeave: web links open the stage site on the stage world #5
Loading…
Reference in a new issue
No description provided.
Delete branch "AwfulWaffle/RynthServers:dreamweave-stage-site"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
A launch code is minted in the shard of the world that answered /weblogin. On DreamWeave-Stage the plugin still opened www.acdreamweave.com, so the stage code reported "expired or already used".
Fix
When the engine reports the world DreamWeave-Stage, the plugin builds the launch URL on www-stage.acdreamweave.com and restricts the web panel and browser allowlist to that host only. Any other or unknown world keeps the live site and its allowlist. The world is read once per launch, so the URL and the allowlist always name the same site. The change is in DreamWeaveWeb.cs (new helpers and a LaunchUrl overload argument) and DreamWeaveWebTools.cs (WorldName, OpenLaunch).
Testing
RynthServerPack.Tests: 111 test(s), 3885 check(s): 111 passed, 0 failed, 0 known failure(s). The new tests pin the helpers (case and whitespace handling, unknown and null worlds, allowlist separation in both directions) and the plugin wiring. The RynthDreamWeave plugin builds in Release with 0 errors (built with RynthSuiteRoot pointing at a suite checkout that carries ValueBankLuminance, the same root the tests use). Verified in game on DreamWeave-Stage: Class Abilities signs in.
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.