- 192
- Posts
- 17
- Years
- Seen Oct 28, 2020
Use Un-LZ to modify the tileset (Pos: 08e9c798 Nr.: 1635) and write the new position to 0813b848 The tilemap is stored at 08e9ca44. Open this tilemap in a hex-editor. You'll see something like "01 00 01 00 ... 02 00 03 00 04 00 01 00 01 00". "01 00" is an empty tile. "02 00" is a (c)-tile. The distance of two "02 00" is the lenght of one line. Go to the last "02 00" and add this distance to your current position. Now type "02 00 03 00 04 00 05 00 01 00 01 00 01 00". Continue counting from 2b for each tile. "2b 00" for one tile. "2b 00 2c 00" for two tiles. etc.
Spoiler:
Code:
0813b81c 480a ldr r0, [$0813b848] (=$08e9c798)
0813b81e 26c0 mov r6, #0xc0
0813b820 04f6 lsl r6, r6, #0x13
0813b822 199b add r3, r3, r6
0813b824 1c19 add r1, r3, #0x0
0813b826 f0a4 bl $081e07f0 LZ77UnCompVram(08e9c798,06000000)
0813b82a 4808 ldr r0, [$0813b84c] (=$08e9ca24)
0813b82c 1c29 add r1, r5, #0x0
0813b82e 2220 mov r2, #0x20
0813b830 f738 bl $08073a58
0813b834 4806 ldr r0, [$0813b850] (=$08e9ca44)
0813b836 19a4 add r4, r4, r6
0813b838 22a0 mov r2, #0xa0
0813b83a 0092 lsl r2, r2, #0x02
0813b83c 1c21 add r1, r4, #0x0
0813b83e f0a4 bl $081e07ec CpuSet(08e9ca44,06000000+3800,280)
Last edited: