Parcourir la source

fix new songs not being integreated into pymap and songlist

Michael Panzlaff il y a 6 ans
Parent
révision
a4341e9737

assets/sound/Music/MID/SEQ_BGM_P_CAVE.mid → assets/sound/Music/MID/SEQ_BGM_CAVE_02.mid Voir le fichier


assets/sound/Music/MID/SEQ_BGM_P_SCHOOL.mid → assets/sound/Music/MID/SEQ_BGM_SCHOOL.mid Voir le fichier


+ 5
- 5
assets/sound/Songtable/_songtable.s Voir le fichier

@@ -1962,7 +1962,7 @@ _songtable:
1962 1962
 
1963 1963
 @**************** Song 0391 ****************@
1964 1964
 
1965
-	.word	SEQ_BGM_INVALID
1965
+	.word	SEQ_BGM_CAVE_02
1966 1966
 	.byte	0x00, 0x00, 0x00, 0x00
1967 1967
 
1968 1968
 @**************** Song 0392 ****************@
@@ -2072,7 +2072,7 @@ _songtable:
2072 2072
 
2073 2073
 @**************** Song 0413 ****************@
2074 2074
 
2075
-    .word   SEQ_BGM_INVALID
2075
+    .word   SEQ_BGM_SCHOOL
2076 2076
     .byte   0x00, 0x00, 0x00, 0x00
2077 2077
 
2078 2078
 @**************** Song 0414 ****************@
@@ -2112,7 +2112,7 @@ _songtable:
2112 2112
 
2113 2113
 @**************** Song 0421 ****************@
2114 2114
 
2115
-    .word   SEQ_BGM_INVALID
2115
+    .word   SEQ_BGM_GYM_FOREST
2116 2116
     .byte   0x00, 0x00, 0x00, 0x00
2117 2117
 
2118 2118
 @**************** Song 0422 ****************@
@@ -2197,12 +2197,12 @@ _songtable:
2197 2197
 
2198 2198
 @**************** Song 0438 ****************@
2199 2199
 
2200
-    .word   SEQ_BGM_INVALID
2200
+    .word   SEQ_BGM_P_MT_1
2201 2201
     .byte   0x00, 0x00, 0x00, 0x00
2202 2202
 
2203 2203
 @**************** Song 0439 ****************@
2204 2204
 
2205
-    .word   SEQ_BGM_INVALID
2205
+    .word   SEQ_BGM_P_ROGI
2206 2206
     .byte   0x00, 0x00, 0x00, 0x00
2207 2207
 
2208 2208
 @**************** Song 0440 ****************@

+ 2
- 2
makefile Voir le fichier

@@ -31,7 +31,7 @@ CHARMAP := charmap.txt
31 31
 
32 32
 DEFINES   := -DBPRE -DSOFTWARE_VERSION=0 -DLAN_DE
33 33
 ASFLAGS   := -mthumb
34
-CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fdiagnostics-show-option -mlong-calls -march=armv4t -Og -std=c11 -Werror -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color=always $(DEFINES)
34
+CFLAGS    := -mthumb -mthumb-interwork -g -mcpu=arm7tdmi -fdiagnostics-show-option -mlong-calls -march=armv4t -Og -std=c11 -Wall -Wextra -Wunreachable-code -I$(PAGB_INCLUDE) -Isrc/include -Igenerated_image -fdiagnostics-color=always $(DEFINES)
35 35
 GRITFLAGS := -ftc -fa
36 36
 LDFLAGS   := -z muldefs
37 37
 BLDPATH   := object
@@ -239,4 +239,4 @@ run: rom
239 239
 
240 240
 src/include/pymap_constants.h: sots-private/map/sots.json.constants sots-private/map/sots.json.config
241 241
 	pymapconstex.py sots-private/map/sots.json
242
-	$(shell  ./generate_pymap_header.sh)
242
+	$(shell  ./generate_pymap_header.sh)

+ 1
- 1
sots-private

