Language: Resource Warning and Fill Error resolve#2599
Conversation
…en functions and entrance.sav error
| generation_rng_state = random.getstate() | ||
| spoiler = None | ||
| for attempt in range(1, max_attempts + 1): | ||
| if attempt == 1: |
There was a problem hiding this comment.
RNG should not need to be reset like this (and the attempt == 1 branch doesn't seem to do anything, should have been > 1 and no else branch).
If the settings object is not fully resolved or is tweaked by the language stuff after resolve_settings, there is a bigger fundamental problem that needs to be fixed.
There was a problem hiding this comment.
Ok, should I avoid the changes I made with World.py as well?
There was a problem hiding this comment.
Ok, I'll find a way to resolve the issue without changing these 2
|
@mracsys I think I found the reason: EDIT: The issue won't be raised if the version becomes |
|
If you are talking about the same random EntranceShuffle error that occasionally shows up in the Unit Tests that I think you are, it is usually fine and can be ignored if you can verify another seed does not cause the issue. |
|
@flagrama Thanks |
Should be good as-is for now like flag and others said. Eventually the test should be hardened as discussed on Discord, though that should be a separate PR IMO. |
When using
Unittest.py, it'll raiseResourseWarningbecause ofjson.load(open(...))I made sure that load and open are now separated
Also, there was an error with
Fill.pyandEntranceShuffle.pywhile UnittestThis was caused around
entrance.savso I inspect all of the files and found out that unrelated RNG causing this (around Language functions)I changed the RNG distribution on
World.pyandMain.pyand now it's fixed