This file contains hidden or 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
"""Tool that helps decompiling a Ren'Py game. Early prototype.""" | |
import glob | |
import unrpyc | |
import unrpa | |
import os | |
import tarfile | |
import traceback | |
import shutil | |
import sys |
This file contains hidden or 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
# 2022 Dobby233Liu | |
# | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors |
This file contains hidden or 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
import json | |
lang_en = {} | |
with open("lang_en.json", "r", encoding="utf-8") as l_en_file: | |
lang_en = json.load(l_en_file) | |
lang_ja = {} | |
with open("lang_ja.json", "r", encoding="utf-8") as l_ja_file: | |
lang_ja = json.load(l_ja_file) | |
items = {} |
This file contains hidden or 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
; --------------------------------------------------------------------------- | |
cpu 68000 | |
include "sonic3k.macrosetup.asm" ; include a few basic macros | |
include "sonic3k.macros.asm" ; include some simplifying macros and functions | |
include "sonic3k.constants.asm" ; include some constants | |
org 0 | |
; --------------------------------------------------------------------------- | |
strip_padding = 1 | |
Size_of_Snd_driver_guess = $1200 |
This file contains hidden or 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
function selectRandomTarget() | |
{ | |
if (!partyCharacter[0].targetable && !partyCharacter[1].targetable && !partyCharacter[2].targetable) | |
return 3 | |
var _target = choose(0, 1, 2) | |
while (!partyCharacter[_target].targetable) | |
_target = choose(0, 1, 2) | |
return _target | |
} |
This file contains hidden or 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
python sc.py <project.json> <scan.json> > text.json |
This file contains hidden or 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
from pydub import AudioSegment | |
org = input("org file : ") | |
out = input("out file : ") | |
aud = AudioSegment.from_file(org) | |
channels = aud.split_to_mono() | |
for i in range(0, len(channels), 2): | |
l_sub_r = channels[i].overlay(channels[i + 1].invert_phase()) | |
r_sub_l = channels[i + 1].overlay(channels[i].invert_phase()) |
This file contains hidden or 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
from PIL import Image, ImageFont, ImageDraw, ImageColor | |
SEPERATOR_COLOR = ImageColor.getrgb("#0000ffff") | |
GLYPHS = " abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.:<[=>\\{]!|@~_\"`$%'()&}+*,-^#?/;" | |
SIZE = 12 | |
ANCHOR = "la" | |
FILL = "white" | |
FEATURES = "" | |
font = ImageFont.truetype("arial.ttf", SIZE) |
This file contains hidden or 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
{ | |
"Text": [ | |
"治愈队友", | |
"饶恕疲倦的敌人", | |
"冻结敌人", | |
"冰魔法伤害", | |
"恢复团队160HP", | |
"恢复120HP", | |
"恢复100HP", | |
"恢复80HP", |
This file contains hidden or 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
from io import StringIO | |
import struct | |
FILE = "D:\development\sonic-cd-disassembly\Sound Drivers\SMPS-PCM\Music\Palmtree Panic Past.bin" | |
PROJ = "PPZPast" | |
NOTES = { | |
0x80: "nRst", | |
0x81: "nC0", 0x82: "nCs0", 0x83: "nD0", 0x84: "nEb0", | |
0x85: "nE0", 0x86: "nF0", 0x87: "nFs0", 0x88: "nG0", |