@@ -1 +1 @@
1
-Subproject commit 91a073b54ceade52defaa078953aaf5407370c1b
1
+Subproject commit cc4061c000589ba7767d352304378ed3767f16a7

+ 95
- 10
src/include/constants/pymap/songs.h Voir le fichier

@@ -1,21 +1,106 @@
1
-#define SEQ_BGM_TOWN_HESPERIA 0x10b
2
-#define SEQ_BGM_CITY_CARUN 0x110
3
-#define SEQ_BGM_CITY_URBANIA 0x111
4
-#define SEQ_BGM_ROUTE_1 0x12e
5
-#define SEQ_BGM_ROUTE_2 0x12f
6
-#define SEQ_BGM_PC 0x15b
7
-#define SEQ_BGM_LAB 0x17e
1
+#define SEQ_BGM_TOWN_HESPERIA 0x15e
2
+#define SEQ_BGM_CITY_CARUN 0x15f
8 3
 #define SEQ_BGM_P_FOY 0x160
4
+#define SEQ_BGM_TOWN_04 0x161
5
+#define SEQ_BGM_TOWN_02 0x162
6
+#define SEQ_BGM_TOWN_06 0x163
7
+#define SEQ_BGM_TOWN_07 0x164
8
+#define SEQ_BGM_TOWN_01 0x165
9
+#define SEQ_BGM_CITY_01 0x166
10
+#define SEQ_BGM_CITY_02 0x167
11
+#define SEQ_BGM_CITY_03 0x168
12
+#define SEQ_BGM_CITY_04 0x169
13
+#define SEQ_BGM_CITY_05 0x16a
14
+#define SEQ_BGM_CITY_06 0x16b
15
+#define SEQ_BGM_TOWN_03 0x16c
16
+#define SEQ_BGM_R_01 0x172
17
+#define SEQ_BGM_R_02 0x173
18
+#define SEQ_BGM_R_03 0x174
19
+#define SEQ_BGM_R_04 0x175
20
+#define SEQ_BGM_R_05 0x176
21
+#define SEQ_BGM_R_06 0x177
22
+#define SEQ_BGM_R_07 0x178
23
+#define SEQ_BGM_R_08 0x179
9 24
 #define SEQ_BGM_CAVE_GUARDIAN 0x186
25
+#define SEQ_BGM_CAVE_02 0x187
26
+#define SEQ_BGM_PC 0x15b
27
+#define SEQ_BGM_LAB 0x17e
28
+#define SEQ_BGM_GYM 0x19b
29
+#define SEQ_BGM_LAB 0x19c
30
+#define SEQ_BGM_SCHOOL 0x19d
31
+#define SEQ_BGM_PC 0x1a0
32
+#define SEQ_BGM_MART 0x1a2
33
+#define SEQ_BGM_GYM_GHOST 0x1a3
34
+#define SEQ_BGM_GYM_WATER 0x1a4
35
+#define SEQ_BGM_GYM_FOREST 0x1a5
36
+#define SEQ_BGM_P_04 0x1ae
37
+#define SEQ_BGM_DESERT 0x1af
38
+#define SEQ_BGM_P_01 0x1b1
39
+#define SEQ_BGM_P_02 0x1b2
40
+#define SEQ_BGM_P_FOY 0x1b3
10 41
 #define SEQ_BGM_P_TOL 0x1b4
11 42
 #define SEQ_BGM_P_DFOY 0x1b5
43
+#define SEQ_BGM_P_MT_1 0x1b6
44
+#define SEQ_BGM_P_ROGI 0x1b7
45
+#define SEQ_BGM_EYE_02 0x1d6
46
+#define SEQ_BGM_EYE_ACE 0x1d7
47
+#define SEQ_BGM_EYE_MANIAC 0x1d8
48
+#define SEQ_BGM_EYE_PSYCHO 0x1d9
49
+#define SEQ_BGM_EYE_UMBRELLA 0x1da
50
+#define SEQ_BGM_EYE_WORKER 0x1db
51
+#define SEQ_BGM_EYE_HIKER 0x1dc
52
+#define SEQ_BGM_EYE_MODEL 0x1dd
53
+#define SEQ_BGM_EYE_RIVF 0x1de
54
+#define SEQ_BGM_EYE_RIVM 0x1df
55
+#define SEQ_BGM_EYE_TEENAGER 0x1e0
12 56
 #define SEQ_BGM_EYE_TT 0x1e2
13 57
 #define SEQ_BGM_EYE_TT_BOSS 0x1e3
58
+#define SEQ_BGM_EYE_CHAMPION 0x1e5
14 59
 #define SEQ_BGM_EYE_GUARDIAN 0x1e6
60
+#define SEQ_BGM_EYE_BRAT 0x1e7
61
+#define SEQ_BGM_EYE_FIGHTER 0x1e8
62
+#define SEQ_BGM_EYE_JANA 0x1e9
63
+#define SEQ_BGM_EYE_03 0x1ec
64
+#define SEQ_BGM_EYE_BREEDER 0x1f1
65
+#define SEQ_BGM_EYE_BICYCLE 0x1f2
66
+#define SEQ_BGM_EYE_PRIG 0x1f3
15 67
 #define SEQ_BGM_EVENT_TT_RAID 0x1f4
16 68
 #define SEQ_BGM_INTRO 0x1f5
69
+#define SEQ_BGM_EVENT_END 0x1f6
70
+#define SEQ_BGM_MENU 0x1f7
17 71
 #define SEQ_BGM_EVENT_DEOXYS 0x1f8
18 72
 #define SEQ_BGM_EVENT_TT_DANCE 0x1f9
19
-#define SEQ_BGM_SURF 0x1fa
20
-#define SEQ_BGM_EYE_RIVF 0x1de
21
-#define SEQ_BGM_EYE_RIVM 0x1df
73
+#define SEQ_BGM_VS_LEADER 0x209
74
+#define SEQ_BGM_VS_TRAINER 0x20a
75
+#define SEQ_BGM_VS_POKE 0x20b
76
+#define SEQ_BGM_VS_CHAMP 0x20c
77
+#define SEQ_BGM_VS_DEOXYS 0x20d
78
+#define SEQ_BGM_VS_LEG_1 0x20e
79
+#define SEQ_BGM_VS_RIVAL 0x20f
80
+#define SEQ_BGM_VS_TT_ADMIN 0x211
81
+#define SEQ_BGM_VS_TT_BOSS_JANA 0x212
82
+#define SEQ_BGM_VS_TT_BOSS_NORMAN 0x213
83
+#define SEQ_BGM_VS_TT_GRUNT 0x214
84
+#define SEQ_BGM_VIC_POKE 0x21c
85
+#define SEQ_BGM_VIC_TRAINER 0x21d
86
+#define SEQ_BGM_VIC_TT 0x21e
87
+#define SEQ_BGM_VIC_GUARDIAN 0x21f
88
+#define SEQ_BGM_DEMO_AMER 0x230
89
+#define SEQ_BGM_DEMO_R 0x231
90
+#define SEQ_BGM_DEMO_RL 0x232
91
+#define SEQ_BGM_DEMO_WITS 0x233
92
+#define SEQ_BGM_P_03 0x234
93
+#define SEQ_BGM_LEGACY_VS_POKE 0x235
94
+#define SEQ_BGM_LEGACY_RAGN 0x236
95
+#define SEQ_BGM_LEGACY_R_BW 0x237
96
+#define SEQ_BGM_LEGACY_VS_RIVAL 0x238
97
+#define SEQ_BGM_LEGACY_TITLE 0x239
98
+#define SEQ_BGM_LEGACY_RS_LEADER 0x23a
99
+#define SEQ_BGM_LEGACY_LABO 0x23b
100
+#define SEQ_BGM_LEGACY_EYE_01 0x23c
101
+#define SEQ_BGM_LEGACY_EYE_RIV_M 0x23d
102
+#define SEQ_BGM_LEGACY_EYE_RIV_F 0x23e
103
+#define SEQ_BGM_LEGACY_EYE_TEAM 0x23f
104
+#define SEQ_BGM_LEGACY_BA_TRAIN 0x240
105
+#define SEQ_BGM_LEGACY_OVERTURE 0x241
106
+#define SEQ_SFX_TEST 0x242

