From 00bb8a21d2b1b35231068864df7ab8fc5842af38 Mon Sep 17 00:00:00 2001 From: Shawn Date: Thu, 2 Jul 2026 23:05:51 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20bootstrapper=20parse=20error=20in=20expor?= =?UTF-8?q?ts=20=E2=80=94=20remove=20forest-brawl=20type=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit lan-bootstrapper.gd and noray-bootstrapper.gd both had a host_only() function that referenced BrawlerSpawner (class_name from forest-brawl). Since examples/forest-brawl/ is excluded from exports, the type was undefined, causing the entire script to fail loading with: 'Could not find type BrawlerSpawner in current scope' This meant the Join and Host button signal handlers never existed, so clicking them did nothing — no error shown, no connection, no UI change. Fix: remove the unused host_only() function from both bootstrapper files. --- examples/shared/scripts/lan-bootstrapper.gd | 20 +++++++------------ examples/shared/scripts/noray-bootstrapper.gd | 6 ------ 2 files changed, 7 insertions(+), 19 deletions(-) diff --git a/examples/shared/scripts/lan-bootstrapper.gd b/examples/shared/scripts/lan-bootstrapper.gd index 8021d12..2f2d980 100644 --- a/examples/shared/scripts/lan-bootstrapper.gd +++ b/examples/shared/scripts/lan-bootstrapper.gd @@ -5,18 +5,12 @@ extends Node @export var address_input: LineEdit @export var port_input: LineEdit -func host_only(): - var brawler_spawner: BrawlerSpawner = %"Brawler Spawner" - if brawler_spawner != null: - brawler_spawner.spawn_host_avatar = false - host() - func host(): - var host = _parse_input() - if host.size() == 0: + var host_dict = _parse_input() + if host_dict.size() == 0: return ERR_CANT_RESOLVE - var port = host.port + var port = host_dict.port # Start host print("Starting host on port %s" % port) @@ -48,12 +42,12 @@ func host(): NetworkTime.start() func join(): - var host = _parse_input() - if host.size() == 0: + var host_dict = _parse_input() + if host_dict.size() == 0: return ERR_CANT_RESOLVE - var address = host.address - var port = host.port + var address = host_dict.address + var port = host_dict.port # Connect print("Connecting to %s:%s" % [address, port]) diff --git a/examples/shared/scripts/noray-bootstrapper.gd b/examples/shared/scripts/noray-bootstrapper.gd index 1d12dc6..b3a66b3 100644 --- a/examples/shared/scripts/noray-bootstrapper.gd +++ b/examples/shared/scripts/noray-bootstrapper.gd @@ -50,12 +50,6 @@ func disconnect_from_noray(): Noray.disconnect_from_host() oid_input.clear() -func host_only(): - var brawler_spawner: BrawlerSpawner = %"Brawler Spawner" - if brawler_spawner != null: - brawler_spawner.spawn_host_avatar = false - host() - func host(): if Noray.local_port <= 0: return ERR_UNCONFIGURED