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

Stardew valley: backpack fix #2028

Merged

Conversation

agilbert1412
Copy link
Collaborator

@agilbert1412 agilbert1412 commented Jul 24, 2023

What is this fixing or adding?

Fixed a bug where playing on backpack_progression: vanilla would still generate the backpack locations in the pool
Bug was reported by @t3hf1gm3nt here: https://discord.com/channels/731205301247803413/1132878736765767781

Also fixed a bug with the item group enum. On some versions of Python 3.11 only, it was behaving strangely and duplicating the enum, leading to failed generations in most cases

How was this tested?

1 - Reorganised the backpack unit tests for better structure and coverage, and created explicit tests to check the locations on vanilla
2 - Watch the new tests fail to prove that the bug exists
3 - Fix the bug
4 - Watch the tests now succeed
5 - Profit!

- Added a test for backpack locations being absent on vanilla
@ThePhar ThePhar added the is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. label Jul 24, 2023
@ThePhar ThePhar added the affects: release/blocker Issues/PRs that must be addressed before next official release. label Jul 24, 2023
@ThePhar
Copy link
Member

ThePhar commented Jul 24, 2023

adding release/blocker as this fixes a sample issue too apparently on RC1: https://discord.com/channels/731205301247803413/731214280439103580/1133164985506340874

Copy link
Member

@black-sliver black-sliver left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes two bugs, so should definitely be merged for RC2.

lgtm other than too many tests :D

@black-sliver black-sliver merged commit bb06944 into ArchipelagoMW:main Jul 24, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
* - Reorganised tests for better backpack coverage
- Added a test for backpack locations being absent on vanilla

* - Fix backpack locations on vanilla

* - Fixed a typo in documentation

* - Added missing parenthesis after enum.auto so that Python 3.11 still works

* - Added Blank lines at the end of the backpack test files

* - cleaned whitespace
@agilbert1412 agilbert1412 deleted the StardewValley/BackpackFix branch December 6, 2023 14:42
kl3cks7r pushed a commit to kl3cks7r/Archipelago that referenced this pull request Dec 15, 2023
* - Reorganised tests for better backpack coverage
- Added a test for backpack locations being absent on vanilla

* - Fix backpack locations on vanilla

* - Fixed a typo in documentation

* - Added missing parenthesis after enum.auto so that Python 3.11 still works

* - Added Blank lines at the end of the backpack test files

* - cleaned whitespace
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
* - Reorganised tests for better backpack coverage
- Added a test for backpack locations being absent on vanilla

* - Fix backpack locations on vanilla

* - Fixed a typo in documentation

* - Added missing parenthesis after enum.auto so that Python 3.11 still works

* - Added Blank lines at the end of the backpack test files

* - cleaned whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants