Skip to content

Fix connection overlay sometime not showing + Queue updates to tracker when disconnected - #32

Open
Jouramie wants to merge 4 commits into
alwaysintreble:archipelagofrom
Jouramie:feature/client-resiliency
Open

Fix connection overlay sometime not showing + Queue updates to tracker when disconnected#32
Jouramie wants to merge 4 commits into
alwaysintreble:archipelagofrom
Jouramie:feature/client-resiliency

Conversation

@Jouramie

@Jouramie Jouramie commented Aug 1, 2026

Copy link
Copy Markdown

Feedback from https://discord.com/channels/731205301247803413/1090822939697500243/1532474440217268395

It seems like sometimes, the mod does not send updates to the tracker. My best guess is that player was disconnected from the server, but was not aware of it.

The overlay telling players they're connected is currently bugged. When the mod first connect, the overlay does not show. It only gets its first update after messages are received from the server. I noticed that while testing/playing solo seeds, it can take a long time for it to show up. That would explain how players are not aware their mod is disconnected. In this specific case, they were in a room with only one other player, so not much server chatting.

So this fixes the overlay, now it will also update when the client connect/disconnect. The TrackerManager will also keep a statea state of the updates that could not be sent while the client was disconnected, so they can be sent when the client reconnects.

Last thing, I moved UpdateArchipelagoState into APRandomizerMain instead of it being in ArchipelagoClient. ArchipelagoClient is currently the center of the spaghetti the mod is. Everything talks to it, and it talks to everything. My goal with the change is to eventually only have stuff talking to the client, and the client talking to mostly nothing (only external stuff like the ArchipelagoSession, DeathLinkInterface, etc). The client in itself can't do much anyway since Unity is single-threaded. It can only queue stuff and wait for the update to pick it up.

Jouramie added a commit to Jouramie/TheMessengerRandomizerModAP that referenced this pull request Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant