Skip to content

Commit 2c3df90

Browse files
JaredWeakStrikeFlySniper
authored andcommitted
KH2 game implementation (ArchipelagoMW#1438)
1 parent 53504ec commit 2c3df90

23 files changed

+8603
-0
lines changed

KH2Client.py

+874
Large diffs are not rendered by default.

Launcher.py

+2
Original file line numberDiff line numberDiff line change
@@ -159,6 +159,8 @@ def handles_file(self, path: str):
159159
# Zillion
160160
Component('Zillion Client', 'ZillionClient',
161161
file_identifier=SuffixIdentifier('.apzl')),
162+
#Kingdom Hearts 2
163+
Component('KH2 Client', "KH2Client"),
162164
# Functions
163165
Component('Open host.yaml', func=open_host_yaml),
164166
Component('Open Patch', func=open_patch),

WebHostLib/downloads.py

+2
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ def download_slot_file(room_id, player_id: int):
8888
fname = f"AP_{app.jinja_env.filters['suuid'](room_id)}_SP.apsm64ex"
8989
elif slot_data.game == "Dark Souls III":
9090
fname = f"AP_{app.jinja_env.filters['suuid'](room_id)}.json"
91+
elif slot_data.game == "Kingdom Hearts 2":
92+
fname = f"AP_{app.jinja_env.filters['suuid'](room_id)}_P{slot_data.player_id}_{slot_data.player_name}.zip"
9193
else:
9294
return "Game download not supported."
9395
return send_file(io.BytesIO(slot_data.data), as_attachment=True, download_name=fname)

WebHostLib/templates/macros.html

+3
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@
3131
{% elif patch.game == "Factorio" %}
3232
<a href="{{ url_for("download_slot_file", room_id=room.id, player_id=patch.player_id) }}" download>
3333
Download Factorio Mod...</a>
34+
{% elif patch.game == "Kingdom Hearts 2" %}
35+
<a href="{{ url_for("download_slot_file", room_id=room.id, player_id=patch.player_id) }}" download>
36+
Download Kingdom Hearts 2 Mod...</a>
3437
{% elif patch.game == "Ocarina of Time" %}
3538
<a href="{{ url_for("download_slot_file", room_id=room.id, player_id=patch.player_id) }}" download>
3639
Download APZ5 File...</a>

worlds/kh2/Items.py

+1,021
Large diffs are not rendered by default.

worlds/kh2/Locations.py

+1,780
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)