+ 95
- 10
src/include/constants/pymap/songs.s Voir le fichier

@@ -1,21 +1,106 @@
1
-.equ SEQ_BGM_TOWN_HESPERIA, 0x10b
2
-.equ SEQ_BGM_CITY_CARUN, 0x110
3
-.equ SEQ_BGM_CITY_URBANIA, 0x111
4
-.equ SEQ_BGM_ROUTE_1, 0x12e
5
-.equ SEQ_BGM_ROUTE_2, 0x12f
6
-.equ SEQ_BGM_PC, 0x15b
7
-.equ SEQ_BGM_LAB, 0x17e
1
+.equ SEQ_BGM_TOWN_HESPERIA, 0x15e
2
+.equ SEQ_BGM_CITY_CARUN, 0x15f
8 3
 .equ SEQ_BGM_P_FOY, 0x160
4
+.equ SEQ_BGM_TOWN_04, 0x161
5
+.equ SEQ_BGM_TOWN_02, 0x162
6
+.equ SEQ_BGM_TOWN_06, 0x163
7
+.equ SEQ_BGM_TOWN_07, 0x164
8
+.equ SEQ_BGM_TOWN_01, 0x165
9
+.equ SEQ_BGM_CITY_01, 0x166
10
+.equ SEQ_BGM_CITY_02, 0x167
11
+.equ SEQ_BGM_CITY_03, 0x168
12
+.equ SEQ_BGM_CITY_04, 0x169
13
+.equ SEQ_BGM_CITY_05, 0x16a
14
+.equ SEQ_BGM_CITY_06, 0x16b
15
+.equ SEQ_BGM_TOWN_03, 0x16c
16
+.equ SEQ_BGM_R_01, 0x172
17
+.equ SEQ_BGM_R_02, 0x173
18
+.equ SEQ_BGM_R_03, 0x174
19
+.equ SEQ_BGM_R_04, 0x175
20
+.equ SEQ_BGM_R_05, 0x176
21
+.equ SEQ_BGM_R_06, 0x177
22
+.equ SEQ_BGM_R_07, 0x178
23
+.equ SEQ_BGM_R_08, 0x179
9 24
 .equ SEQ_BGM_CAVE_GUARDIAN, 0x186
25
+.equ SEQ_BGM_CAVE_02, 0x187
26
+.equ SEQ_BGM_PC, 0x15b
27
+.equ SEQ_BGM_LAB, 0x17e
28
+.equ SEQ_BGM_GYM, 0x19b
29
+.equ SEQ_BGM_LAB, 0x19c
30
+.equ SEQ_BGM_SCHOOL, 0x19d
31
+.equ SEQ_BGM_PC, 0x1a0
32
+.equ SEQ_BGM_MART, 0x1a2
33
+.equ SEQ_BGM_GYM_GHOST, 0x1a3
34
+.equ SEQ_BGM_GYM_WATER, 0x1a4
35
+.equ SEQ_BGM_GYM_FOREST, 0x1a5
36
+.equ SEQ_BGM_P_04, 0x1ae
37
+.equ SEQ_BGM_DESERT, 0x1af
38
+.equ SEQ_BGM_P_01, 0x1b1
39
+.equ SEQ_BGM_P_02, 0x1b2
40
+.equ SEQ_BGM_P_FOY, 0x1b3
10 41
 .equ SEQ_BGM_P_TOL, 0x1b4
11 42
 .equ SEQ_BGM_P_DFOY, 0x1b5
