Skip to content
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

WebHost: Change default spoiler-option for games generated from WebHost to 3 instead of 0 #1852

Merged
merged 3 commits into from
Jun 23, 2023

Conversation

StripesOO7
Copy link
Contributor

What is this fixing or adding?

Changed the default spoiler-log option in the WebHostLib/generate.py from 0 to 3 to restore spoilerlog generation when generating directly from the Playersettings page.

How was this tested?

  • generated 3 seeds locally
  • also 3 seeds from the base generation site with spoilerlog set to the other 3 options to check that they get applied correctly

If this makes graphical changes, please attach screenshots.

@ThePhar ThePhar changed the title Change default spoiler-option in WebHostLib/generate.py to 3 instead … WebHost: Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0 May 31, 2023
@ThePhar ThePhar added is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels May 31, 2023
@ThePhar
Copy link
Member

ThePhar commented May 31, 2023

Rather than override the param default (which I assume was set for a reason), would it not be better to change the endpoint call on the player settings page to pass in the spoiler setting of 3 instead?

@ThePhar ThePhar self-assigned this May 31, 2023
@alwaysintreble
Copy link
Collaborator

We default it to 3 everywhere else in AP so I'm not entirely convinced it was intentional. If it does get done via endpoint call that'd need to be in player-settings.js and weighted-settings.js fyi.

@StripesOO7 StripesOO7 closed this Jun 1, 2023
@StripesOO7 StripesOO7 deleted the patch-1 branch June 1, 2023 09:07
@StripesOO7 StripesOO7 restored the patch-1 branch June 1, 2023 09:13
@StripesOO7
Copy link
Contributor Author

i forgot that renaming a branch closes the PR -_-

i can look into adding it into the 2 .js files but my JS knowledge is very limited

@StripesOO7 StripesOO7 reopened this Jun 1, 2023
@ThePhar ThePhar changed the title WebHost: Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0 WebHost: Change default spoiler-option for games generated from WebHost to 3 instead of 0 Jun 6, 2023
@ThePhar ThePhar merged commit abd8eaf into ArchipelagoMW:main Jun 23, 2023
Witchybun pushed a commit to Witchybun/Archipelago that referenced this pull request Jun 26, 2023
…st to 3 instead of 0 (ArchipelagoMW#1852)

* Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0

* shifting spoiler-default to the JS calls instead of setting it in generate.py

---------

Co-authored-by: StripesOO7 <54711792+StripeesOO7@users.noreply.github.com>
@StripesOO7 StripesOO7 deleted the patch-1 branch July 31, 2023 09:32
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…st to 3 instead of 0 (ArchipelagoMW#1852)

* Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0

* shifting spoiler-default to the JS calls instead of setting it in generate.py

---------

Co-authored-by: StripesOO7 <54711792+StripeesOO7@users.noreply.github.com>
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…st to 3 instead of 0 (ArchipelagoMW#1852)

* Change default spoiler-option in WebHostLib/generate.py to 3 instead of 0

* shifting spoiler-default to the JS calls instead of setting it in generate.py

---------

Co-authored-by: StripesOO7 <54711792+StripeesOO7@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: bug/fix Issues that are reporting bugs or pull requests that are fixing bugs.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants