-
Notifications
You must be signed in to change notification settings - Fork 723
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
Factorio, WebHost: fix website multitracker #2126
Conversation
Co-authored-by: Remy Jette <[email protected]>
I just tested it with progressive techs on and off, seems to be working correctly now. Thanks! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should work for current seeds, however if we ever change IDs again, this will break. item_name_to_id really should be fetched from the actual games package the multidata uses.
yes |
so, do you want to merge this as-is or fix it in one swoop? |
I would prefer to fix that too, if I can find the time to do so. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks fine to me, however I have not tested it. Maybe someone else can?
@@ -1436,6 +1439,17 @@ def _get_inventory_data(data: typing.Dict[str, typing.Any]) -> typing.Dict[int, | |||
return inventory | |||
|
|||
|
|||
def _get_named_inventory(inventory: typing.Dict[int, int], custom_items: typing.Dict[int, str] = None) \ | |||
-> typing.Dict[str, int]: | |||
"""slow""" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could probably be lazy?
Also you are not passing the custom_items in yet. I'm assuming that's a future plan? |
nope, forgotten to do |
I just tested it and things appear to be working correctly. I just tested current IDs, not what happens if IDs change, but its working at least if I generate a game on main with this patch. |
Co-authored-by: Remy Jette <[email protected]>
Co-authored-by: Remy Jette <[email protected]>
What is this fixing or adding?
https://discord.com/channels/731205301247803413/1145166962910040104
How was this tested?
minimally
If this makes graphical changes, please attach screenshots.