43
+.equ SEQ_BGM_P_MT_1, 0x1b6
44
+.equ SEQ_BGM_P_ROGI, 0x1b7
45
+.equ SEQ_BGM_EYE_02, 0x1d6
46
+.equ SEQ_BGM_EYE_ACE, 0x1d7
47
+.equ SEQ_BGM_EYE_MANIAC, 0x1d8
48
+.equ SEQ_BGM_EYE_PSYCHO, 0x1d9
49
+.equ SEQ_BGM_EYE_UMBRELLA, 0x1da
50
+.equ SEQ_BGM_EYE_WORKER, 0x1db
51
+.equ SEQ_BGM_EYE_HIKER, 0x1dc
52
+.equ SEQ_BGM_EYE_MODEL, 0x1dd
53
+.equ SEQ_BGM_EYE_RIVF, 0x1de
54
+.equ SEQ_BGM_EYE_RIVM, 0x1df
55
+.equ SEQ_BGM_EYE_TEENAGER, 0x1e0
12 56
 .equ SEQ_BGM_EYE_TT, 0x1e2
13 57
 .equ SEQ_BGM_EYE_TT_BOSS, 0x1e3
58
+.equ SEQ_BGM_EYE_CHAMPION, 0x1e5
14 59
 .equ SEQ_BGM_EYE_GUARDIAN, 0x1e6
60
+.equ SEQ_BGM_EYE_BRAT, 0x1e7
61
+.equ SEQ_BGM_EYE_FIGHTER, 0x1e8
62
+.equ SEQ_BGM_EYE_JANA, 0x1e9
63
+.equ SEQ_BGM_EYE_03, 0x1ec
64
+.equ SEQ_BGM_EYE_BREEDER, 0x1f1
65
+.equ SEQ_BGM_EYE_BICYCLE, 0x1f2
66
+.equ SEQ_BGM_EYE_PRIG, 0x1f3
15 67
 .equ SEQ_BGM_EVENT_TT_RAID, 0x1f4
16 68
 .equ SEQ_BGM_INTRO, 0x1f5
69
+.equ SEQ_BGM_EVENT_END, 0x1f6
70
+.equ SEQ_BGM_MENU, 0x1f7
17 71
 .equ SEQ_BGM_EVENT_DEOXYS, 0x1f8
18 72
 .equ SEQ_BGM_EVENT_TT_DANCE, 0x1f9
19
-.equ SEQ_BGM_SURF, 0x1fa
20
-.equ SEQ_BGM_EYE_RIVF, 0x1de
21
-.equ SEQ_BGM_EYE_RIVM, 0x1df
73
+.equ SEQ_BGM_VS_LEADER, 0x209
74
+.equ SEQ_BGM_VS_TRAINER, 0x20a
75
+.equ SEQ_BGM_VS_POKE, 0x20b
76
+.equ SEQ_BGM_VS_CHAMP, 0x20c
77
+.equ SEQ_BGM_VS_DEOXYS, 0x20d
78
+.equ SEQ_BGM_VS_LEG_1, 0x20e
79
+.equ SEQ_BGM_VS_RIVAL, 0x20f
80
+.equ SEQ_BGM_VS_TT_ADMIN, 0x211
81
+.equ SEQ_BGM_VS_TT_BOSS_JANA, 0x212
82
+.equ SEQ_BGM_VS_TT_BOSS_NORMAN, 0x213
83
+.equ SEQ_BGM_VS_TT_GRUNT, 0x214
84
+.equ SEQ_BGM_VIC_POKE, 0x21c
85
+.equ SEQ_BGM_VIC_TRAINER, 0x21d
86
+.equ SEQ_BGM_VIC_TT, 0x21e
87
+.equ SEQ_BGM_VIC_GUARDIAN, 0x21f
88
+.equ SEQ_BGM_DEMO_AMER, 0x230
89
+.equ SEQ_BGM_DEMO_R, 0x231
90
+.equ SEQ_BGM_DEMO_RL, 0x232
91
+.equ SEQ_BGM_DEMO_WITS, 0x233
92
+.equ SEQ_BGM_P_03, 0x234
93
+.equ SEQ_BGM_LEGACY_VS_POKE, 0x235
94
+.equ SEQ_BGM_LEGACY_RAGN, 0x236
95
+.equ SEQ_BGM_LEGACY_R_BW, 0x237
96
+.equ SEQ_BGM_LEGACY_VS_RIVAL, 0x238
97
+.equ SEQ_BGM_LEGACY_TITLE, 0x239
98
+.equ SEQ_BGM_LEGACY_RS_LEADER, 0x23a
99
+.equ SEQ_BGM_LEGACY_LABO, 0x23b
100
+.equ SEQ_BGM_LEGACY_EYE_01, 0x23c
101
+.equ SEQ_BGM_LEGACY_EYE_RIV_M, 0x23d
102
+.equ SEQ_BGM_LEGACY_EYE_RIV_F, 0x23e
103
+.equ SEQ_BGM_LEGACY_EYE_TEAM, 0x23f
104
+.equ SEQ_BGM_LEGACY_BA_TRAIN, 0x240
105
+.equ SEQ_BGM_LEGACY_OVERTURE, 0x241
106
+.equ SEQ_SFX_TEST, 0x242

