-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6 from Creatures-Developer-Network/bugfixes
Bugfixes
- Loading branch information
Showing
7 changed files
with
44 additions
and
6 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,5 @@ | ||
#!/bin/bash | ||
python3 -m venv "venv" | ||
venv/bin/python3 -m pip install --upgrade setuptools wheel | ||
venv/bin/python3 setup.py sdist bdist_wheel | ||
|
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,29 @@ | ||
#!/bin/python3 | ||
from prayer.prayer import Pray | ||
from prayer.blocks import TagBlock | ||
from sys import argv | ||
import os | ||
|
||
for file in argv[1:]: | ||
with open(file, "rb") as f: | ||
pray = Pray(f.read()) | ||
fixed_pray_file_data = bytes("PRAY", encoding="latin-1") | ||
for block in pray.blocks: | ||
print(block.type) | ||
if block.type not in ["CREA", "GENE", "GLST", "PHOT", "warp"]: | ||
print("YEPP Corrupted") | ||
print(block.block_data.hex()) | ||
else: | ||
if block.type == "warp": | ||
tag_block = TagBlock(block.block_data) | ||
for variable in tag_block.named_variables: | ||
if type(variable[1]) == int: | ||
print('\tINT Key: "%s" Value: %s' % variable) | ||
elif type(variable[1]) == str: | ||
print('\tSTR Key: "%s" Value: "%s"' % variable) | ||
print("Block Type: %s\nBlock Name: %s" % (block.type, block.name)) | ||
fixed_pray_file_data += block.zblock_data | ||
if file.endswith(".warp.detected_broken"): | ||
print(file.rsplit(".", 1)[0]) | ||
with open(file.rsplit(".", 1)[0], "wb") as f: | ||
f.write(fixed_pray_file_data) |
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
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 @@ | ||
#!/bin/bash | ||
python3 -m venv "venv" | ||
venv/bin/python3 -m pip install --upgrade twine | ||
venv/bin/python3 -m twine upload dist/* |