-
Notifications
You must be signed in to change notification settings - Fork 773
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
Core: Make csv options output ignore hidden options #4539
base: main
Are you sure you want to change the base?
Core: Make csv options output ignore hidden options #4539
Conversation
Somewhat unrelated, but why do the invisible options have display names? |
Would it make sense to read the spoiler log flag for outputting to csv_output? |
Options.py
Outdated
@@ -1582,7 +1582,7 @@ def dump_player_options(multiworld: MultiWorld) -> None: | |||
} | |||
output.append(player_output) | |||
for option_key, option in world.options_dataclass.type_hints.items(): | |||
if issubclass(Removed, option): | |||
if issubclass(Removed, option) or option.visibility == Visibility.none: |
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.
if issubclass(Removed, option) or option.visibility == Visibility.none: | |
if Visibility.spoiler not in option.visibility: |
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.
i dunno maybe
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.
I think you'd still want non-spoiler options. Like if a world displayed an option in its own way and set it to not appear in the spoiler, it could still impact logic and be valuable to the csv output
Co-authored-by: Aaron Wagener <[email protected]>
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.
pure code review
change seems reasonable, code seems correct, my only worry would be if there are any Removed options that override visibility that now get added to the output when they wouldn't before
but i'm not sure what the usecase for that would be
What is this fixing or adding?
Generate with
--csv_output
would also output options set toVisibility.none
, this causes an issue in for example Timespinner's backwards compatibility options, causing their values to display rather then new options as they share the same display nameHow was this tested?
locally generating with
--csv_output
and with and without this change