papermario/tools/build/msg/parse_compile.py

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

4473 lines
130 KiB
Python
Raw Normal View History

#!/usr/bin/env python3
from sys import argv
from collections import OrderedDict
import re
import msgpack # way faster than pickle
class Message:
def __init__(self, name, section, index):
self.name = name
self.section = section
self.index = index
self.bytes = [] # XXX: bytearray would be better
def try_convert_int(s):
try:
return int(s, base=0)
except:
return s
def parse_command(source):
if source[0] != "[":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
return None, [], {}, source
source = source[1:] # "["
inside_brackets = ""
while source[0] != "]":
if source[0] == "\n":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
return None, [], {}, source
inside_brackets += source[0]
source = source[1:]
source = source[1:] # "]"
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
command, *raw_args = inside_brackets.split(" ")
2021-02-10 01:12:28 +01:00
args = []
named_args = {}
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
for arg in raw_args:
if "=" in arg:
key, value = arg.split("=", 1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
if "," in value:
named_args[key.lower()] = [try_convert_int(v) for v in value.lower().split(",")]
else:
named_args[key.lower()] = try_convert_int(value.lower())
else:
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
if "," in arg:
args.append([try_convert_int(value) for value in arg.lower().split(",")])
else:
args.append(try_convert_int(arg.lower()))
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
# args = []
# for arg in raw_args:
# args.append(try_convert_int(arg.lower()))
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
return command.lower(), args, named_args, source
2021-02-10 01:12:28 +01:00
2021-02-10 01:12:28 +01:00
def color_to_code(color, style):
COLORS = {
"diary": {
"normal": 0x00,
"red": 0x07,
},
"inspect": {
"dark": 0x17,
},
"button": {
"blue": 0x10,
"green": 0x11,
"red": 0x12,
"yellow": 0x13,
"gray": 0x14,
"grey": 0x14,
},
"popup": {
"red": 0x28,
"pink": 0x29,
"purple": 0x2A,
"blue": 0x2B,
"teal": 0x2C,
"green": 0x2D,
"yellow": 0x2E,
"normal": 0x2F,
},
"sign": {
"normal": 0x18,
"red": 0x19,
"blue": 0x1A,
"green": 0x1B,
},
}
if type(color) is int:
return color
return COLORS.get(
style,
{
# [style:left], [style:right]
"normal": 0x0A,
"red": 0x20,
"pink": 0x21,
"purple": 0x22,
"blue": 0x23,
"cyan": 0x24,
"green": 0x25,
"yellow": 0x26,
},
).get(color)
2021-02-10 01:12:28 +01:00
CHARSET_STANDARD = {
# "𝅘𝅥𝅮": 0x00,
"!": 0x01,
'"': 0x02,
"#": 0x03,
"$": 0x04,
"%": 0x05,
"&": 0x06,
"'": 0x07,
"(": 0x08,
")": 0x09,
"*": 0x0A,
"+": 0x0B,
",": 0x0C,
"-": 0x0D,
".": 0x0E,
"/": 0x0F,
"0": 0x10,
"1": 0x11,
"2": 0x12,
"3": 0x13,
"4": 0x14,
"5": 0x15,
"6": 0x16,
"7": 0x17,
"8": 0x18,
"9": 0x19,
":": 0x1A,
";": 0x1B,
"<": 0x1C,
"=": 0x1D,
">": 0x1E,
"?": 0x1F,
"@": 0x20,
"A": 0x21,
"B": 0x22,
"C": 0x23,
"D": 0x24,
"E": 0x25,
"F": 0x26,
"G": 0x27,
"H": 0x28,
"I": 0x29,
"J": 0x2A,
"K": 0x2B,
"L": 0x2C,
"M": 0x2D,
"N": 0x2E,
"O": 0x2F,
"P": 0x30,
"Q": 0x31,
"R": 0x32,
"S": 0x33,
"T": 0x34,
"U": 0x35,
"V": 0x36,
"W": 0x37,
"X": 0x38,
"Y": 0x39,
"Z": 0x3A,
"[": 0x3B,
"¥": 0x3C,
"]": 0x3D,
"^": 0x3E,
"_": 0x3F,
"`": 0x40,
"a": 0x41,
"b": 0x42,
"c": 0x43,
"d": 0x44,
"e": 0x45,
"f": 0x46,
"g": 0x47,
"h": 0x48,
"i": 0x49,
"j": 0x4A,
"k": 0x4B,
"l": 0x4C,
"m": 0x4D,
"n": 0x4E,
"o": 0x4F,
"p": 0x50,
"q": 0x51,
"r": 0x52,
"s": 0x53,
"t": 0x54,
"u": 0x55,
"v": 0x56,
"w": 0x57,
"x": 0x58,
"y": 0x59,
"z": 0x5A,
"{": 0x5B,
"|": 0x5C,
"}": 0x5D,
"~": 0x5E,
"°": 0x5F,
"À": 0x60,
"Á": 0x61,
"Â": 0x62,
"Ä": 0x63,
"Ç": 0x64,
"È": 0x65,
"É": 0x66,
"Ê": 0x67,
"Ë": 0x68,
"Ì": 0x69,
"Í": 0x6A,
"Î": 0x6B,
"Ï": 0x6C,
"Ñ": 0x6D,
"Ò": 0x6E,
"Ó": 0x6F,
"Ô": 0x70,
"Ö": 0x71,
"Ù": 0x72,
"Ú": 0x73,
"Û": 0x74,
"Ü": 0x75,
"ß": 0x76,
"à": 0x77,
"á": 0x78,
"â": 0x79,
"ä": 0x7A,
"ç": 0x7B,
"è": 0x7C,
"é": 0x7D,
"ê": 0x7E,
"ë": 0x7F,
"ì": 0x80,
"í": 0x81,
"î": 0x82,
"ï": 0x83,
"ñ": 0x84,
"ò": 0x85,
"ó": 0x86,
"ô": 0x87,
"ö": 0x88,
"ù": 0x89,
"ú": 0x8A,
"û": 0x8B,
"ü": 0x8C,
"¡": 0x8D,
"¿": 0x8E,
"ª": 0x8F,
2021-02-10 01:12:28 +01:00
# "♥": 0x90,
# "★": 0x91,
# "↑": 0x92,
# "↓": 0x93,
# "←": 0x94,
# "→": 0x95,
# "●": 0x96,
# "✖": 0x97,
"": 0xA2,
"": 0xA3,
"": 0xA4,
"": 0xA5,
" ": 0xF7,
" ": 0xF7,
2021-02-10 01:12:28 +01:00
# "Ⓐ": [0xFF, 0x24, 0xFF, 0x05, 0x10, 0x98, 0xFF, 0x25],
# "Ⓑ": [0xFF, 0x24, 0xFF, 0x05, 0x11, 0x99, 0xFF, 0x25],
# "Ⓢ": [0xFF, 0x24, 0xFF, 0x05, 0x12, 0xA1, 0xFF, 0x25],
# "▲": [0xFF, 0x24, 0xFF, 0x05, 0x13, 0x9D, 0xFF, 0x25],
# "▼": [0xFF, 0x24, 0xFF, 0x05, 0x13, 0x9E, 0xFF, 0x25],
# "◀": [0xFF, 0x24, 0xFF, 0x05, 0x13, 0x9F, 0xFF, 0x25],
# "▶": [0xFF, 0x24, 0xFF, 0x05, 0x13, 0xA0, 0xFF, 0x25],
# "Ⓛ": [0xFF, 0x24, 0xFF, 0x05, 0x14, 0x9A, 0xFF, 0x25],
# "Ⓡ": [0xFF, 0x24, 0xFF, 0x05, 0x14, 0x9B, 0xFF, 0x25],
# "Ⓩ": [0xFF, 0x24, 0xFF, 0x05, 0x14, 0x9C, 0xFF, 0x25],
}
CHARSET_CREDITS = {
"A": 0x00,
"B": 0x01,
"C": 0x02,
"D": 0x03,
"E": 0x04,
"F": 0x05,
"G": 0x06,
"H": 0x07,
"I": 0x08,
"J": 0x09,
"K": 0x0A,
"L": 0x0B,
"M": 0x0C,
"N": 0x0D,
"O": 0x0E,
"P": 0x0F,
"Q": 0x10,
"R": 0x11,
"S": 0x12,
"T": 0x13,
"U": 0x14,
"V": 0x15,
"W": 0x16,
"X": 0x17,
"Y": 0x18,
"Z": 0x19,
"'": 0x1A,
".": 0x1B,
",": 0x1C,
"0": 0x1D,
"1": 0x1E,
"2": 0x1F,
"3": 0x20,
"4": 0x21,
"5": 0x22,
"6": 0x23,
"7": 0x24,
"8": 0x25,
"9": 0x26,
"©": 0x27,
"&": 0x28,
" ": 0xF7,
" ": 0xF8,
}
CHARSET_KANA = {
"": 0x00,
"": 0x01,
"": 0x02,
"": 0x03,
"": 0x04,
"": 0x05,
"": 0x06,
"": 0x07,
"": 0x08,
"": 0x09,
"": 0x0A,
"": 0x0B,
"": 0x0C,
"": 0x0D,
"": 0x0E,
"": 0x0F,
"": 0x10,
"": 0x11,
"": 0x12,
"": 0x13,
"": 0x14,
"": 0x15,
"": 0x16,
"": 0x17,
"": 0x18,
"": 0x19,
"": 0x1A,
"": 0x1B,
"": 0x1C,
"": 0x1D,
"": 0x1E,
"": 0x1F,
"": 0x20,
"": 0x21,
"": 0x22,
"": 0x23,
"": 0x24,
"": 0x25,
"": 0x26,
"": 0x27,
"": 0x28,
"": 0x29,
"": 0x2A,
"": 0x2B,
"": 0x2C,
"": 0x2D,
"": 0x2E,
"": 0x2F,
"": 0x30,
"": 0x31,
"": 0x32,
"": 0x33,
"": 0x34,
"": 0x35,
"": 0x36,
"": 0x37,
"": 0x38,
"": 0x39,
"": 0x3A,
"": 0x3B,
"": 0x3C,
"": 0x3D,
"": 0x3E,
"": 0x3F,
"": 0x40,
"": 0x41,
"": 0x42,
"": 0x43,
"": 0x44,
"": 0x45,
"": 0x46,
"": 0x47,
"": 0x48,
"": 0x49,
"": 0x4A,
"": 0x4B,
"": 0x4C,
"": 0x4D,
"": 0x4E,
"": 0x4F,
"": 0x50,
"": 0x51,
"": 0x52,
"": 0x53,
"": 0x54,
"": 0x55,
"": 0x56,
"": 0x57,
"": 0x58,
"": 0x59,
"": 0x5A,
"": 0x5B,
"": 0x5C,
"": 0x5D,
"": 0x5E,
"": 0x5F,
"": 0x60,
"": 0x61,
"": 0x62,
"": 0x63,
"": 0x64,
"": 0x65,
"": 0x66,
"": 0x67,
"": 0x68,
"": 0x69,
"": 0x6A,
"": 0x6B,
"": 0x6C,
"": 0x6D,
"": 0x6E,
"": 0x6F,
"": 0x70,
"": 0x71,
"": 0x72,
"": 0x73,
"": 0x74,
"": 0x75,
"": 0x76,
"": 0x77,
"": 0x78,
"": 0x79,
"": 0x7A,
"": 0x7B,
"": 0x7C,
"": 0x7D,
"": 0x7E,
"": 0x7F,
"": 0x80,
"": 0x81,
"": 0x82,
"": 0x83,
"": 0x84,
"": 0x85,
"": 0x86,
"": 0x87,
"": 0x88,
"": 0x89,
"": 0x8A,
"": 0x8B,
"": 0x8C,
"": 0x8D,
"": 0x8E,
"": 0x8F,
"": 0x90,
"": 0x91,
"": 0x92,
"": 0x93,
"": 0x94,
"": 0x95,
"": 0x96,
"": 0x97,
"": 0x98,
"": 0x99,
"": 0x9A,
"": 0x9B,
"": 0x9C,
"": 0x9D,
"": 0x9E,
"": 0x9F,
"": 0xA0,
"": 0xA1,
"": 0xA2,
"": 0xA3,
"~": 0xA3,
# "―": 0xA4,
# "―": 0xA5,
# "―": 0xA6,
"": 0xA7,
"0": 0xA7,
"": 0xA8,
"1": 0xA8,
"": 0xA9,
"2": 0xA9,
"": 0xAA,
"3": 0xAA,
"": 0xAB,
"4": 0xAB,
"": 0xAC,
"5": 0xAC,
"": 0xAD,
"6": 0xAD,
"": 0xAE,
"7": 0xAE,
"": 0xAF,
"8": 0xAF,
"": 0xB0,
"9": 0xB0,
"[up]": 0xB1,
"[down]": 0xB2,
"[left]": 0xB3,
"[right]": 0xB4,
"": 0xB5,
"!": 0xB5,
"": 0xB6,
"?": 0xB6,
"": 0xB7,
"+": 0xB7,
"": 0xB8,
"": 0xB9,
"/": 0xB9,
"": 0xBA,
".": 0xBA,
"": 0xBB,
"&": 0xBB,
"": 0xBC,
"#": 0xBC,
"[heart]": 0xBD,
"[star]": 0xBE,
"": 0xBF,
"(": 0xBF,
"": 0xC0,
")": 0xC0,
"": 0xC1,
"": 0xC2,
"": 0xC3,
"[hiragana smalln]": 0xC4,
"[katakana smalln]": 0xC5,
"": 0xC6,
# 0xC7 is unused
" ": 0xF7,
" ": 0xF8,
}
CHARSET_LATIN = {
"A": 0x00,
"": 0x00,
"B": 0x01,
"": 0x01,
"C": 0x02,
"": 0x02,
"D": 0x03,
"": 0x03,
"E": 0x04,
"": 0x04,
"F": 0x05,
"": 0x05,
"G": 0x06,
"": 0x06,
"H": 0x07,
"": 0x07,
"I": 0x08,
"": 0x08,
"J": 0x09,
"": 0x09,
"K": 0x0A,
"": 0x0A,
"L": 0x0B,
"": 0x0B,
"M": 0x0C,
"": 0x0C,
"N": 0x0D,
"": 0x0D,
"O": 0x0E,
"": 0x0E,
"P": 0x0F,
"": 0x0F,
"Q": 0x10,
"": 0x10,
"R": 0x11,
"": 0x11,
"S": 0x12,
"": 0x12,
"T": 0x13,
"": 0x13,
"U": 0x14,
"": 0x14,
"V": 0x15,
"": 0x15,
"W": 0x16,
"": 0x16,
"X": 0x17,
"": 0x17,
"Y": 0x18,
"": 0x18,
"Z": 0x19,
"": 0x19,
"z": 0x1A,
"": 0x1A,
" ": 0xF7,
" ": 0xF8,
}
CHARSET_KANJI = {
"": 0x00,
"": 0x01,
"": 0x02,
"": 0x03,
"": 0x04,
"": 0x05,
"西": 0x06,
"": 0x07,
"": 0x08,
"": 0x09,
"": 0x0A,
"": 0x0B,
"": 0x0C,
"": 0x0D,
"": 0x0E,
"": 0x0F,
"": 0x10,
"": 0x11,
"": 0x12,
"": 0x13,
"": 0x14,
"": 0x15,
"": 0x16,
"": 0x17,
"": 0x18,
"": 0x19,
"": 0x1A,
"": 0x1B,
"": 0x1C,
"": 0x1D,
"": 0x1E,
"": 0x1F,
"": 0x20,
"": 0x21,
"": 0x22,
"": 0x23,
"": 0x24,
"": 0x25,
"": 0x26,
"": 0x27,
"": 0x28,
"": 0x29,
"": 0x2A,
"": 0x2B,
"": 0x2C,
"": 0x2D,
"": 0x2E,
"": 0x2F,
"": 0x30,
"": 0x31,
"": 0x32,
"": 0x33,
"": 0x34,
"": 0x35,
"": 0x36,
"": 0x37,
"": 0x38,
"": 0x39,
"": 0x3A,
"": 0x3B,
"": 0x3C,
"": 0x3D,
"": 0x3E,
"": 0x3F,
"使": 0x40,
"": 0x41,
"": 0x42,
"": 0x43,
"": 0x44,
"": 0x45,
"": 0x46,
"": 0x47,
"": 0x48,
"": 0x49,
"": 0x4A,
"": 0x4B,
"": 0x4C,
"": 0x4D,
"": 0x4E,
"": 0x4F,
"": 0x50,
"": 0x51,
"": 0x52,
"": 0x53,
"": 0x54,
"": 0x55,
"": 0x56,
"": 0x57,
"": 0x58,
"": 0x59,
"": 0x5A,
"": 0x5B,
"": 0x5C,
"": 0x5D,
"": 0x5E,
"": 0x5F,
"": 0x60,
"[circle]": 0x61,
"[cross]": 0x62,
"": 0x63,
"": 0x64,
"": 0x65,
"": 0x66,
"": 0x67,
"": 0x68,
"": 0x69,
"[note]": 0x6A,
"": 0x6B,
"": 0x6C,
"": 0x6D,
"": 0x6E,
"": 0x6F,
"": 0x70,
"": 0x71,
"": 0x72,
"": 0x73,
"": 0x74,
"": 0x75,
"": 0x76,
"": 0x77,
"": 0x78,
"x": 0x78,
" ": 0xF7,
" ": 0xF8,
}
CHARSET_BUTTONS = {
"[~a]": 0x00,
"[~b]": 0x01,
"[~start]": 0x02,
"[~c-up]": 0x03,
"[~c-down]": 0x04,
"[~c-left]": 0x05,
"[~c-right]": 0x06,
"[~z]": 0x07,
"[~l]": 0x08,
"[~r]": 0x09,
}
2024-02-03 15:27:25 +01:00
CHARSET_IQUE = {
" ": 0xF7,
"": [0x5F, 0x01],
"": [0x5F, 0x02],
"": [0x5F, 0x03],
"": [0x5F, 0x04],
"": [0x5F, 0x05],
"": [0x5F, 0x06],
"": [0x5F, 0x07],
"": [0x5F, 0x08],
"": [0x5F, 0x09],
"": [0x5F, 0x0A],
"": [0x5F, 0x0B],
"": [0x5F, 0x0C],
"": [0x5F, 0x0D],
"": [0x5F, 0x0E],
"": [0x5F, 0x0F],
"": [0x5F, 0x10],
"": [0x5F, 0x11],
"": [0x5F, 0x12],
"": [0x5F, 0x13],
"": [0x5F, 0x14],
"": [0x5F, 0x15],
"": [0x5F, 0x16],
"": [0x5F, 0x17],
"": [0x5F, 0x18],
"": [0x5F, 0x19],
"": [0x5F, 0x1A],
"": [0x5F, 0x1B],
"": [0x5F, 0x1C],
"": [0x5F, 0x1D],
"": [0x5F, 0x1E],
"": [0x5F, 0x1F],
"": [0x5F, 0x20],
"": [0x5F, 0x21],
"": [0x5F, 0x22],
"": [0x5F, 0x23],
"": [0x5F, 0x24],
"": [0x5F, 0x25],
"": [0x5F, 0x26],
"": [0x5F, 0x27],
"": [0x5F, 0x28],
"": [0x5F, 0x29],
"": [0x5F, 0x2A],
"": [0x5F, 0x2B],
"": [0x5F, 0x2C],
"": [0x5F, 0x2D],
"": [0x5F, 0x2E],
"": [0x5F, 0x2F],
"": [0x5F, 0x30],
"": [0x5F, 0x31],
"": [0x60, 0x01],
"": [0x60, 0x02],
"": [0x60, 0x03],
"": [0x60, 0x04],
"": [0x60, 0x05],
"": [0x60, 0x06],
"": [0x60, 0x07],
"": [0x60, 0x08],
"": [0x60, 0x09],
"": [0x60, 0x0A],
"": [0x60, 0x0B],
"": [0x60, 0x0C],
"": [0x60, 0x0D],
"": [0x60, 0x0E],
"": [0x60, 0x0F],
"": [0x60, 0x10],
"": [0x60, 0x11],
"": [0x60, 0x12],
"": [0x60, 0x13],
"": [0x60, 0x14],
"": [0x60, 0x15],
"": [0x60, 0x16],
"": [0x60, 0x17],
"": [0x60, 0x18],
"": [0x60, 0x19],
"": [0x60, 0x1A],
"": [0x60, 0x1B],
"": [0x60, 0x1C],
"": [0x60, 0x1D],
"": [0x60, 0x1E],
"广": [0x60, 0x1F],
"": [0x60, 0x20],
"": [0x60, 0x21],
"": [0x60, 0x22],
"": [0x60, 0x23],
"": [0x60, 0x24],
"": [0x60, 0x25],
"": [0x60, 0x26],
"": [0x60, 0x27],
"": [0x60, 0x28],
"": [0x60, 0x29],
"": [0x60, 0x2A],
"": [0x60, 0x2B],
"": [0x60, 0x2C],
"": [0x60, 0x2D],
"": [0x60, 0x2E],
"": [0x60, 0x2F],
"": [0x60, 0x30],
"": [0x60, 0x31],
"": [0x61, 0x01],
"": [0x61, 0x02],
"": [0x61, 0x03],
"": [0x61, 0x04],
"": [0x61, 0x05],
"": [0x61, 0x06],
"": [0x61, 0x07],
"": [0x61, 0x08],
"": [0x61, 0x09],
"": [0x61, 0x0A],
"": [0x61, 0x0B],
"": [0x61, 0x0C],
"": [0x61, 0x0D],
"": [0x61, 0x0E],
"": [0x61, 0x0F],
"使": [0x61, 0x10],
"": [0x61, 0x11],
"": [0x61, 0x12],
"": [0x61, 0x13],
"": [0x61, 0x14],
"": [0x61, 0x15],
"": [0x61, 0x16],
"": [0x61, 0x17],
"": [0x61, 0x18],
"": [0x61, 0x19],
"": [0x61, 0x1A],
"": [0x61, 0x1B],
"": [0x61, 0x1C],
"": [0x61, 0x1D],
"": [0x61, 0x1E],
"": [0x61, 0x1F],
"": [0x61, 0x20],
"": [0x61, 0x21],
"": [0x61, 0x22],
"": [0x61, 0x23],
"": [0x61, 0x24],
"": [0x61, 0x25],
"": [0x61, 0x26],
"": [0x61, 0x27],
"": [0x61, 0x28],
"": [0x61, 0x29],
"": [0x61, 0x2A],
"": [0x61, 0x2B],
"": [0x61, 0x2C],
"": [0x61, 0x2D],
"": [0x61, 0x2E],
"": [0x61, 0x2F],
"": [0x61, 0x30],
"": [0x61, 0x31],
"": [0x62, 0x01],
"": [0x62, 0x02],
"": [0x62, 0x03],
"": [0x62, 0x04],
"": [0x62, 0x05],
"": [0x62, 0x06],
"": [0x62, 0x07],
"": [0x62, 0x08],
"": [0x62, 0x09],
"": [0x62, 0x0A],
"": [0x62, 0x0B],
"": [0x62, 0x0C],
"": [0x62, 0x0D],
"": [0x62, 0x0E],
"": [0x62, 0x0F],
"": [0x62, 0x10],
"": [0x62, 0x11],
"": [0x62, 0x12],
"": [0x62, 0x13],
"": [0x62, 0x14],
"": [0x62, 0x15],
"": [0x62, 0x16],
"": [0x62, 0x17],
"": [0x62, 0x18],
"": [0x62, 0x19],
"": [0x62, 0x1A],
"": [0x62, 0x1B],
"": [0x62, 0x1C],
"": [0x62, 0x1D],
"": [0x62, 0x1E],
"": [0x62, 0x1F],
"": [0x62, 0x20],
"": [0x62, 0x21],
"": [0x62, 0x22],
"": [0x62, 0x23],
"": [0x62, 0x24],
"": [0x62, 0x25],
"": [0x62, 0x26],
"": [0x62, 0x27],
"": [0x62, 0x28],
"": [0x62, 0x29],
"": [0x62, 0x2A],
"": [0x62, 0x2B],
"": [0x62, 0x2C],
"": [0x62, 0x2D],
"": [0x62, 0x2E],
"": [0x62, 0x2F],
"": [0x62, 0x30],
"": [0x62, 0x31],
"": [0x63, 0x01],
"": [0x63, 0x02],
"": [0x63, 0x03],
"": [0x63, 0x04],
"": [0x63, 0x05],
"": [0x63, 0x06],
"": [0x63, 0x07],
"": [0x63, 0x08],
"": [0x63, 0x09],
"": [0x63, 0x0A],
"": [0x63, 0x0B],
"": [0x63, 0x0C],
"": [0x63, 0x0D],
"": [0x63, 0x0E],
"": [0x63, 0x0F],
"": [0x63, 0x10],
"": [0x63, 0x11],
"": [0x63, 0x12],
"": [0x63, 0x13],
"": [0x63, 0x14],
"": [0x63, 0x15],
"": [0x63, 0x16],
"": [0x63, 0x17],
"": [0x63, 0x18],
"": [0x63, 0x19],
"": [0x63, 0x1A],
"": [0x63, 0x1B],
"": [0x63, 0x1C],
"": [0x63, 0x1D],
"": [0x63, 0x1E],
"": [0x63, 0x1F],
"": [0x63, 0x20],
"": [0x63, 0x21],
"": [0x63, 0x22],
"": [0x63, 0x23],
"": [0x63, 0x24],
"": [0x63, 0x25],
"": [0x63, 0x26],
"": [0x63, 0x27],
"": [0x63, 0x28],
"": [0x63, 0x29],
"": [0x63, 0x2A],
"": [0x63, 0x2B],
"": [0x63, 0x2C],
"": [0x63, 0x2D],
"": [0x63, 0x2E],
"": [0x63, 0x2F],
"": [0x63, 0x30],
"": [0x63, 0x31],
"": [0x64, 0x01],
"": [0x64, 0x02],
"": [0x64, 0x03],
"": [0x64, 0x04],
"": [0x64, 0x05],
"": [0x64, 0x06],
"": [0x64, 0x07],
"": [0x64, 0x08],
"": [0x64, 0x09],
"": [0x64, 0x0A],
"": [0x64, 0x0B],
"": [0x64, 0x0C],
"": [0x64, 0x0D],
"": [0x64, 0x0E],
"": [0x64, 0x0F],
"": [0x64, 0x10],
"": [0x64, 0x11],
"": [0x64, 0x12],
"": [0x64, 0x13],
"": [0x64, 0x14],
"": [0x64, 0x15],
"": [0x64, 0x16],
"": [0x64, 0x17],
"": [0x64, 0x18],
"": [0x64, 0x19],
"": [0x64, 0x1A],
"": [0x64, 0x1B],
"": [0x64, 0x1C],
"": [0x64, 0x1D],
"": [0x64, 0x1E],
"": [0x64, 0x1F],
"": [0x64, 0x20],
"": [0x64, 0x21],
"": [0x64, 0x22],
"": [0x64, 0x23],
"": [0x64, 0x24],
"": [0x64, 0x25],
"": [0x64, 0x26],
"": [0x64, 0x27],
"": [0x64, 0x28],
"": [0x64, 0x29],
"": [0x64, 0x2A],
"": [0x64, 0x2B],
"": [0x64, 0x2C],
"": [0x64, 0x2D],
"": [0x64, 0x2E],
"": [0x64, 0x2F],
"": [0x64, 0x30],
"": [0x64, 0x31],
"": [0x65, 0x01],
"": [0x65, 0x02],
"": [0x65, 0x03],
"": [0x65, 0x04],
"": [0x65, 0x05],
"": [0x65, 0x06],
"": [0x65, 0x07],
"": [0x65, 0x08],
"": [0x65, 0x09],
"": [0x65, 0x0A],
"": [0x65, 0x0B],
"": [0x65, 0x0C],
"": [0x65, 0x0D],
"": [0x65, 0x0E],
"": [0x65, 0x0F],
"": [0x65, 0x10],
"": [0x65, 0x11],
"": [0x65, 0x12],
"": [0x65, 0x13],
"": [0x65, 0x14],
"": [0x65, 0x15],
"": [0x65, 0x16],
"": [0x65, 0x17],
"": [0x65, 0x18],
"": [0x65, 0x19],
"": [0x65, 0x1A],
"": [0x65, 0x1B],
"": [0x65, 0x1C],
"": [0x65, 0x1D],
"": [0x65, 0x1E],
"": [0x65, 0x1F],
"": [0x65, 0x20],
"": [0x65, 0x21],
"": [0x65, 0x22],
"": [0x65, 0x23],
"": [0x65, 0x24],
"": [0x65, 0x25],
"": [0x65, 0x26],
"": [0x65, 0x27],
"": [0x65, 0x28],
"": [0x65, 0x29],
"": [0x65, 0x2A],
"": [0x65, 0x2B],
"": [0x65, 0x2C],
"": [0x65, 0x2D],
"": [0x65, 0x2E],
"": [0x65, 0x2F],
"": [0x65, 0x30],
"": [0x65, 0x31],
"": [0x66, 0x01],
"": [0x66, 0x02],
"": [0x66, 0x03],
"": [0x66, 0x04],
"": [0x66, 0x05],
"": [0x66, 0x06],
"": [0x66, 0x07],
"": [0x66, 0x08],
"": [0x66, 0x09],
"": [0x66, 0x0A],
"": [0x66, 0x0B],
"": [0x66, 0x0C],
"": [0x66, 0x0D],
"": [0x66, 0x0E],
"": [0x66, 0x0F],
"": [0x66, 0x10],
"": [0x66, 0x11],
"": [0x66, 0x12],
"": [0x66, 0x13],
"": [0x66, 0x14],
"": [0x66, 0x15],
"": [0x66, 0x16],
"": [0x66, 0x17],
"": [0x66, 0x18],
"": [0x66, 0x19],
"": [0x66, 0x1A],
"": [0x66, 0x1B],
"": [0x66, 0x1C],
"仿": [0x66, 0x1D],
"": [0x66, 0x1E],
"": [0x66, 0x1F],
"": [0x66, 0x20],
"": [0x66, 0x21],
"": [0x66, 0x22],
"": [0x66, 0x23],
"": [0x66, 0x24],
"": [0x66, 0x25],
"": [0x66, 0x26],
"": [0x66, 0x27],
"": [0x66, 0x28],
"": [0x66, 0x29],
"": [0x66, 0x2A],
"": [0x66, 0x2B],
"": [0x66, 0x2C],
"": [0x66, 0x2D],
"": [0x66, 0x2E],
"": [0x66, 0x2F],
"": [0x66, 0x30],
"": [0x66, 0x31],
"": [0x67, 0x01],
"": [0x67, 0x02],
"": [0x67, 0x03],
"": [0x67, 0x04],
"": [0x67, 0x05],
"": [0x67, 0x06],
"": [0x67, 0x07],
"": [0x67, 0x08],
"": [0x67, 0x09],
"": [0x67, 0x0A],
"": [0x67, 0x0B],
"": [0x67, 0x0C],
"": [0x67, 0x0D],
"": [0x67, 0x0E],
"": [0x67, 0x0F],
"": [0x67, 0x10],
"": [0x67, 0x11],
"": [0x67, 0x12],
"": [0x67, 0x13],
"": [0x67, 0x14],
"": [0x67, 0x15],
"": [0x67, 0x16],
"": [0x67, 0x17],
"": [0x67, 0x18],
"": [0x67, 0x19],
"": [0x67, 0x1A],
"": [0x67, 0x1B],
"": [0x67, 0x1C],
"": [0x67, 0x1D],
"": [0x67, 0x1E],
"": [0x67, 0x1F],
"": [0x67, 0x20],
"": [0x67, 0x21],
"": [0x67, 0x22],
"": [0x67, 0x23],
"": [0x67, 0x24],
"": [0x67, 0x25],
"": [0x67, 0x26],
"": [0x67, 0x27],
"": [0x67, 0x28],
"": [0x67, 0x29],
"": [0x67, 0x2A],
"": [0x67, 0x2B],
"": [0x67, 0x2C],
"": [0x67, 0x2D],
"": [0x67, 0x2E],
"": [0x67, 0x2F],
"": [0x67, 0x30],
"": [0x67, 0x31],
"": [0x68, 0x01],
"": [0x68, 0x02],
"": [0x68, 0x03],
"": [0x68, 0x04],
"": [0x68, 0x05],
"": [0x68, 0x06],
"": [0x68, 0x07],
"": [0x68, 0x08],
"": [0x68, 0x09],
"": [0x68, 0x0A],
"": [0x68, 0x0B],
"": [0x68, 0x0C],
"": [0x68, 0x0D],
"": [0x68, 0x0E],
"": [0x68, 0x0F],
"": [0x68, 0x10],
"": [0x68, 0x11],
"": [0x68, 0x12],
"": [0x68, 0x13],
"": [0x68, 0x14],
"": [0x68, 0x15],
"": [0x68, 0x16],
"": [0x68, 0x17],
"": [0x68, 0x18],
"": [0x68, 0x19],
"": [0x68, 0x1A],
"": [0x68, 0x1B],
"": [0x68, 0x1C],
"": [0x68, 0x1D],
"": [0x68, 0x1E],
"": [0x68, 0x1F],
"": [0x68, 0x20],
"": [0x68, 0x21],
"": [0x68, 0x22],
"": [0x68, 0x23],
"": [0x68, 0x24],
"": [0x68, 0x25],
"": [0x68, 0x26],
"": [0x68, 0x27],
"": [0x68, 0x28],
"": [0x68, 0x29],
"": [0x68, 0x2A],
"": [0x68, 0x2B],
"": [0x68, 0x2C],
"": [0x68, 0x2D],
"": [0x68, 0x2E],
"": [0x68, 0x2F],
"": [0x68, 0x30],
"": [0x68, 0x31],
"": [0x69, 0x01],
"": [0x69, 0x02],
"": [0x69, 0x03],
"": [0x69, 0x04],
"": [0x69, 0x05],
"": [0x69, 0x06],
"": [0x69, 0x07],
"": [0x69, 0x08],
"": [0x69, 0x09],
"": [0x69, 0x0A],
"": [0x69, 0x0B],
"": [0x69, 0x0C],
"": [0x69, 0x0D],
"": [0x69, 0x0E],
"": [0x69, 0x0F],
"": [0x69, 0x10],
"": [0x69, 0x11],
"": [0x69, 0x12],
"": [0x69, 0x13],
"": [0x69, 0x14],
"": [0x69, 0x15],
"": [0x69, 0x16],
"": [0x69, 0x17],
"": [0x69, 0x18],
"": [0x69, 0x19],
"": [0x69, 0x1A],
"": [0x69, 0x1B],
"": [0x69, 0x1C],
"": [0x69, 0x1D],
"": [0x69, 0x1E],
"": [0x69, 0x1F],
"沿": [0x69, 0x20],
"": [0x69, 0x21],
"": [0x69, 0x22],
"": [0x69, 0x23],
"": [0x69, 0x24],
"": [0x69, 0x25],
"": [0x69, 0x26],
"": [0x69, 0x27],
"": [0x69, 0x28],
"": [0x69, 0x29],
"": [0x69, 0x2A],
"": [0x69, 0x2B],
"": [0x69, 0x2C],
"": [0x69, 0x2D],
"": [0x69, 0x2E],
"": [0x69, 0x2F],
"": [0x69, 0x30],
"": [0x6A, 0x01],
"": [0x6A, 0x02],
"": [0x6A, 0x03],
"": [0x6A, 0x04],
"": [0x6A, 0x05],
"": [0x6A, 0x06],
"": [0x6A, 0x07],
"": [0x6A, 0x08],
"": [0x6A, 0x09],
"": [0x6A, 0x0A],
"": [0x6A, 0x0B],
"": [0x6A, 0x0C],
"": [0x6A, 0x0D],
"": [0x6A, 0x0E],
"": [0x6A, 0x0F],
"穿": [0x6A, 0x10],
"": [0x6A, 0x11],
"": [0x6A, 0x12],
"": [0x6A, 0x13],
"": [0x6A, 0x14],
"": [0x6A, 0x15],
"": [0x6A, 0x16],
"": [0x6A, 0x17],
"": [0x6A, 0x18],
"": [0x6A, 0x19],
"": [0x6A, 0x1A],
"": [0x6A, 0x1B],
"": [0x6A, 0x1C],
"": [0x6A, 0x1D],
"": [0x6A, 0x1E],
"": [0x6A, 0x1F],
"": [0x6A, 0x20],
"": [0x6A, 0x21],
"": [0x6A, 0x22],
"": [0x6A, 0x23],
"": [0x6A, 0x24],
"": [0x6A, 0x25],
"": [0x6A, 0x26],
"": [0x6A, 0x27],
"": [0x6A, 0x28],
"": [0x6A, 0x29],
"": [0x6A, 0x2A],
"": [0x6A, 0x2B],
"": [0x6A, 0x2C],
"": [0x6A, 0x2D],
"": [0x6A, 0x2E],
"": [0x6A, 0x2F],
"": [0x6A, 0x30],
"": [0x6B, 0x01],
"": [0x6B, 0x02],
"": [0x6B, 0x03],
"": [0x6B, 0x04],
"": [0x6B, 0x05],
"": [0x6B, 0x06],
"": [0x6B, 0x07],
"": [0x6B, 0x08],
"": [0x6B, 0x09],
"": [0x6B, 0x0A],
"": [0x6B, 0x0B],
"": [0x6B, 0x0C],
"": [0x6B, 0x0D],
"": [0x6B, 0x0E],
"": [0x6B, 0x0F],
"": [0x6B, 0x10],
"": [0x6B, 0x11],
"": [0x6B, 0x12],
"": [0x6B, 0x13],
"": [0x6B, 0x14],
"": [0x6B, 0x15],
"": [0x6B, 0x16],
"": [0x6B, 0x17],
"": [0x6B, 0x18],
"": [0x6B, 0x19],
"": [0x6B, 0x1A],
"": [0x6B, 0x1B],
"": [0x6B, 0x1C],
"": [0x6B, 0x1D],
"": [0x6B, 0x1E],
"": [0x6B, 0x1F],
"": [0x6B, 0x20],
"": [0x6B, 0x21],
"": [0x6B, 0x22],
"": [0x6B, 0x23],
"": [0x6B, 0x24],
"": [0x6B, 0x25],
"": [0x6B, 0x26],
"": [0x6B, 0x27],
"": [0x6B, 0x28],
"": [0x6B, 0x29],
"": [0x6B, 0x2A],
"": [0x6B, 0x2B],
"": [0x6B, 0x2C],
"": [0x6B, 0x2D],
"": [0x6B, 0x2E],
"": [0x6B, 0x2F],
"": [0x6B, 0x30],
"": [0x6C, 0x01],
"": [0x6C, 0x02],
"": [0x6C, 0x03],
"": [0x6C, 0x04],
"": [0x6C, 0x05],
"": [0x6C, 0x06],
"": [0x6C, 0x07],
"": [0x6C, 0x08],
"": [0x6C, 0x09],
"": [0x6C, 0x0A],
"": [0x6C, 0x0B],
"": [0x6C, 0x0C],
"": [0x6C, 0x0D],
"": [0x6C, 0x0E],
"": [0x6C, 0x0F],
"": [0x6C, 0x10],
"": [0x6C, 0x11],
"": [0x6C, 0x12],
"": [0x6C, 0x13],
"": [0x6C, 0x14],
"": [0x6C, 0x15],
"": [0x6C, 0x16],
"": [0x6C, 0x17],
"": [0x6C, 0x18],
"": [0x6C, 0x19],
"": [0x6C, 0x1A],
"": [0x6C, 0x1B],
"": [0x6C, 0x1C],
"": [0x6C, 0x1D],
"": [0x6C, 0x1E],
"": [0x6C, 0x1F],
"": [0x6C, 0x20],
"": [0x6C, 0x21],
"": [0x6C, 0x22],
"": [0x6C, 0x23],
"": [0x6C, 0x24],
"": [0x6C, 0x25],
"": [0x6C, 0x26],
"": [0x6C, 0x27],
"": [0x6C, 0x28],
"": [0x6C, 0x29],
"": [0x6C, 0x2A],
"": [0x6C, 0x2B],
"": [0x6C, 0x2C],
"": [0x6C, 0x2D],
"": [0x6C, 0x2E],
"": [0x6C, 0x2F],
"": [0x6C, 0x30],
"": [0x6D, 0x01],
"": [0x6D, 0x02],
"": [0x6D, 0x03],
"": [0x6D, 0x04],
"": [0x6D, 0x05],
"": [0x6D, 0x06],
"": [0x6D, 0x07],
"": [0x6D, 0x08],
"": [0x6D, 0x09],
"": [0x6D, 0x0A],
"": [0x6D, 0x0B],
"": [0x6D, 0x0C],
"": [0x6D, 0x0D],
"": [0x6D, 0x0E],
"": [0x6D, 0x0F],
"": [0x6D, 0x10],
"": [0x6D, 0x11],
"": [0x6D, 0x12],
"": [0x6D, 0x13],
"": [0x6D, 0x14],
"": [0x6D, 0x15],
"": [0x6D, 0x16],
"": [0x6D, 0x17],
"": [0x6D, 0x18],
"": [0x6D, 0x19],
"": [0x6D, 0x1A],
"": [0x6D, 0x1B],
"": [0x6D, 0x1C],
"": [0x6D, 0x1D],
"": [0x6D, 0x1E],
"": [0x6D, 0x1F],
"": [0x6D, 0x20],
"": [0x6D, 0x21],
"": [0x6D, 0x22],
"": [0x6D, 0x23],
"": [0x6D, 0x24],
"": [0x6D, 0x25],
"": [0x6D, 0x26],
"": [0x6D, 0x27],
"": [0x6D, 0x28],
"": [0x6D, 0x29],
"": [0x6D, 0x2A],
"": [0x6D, 0x2B],
"": [0x6D, 0x2C],
"": [0x6D, 0x2D],
"": [0x6D, 0x2E],
"": [0x6D, 0x2F],
"": [0x6D, 0x30],
"": [0x6E, 0x01],
"": [0x6E, 0x02],
"": [0x6E, 0x03],
"": [0x6E, 0x04],
"": [0x6E, 0x05],
"": [0x6E, 0x06],
"": [0x6E, 0x07],
"": [0x6E, 0x08],
"": [0x6E, 0x09],
"": [0x6E, 0x0A],
"": [0x6E, 0x0B],
"": [0x6E, 0x0C],
"": [0x6E, 0x0D],
"": [0x6E, 0x0E],
"": [0x6E, 0x0F],
"": [0x6E, 0x10],
"": [0x6E, 0x11],
"": [0x6E, 0x12],
"": [0x6E, 0x13],
"": [0x6E, 0x14],
"": [0x6E, 0x15],
"": [0x6E, 0x16],
"": [0x6E, 0x17],
"": [0x6E, 0x18],
"": [0x6E, 0x19],
"": [0x6E, 0x1A],
"": [0x6E, 0x1B],
"": [0x6E, 0x1C],
"": [0x6E, 0x1D],
"": [0x6E, 0x1E],
"": [0x6E, 0x1F],
"": [0x6E, 0x20],
"": [0x6E, 0x21],
"": [0x6E, 0x22],
"": [0x6E, 0x23],
"": [0x6E, 0x24],
"": [0x6E, 0x25],
"": [0x6E, 0x26],
"": [0x6E, 0x27],
"": [0x6E, 0x28],
"": [0x6E, 0x29],
"": [0x6E, 0x2A],
"": [0x6E, 0x2B],
"": [0x6E, 0x2C],
"": [0x6E, 0x2D],
"": [0x6E, 0x2E],
"": [0x6E, 0x2F],
"": [0x6E, 0x30],
"": [0x6F, 0x01],
"": [0x6F, 0x02],
"": [0x6F, 0x03],
"": [0x6F, 0x04],
"": [0x6F, 0x05],
"": [0x6F, 0x06],
"": [0x6F, 0x07],
"": [0x6F, 0x08],
"": [0x6F, 0x09],
"": [0x6F, 0x0A],
"": [0x6F, 0x0B],
"": [0x6F, 0x0C],
"": [0x6F, 0x0D],
"": [0x6F, 0x0E],
"": [0x6F, 0x0F],
"": [0x6F, 0x10],
"": [0x6F, 0x11],
"": [0x6F, 0x12],
"": [0x6F, 0x13],
"": [0x6F, 0x14],
"": [0x6F, 0x15],
"": [0x6F, 0x16],
"": [0x6F, 0x17],
"": [0x6F, 0x18],
"": [0x6F, 0x19],
"": [0x6F, 0x1A],
"": [0x6F, 0x1B],
"": [0x6F, 0x1C],
"": [0x6F, 0x1D],
"": [0x6F, 0x1E],
"": [0x6F, 0x1F],
"": [0x6F, 0x20],
"": [0x6F, 0x21],
"": [0x6F, 0x22],
"": [0x6F, 0x23],
"": [0x6F, 0x24],
"": [0x6F, 0x25],
"": [0x6F, 0x26],
"": [0x6F, 0x27],
"": [0x6F, 0x28],
"": [0x6F, 0x29],
"": [0x6F, 0x2A],
"": [0x6F, 0x2B],
"": [0x6F, 0x2C],
"": [0x6F, 0x2D],
"": [0x6F, 0x2E],
"": [0x6F, 0x2F],
"": [0x6F, 0x30],
"": [0x70, 0x01],
"": [0x70, 0x02],
"": [0x70, 0x03],
"": [0x70, 0x04],
"": [0x70, 0x05],
"": [0x70, 0x06],
"": [0x70, 0x07],
"": [0x70, 0x08],
"": [0x70, 0x09],
"": [0x70, 0x0A],
"": [0x70, 0x0B],
"": [0x70, 0x0C],
"": [0x70, 0x0D],
"": [0x70, 0x0E],
"": [0x70, 0x0F],
"": [0x70, 0x10],
"": [0x70, 0x11],
"": [0x70, 0x12],
"": [0x70, 0x13],
"": [0x70, 0x14],
"": [0x70, 0x15],
"": [0x70, 0x16],
"": [0x70, 0x17],
"": [0x70, 0x18],
"": [0x70, 0x19],
"": [0x70, 0x1A],
"": [0x70, 0x1B],
"": [0x70, 0x1C],
"": [0x70, 0x1D],
"": [0x70, 0x1E],
"": [0x70, 0x1F],
"": [0x70, 0x20],
"": [0x70, 0x21],
"": [0x70, 0x22],
"": [0x70, 0x23],
"": [0x70, 0x24],
"": [0x70, 0x25],
"": [0x70, 0x26],
"": [0x70, 0x27],
"": [0x70, 0x28],
"": [0x70, 0x29],
"": [0x70, 0x2A],
"屿": [0x70, 0x2B],
"": [0x70, 0x2C],
"": [0x70, 0x2D],
"": [0x70, 0x2E],
"": [0x70, 0x2F],
"": [0x70, 0x30],
"": [0x71, 0x01],
"": [0x71, 0x02],
"": [0x71, 0x03],
"": [0x71, 0x04],
"": [0x71, 0x05],
"": [0x71, 0x06],
"": [0x71, 0x07],
"": [0x71, 0x08],
"": [0x71, 0x09],
"": [0x71, 0x0A],
"": [0x71, 0x0B],
"": [0x71, 0x0C],
"": [0x71, 0x0D],
"": [0x71, 0x0E],
"": [0x71, 0x0F],
"": [0x71, 0x10],
"": [0x71, 0x11],
"": [0x71, 0x12],
"": [0x71, 0x13],
"": [0x71, 0x14],
"": [0x71, 0x15],
"": [0x71, 0x16],
"": [0x71, 0x17],
"": [0x71, 0x18],
"": [0x71, 0x19],
"": [0x71, 0x1A],
"": [0x71, 0x1B],
"": [0x71, 0x1C],
"": [0x71, 0x1D],
"": [0x71, 0x1E],
"": [0x71, 0x1F],
"": [0x71, 0x20],
"": [0x71, 0x21],
"": [0x71, 0x22],
"": [0x71, 0x23],
"": [0x71, 0x24],
"": [0x71, 0x25],
"宿": [0x71, 0x26],
"": [0x71, 0x27],
"": [0x71, 0x28],
"": [0x71, 0x29],
"": [0x71, 0x2A],
"": [0x71, 0x2B],
"": [0x71, 0x2C],
"": [0x71, 0x2D],
"": [0x71, 0x2E],
"": [0x71, 0x2F],
"": [0x71, 0x30],
"": [0x72, 0x01],
"": [0x72, 0x02],
"": [0x72, 0x03],
"": [0x72, 0x04],
"": [0x72, 0x05],
"": [0x72, 0x06],
"": [0x72, 0x07],
"": [0x72, 0x08],
"": [0x72, 0x09],
"": [0x72, 0x0A],
"": [0x72, 0x0B],
"": [0x72, 0x0C],
"": [0x72, 0x0D],
"": [0x72, 0x0E],
"": [0x72, 0x0F],
"": [0x72, 0x10],
"": [0x72, 0x11],
"": [0x72, 0x12],
"": [0x72, 0x13],
"": [0x72, 0x14],
"": [0x72, 0x15],
"": [0x72, 0x16],
"": [0x72, 0x17],
"": [0x72, 0x18],
"": [0x72, 0x19],
"": [0x72, 0x1A],
"": [0x72, 0x1B],
"": [0x72, 0x1C],
"": [0x72, 0x1D],
"": [0x72, 0x1E],
"": [0x72, 0x1F],
"": [0x72, 0x20],
"": [0x72, 0x21],
"": [0x72, 0x22],
"": [0x72, 0x23],
"": [0x72, 0x24],
"": [0x72, 0x25],
"": [0x72, 0x26],
"": [0x72, 0x27],
"": [0x72, 0x28],
"": [0x72, 0x29],
"": [0x72, 0x2A],
"": [0x72, 0x2B],
"": [0x72, 0x2C],
"": [0x72, 0x2D],
"": [0x72, 0x2E],
"": [0x72, 0x2F],
"": [0x72, 0x30],
"": [0x73, 0x01],
"": [0x73, 0x02],
"": [0x73, 0x03],
"": [0x73, 0x04],
"": [0x73, 0x05],
"": [0x73, 0x06],
"": [0x73, 0x07],
"": [0x73, 0x08],
"": [0x73, 0x09],
"": [0x73, 0x0A],
"": [0x73, 0x0B],
"": [0x73, 0x0C],
"": [0x73, 0x0D],
"": [0x73, 0x0E],
"": [0x73, 0x0F],
"": [0x73, 0x10],
"": [0x73, 0x11],
"": [0x73, 0x12],
"": [0x73, 0x13],
"": [0x73, 0x14],
"": [0x73, 0x15],
"": [0x73, 0x16],
"": [0x73, 0x17],
"": [0x73, 0x18],
"": [0x73, 0x19],
"": [0x73, 0x1A],
"": [0x73, 0x1B],
"": [0x73, 0x1C],
"": [0x73, 0x1D],
"": [0x73, 0x1E],
"": [0x73, 0x1F],
"": [0x73, 0x20],
"": [0x73, 0x21],
"": [0x73, 0x22],
"": [0x73, 0x23],
"": [0x73, 0x24],
"": [0x73, 0x25],
"": [0x73, 0x26],
"": [0x73, 0x27],
"": [0x73, 0x28],
"": [0x73, 0x29],
"": [0x73, 0x2A],
"": [0x73, 0x2B],
"": [0x73, 0x2C],
"": [0x73, 0x2D],
"": [0x73, 0x2E],
"": [0x73, 0x2F],
"": [0x73, 0x30],
"": [0x74, 0x01],
"": [0x74, 0x02],
"": [0x74, 0x03],
"": [0x74, 0x04],
"": [0x74, 0x05],
"": [0x74, 0x06],
"": [0x74, 0x07],
"": [0x74, 0x08],
"": [0x74, 0x09],
"": [0x74, 0x0A],
"": [0x74, 0x0B],
"": [0x74, 0x0C],
"": [0x74, 0x0D],
"": [0x74, 0x0E],
"": [0x74, 0x0F],
"": [0x74, 0x10],
"": [0x74, 0x11],
"": [0x74, 0x12],
"": [0x74, 0x13],
"": [0x74, 0x14],
"": [0x74, 0x15],
"": [0x74, 0x16],
"": [0x74, 0x17],
"": [0x74, 0x18],
"": [0x74, 0x19],
"": [0x74, 0x1A],
"": [0x74, 0x1B],
"": [0x74, 0x1C],
"": [0x74, 0x1D],
"": [0x74, 0x1E],
"": [0x74, 0x1F],
"": [0x74, 0x20],
"": [0x74, 0x21],
"": [0x74, 0x22],
"": [0x74, 0x23],
"": [0x74, 0x24],
"": [0x74, 0x25],
"": [0x74, 0x26],
"": [0x74, 0x27],
"": [0x74, 0x28],
"": [0x74, 0x29],
"": [0x74, 0x2A],
"": [0x74, 0x2B],
"": [0x74, 0x2C],
"": [0x74, 0x2D],
"": [0x74, 0x2E],
"": [0x74, 0x2F],
"": [0x74, 0x30],
"": [0x75, 0x01],
"": [0x75, 0x02],
"": [0x75, 0x03],
"": [0x75, 0x04],
"": [0x75, 0x05],
"": [0x75, 0x06],
"": [0x75, 0x07],
"": [0x75, 0x08],
"": [0x75, 0x09],
"": [0x75, 0x0A],
"": [0x75, 0x0B],
"": [0x75, 0x0C],
"": [0x75, 0x0D],
"便": [0x75, 0x0E],
"": [0x75, 0x0F],
"": [0x75, 0x10],
"": [0x75, 0x11],
"": [0x75, 0x12],
"": [0x75, 0x13],
"": [0x75, 0x14],
"": [0x75, 0x15],
"": [0x75, 0x16],
"": [0x75, 0x17],
"": [0x75, 0x18],
"": [0x75, 0x19],
"": [0x75, 0x1A],
"": [0x75, 0x1B],
"": [0x75, 0x1C],
"": [0x75, 0x1D],
"": [0x75, 0x1E],
"": [0x75, 0x1F],
"": [0x75, 0x20],
"": [0x75, 0x21],
"": [0x75, 0x22],
"": [0x75, 0x23],
"": [0x75, 0x24],
"": [0x75, 0x25],
"": [0x75, 0x26],
"": [0x75, 0x27],
"": [0x75, 0x28],
"": [0x75, 0x29],
"": [0x75, 0x2A],
"": [0x75, 0x2B],
"": [0x75, 0x2C],
"": [0x75, 0x2D],
"": [0x75, 0x2E],
"": [0x75, 0x2F],
"": [0x75, 0x30],
"": [0x76, 0x01],
"": [0x76, 0x02],
"": [0x76, 0x03],
"": [0x76, 0x04],
"": [0x76, 0x05],
"": [0x76, 0x06],
"": [0x76, 0x07],
"": [0x76, 0x08],
"": [0x76, 0x09],
"": [0x76, 0x0A],
"": [0x76, 0x0B],
"": [0x76, 0x0C],
"": [0x76, 0x0D],
"": [0x76, 0x0E],
"": [0x76, 0x0F],
"": [0x76, 0x10],
"": [0x76, 0x11],
"": [0x76, 0x12],
"": [0x76, 0x13],
"": [0x76, 0x14],
"": [0x76, 0x15],
"": [0x76, 0x16],
"": [0x76, 0x17],
"": [0x76, 0x18],
"": [0x76, 0x19],
"": [0x76, 0x1A],
"": [0x76, 0x1B],
"": [0x76, 0x1C],
"": [0x76, 0x1D],
"": [0x76, 0x1E],
"": [0x76, 0x1F],
"": [0x76, 0x20],
"": [0x76, 0x21],
"": [0x76, 0x22],
"": [0x76, 0x23],
"": [0x76, 0x24],
"": [0x76, 0x25],
"": [0x76, 0x26],
"": [0x76, 0x27],
"": [0x76, 0x28],
"": [0x76, 0x29],
"": [0x76, 0x2A],
"": [0x76, 0x2B],
"": [0x76, 0x2C],
"": [0x76, 0x2D],
"": [0x76, 0x2E],
"": [0x76, 0x2F],
"": [0x76, 0x30],
"": [0x77, 0x01],
"": [0x77, 0x02],
"": [0x77, 0x03],
"": [0x77, 0x04],
"": [0x77, 0x05],
"": [0x77, 0x06],
"": [0x77, 0x07],
"": [0x77, 0x08],
"": [0x77, 0x09],
"": [0x77, 0x0A],
"": [0x77, 0x0B],
"": [0x77, 0x0C],
"": [0x77, 0x0D],
"": [0x77, 0x0E],
"": [0x77, 0x0F],
"": [0x77, 0x10],
"": [0x77, 0x11],
"": [0x77, 0x12],
"": [0x77, 0x13],
"": [0x77, 0x14],
"": [0x77, 0x15],
"": [0x77, 0x16],
"": [0x77, 0x17],
"": [0x77, 0x18],
"": [0x77, 0x19],
"": [0x77, 0x1A],
"": [0x77, 0x1B],
"": [0x77, 0x1C],
"": [0x77, 0x1D],
"": [0x77, 0x1E],
"": [0x77, 0x1F],
"": [0x77, 0x20],
"": [0x77, 0x21],
"": [0x77, 0x22],
"": [0x77, 0x23],
"": [0x77, 0x24],
"": [0x77, 0x25],
"": [0x77, 0x26],
"": [0x77, 0x27],
"": [0x77, 0x28],
"": [0x77, 0x29],
"": [0x77, 0x2A],
"": [0x77, 0x2B],
"": [0x77, 0x2C],
"": [0x77, 0x2D],
"": [0x77, 0x2E],
"": [0x77, 0x2F],
"": [0x77, 0x30],
"": [0x78, 0x01],
"": [0x78, 0x02],
"": [0x78, 0x03],
"": [0x78, 0x04],
"": [0x78, 0x05],
"": [0x78, 0x06],
"": [0x78, 0x07],
"": [0x78, 0x08],
"": [0x78, 0x09],
"": [0x78, 0x0A],
"": [0x78, 0x0B],
"": [0x78, 0x0C],
"": [0x78, 0x0D],
"": [0x78, 0x0E],
"": [0x78, 0x0F],
"": [0x78, 0x10],
"": [0x78, 0x11],
"": [0x78, 0x12],
"": [0x78, 0x13],
"": [0x78, 0x14],
"": [0x78, 0x15],
"": [0x78, 0x16],
"": [0x78, 0x17],
"": [0x78, 0x18],
"": [0x78, 0x19],
"": [0x78, 0x1A],
"": [0x78, 0x1B],
"": [0x78, 0x1C],
"": [0x78, 0x1D],
"": [0x78, 0x1E],
"": [0x78, 0x1F],
"": [0x78, 0x20],
"": [0x78, 0x21],
"": [0x78, 0x22],
"": [0x78, 0x23],
"": [0x78, 0x24],
"": [0x78, 0x25],
"": [0x78, 0x26],
"": [0x78, 0x27],
"": [0x78, 0x28],
"": [0x78, 0x29],
"": [0x78, 0x2A],
"稿": [0x78, 0x2B],
"": [0x78, 0x2C],
"": [0x78, 0x2D],
"": [0x78, 0x2E],
"": [0x78, 0x2F],
"": [0x78, 0x30],
"": [0x79, 0x01],
"": [0x79, 0x02],
"": [0x79, 0x03],
"": [0x79, 0x04],
"": [0x79, 0x05],
"": [0x79, 0x06],
"": [0x79, 0x07],
"": [0x79, 0x08],
"": [0x79, 0x09],
"": [0x79, 0x0A],
"": [0x79, 0x0B],
"": [0x79, 0x0C],
"": [0x79, 0x0D],
"": [0x79, 0x0E],
"": [0x79, 0x0F],
"访": [0x79, 0x10],
"": [0x79, 0x11],
"": [0x79, 0x12],
"": [0x79, 0x13],
"": [0x79, 0x14],
"": [0x79, 0x15],
"": [0x79, 0x16],
"": [0x79, 0x17],
"": [0x79, 0x18],
"": [0x79, 0x19],
"": [0x79, 0x1A],
"": [0x79, 0x1B],
"": [0x79, 0x1C],
"": [0x79, 0x1D],
"": [0x79, 0x1E],
"": [0x79, 0x1F],
"": [0x79, 0x20],
"": [0x79, 0x21],
"": [0x79, 0x22],
"": [0x79, 0x23],
"": [0x79, 0x24],
"": [0x79, 0x25],
"": [0x79, 0x26],
"": [0x79, 0x27],
"": [0x79, 0x28],
"": [0x79, 0x29],
"": [0x79, 0x2A],
"": [0x79, 0x2B],
"": [0x79, 0x2C],
"": [0x79, 0x2D],
"": [0x79, 0x2E],
"": [0x79, 0x2F],
"": [0x79, 0x30],
"": [0x7A, 0x01],
"": [0x7A, 0x02],
"": [0x7A, 0x03],
"": [0x7A, 0x04],
"": [0x7A, 0x05],
"": [0x7A, 0x06],
"": [0x7A, 0x07],
"": [0x7A, 0x08],
"": [0x7A, 0x09],
"": [0x7A, 0x0A],
"": [0x7A, 0x0B],
"": [0x7A, 0x0C],
"": [0x7A, 0x0D],
"": [0x7A, 0x0E],
"": [0x7A, 0x0F],
"": [0x7A, 0x10],
"": [0x7A, 0x11],
"": [0x7A, 0x12],
"": [0x7A, 0x13],
"": [0x7A, 0x14],
"": [0x7A, 0x15],
"": [0x7A, 0x16],
"": [0x7A, 0x17],
"": [0x7A, 0x18],
"": [0x7A, 0x19],
"": [0x7A, 0x1A],
"": [0x7A, 0x1B],
"": [0x7A, 0x1C],
"": [0x7A, 0x1D],
"": [0x7A, 0x1E],
"": [0x7A, 0x1F],
"": [0x7A, 0x20],
"": [0x7A, 0x21],
"": [0x7A, 0x22],
"": [0x7A, 0x23],
"": [0x7A, 0x24],
"": [0x7A, 0x25],
"": [0x7A, 0x26],
"": [0x7A, 0x27],
"": [0x7A, 0x28],
"": [0x7A, 0x29],
"": [0x7A, 0x2A],
"": [0x7A, 0x2B],
"": [0x7A, 0x2C],
"": [0x7A, 0x2D],
"": [0x7A, 0x2E],
"": [0x7A, 0x2F],
"": [0x7A, 0x30],
"": [0x7B, 0x01],
"": [0x7B, 0x02],
"": [0x7B, 0x03],
"": [0x7B, 0x04],
"": [0x7B, 0x05],
"": [0x7B, 0x06],
"": [0x7B, 0x07],
"": [0x7B, 0x08],
"": [0x7B, 0x09],
"": [0x7B, 0x0A],
"": [0x7B, 0x0B],
"": [0x7B, 0x0C],
"": [0x7B, 0x0D],
"": [0x7B, 0x0E],
"": [0x7B, 0x0F],
"": [0x7B, 0x10],
"": [0x7B, 0x11],
"": [0x7B, 0x12],
"": [0x7B, 0x13],
"": [0x7B, 0x14],
"退": [0x7B, 0x15],
"": [0x7B, 0x16],
"": [0x7B, 0x17],
"": [0x7B, 0x18],
"": [0x7B, 0x19],
"": [0x7B, 0x1A],
"": [0x7B, 0x1B],
"": [0x7B, 0x1C],
"": [0x7B, 0x1D],
"": [0x7B, 0x1E],
"": [0x7B, 0x1F],
"": [0x7B, 0x20],
"": [0x7B, 0x21],
"": [0x7B, 0x22],
"": [0x7B, 0x23],
"": [0x7B, 0x24],
"": [0x7B, 0x25],
"": [0x7B, 0x26],
"": [0x7B, 0x27],
"": [0x7B, 0x28],
"": [0x7B, 0x29],
"": [0x7B, 0x2A],
"": [0x7B, 0x2B],
"": [0x7B, 0x2C],
"": [0x7B, 0x2D],
"": [0x7B, 0x2E],
"": [0x7B, 0x2F],
"": [0x7B, 0x30],
"": [0x7C, 0x01],
"": [0x7C, 0x02],
"": [0x7C, 0x03],
"": [0x7C, 0x04],
"": [0x7C, 0x05],
"": [0x7C, 0x06],
"": [0x7C, 0x07],
"": [0x7C, 0x08],
"": [0x7C, 0x09],
"": [0x7C, 0x0A],
"": [0x7C, 0x0B],
"": [0x7C, 0x0C],
"": [0x7C, 0x0D],
"": [0x7C, 0x0E],
"": [0x7C, 0x0F],
"": [0x7C, 0x10],
"": [0x7C, 0x11],
"": [0x7C, 0x12],
"": [0x7C, 0x13],
"": [0x7C, 0x14],
"": [0x7C, 0x15],
"": [0x7C, 0x16],
"": [0x7C, 0x17],
"": [0x7C, 0x18],
"": [0x7C, 0x19],
"": [0x7C, 0x1A],
"": [0x7C, 0x1B],
"": [0x7C, 0x1C],
"": [0x7C, 0x1D],
"": [0x7C, 0x1E],
"": [0x7C, 0x1F],
"": [0x7C, 0x20],
"": [0x7C, 0x21],
"": [0x7C, 0x22],
"": [0x7C, 0x23],
"": [0x7C, 0x24],
"": [0x7C, 0x25],
"": [0x7C, 0x26],
"": [0x7C, 0x27],
"": [0x7C, 0x28],
"": [0x7C, 0x29],
"": [0x7C, 0x2A],
"": [0x7C, 0x2B],
"": [0x7C, 0x2C],
"": [0x7C, 0x2D],
"": [0x7C, 0x2E],
"": [0x7C, 0x2F],
"": [0x7C, 0x30],
"绿": [0x7D, 0x01],
"": [0x7D, 0x02],
"": [0x7D, 0x03],
"": [0x7D, 0x04],
"": [0x7D, 0x05],
"": [0x7D, 0x06],
"": [0x7D, 0x07],
"": [0x7D, 0x08],
"": [0x7D, 0x09],
"": [0x7D, 0x0A],
"": [0x7D, 0x0B],
"": [0x7D, 0x0C],
"": [0x7D, 0x0D],
"": [0x7D, 0x0E],
"": [0x7D, 0x0F],
"": [0x7D, 0x10],
"": [0x7D, 0x11],
"": [0x7D, 0x12],
"": [0x7D, 0x13],
"": [0x7D, 0x14],
"": [0x7D, 0x15],
"": [0x7D, 0x16],
"": [0x7D, 0x17],
"": [0x7D, 0x18],
"": [0x7D, 0x19],
"": [0x7D, 0x1A],
"": [0x7D, 0x1B],
"": [0x7D, 0x1C],
"": [0x7D, 0x1D],
"": [0x7D, 0x1E],
"": [0x7D, 0x1F],
"": [0x7D, 0x20],
"": [0x7D, 0x21],
"": [0x7D, 0x22],
"": [0x7D, 0x23],
"": [0x7D, 0x24],
"": [0x7D, 0x25],
"": [0x7D, 0x26],
"": [0x7D, 0x27],
"": [0x7D, 0x28],
"": [0x7D, 0x29],
"": [0x7D, 0x2A],
"": [0x7D, 0x2B],
"": [0x7D, 0x2C],
"": [0x7D, 0x2D],
"": [0x7D, 0x2E],
"": [0x7D, 0x2F],
"": [0x7D, 0x30],
"": [0x7E, 0x01],
"": [0x7E, 0x02],
"": [0x7E, 0x03],
"": [0x7E, 0x04],
"": [0x7E, 0x05],
"": [0x7E, 0x06],
"": [0x7E, 0x07],
"": [0x7E, 0x08],
"": [0x7E, 0x09],
"": [0x7E, 0x0A],
"": [0x7E, 0x0B],
"": [0x7E, 0x0C],
"": [0x7E, 0x0D],
"": [0x7E, 0x0E],
"": [0x7E, 0x0F],
"": [0x7E, 0x10],
"": [0x7E, 0x11],
"": [0x7E, 0x12],
"": [0x7E, 0x13],
"": [0x7E, 0x14],
"": [0x7E, 0x15],
"": [0x7E, 0x16],
"": [0x7E, 0x17],
"": [0x7E, 0x18],
"": [0x7E, 0x19],
"": [0x7E, 0x1A],
"": [0x7E, 0x1B],
"": [0x7E, 0x1C],
"": [0x7E, 0x1D],
"": [0x7E, 0x1E],
"": [0x7E, 0x1F],
"": [0x7E, 0x20],
"": [0x7E, 0x21],
"": [0x7E, 0x22],
"": [0x7E, 0x23],
"": [0x7E, 0x24],
"": [0x7E, 0x25],
"": [0x7E, 0x26],
"": [0x7E, 0x27],
"": [0x7E, 0x28],
"": [0x7E, 0x29],
"": [0x7E, 0x2A],
"": [0x7E, 0x2B],
"": [0x7E, 0x2C],
"": [0x7E, 0x2D],
"": [0x7E, 0x2E],
"": [0x7E, 0x2F],
"": [0x7E, 0x30],
"": [0x7F, 0x01],
"": [0x7F, 0x02],
"": [0x7F, 0x03],
"": [0x7F, 0x04],
"": [0x7F, 0x05],
"": [0x7F, 0x06],
"": [0x7F, 0x07],
"": [0x7F, 0x08],
"": [0x7F, 0x09],
"": [0x7F, 0x0A],
"": [0x7F, 0x0B],
"": [0x7F, 0x0C],
"": [0x7F, 0x0D],
"": [0x7F, 0x0E],
"": [0x7F, 0x0F],
"": [0x7F, 0x10],
"": [0x7F, 0x11],
"": [0x7F, 0x12],
"": [0x7F, 0x13],
"": [0x7F, 0x14],
"": [0x7F, 0x15],
"": [0x7F, 0x16],
"": [0x7F, 0x17],
"": [0x7F, 0x18],
"": [0x7F, 0x19],
"": [0x7F, 0x1A],
"": [0x7F, 0x1B],
"": [0x7F, 0x1C],
"": [0x7F, 0x1D],
"": [0x7F, 0x1E],
"": [0x7F, 0x1F],
"": [0x7F, 0x20],
"": [0x7F, 0x21],
"": [0x7F, 0x22],
"": [0x7F, 0x23],
"": [0x7F, 0x24],
"": [0x7F, 0x25],
"": [0x7F, 0x26],
"": [0x7F, 0x27],
"": [0x7F, 0x28],
"": [0x7F, 0x29],
"": [0x7F, 0x2A],
"": [0x7F, 0x2B],
"": [0x7F, 0x2C],
"": [0x7F, 0x2D],
"": [0x7F, 0x2E],
"": [0x7F, 0x2F],
"": [0x7F, 0x30],
"": [0x80, 0x01],
"": [0x80, 0x02],
"": [0x80, 0x03],
"": [0x80, 0x04],
"": [0x80, 0x05],
"": [0x80, 0x06],
"": [0x80, 0x07],
"": [0x80, 0x08],
"": [0x80, 0x09],
"": [0x80, 0x0A],
"": [0x80, 0x0B],
"": [0x80, 0x0C],
"": [0x80, 0x0D],
"": [0x80, 0x0E],
"": [0x80, 0x0F],
"": [0x80, 0x10],
"": [0x80, 0x11],
"": [0x80, 0x12],
"": [0x80, 0x13],
"": [0x80, 0x14],
"": [0x80, 0x15],
"": [0x80, 0x16],
"": [0x80, 0x17],
"": [0x80, 0x18],
"": [0x80, 0x19],
"": [0x80, 0x1A],
"": [0x80, 0x1B],
"": [0x80, 0x1C],
"": [0x80, 0x1D],
"": [0x80, 0x1E],
"": [0x80, 0x1F],
"": [0x80, 0x20],
"": [0x80, 0x21],
"": [0x80, 0x22],
"": [0x80, 0x23],
"": [0x80, 0x24],
"": [0x80, 0x25],
"": [0x80, 0x26],
"": [0x80, 0x27],
"": [0x80, 0x28],
"": [0x80, 0x29],
"": [0x80, 0x2A],
"": [0x80, 0x2B],
"": [0x80, 0x2C],
"": [0x80, 0x2D],
"": [0x80, 0x2E],
"": [0x80, 0x2F],
"": [0x80, 0x30],
"": [0x81, 0x01],
"": [0x81, 0x02],
"": [0x81, 0x03],
"": [0x81, 0x04],
"": [0x81, 0x05],
"": [0x81, 0x06],
"": [0x81, 0x07],
"": [0x81, 0x08],
"": [0x81, 0x09],
"": [0x81, 0x0A],
"": [0x81, 0x0B],
"": [0x81, 0x0C],
"": [0x81, 0x0D],
"": [0x81, 0x0E],
"": [0x81, 0x0F],
"": [0x81, 0x10],
"": [0x81, 0x11],
"": [0x81, 0x12],
"": [0x81, 0x13],
"": [0x81, 0x14],
"": [0x81, 0x15],
"": [0x81, 0x16],
"": [0x81, 0x17],
"": [0x81, 0x18],
"": [0x81, 0x19],
"": [0x81, 0x1A],
"": [0x81, 0x1B],
"": [0x81, 0x1C],
"": [0x81, 0x1D],
"": [0x81, 0x1E],
"": [0x81, 0x1F],
"": [0x81, 0x20],
"": [0x81, 0x21],
"": [0x81, 0x22],
"": [0x81, 0x23],
"": [0x81, 0x24],
"": [0x81, 0x25],
"": [0x81, 0x26],
"": [0x81, 0x27],
"": [0x81, 0x28],
"": [0x81, 0x29],
"": [0x81, 0x2A],
"": [0x81, 0x2B],
"": [0x81, 0x2C],
"": [0x81, 0x2D],
"": [0x81, 0x2E],
"": [0x81, 0x2F],
"": [0x81, 0x30],
"": [0x82, 0x01],
"": [0x82, 0x02],
"": [0x82, 0x03],
"": [0x82, 0x04],
"": [0x82, 0x05],
"": [0x82, 0x06],
"": [0x82, 0x07],
"": [0x82, 0x08],
"": [0x82, 0x09],
"": [0x82, 0x0A],
"": [0x82, 0x0B],
"": [0x82, 0x0C],
"": [0x82, 0x0D],
"": [0x82, 0x0E],
"": [0x82, 0x0F],
"": [0x82, 0x10],
"": [0x82, 0x11],
"": [0x82, 0x12],
"": [0x82, 0x13],
"": [0x82, 0x14],
"": [0x82, 0x15],
"": [0x82, 0x16],
"": [0x82, 0x17],
"": [0x82, 0x18],
"": [0x82, 0x19],
"": [0x82, 0x1A],
"": [0x82, 0x1B],
"": [0x82, 0x1C],
"怀": [0x82, 0x1D],
"": [0x82, 0x1E],
"": [0x82, 0x1F],
"": [0x82, 0x20],
"": [0x82, 0x21],
"": [0x82, 0x22],
"": [0x82, 0x23],
"": [0x82, 0x24],
"": [0x82, 0x25],
"": [0x82, 0x26],
"": [0x82, 0x27],
"": [0x82, 0x28],
"": [0x82, 0x29],
"": [0x82, 0x2A],
"": [0x82, 0x2B],
"": [0x82, 0x2C],
"": [0x82, 0x2D],
"": [0x82, 0x2E],
"": [0x82, 0x2F],
"": [0x82, 0x30],
"": [0x83, 0x01],
"": [0x83, 0x02],
"": [0x83, 0x03],
"": [0x83, 0x04],
"": [0x83, 0x05],
"": [0x83, 0x06],
"": [0x83, 0x07],
"": [0x83, 0x08],
"": [0x83, 0x09],
"": [0x83, 0x0A],
"": [0x83, 0x0B],
"": [0x83, 0x0C],
"": [0x83, 0x0D],
"": [0x83, 0x0E],
"": [0x83, 0x0F],
"": [0x83, 0x10],
"": [0x83, 0x11],
"": [0x83, 0x12],
"": [0x83, 0x13],
"": [0x83, 0x14],
"": [0x83, 0x15],
"": [0x83, 0x16],
"": [0x83, 0x17],
"": [0x83, 0x18],
"": [0x83, 0x19],
"": [0x83, 0x1A],
"": [0x83, 0x1B],
"": [0x83, 0x1C],
"": [0x83, 0x1D],
"": [0x83, 0x1E],
"湿": [0x83, 0x1F],
"": [0x83, 0x20],
"": [0x83, 0x21],
"": [0x83, 0x22],
"": [0x83, 0x23],
"": [0x83, 0x24],
"": [0x83, 0x25],
"": [0x83, 0x26],
"": [0x83, 0x27],
"": [0x83, 0x28],
"": [0x83, 0x29],
"": [0x83, 0x2A],
"": [0x83, 0x2B],
"": [0x83, 0x2C],
"": [0x83, 0x2D],
"": [0x83, 0x2E],
"": [0x83, 0x2F],
"": [0x83, 0x30],
"": [0x84, 0x01],
"": [0x84, 0x02],
"": [0x84, 0x03],
"": [0x84, 0x04],
"": [0x84, 0x05],
"": [0x84, 0x06],
"": [0x84, 0x07],
"": [0x84, 0x08],
"": [0x84, 0x09],
"": [0x84, 0x0A],
"": [0x84, 0x0B],
"": [0x84, 0x0C],
"": [0x84, 0x0D],
"": [0x84, 0x0E],
"": [0x84, 0x0F],
"": [0x84, 0x10],
"": [0x84, 0x11],
"": [0x84, 0x12],
"": [0x84, 0x13],
"": [0x84, 0x14],
"": [0x84, 0x15],
"": [0x84, 0x16],
"": [0x84, 0x17],
"": [0x84, 0x18],
"": [0x84, 0x19],
"": [0x84, 0x1A],
"": [0x84, 0x1B],
"": [0x84, 0x1C],
"": [0x84, 0x1D],
"": [0x84, 0x1E],
"": [0x84, 0x1F],
"": [0x84, 0x20],
"": [0x84, 0x21],
"": [0x84, 0x22],
"": [0x84, 0x23],
"": [0x84, 0x24],
"": [0x84, 0x25],
"": [0x84, 0x26],
"": [0x84, 0x27],
"": [0x84, 0x28],
"": [0x84, 0x29],
"": [0x84, 0x2A],
"": [0x84, 0x2B],
"": [0x84, 0x2C],
"": [0x84, 0x2D],
"": [0x84, 0x2E],
"": [0x84, 0x2F],
"": [0x84, 0x30],
"": [0x85, 0x01],
"": [0x85, 0x02],
"": [0x85, 0x03],
"": [0x85, 0x04],
"": [0x85, 0x05],
"": [0x85, 0x06],
"": [0x85, 0x07],
"": [0x85, 0x08],
"": [0x85, 0x09],
"": [0x85, 0x0A],
"": [0x85, 0x0B],
"": [0x85, 0x0C],
"": [0x85, 0x0D],
"": [0x85, 0x0E],
"": [0x85, 0x0F],
"": [0x85, 0x10],
"": [0x85, 0x11],
"": [0x85, 0x12],
"": [0x85, 0x13],
"": [0x85, 0x14],
"": [0x85, 0x15],
"": [0x85, 0x16],
"": [0x85, 0x17],
"": [0x85, 0x18],
"": [0x85, 0x19],
"": [0x85, 0x1A],
"": [0x85, 0x1B],
"": [0x85, 0x1C],
"": [0x85, 0x1D],
"": [0x85, 0x1E],
"": [0x85, 0x1F],
"": [0x85, 0x20],
"": [0x85, 0x21],
"": [0x85, 0x22],
"": [0x85, 0x23],
"": [0x85, 0x24],
"": [0x85, 0x25],
"": [0x85, 0x26],
"": [0x85, 0x27],
"": [0x85, 0x28],
"": [0x85, 0x29],
"": [0x85, 0x2A],
"": [0x85, 0x2B],
"": [0x85, 0x2C],
"": [0x85, 0x2D],
"": [0x85, 0x2E],
"": [0x85, 0x2F],
"": [0x85, 0x30],
"": [0x86, 0x01],
"": [0x86, 0x02],
"": [0x86, 0x03],
"": [0x86, 0x04],
"": [0x86, 0x05],
"": [0x86, 0x06],
"": [0x86, 0x07],
"": [0x86, 0x08],
"": [0x86, 0x09],
"": [0x86, 0x0A],
"": [0x86, 0x0B],
"": [0x86, 0x0C],
"": [0x86, 0x0D],
"": [0x86, 0x0E],
"": [0x86, 0x0F],
"": [0x86, 0x10],
"": [0x86, 0x11],
"": [0x86, 0x12],
"": [0x86, 0x13],
"": [0x86, 0x14],
"": [0x86, 0x15],
"": [0x86, 0x16],
"": [0x86, 0x17],
"": [0x86, 0x18],
"": [0x86, 0x19],
"": [0x86, 0x1A],
"": [0x86, 0x1B],
"": [0x86, 0x1C],
"": [0x86, 0x1D],
"": [0x86, 0x1E],
"": [0x86, 0x1F],
"": [0x86, 0x20],
"": [0x86, 0x21],
"": [0x86, 0x22],
"": [0x86, 0x23],
"": [0x86, 0x24],
"": [0x86, 0x25],
"": [0x86, 0x26],
"": [0x86, 0x27],
"": [0x86, 0x28],
"": [0x86, 0x29],
"": [0x86, 0x2A],
"": [0x86, 0x2B],
"": [0x86, 0x2C],
"": [0x86, 0x2D],
"": [0x86, 0x2E],
"": [0x86, 0x2F],
"": [0x86, 0x30],
"": [0x87, 0x01],
"": [0x87, 0x02],
"": [0x87, 0x03],
"": [0x87, 0x04],
"": [0x87, 0x05],
"": [0x87, 0x06],
"": [0x87, 0x07],
"": [0x87, 0x08],
"": [0x87, 0x09],
"": [0x87, 0x0A],
"": [0x87, 0x0B],
"": [0x87, 0x0C],
"": [0x87, 0x0D],
"": [0x87, 0x0E],
"": [0x87, 0x0F],
"": [0x87, 0x10],
"": [0x87, 0x11],
"": [0x87, 0x12],
"": [0x87, 0x13],
"": [0x87, 0x14],
"": [0x87, 0x15],
"": [0x87, 0x16],
"": [0x87, 0x17],
"": [0x87, 0x18],
"": [0x87, 0x19],
"": [0x87, 0x1A],
"": [0x87, 0x1B],
"饿": [0x87, 0x1C],
"": [0x87, 0x1D],
"": [0x87, 0x1E],
"": [0x87, 0x1F],
"": [0x87, 0x20],
"": [0x87, 0x21],
"": [0x87, 0x22],
"": [0x87, 0x23],
"": [0x87, 0x24],
"": [0x87, 0x25],
"": [0x87, 0x26],
"": [0x87, 0x27],
"": [0x87, 0x28],
"": [0x87, 0x29],
"": [0x87, 0x2A],
"": [0x87, 0x2B],
"": [0x87, 0x2C],
"": [0x87, 0x2D],
"": [0x87, 0x2E],
"": [0x87, 0x2F],
"": [0x87, 0x30],
"": [0x88, 0x01],
"": [0x88, 0x02],
"": [0x88, 0x03],
"": [0x88, 0x04],
"": [0x88, 0x05],
"": [0x88, 0x06],
"": [0x88, 0x07],
"": [0x88, 0x08],
"": [0x88, 0x09],
"": [0x88, 0x0A],
"": [0x88, 0x0B],
"": [0x88, 0x0C],
"": [0x88, 0x0D],
"": [0x88, 0x0E],
"": [0x88, 0x0F],
"": [0x88, 0x10],
"": [0x88, 0x11],
"": [0x88, 0x12],
"": [0x88, 0x13],
"": [0x88, 0x14],
"": [0x88, 0x15],
"": [0x88, 0x16],
"": [0x88, 0x17],
"": [0x88, 0x18],
"": [0x88, 0x19],
"": [0x88, 0x1A],
"": [0x88, 0x1B],
"": [0x88, 0x1C],
"": [0x88, 0x1D],
"": [0x88, 0x1E],
"": [0x88, 0x1F],
"": [0x88, 0x20],
"": [0x88, 0x21],
"": [0x88, 0x22],
"": [0x88, 0x23],
"": [0x88, 0x24],
"": [0x88, 0x25],
"": [0x88, 0x26],
"": [0x88, 0x27],
"": [0x88, 0x28],
"": [0x88, 0x29],
"": [0x88, 0x2A],
"": [0x88, 0x2B],
"": [0x88, 0x2C],
"": [0x88, 0x2D],
"": [0x88, 0x2E],
"": [0x88, 0x2F],
"": [0x88, 0x30],
"": [0x89, 0x01],
"": [0x89, 0x02],
"": [0x89, 0x03],
"": [0x89, 0x04],
"耀": [0x89, 0x05],
"": [0x89, 0x06],
"": [0x89, 0x07],
"": [0x89, 0x08],
"": [0x89, 0x09],
"": [0x89, 0x0A],
"": [0x89, 0x0B],
"西": [0x89, 0x0C],
"": [0x89, 0x0D],
"": [0x89, 0x0E],
"": [0x89, 0x0F],
"": [0x89, 0x10],
"": [0x89, 0x11],
"": [0x89, 0x12],
"": [0x89, 0x13],
"": [0x89, 0x14],
"": [0x89, 0x15],
"": [0x89, 0x16],
"": [0x89, 0x17],
"": [0x89, 0x18],
"": [0x89, 0x19],
"": [0x89, 0x1A],
"齿": [0x89, 0x1B],
"": [0x89, 0x1C],
"": [0x89, 0x1D],
"": [0x89, 0x1E],
"": [0x89, 0x1F],
"": [0x89, 0x20],
"": [0x89, 0x21],
"": [0x89, 0x22],
"": [0x89, 0x23],
"": [0x89, 0x24],
"": [0x89, 0x25],
"": [0x89, 0x26],
"": [0x89, 0x27],
"": [0x89, 0x28],
"": [0x89, 0x29],
"": [0x89, 0x2A],
"": [0x89, 0x2B],
"": [0x89, 0x2C],
"": [0x89, 0x2D],
"": [0x89, 0x2E],
"": [0x89, 0x2F],
"": [0x89, 0x30],
"": [0x8A, 0x01],
"": [0x8A, 0x02],
"": [0x8A, 0x03],
"": [0x8A, 0x04],
"": [0x8A, 0x05],
"": [0x8A, 0x06],
"": [0x8A, 0x07],
"": [0x8A, 0x08],
"殿": [0x8A, 0x09],
"": [0x8A, 0x0A],
"": [0x8A, 0x0B],
"": [0x8A, 0x0C],
"": [0x8A, 0x0D],
"": [0x8A, 0x0E],
"": [0x8A, 0x0F],
"": [0x8A, 0x10],
"": [0x8A, 0x11],
"": [0x8A, 0x12],
"": [0x8A, 0x13],
"": [0x8A, 0x14],
"": [0x8A, 0x15],
"": [0x8A, 0x16],
"": [0x8A, 0x17],
"": [0x8A, 0x18],
"": [0x8A, 0x19],
"": [0x8A, 0x1A],
"": [0x8A, 0x1B],
"": [0x8A, 0x1C],
"": [0x8A, 0x1D],
"": [0x8A, 0x1E],
"": [0x8A, 0x1F],
"": [0x8A, 0x20],
"": [0x8A, 0x21],
"": [0x8A, 0x22],
"": [0x8A, 0x23],
"": [0x8A, 0x24],
"": [0x8A, 0x25],
"": [0x8A, 0x26],
"": [0x8A, 0x27],
"": [0x8A, 0x28],
"": [0x8A, 0x29],
"": [0x8A, 0x2A],
"": [0x8A, 0x2B],
"": [0x8A, 0x2C],
"": [0x8A, 0x2D],
"": [0x8A, 0x2E],
"": [0x8A, 0x2F],
"": [0x8A, 0x30],
"": [0x8B, 0x01],
"": [0x8B, 0x02],
"": [0x8B, 0x03],
"": [0x8B, 0x04],
"": [0x8B, 0x05],
"": [0x8B, 0x06],
"": [0x8B, 0x07],
"": [0x8B, 0x08],
"": [0x8B, 0x09],
"": [0x8B, 0x0A],
"": [0x8B, 0x0B],
"": [0x8B, 0x0C],
"": [0x8B, 0x0D],
"": [0x8B, 0x0E],
"": [0x8B, 0x0F],
"": [0x8B, 0x10],
"": [0x8B, 0x11],
"": [0x8B, 0x12],
"": [0x8B, 0x13],
"": [0x8B, 0x14],
"": [0x8B, 0x15],
"": [0x8B, 0x16],
"": [0x8B, 0x17],
"": [0x8B, 0x18],
"": [0x8B, 0x19],
"": [0x8B, 0x1A],
"": [0x8B, 0x1B],
"": [0x8B, 0x1C],
"": [0x8B, 0x1D],
"": [0x8B, 0x1E],
"": [0x8B, 0x1F],
"": [0x8B, 0x20],
"": [0x8B, 0x21],
"": [0x8B, 0x22],
"": [0x8B, 0x23],
"": [0x8B, 0x24],
"": [0x8B, 0x25],
"": [0x8B, 0x26],
"": [0x8B, 0x27],
"": [0x8B, 0x28],
"": [0x8B, 0x29],
"": [0x8B, 0x2A],
"": [0x8B, 0x2B],
"": [0x8B, 0x2C],
"": [0x8B, 0x2D],
"": [0x8B, 0x2E],
"": [0x8B, 0x2F],
"": [0x8B, 0x30],
"": [0x8C, 0x01],
"": [0x8C, 0x02],
"": [0x8C, 0x03],
"": [0x8C, 0x04],
"": [0x8C, 0x05],
"": [0x8C, 0x06],
"": [0x8C, 0x07],
"": [0x8C, 0x08],
"": [0x8C, 0x09],
"": [0x8C, 0x0A],
"": [0x8C, 0x0B],
"": [0x8C, 0x0C],
"": [0x8C, 0x0D],
"": [0x8C, 0x0E],
"": [0x8C, 0x0F],
"": [0x8C, 0x10],
"": [0x8C, 0x11],
"": [0x8C, 0x12],
"": [0x8C, 0x13],
"": [0x8C, 0x14],
"": [0x8C, 0x15],
"": [0x8C, 0x16],
"": [0x8C, 0x17],
"": [0x8C, 0x18],
"": [0x8C, 0x19],
"": [0x8C, 0x1A],
"": [0x8C, 0x1B],
"": [0x8C, 0x1C],
"线": [0x8C, 0x1D],
"": [0x8C, 0x1E],
"": [0x8C, 0x1F],
"": [0x8C, 0x20],
"": [0x8C, 0x21],
"": [0x8C, 0x22],
"": [0x8C, 0x23],
"": [0x8C, 0x24],
"": [0x8C, 0x25],
"": [0x8C, 0x26],
"": [0x8C, 0x27],
"": [0x8C, 0x28],
"": [0x8C, 0x29],
"": [0x8C, 0x2A],
"": [0x8C, 0x2B],
"": [0x8C, 0x2C],
"": [0x8C, 0x2D],
"": [0x8C, 0x2E],
"": [0x8C, 0x2F],
"": [0x8C, 0x30],
"": [0x8D, 0x01],
"": [0x8D, 0x02],
"": [0x8D, 0x03],
"": [0x8D, 0x04],
"": [0x8D, 0x05],
"": [0x8D, 0x06],
"": [0x8D, 0x07],
"": [0x8D, 0x08],
"": [0x8D, 0x09],
"": [0x8D, 0x0A],
"": [0x8D, 0x0B],
"": [0x8D, 0x0C],
"": [0x8D, 0x0D],
"": [0x8D, 0x0E],
"": [0x8D, 0x0F],
"": [0x8D, 0x10],
"": [0x8D, 0x11],
"": [0x8D, 0x12],
"": [0x8D, 0x13],
"": [0x8D, 0x14],
"": [0x8D, 0x15],
"": [0x8D, 0x16],
"": [0x8D, 0x17],
"": [0x8D, 0x18],
"": [0x8D, 0x19],
"": [0x8D, 0x1A],
"": [0x8D, 0x1B],
"": [0x8D, 0x1C],
"": [0x8D, 0x1D],
"": [0x8D, 0x1E],
"": [0x8D, 0x1F],
"": [0x8D, 0x20],
"": [0x8D, 0x21],
"": [0x8D, 0x22],
"": [0x8D, 0x23],
"": [0x8D, 0x24],
"": [0x8D, 0x25],
"": [0x8D, 0x26],
"": [0x8D, 0x27],
"": [0x8D, 0x28],
"": [0x8D, 0x29],
"": [0x8D, 0x2A],
"": [0x8D, 0x2B],
"": [0x8D, 0x2C],
"": [0x8D, 0x2D],
"": [0x8D, 0x2E],
"": [0x8D, 0x2F],
"": [0x8D, 0x30],
"": [0x8E, 0x01],
"": [0x8E, 0x02],
"": [0x8E, 0x03],
"": [0x8E, 0x04],
"": [0x8E, 0x05],
"": [0x8E, 0x06],
"": [0x8E, 0x07],
"": [0x8E, 0x08],
"": [0x8E, 0x09],
"": [0x8E, 0x0A],
"": [0x8E, 0x0B],
"": [0x8E, 0x0C],
"": [0x8E, 0x0D],
"": [0x8E, 0x0E],
"": [0x8E, 0x0F],
"": [0x8E, 0x10],
"": [0x8E, 0x11],
"": [0x8E, 0x12],
"": [0x8E, 0x13],
"": [0x8E, 0x14],
"": [0x8E, 0x15],
"": [0x8E, 0x16],
"": [0x8E, 0x17],
"": [0x8E, 0x18],
"": [0x8E, 0x19],
"": [0x8E, 0x1A],
"": [0x8E, 0x1B],
"": [0x8E, 0x1C],
"": [0x8E, 0x1D],
"": [0x8E, 0x1E],
"": [0x8E, 0x1F],
"": [0x8E, 0x20],
"": [0x8E, 0x21],
"": [0x8E, 0x22],
"": [0x8E, 0x23],
"": [0x8E, 0x24],
"": [0x8E, 0x25],
"": [0x8E, 0x26],
"": [0x8E, 0x27],
"": [0x8E, 0x28],
"": [0x8E, 0x29],
"": [0x8E, 0x2A],
"": [0x8E, 0x2B],
"": [0x8E, 0x2C],
"": [0x8E, 0x2D],
"": [0x8E, 0x2E],
"": [0x8E, 0x2F],
"": [0x8E, 0x30],
"": [0x8F, 0x01],
"": [0x8F, 0x02],
"": [0x8F, 0x03],
"": [0x8F, 0x04],
"": [0x8F, 0x05],
"": [0x8F, 0x06],
"": [0x8F, 0x07],
"": [0x8F, 0x08],
"": [0x8F, 0x09],
"": [0x8F, 0x0A],
"": [0x8F, 0x0B],
"": [0x8F, 0x0C],
"": [0x8F, 0x0D],
"": [0x8F, 0x0E],
"": [0x8F, 0x0F],
"": [0x8F, 0x10],
"": [0x8F, 0x11],
"": [0x8F, 0x12],
"": [0x8F, 0x13],
"": [0x8F, 0x14],
"": [0x8F, 0x15],
"": [0x8F, 0x16],
"": [0x8F, 0x17],
"": [0x8F, 0x18],
"": [0x8F, 0x19],
"": [0x8F, 0x1A],
"": [0x8F, 0x1B],
"": [0x8F, 0x1C],
"": [0x8F, 0x1D],
"": [0x8F, 0x1E],
"": [0x8F, 0x1F],
"": [0x8F, 0x20],
"": [0x8F, 0x21],
"": [0x8F, 0x22],
"": [0x8F, 0x23],
"": [0x8F, 0x24],
"": [0x8F, 0x25],
"": [0x8F, 0x26],
"": [0x8F, 0x27],
"": [0x8F, 0x28],
"": [0x8F, 0x29],
"": [0x8F, 0x2A],
"": [0x8F, 0x2B],
"": [0x8F, 0x2C],
"": [0x8F, 0x2D],
"": [0x8F, 0x2E],
"": [0x8F, 0x2F],
"": [0x8F, 0x30],
}
def check_if_correct_charset(char, cur_charset, filename, lineno):
warn_msg = f"{filename}:{lineno}: Warning: character '{char}' is present but is completely in a wrong charset currently set. Add {{}} before the character to silence this warning."
if char == " " or char == " ":
return -1, cur_charset
elif char in CHARSET_KANA and cur_charset is not CHARSET_KANA:
print(warn_msg.format("[Charset Kana]"))
return 0, CHARSET_KANA
elif char in CHARSET_LATIN and cur_charset is not CHARSET_LATIN:
print(warn_msg.format("[Charset Latin]"))
return 1, CHARSET_LATIN
elif char in CHARSET_KANJI and cur_charset is not CHARSET_KANJI:
print(warn_msg.format("[Charset Kanji]"))
return 2, CHARSET_KANJI
elif char in CHARSET_BUTTONS and cur_charset is not CHARSET_BUTTONS:
print(warn_msg.format("[Charset Buttons]"))
return 3, CHARSET_BUTTONS
return -1, cur_charset
2021-02-10 01:12:28 +01:00
def strip_c_comments(text):
def replacer(match):
s = match.group(0)
if s.startswith("/"):
2021-02-10 01:12:28 +01:00
return " "
else:
return s
2021-02-10 01:12:28 +01:00
pattern = re.compile(
r'//.*?$|/\*.*?\*/|\'(?:\\.|[^\\\'])*\'|"(?:\\.|[^\\"])*"',
re.DOTALL | re.MULTILINE,
2021-02-10 01:12:28 +01:00
)
return re.sub(pattern, replacer, text)
if __name__ == "__main__":
if len(argv) < 3:
print("usage: parse_compile.py [version] [in.msg] [out.msgpack] [--c]")
exit(1)
version = argv[1]
filename = argv[2]
outfile = argv[3]
2022-01-08 16:45:42 +01:00
is_output_format_c = "--c" in argv
messages = []
message = None
with open(filename, "r") as f:
2021-02-10 01:12:28 +01:00
source = strip_c_comments(f.read())
lineno = 1
2021-02-10 01:12:28 +01:00
directive = ""
indent_level = 0
if version == "jp":
charset = CHARSET_KANA
2024-02-03 15:27:25 +01:00
elif version == "ique":
charset = CHARSET_IQUE
else:
charset = CHARSET_STANDARD
font_stack = [0]
sound_stack = [0]
color_stack = [0x0A]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
fx_stack = []
2021-02-10 01:12:28 +01:00
style = None
explicit_end = False
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
choiceindex = -1
while len(source) > 0:
2021-02-10 15:26:58 +01:00
if source[0] == "\r" or source[0] == "\t":
2021-02-10 01:12:28 +01:00
source = source[1:]
continue
if source[0] == "\n":
lineno += 1
source = source[1:]
2021-02-10 01:12:28 +01:00
for i in range(indent_level):
2021-02-10 15:26:58 +01:00
if source[0] == "\t":
2021-02-10 01:12:28 +01:00
source = source[1:]
else:
break
continue
if message is None:
2021-02-10 01:12:28 +01:00
directive = ""
while source[0] != " ":
if source[0] == "\n":
lineno += 1
elif source[0] == "\r":
pass
else:
directive += source[0]
source = source[1:]
directive = directive.split(":")
2022-01-08 16:45:42 +01:00
if directive[0] != "#message":
print(f"{filename}:{lineno}: expected #message directive")
2021-02-10 01:12:28 +01:00
exit(1)
2022-01-08 16:45:42 +01:00
if is_output_format_c:
if len(directive) != 2:
print(f"{filename}:{lineno}: expected #message:NAME directive")
exit(1)
2021-02-10 01:12:28 +01:00
2022-01-08 16:45:42 +01:00
message = Message(directive[1], None, None)
else:
2022-01-08 16:45:42 +01:00
if len(directive) != 3:
print(f"{filename}:{lineno}: expected #message:SECTION:INDEX directive")
exit(1)
2021-02-10 01:12:28 +01:00
2022-01-08 16:45:42 +01:00
section = int(directive[1], 16)
if directive[2].startswith("(") and directive[2].endswith(")"):
name = directive[2][1:-1]
index = None
else:
name = None
index = int(directive[2], 16)
directive = ""
2021-02-10 01:12:28 +01:00
2022-01-08 16:45:42 +01:00
message = Message(name, section, index)
2021-02-10 01:12:28 +01:00
messages.append(message)
if version == "jp":
charset = CHARSET_KANA
2024-02-03 15:27:25 +01:00
elif version == "ique":
charset = CHARSET_IQUE
else:
charset = CHARSET_STANDARD
2021-02-10 01:12:28 +01:00
while source[0] != "{":
source = source[1:]
if source[0] == "\n":
lineno += 1
elif source[0] == "\r":
pass
elif source[0] == "{":
break
elif source[0] != " " and source[0] != "\t":
print(f"{filename}:{lineno}: expected opening brace ('{{')")
exit(1)
source = source[1:] # {
2021-02-10 01:12:28 +01:00
# count indent level
indent_level = 0
2021-02-10 15:26:58 +01:00
"""
2021-02-10 01:12:28 +01:00
while source[0] == " " or source[0] == "\t" or source[0] == "\n" or source[0] == "\r":
if source[0] == " " or source[0] == "\t":
indent_level += 1
source = source[1:]
2021-02-10 15:26:58 +01:00
"""
else:
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
command, args, named_args, source = parse_command(source)
if command:
2021-02-10 01:12:28 +01:00
if command == "end":
message.bytes += [0xFD]
2021-02-10 01:12:28 +01:00
explicit_end = True
elif command == "raw":
2021-02-10 01:12:28 +01:00
message.bytes += [*args]
elif command == "br":
message.bytes += [0xF0]
2021-02-10 01:12:28 +01:00
elif command == "wait":
message.bytes += [0xF1]
2021-02-10 01:12:28 +01:00
elif command == "pause":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xF2, args[0]]
elif command == "next":
message.bytes += [0xFB]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "yield":
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x04]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "savecolor":
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x24]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "restorecolor":
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x25]
elif command == "color":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: color command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
color = color_to_code(args[0], style)
if color is None:
2021-02-10 01:12:28 +01:00
print(f"{filename}:{lineno}: unknown color")
exit(1)
message.bytes += [0xFF, 0x05, color]
# color_stack.append(color)
# elif command == "/color":
2021-02-10 01:12:28 +01:00
# color_stack.pop()
# message.bytes += [0xFF, 0x05, color_stack[0]]
elif command == "style":
message.bytes += [0xFC]
2021-02-10 01:12:28 +01:00
style = args[0]
args = args[1:]
if type(style) is int:
2021-02-10 01:12:28 +01:00
message.bytes += [style, *args]
else:
if style == "right":
message.bytes += [0x01]
elif style == "left":
message.bytes += [0x02]
elif style == "center":
message.bytes += [0x03]
elif style == "tattle":
message.bytes += [0x04]
elif style == "choice":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
pos = named_args.get("pos")
if not isinstance(pos, list) or len(pos) != 2:
print(f"{filename}:{lineno}: 'choice' style requires pos=_,_")
exit(1)
size = named_args.get("size")
if not isinstance(size, list) or len(size) != 2:
print(f"{filename}:{lineno}: 'choice' style requires size=_,_")
exit(1)
message.bytes += [
0x05,
pos[0],
pos[1],
size[0],
size[1],
]
elif style == "inspect":
message.bytes += [0x06]
elif style == "sign":
message.bytes += [0x07]
elif style == "lamppost":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
height = named_args.get("height")
if not isinstance(height, int):
print(f"{filename}:{lineno}: 'lamppost' style requires height=_")
2021-02-10 01:12:28 +01:00
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0x08, height]
elif style == "postcard":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
index = named_args.get("index")
if not isinstance(index, int):
print(f"{filename}:{lineno}: 'postcard' style requires index=_")
2021-02-10 01:12:28 +01:00
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0x09, index]
elif style == "popup":
message.bytes += [0x0A]
elif style == "popup2":
message.bytes += [0x0B]
elif style == "upgrade":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
pos = named_args.get("pos")
if not isinstance(pos, list) or len(pos) != 2:
print(f"{filename}:{lineno}: 'upgrade' style requires pos=_,_")
exit(1)
size = named_args.get("size")
if not isinstance(size, list) or len(size) != 2:
print(f"{filename}:{lineno}: 'upgrade' style requires size=_,_")
exit(1)
message.bytes += [
0x0C,
pos[0],
pos[1],
size[0],
size[1],
]
elif style == "narrate":
message.bytes += [0x0D]
elif style == "epilogue":
message.bytes += [0x0E]
elif command == "font":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: font command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
font = args[0]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
if font == "standard":
font = 0
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif font == "menu":
font = 1
elif font == "menu2":
font = 2
elif font == "title":
font = 3
elif font == "subtitle":
font = 4
if type(font) is not int:
print(f"{filename}:{lineno}: unknown font '{font}'")
exit(1)
message.bytes += [0xFF, 0x00, font]
# font_stack.append(font)
if font == 3 or font == 4:
charset = CHARSET_CREDITS
else:
if version == "jp":
charset = CHARSET_KANA
2024-02-03 15:27:25 +01:00
elif version == "ique":
charset = CHARSET_IQUE
else:
charset = CHARSET_STANDARD
2021-02-10 01:12:28 +01:00
# elif command == "/font":
# font_stack.pop()
# message.bytes += [0xFF, 0x00, font_stack[0]]
# if font == 3 or font == 4:
# charset = CHARSET_CREDITS
# else:
# charset = CHARSET
elif command == "charset":
if version != "jp":
print(f"{filename}:{lineno}: charset command is only supported in the JP version")
exit(1)
if len(args) != 1:
print(f"{filename}:{lineno}: charset command requires 1 parameter")
exit(1)
arg_charset = args[0]
if arg_charset == "kana":
arg_charset = 0
elif arg_charset == "latin":
arg_charset = 1
elif arg_charset == "kanji":
arg_charset = 2
elif arg_charset == "buttons":
arg_charset = 3
if type(arg_charset) is not int:
print(f"{filename}:{lineno}: unknown charset '{arg_charset}'")
exit(1)
message.bytes += [0xF3 + arg_charset]
if arg_charset == 0:
charset = CHARSET_KANA
elif arg_charset == 1:
charset = CHARSET_LATIN
elif arg_charset == 2:
charset = CHARSET_KANJI
elif arg_charset == 3:
charset = CHARSET_BUTTONS
2021-02-10 01:12:28 +01:00
elif command == "inputoff":
message.bytes += [0xFF, 0x07]
2021-02-10 01:12:28 +01:00
elif command == "inputon":
message.bytes += [0xFF, 0x08]
2021-02-10 01:12:28 +01:00
elif command == "delayoff":
message.bytes += [0xFF, 0x09]
2021-02-10 01:12:28 +01:00
elif command == "delayon":
message.bytes += [0xFF, 0x0A]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "charwidth":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x0B, args[0]]
elif command == "scroll":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x0C, args[0]]
elif command == "size":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
args = args[0]
if len(args) == 1:
args.append(args[0])
2021-02-10 01:12:28 +01:00
if len(args) != 2:
print(f"{filename}:{lineno}: {command} command requires 2 parameters")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x0D, args[0], args[1]]
2021-02-10 01:12:28 +01:00
elif command == "sizereset":
message.bytes += [0xFF, 0x0E]
elif command == "speed":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
delay = named_args.get("delay")
if not isinstance(delay, int):
print(f"{filename}:{lineno}: {command} command requires delay=_")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
chars = named_args.get("chars")
if not isinstance(delay, int):
print(f"{filename}:{lineno}: {command} command requires chars=_")
exit(1)
message.bytes += [0xFF, 0x0F, delay, chars]
2021-02-10 01:12:28 +01:00
# elif command == "pos":
# if "y" not in named_args:
# print(f"{filename}:{lineno}: pos command requires parameter: y (x is optional)")
# exit(1)
# if "x" in named_args:
# message.bytes += [0xFF, 0x10, named_args["x"], named_args["y"]]
# else:
# message.bytes += [0xFF, 0x11, named_args["y"]]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "setposx":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x10, args[0] >> 8, args[0] & 0xFF]
elif command == "setposy":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x11, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "right":
if len(args) == 0:
if version == "jp":
charset_byte, charset = check_if_correct_charset("[right]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xB4]
else:
message.bytes += [0x95]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
else:
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
message.bytes += [0xFF, 0x12, args[0]]
elif command == "down":
if len(args) == 0:
if version == "jp":
charset_byte, charset = check_if_correct_charset("[down]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xB2]
else:
message.bytes += [0x93]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
else:
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
message.bytes += [0xFF, 0x13, args[0]]
elif command == "up":
if len(args) == 0:
if version == "jp":
charset_byte, charset = check_if_correct_charset("[up]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xB1]
else:
message.bytes += [0x92]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
else:
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
message.bytes += [0xFF, 0x14, args[0]]
elif command == "inlineimage":
index = named_args.get("index")
if not isinstance(index, int):
print(f"{filename}:{lineno}: {command} command requires index=_")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x15, index]
elif command == "animsprite":
spriteid = named_args.get("spriteid")
raster = named_args.get("raster")
# TODO: named sprite id and raster
if not isinstance(spriteid, int):
print(f"{filename}:{lineno}: {command} command requires spriteid=_")
exit(1)
if not isinstance(raster, int):
print(f"{filename}:{lineno}: {command} command requires raster=_")
exit(1)
message.bytes += [
0xFF,
0x16,
spriteid >> 8,
spriteid & 0xFF,
raster,
]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "itemicon":
itemid = named_args.get("itemid")
# TODO: itemname
if not isinstance(itemid, int):
print(f"{filename}:{lineno}: {command} command requires itemid=_")
exit(1)
message.bytes += [0xFF, 0x17, itemid >> 8, itemid & 0xFF]
elif command == "image":
index = named_args.get("index")
pos = named_args.get("pos") # xx,y
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
hasborder = named_args.get("hasborder")
alpha = named_args.get("alpha")
fadeamount = named_args.get("fadeamount")
if not isinstance(index, int):
print(f"{filename}:{lineno}: {command} command requires index=_")
exit(1)
if not isinstance(pos, list) or len(pos) != 2:
print(f"{filename}:{lineno}: {command} command requires pos=_,_")
exit(1)
if not isinstance(hasborder, int):
print(f"{filename}:{lineno}: {command} command requires hasborder=_")
exit(1)
if not isinstance(alpha, int):
print(f"{filename}:{lineno}: {command} command requires alpha=_")
exit(1)
if not isinstance(fadeamount, int):
print(f"{filename}:{lineno}: {command} command requires fadeamount=_")
exit(1)
message.bytes += [
0xFF,
0x18,
index,
pos[0] >> 8,
pos[0] & 0xFF,
pos[1],
hasborder,
alpha,
fadeamount,
]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "hideimage":
fadeamount = named_args.get("fadeamount", 0)
if not isinstance(fadeamount, int):
print(f"{filename}:{lineno}: {command} command requires fadeamount=_")
exit(1)
2021-02-10 01:12:28 +01:00
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x19, fadeamount]
elif command == "animdelay":
index = named_args.get("index")
delay = named_args.get("delay")
if not isinstance(index, int):
print(f"{filename}:{lineno}: {command} command requires index=_")
exit(1)
if not isinstance(delay, int):
print(f"{filename}:{lineno}: {command} command requires delay=_")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x1A, 0, index, delay]
elif command == "animloop":
if len(args) != 2:
print(f"{filename}:{lineno}: {command} command requires 2 parameters")
exit(1)
message.bytes += [0xFF, 0x1B, args[0], args[1]]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "animdone":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
message.bytes += [0xFF, 0x1C, args[0]]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "setcursorpos":
index = named_args.get("index")
pos = named_args.get("pos")
if not isinstance(index, int):
print(f"{filename}:{lineno}: {command} command requires index=_")
exit(1)
if not isinstance(pos, list) or len(pos) != 2:
print(f"{filename}:{lineno}: {command} command requires pos=_,_")
exit(1)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x1D, index, pos, pos]
elif command == "cursor":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: cursor command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x1E, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "option" and choiceindex == -1:
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: option command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x21, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "endchoice" and choiceindex == -1:
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x1F, args[0]]
elif command == "setcancel":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x20, args[0]]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
# elif command == "startfx":
# message.bytes += [0xFF, 0x26, resolve_effect(args[0]), *args[1:]]
# elif command == "endfx":
# message.bytes += [0xFF, 0x27, resolve_effect(args[0]), *args[1:]]
elif command == "/fx":
message.bytes += [0xFF, 0x27, fx_stack.pop()]
elif command == "shake":
fx_stack.append(0x00)
message.bytes += [0xFF, 0x26, 0x00]
elif command == "/shake":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x00]
elif command == "wave":
fx_stack.append(0x01)
message.bytes += [0xFF, 0x26, 0x01]
elif command == "/wave":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x01]
elif command == "noiseoutline":
fx_stack.append(0x02)
message.bytes += [0xFF, 0x26, 0x02]
elif command == "/noiseoutline":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x02]
elif command == "static":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
fx_stack.append(0x03)
message.bytes += [0xFF, 0x26, 0x03, args[0]]
elif command == "/static":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x03]
elif command == "blur":
_dir = named_args.get("dir")
if _dir == "x":
_dir = 0
elif _dir == "y":
_dir = 1
elif _dir == "xy":
_dir = 2
if not isinstance(_dir, int):
print(f"{filename}:{lineno}: {command} command requires dir=_")
exit(1)
fx_stack.append(0x05)
message.bytes += [0xFF, 0x26, 0x05, _dir]
elif command == "/blur":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x05]
elif command == "rainbow":
fx_stack.append(0x06)
message.bytes += [0xFF, 0x26, 0x06]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "/rainbow":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x06]
elif command == "ditherfade":
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
fx_stack.append(0x07)
message.bytes += [0xFF, 0x26, 0x07, args[0]]
elif command == "/ditherfade":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x07]
elif command == "printrising":
fx_stack.append(0x0A)
message.bytes += [0xFF, 0x26, 0x0A]
elif command == "/printrising":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x0A]
elif command == "printgrowing":
fx_stack.append(0x0B)
message.bytes += [0xFF, 0x26, 0x0B]
elif command == "/printgrowing":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x0B]
elif command == "sizejitter":
fx_stack.append(0x0C)
message.bytes += [0xFF, 0x26, 0x0C]
elif command == "/sizejitter":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x0C]
elif command == "sizewave":
fx_stack.append(0x0D)
message.bytes += [0xFF, 0x26, 0x0D]
elif command == "/sizewave":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x0D]
elif command == "dropshadow":
fx_stack.append(0x0E)
message.bytes += [0xFF, 0x26, 0x0E]
elif command == "/dropshadow":
fx_stack.pop()
message.bytes += [0xFF, 0x27, 0x0E]
elif command == "var":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: var command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x28, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "centerx":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x29, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "rewindoff":
message.bytes += [0xFF, 0x2A, 0]
elif command == "rewindon":
message.bytes += [0xFF, 0x2A, 1]
elif command == "customvoice":
soundids = named_args.get("soundids")
if not isinstance(soundids, list) or len(pos) != 2:
print(f"{filename}:{lineno}: {command} command requires soundids=_,_")
exit(1)
message.bytes += [
0xFF,
0x2C,
soundids[0] >> 24,
(soundids[0] >> 16) & 0xFF,
(soundids[0] >> 8) & 0xFF,
soundids[0] & 0xFF,
soundids[1] >> 24,
(soundids[1] >> 16) & 0xFF,
(soundids[1] >> 8) & 0xFF,
soundids[1] & 0xFF,
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
]
elif command == "volume":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x2E, *args]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "voice":
2021-02-10 01:12:28 +01:00
if len(args) != 1:
print(f"{filename}:{lineno}: {command} command requires 1 parameter")
exit(1)
2021-02-10 01:12:28 +01:00
sound = args[0]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
if sound == "normal":
sound = 0
elif sound == "bowser":
sound = 1
elif sound == "star" or sound == "spirit":
sound = 2
if type(sound) is not int:
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
print(f"{filename}:{lineno}: unknown voice '{sound}'")
exit(1)
message.bytes += [0xFF, 0x2F, sound]
# sound_stack.append(sound)
2021-02-10 01:12:28 +01:00
# elif command == "/sound":
# sound_stack.pop()
# message.bytes += [0xFF, 0x2F, sound_stack[0]]
elif command == "a":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
color_code = color_to_code("blue", "button")
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x00,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x98,
0xFF,
0x25,
]
elif command == "b":
color_code = color_to_code(
named_args.get("color", "green"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x01,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x99,
0xFF,
0x25,
]
elif command == "l":
color_code = color_to_code(
named_args.get("color", "gray"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x08,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9A,
0xFF,
0x25,
]
elif command == "r":
color_code = color_to_code(
named_args.get("color", "gray"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x09,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9B,
0xFF,
0x25,
]
elif command == "z":
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
color_code = color_to_code("grey", "button")
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x07,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9C,
0xFF,
0x25,
]
elif command == "c-up":
color_code = color_to_code(
named_args.get("color", "yellow"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x03,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9D,
0xFF,
0x25,
]
elif command == "c-down":
color_code = color_to_code(
named_args.get("color", "yellow"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x04,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9E,
0xFF,
0x25,
]
elif command == "c-left":
color_code = color_to_code(
named_args.get("color", "yellow"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x05,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0x9F,
0xFF,
0x25,
]
elif command == "c-right":
color_code = color_to_code(
named_args.get("color", "yellow"),
named_args.get("ctx", "button"),
)
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x06,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xA0,
0xFF,
0x25,
]
elif command == "start":
color_code = color_to_code(
named_args.get("color", "red"),
named_args.get("ctx", "button"),
) #
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
assert color_code is not None
if version == "jp":
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xF6,
0x02,
0xFF,
0x25,
]
else:
message.bytes += [
0xFF,
0x24,
0xFF,
0x05,
color_code,
0xA1,
0xFF,
0x25,
]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~a":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~a]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x00]
else:
message.bytes += [0x98]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~b":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~b]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x01]
else:
message.bytes += [0x99]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~l":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~l]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x08]
else:
message.bytes += [0x9A]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~r":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~r]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x09]
else:
message.bytes += [0x9B]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~z":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~z]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x07]
else:
message.bytes += [0x9C]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~c-up":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~c-up]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x03]
else:
message.bytes += [0x9D]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~c-down":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~c-down]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x04]
else:
message.bytes += [0x9E]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~c-left":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~c-left]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x05]
else:
message.bytes += [0x9F]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~c-right":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~c-right]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x06]
else:
message.bytes += [0xA0]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "~start":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[~start]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x02]
else:
message.bytes += [0xA1]
elif command == "note":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[note]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x6A]
else:
message.bytes += [0x00]
elif command == "heart":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[heart]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xBD]
else:
message.bytes += [0x90]
elif command == "star":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[star]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xBE]
else:
message.bytes += [0x91]
2021-02-10 01:12:28 +01:00
elif command == "left":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[left]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xB3]
else:
message.bytes += [0x94]
elif command == "circle":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[circle]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x61]
else:
message.bytes += [0x96]
elif command == "cross":
if version == "jp":
charset_byte, charset = check_if_correct_charset("[cross]", charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0x62]
else:
message.bytes += [0x97]
elif command == "katakana":
if version != "jp":
print(f"{filename}:{lineno}: Command katakana is only supported in the JP version")
exit(1)
kana_char = args[0]
if kana_char == "smalln":
charset_byte, charset = check_if_correct_charset(
"[katakana smalln]", charset, filename, lineno
)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xC5]
else:
print(f"{filename}:{lineno}: Invalid or unimplemented katakana character name {kana_char}")
exit(1)
elif command == "hiragana":
if version != "jp":
print(f"{filename}:{lineno}: Command hiragana is only supported in the JP version")
exit(1)
kana_char = args[0]
if kana_char == "smalln":
charset_byte, charset = check_if_correct_charset(
"[hiragana smalln]", charset, filename, lineno
)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
message.bytes += [0xC4]
else:
print(f"{filename}:{lineno}: Invalid or unimplemented hiragana character name {kana_char}")
exit(1)
elif command == "fullspace":
message.bytes += [0xF8]
elif command == "halfspace":
message.bytes += [0xF9]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "savepos":
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x22]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "restorepos":
2021-02-10 01:12:28 +01:00
message.bytes += [0xFF, 0x23]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "enablecdownnext":
message.bytes += [0xFF, 0x2B]
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "beginchoice":
choiceindex = 0
message.bytes += [0xFF, 0x09] # delayoff
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
elif command == "option" and choiceindex >= 0:
message.bytes += [0xFF, 0x1E, choiceindex] # cursor n
message.bytes += [0xFF, 0x21, choiceindex] # option n
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
choiceindex += 1
elif command == "endchoice" and choiceindex >= 0:
cancel = named_args.get("cancel")
message.bytes += [0xFF, 0x21, 255] # option 255
message.bytes += [0xFF, 0x0A] # delayon
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
if isinstance(cancel, int):
message.bytes += [0xFF, 0x20, cancel] # setcancel n
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
message.bytes += [0xFF, 0x1F, choiceindex] # endchoice n
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
choiceindex = -1
elif command == "animation" and choiceindex >= 0:
# TODO
print(f"{filename}:{lineno}: '{command}' tag is not yet implemented")
exit(1)
else:
print(f"{filename}:{lineno}: unknown command '{command}'")
exit(1)
else:
2021-02-10 01:12:28 +01:00
if source[0] == "}":
if not explicit_end:
2021-02-10 14:43:55 +01:00
print(f"{filename}:{lineno}: warning: string lacks an [end] command")
# message.bytes += [0xFD]
2021-02-10 01:12:28 +01:00
explicit_end = False
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
# sanity check
for b in message.bytes:
if not isinstance(b, int):
print(b)
2021-02-10 01:12:28 +01:00
# padding
while len(message.bytes) % 4 != 0:
message.bytes += [0x00]
message = None
source = source[1:] # }
2021-02-10 01:12:28 +01:00
indent_level = 0
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
choiceindex = -1
2021-02-10 01:12:28 +01:00
continue
if source[0] == "\\":
source = source[1:]
if version == "jp" and charset is not CHARSET_CREDITS:
charset_byte, charset = check_if_correct_charset(source[0], charset, filename, lineno)
if charset_byte != -1:
message.bytes += [0xF3 + charset_byte]
elif (
source[0] not in CHARSET_KANA
and source[0] not in CHARSET_LATIN
and source[0] not in CHARSET_KANJI
and source[0] not in CHARSET_BUTTONS
):
print(f"{filename}:{lineno}: unsupported character '{source[0]}' for current font")
exit(1)
data = charset[source[0]]
if type(data) is int:
message.bytes.append(data)
else:
message.bytes += data
source = source[1:]
else:
if source[0] in charset:
data = charset[source[0]]
if type(data) is int:
message.bytes.append(data)
else:
message.bytes += data
source = source[1:]
else:
print(f"{filename}:{lineno}: unsupported character '{source[0]}' for current font")
exit(1)
if message != None:
Splat refactor (#257) * all non-world rodata migrated * data disasm * kinda working * updated yaml * bloop * linker header * configure 2.0 * bin * mass rename to remove code_ * pause rename * battle partner stuff * whew * more renames * more renames * more renaming * it builds! * updates * remove main prefix * one more thing * crc, yay0 * .data, .rodata, .bss * img * dead_atan2 * it buildsgit add -A * split battle/partner/6FAD10 * rm &s on sleepy_sheep syms * sha1sum ninja rule description * OK but commented out PaperMarioMapFS and PaperMarioNpcSprites * uncomment * fix mapfs * match func_8003CFB4 * . * clean up and name npc_iter_no_op * npc.c * enable cc warnings * name npc_find_near * use singular options.asset_path * smores * cc_dsl only when needed * kinda fix configure for splat refactor2 * ok! * new msg format * remove old msg format docs * slight bug fixes, splat adjustment * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "cfc140bb76" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "cfc140bb76" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * git subrepo pull (merge) --force tools/splat subrepo: subdir: "tools/splat" merged: "85349befcd" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "85349befcd" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" * Update symbol addrs * git subrepo pull tools/splat subrepo: subdir: "tools/splat" merged: "a44631e194" upstream: origin: "https://github.com/ethteck/splat.git" branch: "master" commit: "a44631e194" git-subrepo: version: "0.4.3" origin: "https://github.com/ingydotnet/git-subrepo" commit: "2f68596" Co-authored-by: Alex Bates <hi@imalex.xyz>
2021-04-13 09:47:52 +02:00
print(f"{filename}: missing [end]")
exit(1)
2022-01-08 16:45:42 +01:00
if is_output_format_c:
with open(outfile, "w") as f:
f.write(f"#include <ultra64.h>\n")
for message in messages:
f.write(f"static s8 {message.name}[] = {{\n")
for b in message.bytes:
f.write(f"0x{b:02X},")
f.write(f"\n}};\n")
else:
with open(outfile, "wb") as f:
msgpack.pack(
[
{
"section": message.section,
"index": message.index,
"name": message.name,
"bytes": bytes(message.bytes),
}
for message in messages
],
f,
)