+ 0
- 83
src/include/songlist.h Voir le fichier

@@ -1,83 +0,0 @@
1
-#pragma once
2
-
3
-// TODO add missing FR/LG song IDs
4
-
5
-// Towns
6
-
7
-#define SEQ_BGM_TOWN_HESPERIA       267
8
-
9
-// Cities
10
-
11
-#define SEQ_BGM_CITY_CARUN          272
12
-#define SEQ_BGM_CITY_URBANIA        273
13
-
14
-// Routes
15
-
16
-#define SEQ_BGM_ROUTE_1             302
17
-#define SEQ_BGM_ROUTE_2             303
18
-
19
-// Special Buildings
20
-
21
-#define SEQ_BGM_PC                  347
22
-#define SEQ_BGM_LAB                 382
23
-
24
-// Special Places
25
-
26
-#define SEQ_BGM_DESERT              350
27
-#define SEQ_BGM_P_TOL               436
28
-
29
-// Forests
30
-
31
-#define SEQ_BGM_FOREST_YELINA       352
32
-#define SEQ_BGM_P_DFOY              347
33
-
34
-// Cave
35
-#define SEQ_BGM_CAVE_GUARDIAN       390
36
-
37
-// Indoor
38
-#define SEQ_BGM_GYM_GHOST           419
39
-#define SEQ_BGM_GYM_WATER           420
40
-
41
-// Encounter
42
-
43
-#define SEQ_BGM_E_RIV_F             368
44
-#define SEQ_BGM_E_RIV_M             369
45
-#define SEQ_BGM_E_TT                385
46
-#define SEQ_BGM_E_TT_BOSS           386
47
-#define SEQ_FRLG_E_1                283
48
-#define SEQ_FRLG_E_2                284
49
-#define SEQ_FRLG_E_3                285
50
-
51
-// Battles
52
-
53
-#define SEQ_BGM_VS_RIVAL            379
54
-#define SEQ_BGM_VS_TT_ADMIN         381
55
-#define SEQ_BGM_VS_TT_BOSS_JANA     384
56
-#define SEQ_BGM_VS_TT_BOSS_NORMAN   388
57
-
58
-#define SEQ_BGM_VS_POKE             298
59
-#define SEQ_BGM_VS_RSE              266
60
-#define SEQ_BGM_VS_CHAMP            299
61
-#define SEQ_BGM_VS_LEADER           296
62
-#define SEQ_BGM_VS_TRAINER          297
63
-
64
-#define SEQ_BGM_VS_DEOXYS           399
65
-#define SEQ_BGM_VS_MEWTWO           340
66
-#define SEQ_BGM_VS_LEG1             341
67
-
68
-// Victories
69
-
70
-#define SEQ_BGM_VIC_TT              387
71
-#define SEQ_BGM_VIC_TRAINER         310
72
-
73
-#define SEQ_BGM_VIC_LEADER          312
74
-#define SEQ_BGM_VIC_POKE            311
75
-
76
-// Various Events
77
-
78
-#define SEQ_BGM_EVENT_TT_RAID       375
79
-
80
-// Misc
81
-
82
-#define SEQ_BGM_TITLE_SCREEN        278
83
-#define SEQ_BGM_MENU                503

