-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathupload.yaml
More file actions
87 lines (68 loc) · 3.94 KB
/
Copy pathupload.yaml
File metadata and controls
87 lines (68 loc) · 3.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# Where the multiworld will be uploaded to (needs to be AP webhost or compatible)
service: "https://archipelago.gg"
# Which hostname will be used (API doesn't return this)
host: "archipelago.gg"
# How the message is formatted.
# jinja2: Use https://jinja.palletsprojects.com/en/stable/templates/
#
# which allows for some custom programming.
# Uses {var} (not {{var}}) and {% control block %} syntax.
# format: Use Pythons {var}-based formatting, which is simple
message_engine: jinja2
# Which file to output the message to
message_output: message.txt
# Chat message to prepare.
# message_engine: format
# {seed_id}, {room_id}, {tracker_id}: IDs used in the URLs below
# {room_link}: Link to the room with the patches and so on
# {tracker_link}: Link to the webtracker
# {sphere_tracker_link}: Link to the sphere tracker
# {host}: Host to connect to (set above)
# {port}: Port to connect to
# {password}: Password needed to join, or empty if none set
# {mw} (jinja2 only): Access to the MultiWorld internal data, see multiworld.py
# The following section expects the 'jinja2' message engine.
message: |
# Room
Room: {room_link}
{% if port != 0 %}`/connect {host}:{port}`{% endif +%}
Tracker: {tracker_link}
ANAP tracker: https://anaptracker.tomagueri.fr/{host}/room/{room_id}
{% if password %}Password: {password}{% endif +%}
{% if mw.get_slot_by_player_name("BKJigsaw") != None %}
Play [BKJigsaw](https://jigsaw-ap.netlify.app/?{{'hostport': host ~ ':' ~ port, 'name': "BKJigsaw", 'password': password} | urlencode})
{% endif %}
{% if mw.get_slot_by_player_name("BKSimon") != None %}
Play BKSimon at https://ishanpm.github.io/ap-sgtpuzzles-web/
{%- endif -%}
{# mw.get_slots_by_game_name returns an iterator and doesn't work with if,
so convert into a list where an empty list will not execute the inner. #}
{%- if mw.get_slots_by_game_name("Jigsaw") | list +%}
Quick Jigsaw:
{%- for slot in mw.get_slots_by_game_name("Jigsaw") | sort(attribute="player_name") %} [{slot.player_name}](https://jigsaw-ap.netlify.app/?{{'hostport': host ~ ':' ~ port, 'name': slot.player_name, 'password': password} | urlencode}){% endfor %}
{% endif -%}
{%- if mw.get_slots_by_game_name("Yacht Dice") | list +%}
Quick Yacht Dice:
{%- for slot in mw.get_slots_by_game_name("Yacht Dice") | sort(attribute="player_name") %} [{slot.player_name}](https://yacht-dice-ap.netlify.app/?p=AP&{{'hostname': host, 'port': port, 'name': slot.player_name, 'password': password} | urlencode}){% endfor %}
{% endif -%}
{%- if mw.get_slots_by_game_name("Yacht Dice Bliss") | list +%}
Quick Yacht Dice Bliss:
{%- for slot in mw.get_slots_by_game_name("Yacht Dice Bliss") | sort(attribute="player_name") %} [{slot.player_name}](https://yacht-dice-ap.netlify.app/index234.html?p=AP&{{'hostname': host, 'port': port, 'name': slot.player_name, 'password': password} | urlencode}){% endfor %}
{% endif -%}
{%- if mw.get_slots_by_game_name("Nonograhmm") | list +%}
Quick Nonograhmm:
{%- for slot in mw.get_slots_by_game_name("Nonograhmm") | sort(attribute="player_name") %} [{slot.player_name}](https://nonograhmm.netlify.app/?{{'hostname': host, 'port': port, 'name': slot.player_name, 'password': password} | urlencode}){% endfor %}
{% endif -%}
{%- if mw.get_slots_by_game_name("Pokepelago") | list +%}
Quick Pokepelago:
{%- for slot in mw.get_slots_by_game_name("Pokepelago") | sort(attribute="player_name") %} [{slot.player_name}](https://dowlle.github.io/PokepelagoClient?{{'host': host, 'port': port, 'name': slot.player_name, 'password': password} | urlencode}){% endfor %}
{% endif -%}
{'\n\n'}# Wait until after the countdown to start playing!
# The following section expects the 'format' message engine.
# message: |
# ## Room
# Room: {room_link} `/connect {host}:{port}`
# Tracker: {tracker_link}
# ANAP tracker: https://tomagueri.fr/anaptracker/room/{host}/{room_id}
# Password: {password}
# # Wait until after the countdown to start playing!