Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonClient: Use lookup_in_game instead of lookup_in_slot in case of own-game name lookup when disconnected from server. #3514

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

ThePhar
Copy link
Member

@ThePhar ThePhar commented Jun 12, 2024

What is this fixing or adding?

Bug Report: https://discord.com/channels/731205301247803413/1249434122212872252

There are some code paths that attempt to lookup names prior to connection to the Archipelago server, and I foolishly used lookup_in_slot everywhere when I refactored for #1933. This caused some areas to raise an exception and not finish prior to queuing LocationChecks packets, causing a failure to sync local state with server (like in Factorio's case in the bug report).

This changes those methods to lookup_in_game as CommonContext-derived clients should have already set the game value, so this lookup for own-game items should work even while disconnected.

How was this tested?

Ran before and after with a Factorio world that had a location checked prior to connection. The location did not resync before, but did successfully after the changes. Other clients are not tested, but assumed to work correctly based on similar usage.

If this makes graphical changes, please attach screenshots.

N/A

…` in case of own-game name lookup when disconnected from server.
@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: core Issues/PRs that touch core and may need additional validation. affects: release/blocker Issues/PRs that must be addressed before next official release. labels Jun 12, 2024
@github-actions github-actions bot added the waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. label Jun 12, 2024
@ThePhar ThePhar merged commit 1f685b4 into ArchipelagoMW:main Jun 16, 2024
17 checks passed
@ThePhar ThePhar deleted the patch branch June 16, 2024 10:37
sflavelle pushed a commit to sflavelle/Archipelago-tgc that referenced this pull request Jun 20, 2024
qwint pushed a commit to qwint/Archipelago that referenced this pull request Jun 24, 2024
GameWyrm pushed a commit to GameWyrm/Archipelago-GW that referenced this pull request Jul 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: core Issues/PRs that touch core and may need additional validation. affects: release/blocker Issues/PRs that must be addressed before next official release. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants