Skip to content

Commit 9aee0b7

Browse files
nicholassaylorExempt-Medic
authored andcommitted
Core, Webhost, Docs: Replace all usages of player settings (ArchipelagoMW#3067)
* Replace all usages of player settings * Fixed line break error * Attempt to fix line break again * Finally figure out what Pycharm did to this file * Pycharm search failed me * Remove duplicate s * Update ArchipIdle * Revert random newline changes from Pycharm * Remove player settings from fstrings and rename --samesettings to --sameoptions * Finally get PyCharm to not auto-format my commits, randomly inserting the newlines * Removing player-settings * Missed one * Remove final line break error Co-authored-by: Exempt-Medic <[email protected]> --------- Co-authored-by: Exempt-Medic <[email protected]> Co-authored-by: Exempt-Medic <[email protected]>
1 parent dab399c commit 9aee0b7

File tree

25 files changed

+52
-60
lines changed

25 files changed

+52
-60
lines changed

Generate.py

+5-5
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ def mystery_argparse():
3535

3636
parser = argparse.ArgumentParser(description="CMD Generation Interface, defaults come from host.yaml.")
3737
parser.add_argument('--weights_file_path', default=defaults.weights_file_path,
38-
help='Path to the weights file to use for rolling game settings, urls are also valid')
39-
parser.add_argument('--samesettings', help='Rolls settings per weights file rather than per player',
38+
help='Path to the weights file to use for rolling game options, urls are also valid')
39+
parser.add_argument('--sameoptions', help='Rolls options per weights file rather than per player',
4040
action='store_true')
4141
parser.add_argument('--player_files_path', default=defaults.player_files_path,
4242
help="Input directory for player files.")
@@ -104,8 +104,8 @@ def main(args=None, callback=ERmain):
104104
del(meta_weights["meta_description"])
105105
except Exception as e:
106106
raise ValueError("No meta description found for meta.yaml. Unable to verify.") from e
107-
if args.samesettings:
108-
raise Exception("Cannot mix --samesettings with --meta")
107+
if args.sameoptions:
108+
raise Exception("Cannot mix --sameoptions with --meta")
109109
else:
110110
meta_weights = None
111111
player_id = 1
@@ -157,7 +157,7 @@ def main(args=None, callback=ERmain):
157157
erargs.skip_output = args.skip_output
158158

159159
settings_cache: Dict[str, Tuple[argparse.Namespace, ...]] = \
160-
{fname: (tuple(roll_settings(yaml, args.plando) for yaml in yamls) if args.samesettings else None)
160+
{fname: (tuple(roll_settings(yaml, args.plando) for yaml in yamls) if args.sameoptions else None)
161161
for fname, yamls in weights_cache.items()}
162162

163163
if meta_weights:

WebHostLib/misc.py

-6
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,6 @@ def weighted_options():
4949
return render_template("weighted-options.html")
5050

5151

52-
# TODO for back compat. remove around 0.4.5
53-
@app.route("/games/<string:game>/player-settings")
54-
def player_settings(game: str):
55-
return redirect(url_for("player_options", game=game), 301)
56-
57-
5852
# Player options pages
5953
@app.route("/games/<string:game>/player-options")
6054
@cache.cached()

docs/settings api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Archipelago Settings API
22

33
The settings API describes how to use installation-wide config and let the user configure them, like paths, etc. using
4-
host.yaml. For the player settings / player yamls see [options api.md](options api.md).
4+
host.yaml. For the player options / player yamls see [options api.md](options api.md).
55

66
The settings API replaces `Utils.get_options()` and `Utils.get_default_options()`
77
as well as the predefined `host.yaml` in the repository.

settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Application settings / host.yaml interface using type hints.
3-
This is different from player settings.
3+
This is different from player options.
44
"""
55

66
import os.path

worlds/adventure/docs/setup_en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ an experience customized for their taste, and different players in the same mult
4343

4444
You can generate a yaml or download a template by visiting the [Adventure Options Page](/games/Adventure/player-options)
4545

46-
### What are recommended settings to tweak for beginners to the rando?
46+
### What are recommended options to tweak for beginners to the rando?
4747
Setting difficulty_switch_a and lowering the dragons' speeds makes the dragons easier to avoid. Adding Chalice to
4848
local_items guarantees you'll visit at least one of the interesting castles, as it can only be placed in a castle or
4949
the credits room.

worlds/adventure/docs/setup_fr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ une expérience personnalisée à leur goût, et différents joueurs dans le mê
4242

4343
### Où puis-je obtenir un fichier YAML ?
4444

45-
Vous pouvez générer un yaml ou télécharger un modèle en visitant la [page des paramètres d'aventure](/games/Adventure/player-settings)
45+
Vous pouvez générer un yaml ou télécharger un modèle en visitant la [page des paramètres d'aventure](/games/Adventure/player-options)
4646

4747
### Quels sont les paramètres recommandés pour s'initier à la rando ?
4848
Régler la difficulty_switch_a et réduire la vitesse des dragons rend les dragons plus faciles à éviter. Ajouter Calice à
@@ -72,4 +72,4 @@ configuré pour le faire automatiquement.
7272
Pour connecter le client au multiserveur, mettez simplement `<adresse>:<port>` dans le champ de texte en haut et appuyez sur Entrée (si le
7373
le serveur utilise un mot de passe, saisissez dans le champ de texte inférieur `/connect <adresse> :<port> [mot de passe]`)
7474

75-
Appuyez sur Réinitialiser et commencez à jouer
75+
Appuyez sur Réinitialiser et commencez à jouer

worlds/alttp/docs/multiworld_de.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,12 @@ wählen können!
4747

4848
### Wo bekomme ich so eine YAML-Datei her?
4949

50-
Die [Player Settings](/games/A Link to the Past/player-settings) Seite auf der Website ermöglicht das einfache Erstellen
50+
Die [Player Options](/games/A Link to the Past/player-options) Seite auf der Website ermöglicht das einfache Erstellen
5151
und Herunterladen deiner eigenen `yaml` Datei. Drei verschiedene Voreinstellungen können dort gespeichert werden.
5252

5353
### Deine YAML-Datei ist gewichtet!
5454

55-
Die **Player Settings** Seite hat eine Menge Optionen, die man per Schieber einstellen kann. Das ermöglicht es,
55+
Die **Player Options** Seite hat eine Menge Optionen, die man per Schieber einstellen kann. Das ermöglicht es,
5656
verschiedene Optionen mit unterschiedlichen Wahrscheinlichkeiten in einer Kategorie ausgewürfelt zu werden
5757

5858
Als Beispiel kann man sich die Option "Map Shuffle" als einen Eimer mit Zetteln zur Abstimmung Vorstellen. So kann man

worlds/alttp/docs/multiworld_es.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ de multiworld puede tener diferentes opciones.
5959

6060
### Donde puedo obtener un fichero YAML?
6161

62-
La página "[Generate Game](/games/A%20Link%20to%20the%20Past/player-settings)" en el sitio web te permite configurar tu
62+
La página "[Generate Game](/games/A%20Link%20to%20the%20Past/player-options)" en el sitio web te permite configurar tu
6363
configuración personal y descargar un fichero "YAML".
6464

6565
### Configuración YAML avanzada
@@ -86,7 +86,7 @@ Si quieres validar que tu fichero YAML para asegurarte que funciona correctament
8686

8787
## Generar una partida para un jugador
8888

89-
1. Navega a [la pagina Generate game](/games/A%20Link%20to%20the%20Past/player-settings), configura tus opciones, haz
89+
1. Navega a [la pagina Generate game](/games/A%20Link%20to%20the%20Past/player-options), configura tus opciones, haz
9090
click en el boton "Generate game".
9191
2. Se te redigirá a una pagina "Seed Info", donde puedes descargar tu archivo de parche.
9292
3. Haz doble click en tu fichero de parche, y el emulador debería ejecutar tu juego automáticamente. Como el Cliente no

worlds/alttp/docs/multiworld_fr.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ peuvent avoir différentes options.
6060

6161
### Où est-ce que j'obtiens un fichier YAML ?
6262

63-
La page [Génération de partie](/games/A%20Link%20to%20the%20Past/player-settings) vous permet de configurer vos
63+
La page [Génération de partie](/games/A%20Link%20to%20the%20Past/player-options) vous permet de configurer vos
6464
paramètres personnels et de les exporter vers un fichier YAML.
6565

6666
### Configuration avancée du fichier YAML
@@ -87,7 +87,7 @@ Si vous voulez valider votre fichier YAML pour être sûr qu'il fonctionne, vous
8787

8888
## Générer une partie pour un joueur
8989

90-
1. Aller sur la page [Génération de partie](/games/A%20Link%20to%20the%20Past/player-settings), configurez vos options,
90+
1. Aller sur la page [Génération de partie](/games/A%20Link%20to%20the%20Past/player-options), configurez vos options,
9191
et cliquez sur le bouton "Generate Game".
9292
2. Il vous sera alors présenté une page d'informations sur la seed, où vous pourrez télécharger votre patch.
9393
3. Double-cliquez sur le patch et l'émulateur devrait se lancer automatiquement avec la seed. Etant donné que le client
@@ -207,4 +207,4 @@ Le logiciel recommandé pour l'auto-tracking actuellement est
207207
3. Sélectionnez votre appareil SNES dans la liste déroulante.
208208
4. Si vous voulez tracquer les petites clés ainsi que les objets des donjons, cochez la case **Race Illegal Tracking**
209209
5. Cliquez sur le bouton **Start Autotracking**
210-
6. Fermez la fenêtre "AutoTracker" maintenant, elle n'est plus nécessaire
210+
6. Fermez la fenêtre "AutoTracker" maintenant, elle n'est plus nécessaire

worlds/archipidle/docs/guide_en.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@
88
[ArchipIDLE GitHub Releases Page](https://github.com/ArchipelagoMW/archipidle/releases)
99
3. Enter the server address in the `Server Address` field and press enter
1010
4. Enter your slot name when prompted. This should be the same as the `name` you entered on the
11-
setting page above, or the `name` field in your yaml file.
11+
options page above, or the `name` field in your yaml file.
1212
5. Click the "Begin!" button.

worlds/archipidle/docs/guide_fr.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
# Guide de configuration d'ArchipIdle
22

33
## Rejoindre une partie MultiWorld
4-
1. Générez un fichier `.yaml` à partir de la [page des paramètres du lecteur ArchipIDLE](/games/ArchipIDLE/player-settings)
4+
1. Générez un fichier `.yaml` à partir de la [page des paramètres du lecteur ArchipIDLE](/games/ArchipIDLE/player-options)
55
2. Ouvrez le client ArchipIDLE dans votre navigateur Web en :
6-
- Accédez au [Client ArchipIDLE](http://idle.multiworld.link)
7-
- Téléchargez le client et exécutez-le localement à partir du
8-
[Page des versions d'ArchipIDLE GitHub](https://github.com/ArchipelagoMW/archipidle/releases)
6+
- Accédez au [Client ArchipIDLE](http://idle.multiworld.link)
7+
- Téléchargez le client et exécutez-le localement à partir du [Page des versions d'ArchipIDLE GitHub](https://github.com/ArchipelagoMW/archipidle/releases)
98
3. Entrez l'adresse du serveur dans le champ `Server Address` et appuyez sur Entrée
109
4. Entrez votre nom d'emplacement lorsque vous y êtes invité. Il doit être le même que le `name` que vous avez saisi sur le
1110
page de configuration ci-dessus, ou le champ `name` dans votre fichier yaml.

worlds/dark_souls_3/docs/setup_fr.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,5 @@ placez-le à la racine du jeu (ex: "SteamLibrary\steamapps\common\DARK SOULS III
2929

3030
## Où trouver le fichier de configuration ?
3131

32-
La [Page de configuration](/games/Dark%20Souls%20III/player-settings) sur le site vous permez de configurer vos
32+
La [Page de configuration](/games/Dark%20Souls%20III/player-options) sur le site vous permez de configurer vos
3333
paramètres et de les exporter sous la forme d'un fichier.

worlds/dlcquest/docs/fr_DLCQuest.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Où se trouve la page des paramètres ?
44

5-
La [page des paramètres du joueur pour ce jeu](../player-settings) contient tous les paramètres dont vous avez besoin pour configurer et exporter le fichier.
5+
La [page des paramètres du joueur pour ce jeu](../player-options) contient tous les paramètres dont vous avez besoin pour configurer et exporter le fichier.
66

77

88
## Quel est l'effet de la randomisation sur ce jeu ?
@@ -46,4 +46,4 @@ Il y a aussi de nouveaux objets pièges, utilisés comme substituts, basés sur
4646
Chaque fois qu'un objet est reçu en ligne, une notification apparaît à l'écran pour en informer le joueur.
4747
Certains objets sont accompagnés d'une animation ou d'une scène qui se déroule immédiatement après leur réception.
4848

49-
Les objets reçus hors ligne ne sont pas accompagnés d'une animation ou d'une scène, et sont simplement activés lors de la connexion.
49+
Les objets reçus hors ligne ne sont pas accompagnés d'une animation ou d'une scène, et sont simplement activés lors de la connexion.

worlds/dlcquest/docs/setup_fr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Voir le guide d'Archipelago sur la mise en place d'un YAML de base : [Basic Mult
1818

1919
### Où puis-je obtenir un fichier YAML ?
2020

21-
Vous pouvez personnaliser vos paramètres en visitant la [page des paramètres du joueur DLC Quest] (/games/DLCQuest/player-settings).
21+
Vous pouvez personnaliser vos paramètres en visitant la [page des paramètres du joueur DLC Quest](/games/DLCQuest/player-options).
2222

2323
## Rejoindre une partie multi-monde
2424

@@ -52,4 +52,4 @@ Vous pouvez personnaliser vos paramètres en visitant la [page des paramètres d
5252

5353
Vous ne pouvez pas envoyer de commandes au serveur ou discuter avec les autres joueurs depuis DLC Quest, car le jeu ne dispose pas d'un moyen approprié pour saisir du texte.
5454
Vous pouvez suivre l'activité du serveur dans votre console BepInEx, car les messages de chat d'Archipelago y seront affichés.
55-
Vous devrez utiliser [Archipelago Text Client] (https://github.com/ArchipelagoMW/Archipelago/releases) si vous voulez envoyer des commandes.
55+
Vous devrez utiliser [Archipelago Text Client] (https://github.com/ArchipelagoMW/Archipelago/releases) si vous voulez envoyer des commandes.

worlds/generic/docs/advanced_settings_en.md

+13-12
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,28 @@
22
This guide covers more the more advanced options available in YAML files. This guide is intended for the user who plans
33
to edit their YAML file manually. This guide should take about 10 minutes to read.
44

5-
If you would like to generate a basic, fully playable YAML without editing a file, then visit the settings page for the
5+
If you would like to generate a basic, fully playable YAML without editing a file, then visit the options page for the
66
game you intend to play. The weighted settings page can also handle most of the advanced settings discussed here.
77

8-
The settings page can be found on the supported games page, just click the "Settings Page" link under the name of the
9-
game you would like.
8+
The options page can be found on the supported games page, just click the "Options Page" link under the name of the
9+
game you would like.
10+
1011
* Supported games page: [Archipelago Games List](/games)
1112
* Weighted settings page: [Archipelago Weighted Settings](/weighted-settings)
1213

13-
Clicking on the "Export Settings" button at the bottom-left will provide you with a pre-filled YAML with your options.
14-
The player settings page also has a link to download a full template file for that game which will have every option
14+
Clicking on the "Export Options" button at the bottom-left will provide you with a pre-filled YAML with your options.
15+
The player options page also has a link to download a full template file for that game which will have every option
1516
possible for the game including some that don't display correctly on the site.
1617

1718
## YAML Overview
1819

1920
The Archipelago system generates games using player configuration files as input. These are going to be YAML files and
20-
each world will have one of these containing their custom settings for the game that world will play.
21+
each world will have one of these containing their custom options for the game that world will play.
2122

2223
## YAML Formatting
2324

2425
YAML files are a format of human-readable config files. The basic syntax of a yaml file will have a `root` node and then
25-
different levels of `nested` nodes that the generator reads in order to determine your settings.
26+
different levels of `nested` nodes that the generator reads in order to determine your options.
2627

2728
To nest text, the correct syntax is to indent **two spaces over** from its root option. A YAML file can be edited with
2829
whatever text editor you choose to use though I personally recommend that you use Sublime Text. Sublime text
@@ -53,13 +54,13 @@ so `option_one_setting_one` is guaranteed to occur.
5354

5455
For `nested_option_two`, `option_two_setting_one` will be rolled 14 times and `option_two_setting_two` will be rolled 43
5556
times against each other. This means `option_two_setting_two` will be more likely to occur, but it isn't guaranteed,
56-
adding more randomness and "mystery" to your settings. Every configurable setting supports weights.
57+
adding more randomness and "mystery" to your options. Every configurable setting supports weights.
5758

5859
## Root Options
5960

6061
Currently, there are only a few options that are root options. Everything else should be nested within one of these root
6162
options or in some cases nested within other nested options. The only options that should exist in root
62-
are `description`, `name`, `game`, `requires`, and the name of the games you want settings for.
63+
are `description`, `name`, `game`, `requires`, and the name of the games you want options for.
6364

6465
* `description` is ignored by the generator and is simply a good way for you to organize if you have multiple files
6566
using this to detail the intention of the file.
@@ -79,15 +80,15 @@ are `description`, `name`, `game`, `requires`, and the name of the games you wan
7980

8081
* `requires` details different requirements from the generator for the YAML to work as you expect it to. Generally this
8182
is good for detailing the version of Archipelago this YAML was prepared for as, if it is rolled on an older version,
82-
settings may be missing and as such it will not work as expected. If any plando is used in the file then requiring it
83+
options may be missing and as such it will not work as expected. If any plando is used in the file then requiring it
8384
here to ensure it will be used is good practice.
8485

8586
## Game Options
8687

87-
One of your root settings will be the name of the game you would like to populate with settings. Since it is possible to
88+
One of your root options will be the name of the game you would like to populate with options. Since it is possible to
8889
give a weight to any option, it is possible to have one file that can generate a seed for you where you don't know which
8990
game you'll play. For these cases you'll want to fill the game options for every game that can be rolled by these
90-
settings. If a game can be rolled it **must** have a settings section even if it is empty.
91+
settings. If a game can be rolled it **must** have an options section even if it is empty.
9192

9293
### Universal Game Options
9394

worlds/generic/docs/triggers_en.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ about 5 minutes to read.
66

77
## What are triggers?
88

9-
Triggers allow you to customize your game settings by allowing you to define one or many options which only occur under
9+
Triggers allow you to customize your game options by allowing you to define one or many options which only occur under
1010
specific conditions. These are essentially "if, then" statements for options in your game. A good example of what you
1111
can do with triggers is the [custom mercenary mode YAML
1212
](https://github.com/alwaysintreble/Archipelago-yaml-dump/blob/main/Snippets/Mercenary%20Mode%20Snippet.yaml) that was
@@ -148,4 +148,4 @@ In this example, if the `start_location` option rolls `landing_site`, only a sta
148148
If `aqueduct` is rolled, a starting hint for Gravity Suit will also be created alongside the hint for Morph Ball.
149149

150150
Note that for lists, items can only be added, not removed or replaced. For dicts, defining a value for a present key will
151-
replace that value within the dict.
151+
replace that value within the dict.

worlds/minecraft/docs/minecraft_fr.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ guide : [Guide de configuration de base de Multiworld](/tutorial/Archipelago/se
1616

1717
### Où puis-je obtenir un fichier YAML ?
1818

19-
Vous pouvez personnaliser vos paramètres Minecraft en allant sur la [page des paramètres de joueur](/games/Minecraft/player-settings)
19+
Vous pouvez personnaliser vos paramètres Minecraft en allant sur la [page des paramètres de joueur](/games/Minecraft/player-options)
2020

2121
## Rejoindre une partie MultiWorld
2222

@@ -71,4 +71,4 @@ les liens suivants sont les versions des logiciels que nous utilisons.
7171
- [Page des versions du mod Minecraft Archipelago Randomizer] (https://github.com/KonoTyran/Minecraft_AP_Randomizer/releases)
7272
- **NE PAS INSTALLER CECI SUR VOTRE CLIENT**
7373
- [Amazon Corretto](https://docs.aws.amazon.com/corretto/)
74-
- choisissez la version correspondante et sélectionnez "Téléchargements" sur la gauche
74+
- choisissez la version correspondante et sélectionnez "Téléchargements" sur la gauche

worlds/minecraft/docs/minecraft_sv.md

-2
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,6 @@ shuffle_structures:
103103
off: 0
104104
```
105105
106-
För mer detaljer om vad varje inställning gör, kolla standardinställningen `PlayerSettings.yaml` som kommer med
107-
Archipelago-installationen.
108106
109107
## Gå med i ett Multivärld-spel
110108

0 commit comments

Comments
 (0)