Archipelago icon indicating copy to clipboard operation
Archipelago copied to clipboard

Core: Change generic "random" to "mystery"

Open t3hf1gm3nt opened this issue 3 years ago • 6 comments
trafficstars

What is this fixing or adding?

This changes the generic "random" option used for all game settings, and it's associated triangle distribution and range options, to "mystery" instead. This seems to be a better defined word to use for the typical use case for these options and allows for games to define "random" options (mostly will help implementing existing randomizers into AP in the future).

How was this tested?

Passed all tests and generated several games with one yaml of each game (minus FF) with most if not all options set to "mystery", with a few tests of the different triangle distribution and range options (used in the Hollow Knight yaml in particular) with no errors.

t3hf1gm3nt avatar Oct 11 '22 23:10 t3hf1gm3nt

Did want to note: the main thing I couldn't confirm myself is that I properly changed how the mystery option is displayed on the webhost's settings pages (as I still haven't been able to successfully start a local webhost), but pretty sure the edits I made to WebHostLib/options.py (lines 121 and 122) should be what I needed to do to change that?

(also this will most certainly conflict with #944 sorry @ThePhar >.<)

t3hf1gm3nt avatar Oct 11 '22 23:10 t3hf1gm3nt

Pretty sure this breaks something in SoE land, as it uses mystery as a current key for options.

Berserker66 avatar Oct 18 '22 08:10 Berserker66

I had asked black-sliver previously about that change. Think they said upstream that difficulty option is still called random. Didn't break any of my tests and even did a few more test generations soley with SoE and they genned fine. And i can't find any old usage of "mystery" in regards to SoE (or anywhere else for that matter) when looking through the updated code. But I'll trust black-silver finding what i missed if I did miss something.

t3hf1gm3nt avatar Oct 18 '22 12:10 t3hf1gm3nt

haven't tested WebHost yet so that still needs to be done. Make sure you also update world api with this change.

alwaysintreble avatar Oct 21 '22 15:10 alwaysintreble

you're talking about line 277-278 right? guess i did overlook that one i'll push a commit to change that one SOONtm

t3hf1gm3nt avatar Oct 21 '22 20:10 t3hf1gm3nt

sigh tried updating and think all the new game tests are using random or something, so now i gotta go find where they all did that

t3hf1gm3nt avatar Oct 21 '22 22:10 t3hf1gm3nt

Congrats, I now broke this in merged PR #944. :)

ThePhar avatar Nov 13 '22 06:11 ThePhar

thankfully it was an easy fix? lol

t3hf1gm3nt avatar Nov 13 '22 12:11 t3hf1gm3nt

closed because (supposedly) the random button on the website makes this meaningless. im opening this again as soon as i see one report about people not understanding what "random" actually does though.

t3hf1gm3nt avatar Dec 25 '22 14:12 t3hf1gm3nt