about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--Archipelago/client.gd13
-rw-r--r--Archipelago/settings_screen.gd4
2 files changed, 6 insertions, 11 deletions
diff --git a/Archipelago/client.gd b/Archipelago/client.gd index f33c80c..a66442e 100644 --- a/Archipelago/client.gd +++ b/Archipelago/client.gd
@@ -35,7 +35,6 @@ const progressive_items = {
35 {"item": "Hallway Room (4) - Exit", "display": "Fourth Door"}, 35 {"item": "Hallway Room (4) - Exit", "display": "Fourth Door"},
36 ] 36 ]
37} 37}
38const filtered_games = ["Ocarina of Time", "Factorio", "Lufia II Ancient Cave"]
39 38
40const kTHE_END = 0 39const kTHE_END = 0
41const kTHE_MASTER = 1 40const kTHE_MASTER = 1
@@ -180,17 +179,9 @@ func _on_data():
180 179
181 var needed_games = [] 180 var needed_games = []
182 for game in message["datapackage_checksums"].keys(): 181 for game in message["datapackage_checksums"].keys():
183 # Due to a limitation with Godot 3.x, downloading a datapackage
184 # that is too large will silently fail and prevent us from
185 # finishing the connection process. So we will hardcode the
186 # names of games that are likely to cause connection problems,
187 # and not download those datapackages. Which is not ideal.
188 if ( 182 if (
189 ( 183 !_datapackages.has(game)
190 !_datapackages.has(game) 184 or _datapackages[game]["checksum"] != message["datapackage_checksums"][game]
191 or _datapackages[game]["checksum"] != message["datapackage_checksums"][game]
192 )
193 and not filtered_games.has(game)
194 ): 185 ):
195 needed_games.append(game) 186 needed_games.append(game)
196 187
diff --git a/Archipelago/settings_screen.gd b/Archipelago/settings_screen.gd index efd301e..977bee6 100644 --- a/Archipelago/settings_screen.gd +++ b/Archipelago/settings_screen.gd
@@ -6,6 +6,10 @@ func _ready():
6 get_tree().get_root().set_disable_input(false) 6 get_tree().get_root().set_disable_input(false)
7 Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE) 7 Input.set_mouse_mode(Input.MOUSE_MODE_VISIBLE)
8 8
9 # Increase the WebSocket input buffer size so that we can download large
10 # data packages.
11 ProjectSettings.set_setting("network/limits/websocket_client/max_in_buffer_kb", 8192)
12
9 # Create the global AP client, if it doesn't already exist. 13 # Create the global AP client, if it doesn't already exist.
10 if not global.has_node("Archipelago"): 14 if not global.has_node("Archipelago"):
11 var apclient_script = ResourceLoader.load("user://maps/Archipelago/client.gd") 15 var apclient_script = ResourceLoader.load("user://maps/Archipelago/client.gd")