diff options
| author | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-12 20:25:30 -0400 |
|---|---|---|
| committer | Star Rauchenberger <fefferburbia@gmail.com> | 2025-09-12 20:25:30 -0400 |
| commit | 905cb85eb765ec73fc2b4ba51e50051583adfc22 (patch) | |
| tree | aef9fddf1b4688d6f8fb20952dfc2eef8a744d11 /client | |
| parent | 46676370a61099f5859c90ee8e2cc2e0e4d3585c (diff) | |
| download | lingo2-archipelago-905cb85eb765ec73fc2b4ba51e50051583adfc22.tar.gz lingo2-archipelago-905cb85eb765ec73fc2b4ba51e50051583adfc22.tar.bz2 lingo2-archipelago-905cb85eb765ec73fc2b4ba51e50051583adfc22.zip | |
[Client] Fixed issue with large datapackages
Diffstat (limited to 'client')
| -rw-r--r-- | client/Archipelago/client.gd | 6 | ||||
| -rw-r--r-- | client/Archipelago/manager.gd | 4 | ||||
| -rw-r--r-- | client/Archipelago/settings_screen.gd | 3 |
3 files changed, 9 insertions, 4 deletions
| diff --git a/client/Archipelago/client.gd b/client/Archipelago/client.gd index 2e080fd..843647d 100644 --- a/client/Archipelago/client.gd +++ b/client/Archipelago/client.gd | |||
| @@ -47,6 +47,8 @@ signal location_scout_received(item_id, location_id, player, flags) | |||
| 47 | func _init(): | 47 | func _init(): |
| 48 | set_process_mode(Node.PROCESS_MODE_ALWAYS) | 48 | set_process_mode(Node.PROCESS_MODE_ALWAYS) |
| 49 | 49 | ||
| 50 | _ws.inbound_buffer_size = 8388608 | ||
| 51 | |||
| 50 | global._print("Instantiated APClient") | 52 | global._print("Instantiated APClient") |
| 51 | 53 | ||
| 52 | # Read AP datapackages from file, if there are any | 54 | # Read AP datapackages from file, if there are any |
| @@ -225,7 +227,7 @@ func _process(_delta): | |||
| 225 | error_message = "Unknown error." | 227 | error_message = "Unknown error." |
| 226 | 228 | ||
| 227 | _initiated_disconnect = true | 229 | _initiated_disconnect = true |
| 228 | _ws.disconnect_from_host() | 230 | _ws.close() |
| 229 | 231 | ||
| 230 | emit_signal("could_not_connect", error_message) | 232 | emit_signal("could_not_connect", error_message) |
| 231 | global._print("Connection to AP refused") | 233 | global._print("Connection to AP refused") |
| @@ -309,7 +311,7 @@ func connectToServer(server, un, pw): | |||
| 309 | % err | 311 | % err |
| 310 | ) | 312 | ) |
| 311 | ) | 313 | ) |
| 312 | global._print("Could not connect to AP: " + err) | 314 | global._print("Could not connect to AP: %d" % err) |
| 313 | return | 315 | return |
| 314 | _should_process = true | 316 | _should_process = true |
| 315 | 317 | ||
| diff --git a/client/Archipelago/manager.gd b/client/Archipelago/manager.gd index 8a15728..e38fc15 100644 --- a/client/Archipelago/manager.gd +++ b/client/Archipelago/manager.gd | |||
| @@ -329,8 +329,8 @@ func _process_location_scout(item_id, location_id, player, flags): | |||
| 329 | collectable.setScoutedText(item_name) | 329 | collectable.setScoutedText(item_name) |
| 330 | 330 | ||
| 331 | 331 | ||
| 332 | func _client_could_not_connect(): | 332 | func _client_could_not_connect(message): |
| 333 | emit_signal("could_not_connect") | 333 | emit_signal("could_not_connect", message) |
| 334 | 334 | ||
| 335 | 335 | ||
| 336 | func _client_connect_status(message): | 336 | func _client_connect_status(message): |
| diff --git a/client/Archipelago/settings_screen.gd b/client/Archipelago/settings_screen.gd index 14975e5..2236672 100644 --- a/client/Archipelago/settings_screen.gd +++ b/client/Archipelago/settings_screen.gd | |||
| @@ -223,9 +223,12 @@ func connectionUnsuccessful(error_message): | |||
| 223 | popup.get_ok_button().visible = true | 223 | popup.get_ok_button().visible = true |
| 224 | popup.popup_centered() | 224 | popup.popup_centered() |
| 225 | 225 | ||
| 226 | $Panel/connect_button.disabled = false | ||
| 227 | |||
| 226 | 228 | ||
| 227 | func versionMismatchDeclined(): | 229 | func versionMismatchDeclined(): |
| 228 | $Panel/AcceptDialog.hide() | 230 | $Panel/AcceptDialog.hide() |
| 231 | $Panel/connect_button.disabled = false | ||
| 229 | 232 | ||
| 230 | 233 | ||
| 231 | func historySelected(index): | 234 | func historySelected(index): |
