-
Notifications
You must be signed in to change notification settings - Fork 704
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
Lingo: Optimize imports and remove unused parameter #4305
Conversation
Requesting review from @hatkirby |
Did you test pickling? Running the command in the readme (
|
Using |
The problem with
The static_data module could be updated to check whether the file exists and not initialize the data if it doesn't, but that causes further problems because the items and locations modules try to look up IDs when initializing, and that requires more cascading fixes. It is unlikely that one would end up in a situation where there's no valid I also think it is just a lot of unnecessary overhead to have to load and initialize the world in order to run this utility, even if the datafile does already exist. This is an edge case that is unfortunately a bit tricky to work around in Python and it's how we ended up with this clunky solution. Unless you know of a way to restructure things to avoid all of these issues, I think it would be best to revert that part and only remove the extra parameter in player_logic (thanks for noticing that btw!). |
Thank you for taking the time to explain everything, it was very helpful. I have reverted the import change, but while doing so, I found a duplicate |
What is this fixing or adding?
See above
How was this tested?
Running unittests and generation
Ignore the messy git history