-
Notifications
You must be signed in to change notification settings - Fork 701
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: Let location name groups work with /hint_location #2814
Core: Let location name groups work with /hint_location #2814
Conversation
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.
will ctx.all_location_and_group_names[game] always be populated if ctx.all_location_and_group_names is populated?
or was the previous elif passing in 'game' just to get some result back from the method?
it seems like from the subsequent 'else' that we would want to confirm the game exists.
Else, the handling of location groups looks good, and did some testing on Doom 1993 hinting using the text client (ex. !hint_location Tower of Babel (E2M8)
) and it
- hinted a random location in the group and deducted hint points for one hint
- prompted me that there were more hintables
- on repeat hints gave me new hints until i ran out of points
- and then with more points hinted until i ran out of locations in the group, and then repeated the relevant hints while deducting no hint points
as expected.
the previous behavior was only looking at the location names of the game and didn't include the groups. the second elif checking for the game first is because of older multidata that might not have location_name_groups. the game will always be in the "all" group,
|
ah beans, will retest tomorrow sometime using the right commands But I don't think you understood my first comment
this looks to me like the game could be unknown to the server and could fail to lookup. and if that is true we'd want to fail on the right level to get the right error message. |
ah i see yeah i did misunderstand. i don't think that code path can actually be hit, since the client's game has to be in the current multiworld's games in order for them to even connect to a slot, but it's probably better to not remove fallback in case that changes. |
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.
properly retested with server-side /hint_location Player1 {location_group}
hints, and all avaliable hintables in a group would be hinted and/or displayed as expected
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.
Merged into main and tested that hints now worked with location groups
What is this fixing or adding?
location name groups didn't work with /hint_location. now they do
How was this tested?
ran the command with a group and with a location name
If this makes graphical changes, please attach screenshots.