User:Nerketur/sandbox

temp stuff: .SSB files: SSB Header:

0000: (1 word) numConst 0002: (1 word) numString 0004: (1 word) offset of first constant (base after header) 0006: (1 word) size of const data 0008: (1 word) Size of string table 000A: (1 word) (unknown) SSB Script area: 0000: (word) LEN -- Usually first constant offset + 2*numConst 0002: (word) numGroups 0004: (6*numGroups) group entries (4+6*numGroups): (LEN words) script SSB groups: 0000: (word) location in script 0002: (word) type? 0004: (word) unknown. (char if type = 3) SSB Constants/strings (Tables that don't exist are omitted.): 0000: (offset) Table SSB Constant table entry: 0000: (word) start of string + 2* num strings. SSB String table entry: 0000: (word) start of string (from end of script section+1). SSB Const/String: Strings are null-terminated. Notes: Constant offsetts - 2*numStrings = actual constant locations.

Header: See info in thread.

.SSA files:

current known: 'Header': Shows where things start. 1 wrd: number of groups (N) 1 wrd: length of non-groups/start of groups (Z) 1 wrd: start of ? (A) 1 wrd: Start of Pokémon positions (B) 1 wrd: start of object positions (C) 1 wrd: start of backgrounds (default) (D) 1 wrd: start of third non-6 group (E) 1 wrd: start of movements (F) 1 wrd: start of 4 unknown words (usually 9, -1, -1, -1) (G) A wrds from start: 4 wrd: Something. B words from start: (chara group) 8 word group, FFFF for not used? usually last two FFFF C words from start: (object group) 10wordGroup, FFFF for not used? usually last two FFFF D words from start: (backgrounds) 10wordGroup, FFFF for not used? E words from start: 8wordGroup, FFFF for not used? F words from start: (movements) 8wordGroup, usually all used G words from start: ??? Z words from start: 10wordGroup x N

8word group: AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHH AAAA: Pokemon to change BBBB: Direction to face CCCC: X coordinate -- 8 pixel increments. -- 0 = half of shadow there DDDD: Y coordinate -- 0 = Shadow 1 pixel down EEEE: x offset? 0-1, 2-3, 4-7 = 0, 4, 16 FFFF: y offset? 0-1, 2-3, 4-7 = 0, 4, invis GGGG: Numbered entry (YY in u?XXYY.ssb), usually FFFF (means none) HHHH: ? usually FFFF

10word group C: AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJ AAAA: Object to change BBBB: ? CCCC: ? DDDD: ? EEEE: X coordinate -- 8 pixel increments. FFFF: Y coordinate GGGG: ? -- x offset? 0-1, 2-3, 4-7 = 0, 4, ? HHHH: ? -- y offset? 0-1, 2-3, 4-7 = 0, 4, ? IIII: Number of entry (enter) to run on interact, FFFF if none JJJJ: ? usually FFFF

10word group D: AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJ AAAA: Spot used in code B1 BBBB: ? CCCC: ? DDDD: ? EEEE: X coordinate -- 8 pixel increments. FFFF: Y coordinate GGGG: ? -- x offset? 0-1, 2-3, 4-7 = 0, 4, 16 (with y 0) HHHH: ? -- y offset? 0-1, 2-3, 4-7 = 0, 4, invis (with x 0) IIII: Number of entry (enter) to run on interact, FFFF if none JJJJ: ? usually FFFF

10word group Z: AAAABBBBCCCCDDDDEEEEFFFFGGGGHHHHIIIIJJJJ AAAA: ? BBBB: ? CCCC: ? DDDD: ? EEEE: ? FFFF: ? GGGG: ? HHHH: ? IIII: ? JJJJ: ?