Fix RPC path mismatch in headless server

The headless server added the multiplayer-fps game scene as a child node
(/root/HeadlessServer/multiplayer-fps/...), causing RPC node paths to
include the HeadlessServer/ prefix. Clients expected paths relative to
root (/root/multiplayer-fps/...), so every RPC would fail with
'Node not found'.

Fix: add the game scene directly to /root/ via call_deferred, making it
a sibling of the HeadlessServer node rather than a child. RPC paths now
match between server and client.
This commit is contained in:
2026-07-02 22:30:34 -04:00
parent 841ce19740
commit 4a834a1d55
3 changed files with 157 additions and 53 deletions
+6
View File
@@ -0,0 +1,6 @@
[gd_scene format=3]
[ext_resource type="Script" path="res://test_connect.gd" id="1_script"]
[node name="TestConnect" type="Node"]
script = ExtResource("1_script")