about summary refs log tree commit diff stats
path: root/Archipelago/load.gd
diff options
context:
space:
mode:
authorStar Rauchenberger <fefferburbia@gmail.com>2023-04-26 22:28:05 -0400
committerStar Rauchenberger <fefferburbia@gmail.com>2023-04-26 22:28:05 -0400
commit14ef44e0d9233b651398c9b7c05d9133bd98be44 (patch)
treed0ec449d89787d08ca9e091fc224d914c4b940bb /Archipelago/load.gd
parent1ccce2870c776db26ef41f6e550bfe92799e79e1 (diff)
downloadlingo-archipelago-14ef44e0d9233b651398c9b7c05d9133bd98be44.tar.gz
lingo-archipelago-14ef44e0d9233b651398c9b7c05d9133bd98be44.tar.bz2
lingo-archipelago-14ef44e0d9233b651398c9b7c05d9133bd98be44.zip
Fixed handshake failure from too-large data packages
The needed datapackages are requested one-by-one, now.
Diffstat (limited to 'Archipelago/load.gd')
-rw-r--r--Archipelago/load.gd5
1 files changed, 2 insertions, 3 deletions
diff --git a/Archipelago/load.gd b/Archipelago/load.gd index ea8eb5f..e3ae24e 100644 --- a/Archipelago/load.gd +++ b/Archipelago/load.gd
@@ -22,10 +22,9 @@ func _load():
22 # loaded but the panels haven't been solved from the save file yet. 22 # loaded but the panels haven't been solved from the save file yet.
23 var panels_parent = self.get_node("Panels") 23 var panels_parent = self.get_node("Panels")
24 var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd") 24 var location_script = ResourceLoader.load("user://maps/Archipelago/location.gd")
25 for location_name in apclient._location_name_to_id: 25 for location_id in apclient._panel_ids_by_location.keys():
26 var location = location_script.new() 26 var location = location_script.new()
27 location.ap_name = location_name 27 location.ap_id = int(location_id)
28 location.ap_id = apclient._location_name_to_id[location_name]
29 location.name = "AP_location_" + location.ap_id 28 location.name = "AP_location_" + location.ap_id
30 self.add_child(location) 29 self.add_child(location)
31 30