Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update signatures for 6.5.5a. #105

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions app/clarity.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,13 +114,13 @@ def scan_for_npc_names():
if npc_list := pattern_scan(pattern=npc_monster_pattern, return_multiple=True):
for address in npc_list:
npc_type = read_bytes(address + 36, 2)
if npc_type == b"\xBC\x71":
if npc_type == b"\x68\x0C":
data = "NPC"
translated_names = translated_npc_names
elif npc_type == b"\x6C\x5F":
elif npc_type == b"\xF4\xF9":
data = "MONSTER"
translated_names = translated_monster_names
elif npc_type == b"\xD4\x61":
elif npc_type == b"\x60\xFC":
data = "AI_NAME"
else:
continue
Expand Down
27 changes: 13 additions & 14 deletions app/common/signatures.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,19 +64,18 @@
#############################################

# pattern for npc/monsters to rename. (49 bytes)
# npc: F0 1C ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 BC 71 ?? ?? ?? ?? ?? ?? 74 58 ?? ?? E?
# monster: F0 1C ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 6C 5F ?? ?? ?? ?? ?? ?? 74 58 ?? ?? E?
# party: F0 1C ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 D4 61 ?? ?? ?? ?? ?? ?? 74 58 ?? ?? E?
npc_monster_pattern = rb"\xF0\x1C..\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00....\x00.......\x00\x00\x00\x00.\x00\x00\x00[\xBC\x6C\xD4][\x71\x5F\x61]......\x74\x58..[\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEF]"
# npc: D4 86 ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 68 0C ?? ?? ?? ?? ?? ?? A4 0C ?? ?? E?
# monster: D4 86 ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 F4 F9 ?? ?? ?? ?? ?? ?? A4 0C ?? ?? E?
# party: D4 86 ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? ?? ?? ?? ?? 00 00 00 00 ?? 00 00 00 60 FC ?? ?? ?? ?? ?? ?? A4 0C ?? ?? E?
npc_monster_pattern = rb"\xD4\x86..\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00....\x00.......\x00\x00\x00\x00.\x00\x00\x00[\x68\xF4\x60][\x0C\xF9\xFC]......\xA4\x0C..[\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEF]"

# pattern for concierge names (13 bytes)
# 38 58 ?? ?? ?? ?? ?? ?? 74 58 ?? ?? E?
concierge_name_pattern = rb"\x38\x58......\x74\x58..[\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEF]"
# 1C F2 ?? ?? ?? ?? ?? ?? A4 0C ?? ?? E3
concierge_name_pattern = rb"\x1C\xF2......\xA4\x0C..[\xE3\xE4\xE5\xE6\xE7\xE8\xE9\xEF]"

# pattern for player names to rename. (49 bytes)
# F0 1C ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 10 DF ?? 0? ?? ?? ?? ?? ?? ?? ?? 0? E?
player_name_pattern = rb"\xF0\x1C..\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00....\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x10\xDF.[\x01\x02].......[\x01\x02][\xE3\xEF]"

# D4 86 ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 ?? ?? ?? ?? 00 ?? ?? ?? 00 00 00 00 00 00 00 00 00 00 00 00 48 7D ?? 0? ?? ?? ?? ?? ?? ?? ?? 0? E3
player_name_pattern = rb"\xD4\x86..\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00....\x00...\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x48\x7D.[\x01\x02].......[\x01\x02][\xE3\xEF]"
# pattern for sibling names to rename. (52 bytes)
# 0? ?? 00 ?? 00 00 00 ?? ?? 00 02 ?? 00 ?? 00 ?? 00 00 00 00 00 ?? 00 ?? ?? 00 00 ?? ?? ?? 00 ?? 00 ?? ?? ?? 00 ?? 00 ?? ?? 00 00 00 00 ?? ?? 00 00 00 00 E?
sibling_name_pattern = rb"[\x01\x02].\x00.\x00\x00\x00..\x00\x02.\x00.\x00.\x00\x00\x00\x00\x00.\x00..\x00\x00...\x00.\x00...\x00.\x00..\x00\x00\x00\x00..\x00\x00\x00\x00[\xE3\xEF]"
Expand All @@ -101,9 +100,9 @@

# Main walkthrough text that loads on login. I can't figure out what function loads this on login,
# so scanning for this for now. AC is also preventing this from just being accessible via hooks. (17 bytes)
# D0 ?? ?? ?? 00 00 00 00 04 02 00 00 10 00 00 00 E?
walkthrough_pattern = rb"\xD0...\x00\x00\x00\x00\x04\x02\x00\x00\x10\x00\x00\x00[\xE3\xE4\xE5\xE6\xE7\xE8\xE9]"
# 90 ?? ?? ?? 00 00 00 00 04 02 00 00 10 00 00 00 E?
walkthrough_pattern = rb"\x90...\x00\x00\x00\x00\x04\x02\x00\x00\x10\x00\x00\x00[\xE3\xE4\xE5\xE6\xE7\xE8\xE9]"

# "動画・生配信を行う際は" found in notice box on login. Bytes are just the words encoded into utf-8
# E5 8B 95 E7 94 BB E3 83 BB E7 94 9F E9 85 8D E4 BF A1 E3 82 92 E8 A1 8C E3 81 86 E9 9A 9B E3 81 AF
notice_string = rb"\xE5\x8B\x95\xE7\x94\xBB\xE3\x83\xBB\xE7\x94\x9F\xE9\x85\x8D\xE4\xBF\xA1\xE3\x82\x92\xE8\xA1\x8C\xE3\x81\x86\xE9\x9A\x9B\xE3\x81\xAF"
# "『ドラゴンクエストX" found in notice box on login. Bytes are just the words encoded into utf-8
# E3 80 8E E3 83 89 E3 83 A9 E3 82 B4 E3 83 B3 E3 82 AF E3 82 A8 E3 82 B9 E3 83 88 58
notice_string = rb"\xE3\x80\x8E\xE3\x83\x89\xE3\x83\xA9\xE3\x82\xB4\xE3\x83\xB3\xE3\x82\xAF\xE3\x82\xA8\xE3\x82\xB9\xE3\x83\x88\x58"
4 changes: 1 addition & 3 deletions scripts/find_names.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,7 @@

# add your party members here
party_names = [
"ももちゃん",
"べっぴん",
"ミルラ",
"アカツキ"
]


Expand Down