Noita: Don't allow impossible slot names (#2608)
* Noita: Add note about allowable slot names * Update character list * Update init to raise an exception if a yaml has bad characters * Slightly adjust exception message
This commit is contained in:
parent
c7617f92dd
commit
901201f675
|
@ -35,6 +35,10 @@ class NoitaWorld(World):
|
|||
|
||||
web = NoitaWeb()
|
||||
|
||||
def generate_early(self):
|
||||
if not self.multiworld.get_player_name(self.player).isascii():
|
||||
raise Exception("Noita yaml's slot name has invalid character(s).")
|
||||
|
||||
# Returned items will be sent over to the client
|
||||
def fill_slot_data(self):
|
||||
return {name: getattr(self.multiworld, name)[self.player].value for name in self.option_definitions}
|
||||
|
|
|
@ -40,6 +40,8 @@ or try restarting your game.
|
|||
### What is a YAML and why do I need one?
|
||||
You can see the [basic multiworld setup guide](/tutorial/Archipelago/setup/en) here on the Archipelago website to learn
|
||||
about why Archipelago uses YAML files and what they're for.
|
||||
Please note that Noita only allows you to type certain characters for your slot name.
|
||||
These characters are: `` !#$%&'()+,-.0123456789;=@ABCDEFGHIJKLMNOPQRSTUVWXYZ[]^_`abcdefghijklmnopqrstuvwxyz{}~<>|\/``
|
||||
|
||||
### Where do I get a YAML?
|
||||
You can use the [game settings page for Noita](/games/Noita/player-settings) here on the Archipelago website to
|
||||
|
@ -54,4 +56,4 @@ Place the unzipped pack in the `packs` folder. Then, open Poptracker and open th
|
|||
Click on the "AP" symbol at the top, then enter the desired address, slot name, and password.
|
||||
|
||||
That's all you need for it. It will provide you with a quick reference to see which checks you've done and
|
||||
which checks you still have left.
|
||||
which checks you still have left.
|
||||
|
|
Loading…
Reference in New Issue