-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add executable apmp1 file, move output iso generation to client
- Loading branch information
Showing
12 changed files
with
324 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
/build/target | ||
__pycache__ | ||
*.apmp1 | ||
*.iso |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import os | ||
import zipfile | ||
from worlds.Files import APContainer | ||
|
||
|
||
class MetroidPrimeContainer(APContainer): | ||
game: str = 'Metroid Prime' | ||
|
||
def __init__(self, config_json: str, outfile_name: str, output_directory: str, | ||
player=None, player_name: str = "", server: str = ""): | ||
self.config_json = config_json | ||
self.config_path = "config.json" | ||
container_path = os.path.join(output_directory, outfile_name + ".apmp1") | ||
super().__init__(container_path, player, player_name, server) | ||
|
||
def write_contents(self, opened_zipfile: zipfile.ZipFile) -> None: | ||
opened_zipfile.writestr(self.config_path, self.config_json) | ||
super().write_contents(opened_zipfile) |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Metroid Prime: | ||
# TODO: Add examples here | ||
progression_balancing: 50 | ||
accessibility: items | ||
spring_ball: 'false' | ||
required_artifacts: 12 | ||
final_bosses: both | ||
death_link: 'true' | ||
description: 'Generated by https://archipelago.gg.' | ||
game: Metroid Prime | ||
name: Player_1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.git* | ||
__pycache__ | ||
build | ||
LICENSE.md | ||
README.md | ||
requirements.txt | ||
Metroid Prime.yaml | ||
*.iso |
Oops, something went wrong.