Skip to content

Commit ccbf26c

Browse files
committed
Write follower value to party slot 0 instead of party slot 1
1 parent 8aec2a3 commit ccbf26c

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

OriginalVersion/SaveFileHack.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,9 @@ def stringToInt(string, encoding="utf-8", errors="surrogatepass"):
139139
else:
140140
CurrentFollowerValue = 0x4F7F
141141

142-
f.seek(OffsetFirstFile + 0x11EC, 0)
142+
f.seek(OffsetFirstFile + 0x11E8, 0)
143143
f.write(CurrentFollowerValue.to_bytes(4, byteorder="big", signed=False))
144-
f.seek(OffsetSecondFile + 0x11EC, 0)
144+
f.seek(OffsetSecondFile + 0x11E8, 0)
145145
f.write(CurrentFollowerValue.to_bytes(4, byteorder="big", signed=False))
146146

147147
# Write the init asm function

WebVersion/main.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -78,10 +78,10 @@ function patch(view, fileNumber) {
7878
patchFilesBytes(0x11C4, makeStrBytes('DOL Loader\0'));
7979
// Set the current follower ID.
8080
if (version === "G8MJ01" /* JP */) {
81-
patchFilesU32(0x11EC, 0x4F04);
81+
patchFilesU32(0x11E8, 0x4F04);
8282
}
8383
else {
84-
patchFilesU32(0x11EC, 0x4F7F);
84+
patchFilesU32(0x11E8, 0x4F7F);
8585
}
8686
// Write the init ASM function.
8787
if (version === "G8MJ01" /* JP */) {

WebVersion/main.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -106,9 +106,9 @@ function patch(view: DataView, fileNumber: number): PatchErrorCode {
106106

107107
// Set the current follower ID.
108108
if (version === GameVersion.JP) {
109-
patchFilesU32(0x11EC, 0x4F04);
109+
patchFilesU32(0x11E8, 0x4F04);
110110
} else {
111-
patchFilesU32(0x11EC, 0x4F7F);
111+
patchFilesU32(0x11E8, 0x4F7F);
112112
}
113113

114114
// Write the init ASM function.

0 commit comments

Comments
 (0)