+ 7
- 7
src/music/battle_music_lookup.c Voir le fichier

@@ -1,4 +1,4 @@
1
-#include <songlist.h>
1
+#include <constants/pymap/songs.h>
2 2
 #include <game_engine.h>
3 3
 #include <bpre.h>
4 4
 #include <battle_structs.h>
@@ -377,7 +377,7 @@ u16 mhk_intro_music_id_to_song(u8 introid) {
377 377
             res = 483;
378 378
             break;
379 379
         default:
380
-            res = SEQ_FRLG_E_1;
380
+            res = 283;
381 381
             break;
382 382
     }
383 383
 
@@ -390,7 +390,7 @@ u16 mhk_song_id_for_battle(void) {
390 390
     if (battle_type_flags._battle_unk_3) {
391 391
         res = SEQ_BGM_VS_POKE;
392 392
     } else if (battle_type_flags._battle_unk_5 || battle_type_flags.battle_link) {
393
-        res = SEQ_BGM_VS_RSE;
393
+        res = 266;
394 394
     } else if (battle_type_flags.battle_trainer) {
395 395
         switch (trainer_data[trainerbattle_flag_id].trainer_class) {
396 396
             case 88:
@@ -457,10 +457,10 @@ void mhk_trainer_battle_play_defeat(void) {
457 457
     switch (trainer_data[trainerbattle_flag_id].trainer_class) {
458 458
         case 84:
459 459
         case 90:
460
-            song = SEQ_BGM_VIC_LEADER;
460
+            song = 312;
461 461
             break;
462 462
         default:
463
-            song = SEQ_BGM_VIC_TRAINER;
463
+            song = 310;
464 464
             break;
465 465
     }
466 466
 
@@ -479,7 +479,7 @@ u16 mhk_species_to_song(u16 species) {
479 479
 
480 480
     switch (species) {
481 481
         case POKE_MEWTWO:
482
-            res = SEQ_BGM_VS_MEWTWO;
482
+            res = 340;
483 483
             break;
484 484
         case POKE_ARTICUNO:
485 485
         case POKE_ZAPDOS:
@@ -492,7 +492,7 @@ u16 mhk_species_to_song(u16 species) {
492 492
             res = 525;
493 493
             break;
494 494
         default:
495
-            res = SEQ_BGM_VS_RSE;
495
+            res = 266;
496 496
             break;
497 497
     }
498 498
 

+ 3
- 3
src/specials/scenes/settings_intro.c Voir le fichier

@@ -4,7 +4,7 @@
4 4
 #include <scene.h>
5 5
 #include <agb_debug.h>
6 6
 #include <constants/pkmns.h>
7
-#include <songlist.h>
7
+#include <constants/pymap/songs.h>
8 8
 
9 9
 extern u8 settings_gender_script[];
10 10
 extern u8 settings_gender_script_sure[];
@@ -92,7 +92,7 @@ void settings_loop(u8 id) {
92 92
             objects[tasks[id].priv[1]].pos1 = male_position;
93 93
             objects[tasks[id].priv[2]].pos1 = female_position;
94 94
             fade_screen(0xFFFFFFFF, 1, 16, 0, 0x0000);
95
-            m4aSongNumStart(SEQ_BGM_MENU);
95
+            m4aSongNumStart(503);
96 96
             tasks[id].priv[0]++;
97 97
         break;
98 98
         case 2:
@@ -537,4 +537,4 @@ void settings_mode_launch(void) {
537 537
     settings_mode_load_gfx();
538 538
     settings_mode_spawn_main_task();
539 539
     set_callback2(settings_intro_c2);
540
-}
540
+}