Skip to content

Commit ddcabb3

Browse files
authored
Merge pull request #729 from kagnusdev/dump/statscreen
Dump statscreen graphics
2 parents 2ecac26 + cb2546e commit ddcabb3

21 files changed

+243
-59
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ tools/agbcc
7474
*.fk
7575
data/banim/*.bin
7676
graphics/map/layout/*.bin
77+
graphics/statscreen/*.bin
7778

7879
*.feimg1.bin
7980
*.feimg2.bin

Makefile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ MID2AGB := tools/mid2agb/mid2agb$(EXE)
3434
TEXTENCODE := tools/textencode/textencode$(EXE)
3535
JSONPROC := tools/jsonproc/jsonproc$(EXE)
3636
FETSATOOL := scripts/gfxtools/tsa_generator.py
37+
TMAP2TSA := scripts/tmap2tsa.py
3738
MARTOMAP := scripts/mar_to_map.py
3839

3940
ifeq ($(UNAME),Darwin)
@@ -109,6 +110,8 @@ clean:
109110
$(RM) -rf $(DEPS_DIR)
110111
# Remove battle animation binaries
111112
$(RM) -f data/banim/*.bin data/banim/*.o data/banim/*.lz data/banim/*.bak
113+
# Remove TSA files generated from tilemaps
114+
$(RM) -f graphics/statscreen/*.bin
112115
# Remove converted sound samples
113116
$(RM) -f $(SAMPLE_SUBDIR)/*.bin
114117
$(RM) -f $(MAP_LAYOUT_SUBDIR)/*.bin

asm/arm.s

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -258,10 +258,14 @@ void TmApplyTsa(u16 * tilemap, const void * _tsa, int tileref)
258258
u16 * dst = TILEMAP_LOCATED(tilemap, height, 0); // dest is set from the bottom to top
259259

260260
int w, h;
261-
for (h = 0; h < height; h++)
261+
for (h = height; h >= 0 ; h--)
262262
{
263-
for (w = 0; w < width; w++)
264-
*dst++ = *src++;
263+
for (w = width; w >= 0 ; w--)
264+
{
265+
*dst = *src + tileref;
266+
dst++;
267+
src++;
268+
}
265269

266270
dst = dst - width - 1 - 0x20;
267271
}

data/data_A01CC4.s

Lines changed: 28 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,26 @@ gUnknown_08A01F04: @ 0x08A01F04
1212
gUnknown_08A01F24: @ 0x08A01F24
1313
.incbin "baserom.gba", 0xA01F24, 0x1CC
1414

15-
.global gUnknown_08A020F0
16-
gUnknown_08A020F0: @ 0x08A020F0
17-
.incbin "baserom.gba", 0xA020F0, 0xF4
15+
.global Img_StatscreenEquipmentText
16+
Img_StatscreenEquipmentText: @ 0x08A020F0
17+
.incbin "graphics/statscreen/StatscreenEquipmentText.4bpp.lz"
1818

19-
.global gUnknown_08A021E4
20-
gUnknown_08A021E4: @ 0x08A021E4
21-
.incbin "baserom.gba", 0xA021E4, 0x20
19+
.global Pal_StatscreenEquipmentText
20+
Pal_StatscreenEquipmentText: @ 0x08A021E4
21+
.incbin "graphics/statscreen/StatscreenEquipmentText.gbapal"
2222

23-
.global gUnknown_08A02204
24-
gUnknown_08A02204: @ 0x08A02204
25-
.incbin "baserom.gba", 0xA02204, 0x4C
23+
.global Tsa_StatscreenEquipmentBG
24+
Tsa_StatscreenEquipmentBG: @ 0x08A02204
25+
.incbin "graphics/statscreen/StatscreenEquipmentBG.bin.lz"
2626

27-
.global gUnknown_08A02250
28-
gUnknown_08A02250: @ 0x08A02250
29-
.incbin "baserom.gba", 0xA02250, 0x24
27+
.global Tsa_StatscreenEquipedWeaponHighlight
28+
Tsa_StatscreenEquipedWeaponHighlight: @ 0x08A02250
29+
.incbin "graphics/statscreen/StatscreenEquipedWeaponHighlight.bin"
30+
.align 2, 0
3031

31-
.global gUnknown_08A02274
32-
gUnknown_08A02274: @ 0x08A02274
33-
.incbin "baserom.gba", 0xA02274, 0x588
32+
.global Img_StatscreenObjs
33+
Img_StatscreenObjs: @ 0x08A02274
34+
.incbin "graphics/statscreen/StatscreenObjs.4bpp.lz"
3435

3536
.global gUnknown_08A027FC
3637
gUnknown_08A027FC: @ 0x08A027FC
@@ -118,27 +119,27 @@ gUnknown_08A03354: @ 0x08A03354
118119

119120
.global Img_StatscreenBG
120121
Img_StatscreenBG: @ 0x08A03368
121-
.incbin "baserom.gba", 0xA03368, 0x2BA8
122+
.incbin "graphics/statscreen/StatscreenBG.4bpp.lz"
122123

123124
.global Tsa_StatscreenBG
124125
Tsa_StatscreenBG: @ 0x08A05F10
125-
.incbin "baserom.gba", 0xA05F10, 0x550
126+
.incbin "graphics/statscreen/StatscreenBG.bin.lz"
126127

127128
.global Pal_StatscreenBG
128129
Pal_StatscreenBG: @ 0x08A06460
129-
.incbin "baserom.gba", 0xA06460, 0x80
130+
.incbin "graphics/statscreen/StatscreenBG.gbapal"
130131

131-
.global gUnknown_08A064E0
132-
gUnknown_08A064E0: @ 0x08A064E0
133-
.incbin "baserom.gba", 0xA064E0, 0xD1C
132+
.global Img_StatscreenHalo
133+
Img_StatscreenHalo: @ 0x08A064E0
134+
.incbin "graphics/statscreen/StatscreenHalo.4bpp.lz"
134135

135-
.global gUnknown_08A071FC
136-
gUnknown_08A071FC: @ 0x08A071FC
137-
.incbin "baserom.gba", 0xA071FC, 0x120
136+
.global Tsa_StatscreenHalo
137+
Tsa_StatscreenHalo: @ 0x08A071FC
138+
.incbin "graphics/statscreen/StatscreenHalo.bin.lz"
138139

139-
.global gUnknown_08A0731C
140-
gUnknown_08A0731C: @ 0x08A0731C
141-
.incbin "baserom.gba", 0xA0731C, 0x20
140+
.global Pal_StatscreenHalo
141+
Pal_StatscreenHalo: @ 0x08A0731C
142+
.incbin "graphics/statscreen/StatscreenHalo.gbapal"
142143

143144
.global Img_ConfigUiSprites
144145
Img_ConfigUiSprites: @ 0x08A0733C
9.58 KB
Loading
1.17 KB
Binary file not shown.
32 Bytes
Binary file not shown.
255 Bytes
Loading
192 Bytes
Binary file not shown.
273 Bytes
Loading

0 commit comments

Comments
 (0)