Skip to content

Commit efa24b8

Browse files
committed
2018/11/13 updoot
1 parent 0c36269 commit efa24b8

4 files changed

Lines changed: 27 additions & 12 deletions

File tree

BonusContent.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
FE8U
2+
3+
The bonus content menu is called by the savemenu via the function at FE8U:80B1688
4+
5+
Bonus content data has is a list of $10 (?) entries of size $14:
6+
+00 | bit[2] | 0 for nothing, 1 for new, 2 for old
7+
+01 | byte | 0 for nothing, 1 for item, 2 for money, 3 for ?, 4 for ?
8+
+02 | byte | item id (even for money!)
9+
+03 | byte[] | a string?
10+
11+
02001168 (pointed to at 08A21598) seems to be used to list the bonus content items currently displayed on the menu
12+
It's an array of 4 byte entries:
13+
+00 | byte | claim entry
14+
+01 | byte | 1 if not claimed

RealSaveData.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ Save 3 SRAM Offset: 5B54
2121
SAVE (not Suspend!) DATA: (total size: DC8)
2222
000 -> 04C | Chapter Data (0x4C)
2323
04C -> 778 | Saved Units (51 * 0x24) (size: 0x72C)
24-
778 -> 780 | RNG State?
25-
780 -> 79C | free? (not that exciting since thats a whopping 0x1C (28) bytes)
24+
778 -> 780 | World map RNG state
25+
780 -> 79C | gap?
2626
79C -> 84C | Convoy Items
2727
84C -> CAC | BWL Entries (size 0x460)
2828
CAC -> D6C | Chapter turn count/time data (array in RAM at 0203ECF4) (size 0xC0)
29-
D88 -> D8C | Word at 0203EDB4 (size 0x04)
29+
D88 -> D8C | Bonus content claim flags
3030
D6C -> D85 | Global Events
31-
D8C -> ??? | TODO: check (080A70B0 (arg r0 = SRAM out, r1 = 03005280), same as Suspend+0x1F44)
32-
DB0 -> DC8 | 030017AC, size 0x18, Same as Suspend+0xAE0
31+
D8C -> DB0 | World map stuff
32+
DB0 -> DC8 | valni/lagdou completion data (permanent)
3333

3434
080A533C | SaveUnit | Arguments: r0 = Unit, r1 = Target SRAM
3535
080A5794 | LoadSavedUnit | Arguments: r0 = Source SRAM, r1 = Unit

SaveMetadata.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ E000000, general metadata:
4242
+20 | byte[?] | probably support related
4343
+40 | byte[$20] | "bit array", indexed by character id. If the bit is set, it means the character is known (used for support viewer).
4444
+60 | short | 16bit checksum of the first $50 bytes of this struct
45-
+62 | byte | ?
45+
+62 | byte | last game save slot
4646
+63 | byte | if 1, save to second suspend slot?
4747

4848
E000064, array of 7 "save metadata" (one for each save block):
4949
+00 | word | magic number:
5050
0x40624 for save or suspend (blocks 0-4)
5151
0x20112 for link arena stuff (block 5)
5252
0x20223 for block 6
53-
+04 | short | also magic number (fixed 0x200A)
53+
+04 | short | also magic number (fixed 0x200A for non-"blank" blocks, 0 otherwise)
5454
+06 | byte | block type: 0 for saves; 1 for suspends; 2 for link arena data; 3 for whatever block 6 is; FF for no block
5555
+08 | short | block start offset
5656
+0A | short | block size

SuspendSaveData.txt

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +7,18 @@ SAVE STRUCT:
77
+0x00 | 0x4C bytes if Chapter Data
88
+0x4C | 0x38 bytes of Action Struct (First 6 bytes are current RN State)
99
+0x84 | 51*0x34 = 0xA5C bytes of Player Units (See SAVE UNIT STRUCT for details)
10-
+0xAE0 |
10+
+0xAE0 | 0x18 bytes of valni/lagdou completion data (permanent)
11+
+0xAF8 | gap?
1112
+0xB14 | (50+10)*0x34 = 0xC30 bytes of Enemy then Other Units (See SAVE UNIT STRUCT for details)
1213
+0x1744 | 0x200 bytes of Traps
1314
+0x1944 | 0xB0 bytes of convoy item data (first 0x63 bytes are 1 byte = 1 item, next 0x4D are 6 bits = 1 item use)
1415
+0x19F4 | 0x460 bytes of BWL Data
15-
+0x1E54 | 0xC0 bytes if ???? (Straight copy from 203ECF4)
16-
+0x1F14 | 0x10 bytes of some generated data
16+
+0x1E54 | 0xC0 bytes of turn counts and time for cleared chapters
17+
+0x1F14 | 0x10 bytes of something related to the unit menu I think?
1718
+0x1F24 | 0x19 bytes of global event data
1819
+0x1F3D | 0x05 bytes of local event data
19-
+0x1F44 |
20-
+0x1F68 |
20+
+0x1F44 | 0x24 bytes of world map stuff
21+
+0x1F68 | 0x0C bytes of valni/lagdou current run data (I think?)
2122
+0x1F74 | 0x04 bytes of the event counter
2223

2324
SAVE UNIT STRUCT: (Size: 0x34) (Reverse Engineered from routine 080A5E10:ConvertUnitStructToSaveUnitStruct)

0 commit comments

Comments
 (0)