diff options
author | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-29 19:40:09 -0400 |
---|---|---|
committer | Star Rauchenberger <fefferburbia@gmail.com> | 2023-04-29 19:40:09 -0400 |
commit | 487c09fcaf00fbce7854c24b65bf53614024dda3 (patch) | |
tree | ee1b07926b52a70427a0756ec8146b647f73c5bb | |
parent | 357e2f63581f606a032ce8886bc7137a50963aa1 (diff) | |
download | lingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.tar.gz lingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.tar.bz2 lingo-archipelago-487c09fcaf00fbce7854c24b65bf53614024dda3.zip |
Increased max in buffer size
Horray! We don't have to hardcode games not to download.
-rw-r--r-- | Archipelago/client.gd | 13 | ||||
-rw-r--r-- | Archipelago/settings_screen.gd | 4 |
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 | } |
38 | const filtered_games = ["Ocarina of Time", "Factorio", "Lufia II Ancient Cave"] | ||
39 | 38 | ||
40 | const kTHE_END = 0 | 39 | const kTHE_END = 0 |
41 | const kTHE_MASTER = 1 | 40 | const 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") |