From 544b76fbbf66cd2019d4b068e40de4a693e95e79 Mon Sep 17 00:00:00 2001 From: Frank Date: Mon, 21 Oct 2024 08:58:49 -0400 Subject: [PATCH 1/3] Added value for bard sound length --- include/bard_music.h | 6 ++++-- src/bard_music.c | 2 +- src/data/bard_music/moves.h | 2 +- src/data/bard_music/pokemon.h | 2 +- 4 files changed, 7 insertions(+), 5 deletions(-) diff --git a/include/bard_music.h b/include/bard_music.h index 2942fa8e47..b1d051b8d7 100644 --- a/include/bard_music.h +++ b/include/bard_music.h @@ -1,6 +1,8 @@ #ifndef GUARD_BARD_MUSIC_H #define GUARD_BARD_MUSIC_H +#define BARD_SOUND_MAX_LENGTH 6 + struct BardSound { /*0x00*/ u8 songLengthId; @@ -26,8 +28,8 @@ struct BardSong /*0x06*/ u16 volume; /*0x08*/ s16 pitch; /*0x0A*/ s16 voiceInflection; - /*0x0C*/ u16 lyrics[6]; - /*0x18*/ struct BardPhoneme phonemes[6]; + /*0x0C*/ u16 lyrics[BARD_SOUND_MAX_LENGTH]; + /*0x18*/ struct BardPhoneme phonemes[BARD_SOUND_MAX_LENGTH]; /*0x30*/ const struct BardSound *sound; }; diff --git a/src/bard_music.c b/src/bard_music.c index 165b4fe770..369a2767d1 100644 --- a/src/bard_music.c +++ b/src/bard_music.c @@ -48,7 +48,7 @@ void GetWordPhonemes(struct BardSong *song, u16 word) const struct BardSound *sound; song->length = 0; - for (i = 0; i < 6; i ++) + for (i = 0; i < BARD_SOUND_MAX_LENGTH; i ++) { sound = &song->sound[i]; if (sound->songLengthId != 0xFF) diff --git a/src/data/bard_music/moves.h b/src/data/bard_music/moves.h index 6c658cd4a0..31c3395fcd 100644 --- a/src/data/bard_music/moves.h +++ b/src/data/bard_music/moves.h @@ -5,7 +5,7 @@ const u16 gNumBardWords_Moves = MOVES_COUNT; -const struct BardSound gBardSounds_Moves[MOVES_COUNT][6] = { +const struct BardSound gBardSounds_Moves[MOVES_COUNT][BARD_SOUND_MAX_LENGTH] = { [MOVE_NONE] = { NULL_BARD_SOUND, NULL_BARD_SOUND, diff --git a/src/data/bard_music/pokemon.h b/src/data/bard_music/pokemon.h index 57ab426590..b3a67a24ed 100644 --- a/src/data/bard_music/pokemon.h +++ b/src/data/bard_music/pokemon.h @@ -3,7 +3,7 @@ const u16 gNumBardWords_Species = NUM_SPECIES; -const struct BardSound gBardSounds_Pokemon[NUM_SPECIES][6] = { +const struct BardSound gBardSounds_Pokemon[NUM_SPECIES][BARD_SOUND_MAX_LENGTH] = { [SPECIES_NONE] = { NULL_BARD_SOUND, NULL_BARD_SOUND, From f04c2faeb0758281a334a2235f86980a412a8801 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Sun, 3 Nov 2024 17:53:53 -0500 Subject: [PATCH 2/3] Silence 'Nothing to be done for generated' messages (#2059) --- Makefile | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Makefile b/Makefile index 6d66c34d65..a5f0224331 100644 --- a/Makefile +++ b/Makefile @@ -266,6 +266,8 @@ include audio_rules.mk # NOTE: Tools must have been built prior (FIXME) # so you can't really call this rule directly generated: $(AUTO_GEN_TARGETS) + @: # Silence the "Nothing to be done for `generated'" message, which some people were confusing for an error. + %.s: ; %.png: ; From 1b8e6fbe3f57c21069b39cbd643c3c1d73d07477 Mon Sep 17 00:00:00 2001 From: GriffinR Date: Mon, 4 Nov 2024 15:39:31 -0500 Subject: [PATCH 3/3] Lay out emerald version png horizontally --- graphics/title_screen/emerald_version.png | Bin 1138 -> 1100 bytes graphics_file_rules.mk | 7 ++++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/graphics/title_screen/emerald_version.png b/graphics/title_screen/emerald_version.png index 2e8b32da988fe9471126f94bd0fed4bf8a0dedc0..9ee2992607efdb2b1c44ce09e01457575e9aa309 100644 GIT binary patch delta 1053 zcmV+&1mgSh2+Rl}iBL{Q4GJ0x0000DNk~Le0001h0000W2m=5B0PXyM7m*=9f7eMw zK~z|U?N`~3<2VeAPU<54|9?BYtT-6JNv3BX78s$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+^kBuVX@F?vokeXx{*e>r!=cpZgTrMN6QRXS&C1g;Esh7Z(6R_t`|TjpQYrg};)+%0WuAUW!MJdMN5T&L%t=tV$ZP zM0Bv(sP)j0LbM=mv94cSU>dI zixLbsxoSd;adJ^bZh~A}c>{3BkpixGA8(6!2SB7isa}#Z|B}VNcyWjS_pLwmm)PIO zE!jWOZ)ctn=EK?Je*?hCP^74HBxpV;@&l-O8DR5<_GcL!Lhf}6bKj~z7A--bqoEum zjKilTfvfirM%^x{*v!&DW>9aeQTw}^*LFEUPVaHeBJ50Fbi|Ee3m|=0xoZS#1WiMb z&Ibs}NnOn)Z@Y$*-w2BWsvUlp4pl=mDP77MiOgC`%*B2xe>;GFzAd9v?nJb%8A8G` zb^ww!0JR`xH3*7BW4mZ++5$*}WTIBpd0B%Z$3vo1<2C@)7^_%}WQI*HvZCaJXiW>f z-wxJBsN80Ip>dKWu5nS9mevj+e>Ps~+O@m4GCE~i-2zme2@{no@$EZOj7xStcjoJ^+({v3tRcaX|9Ds?H~!~J#LXr{|B)0 zt~0ksPXCtlzFE+-6icPA24{0zcRSksX=%MlJ#sO+DzlV(-sFR~IT~bg=r*|j4*()? zSDLFjb$LC+&tv#e%D(m~gTcOVZx{6=89bt|zt2*K8gbL(-TwiZqE`;Cp<|u^0000< KMNUMnLSTYt*#0p9 diff --git a/graphics_file_rules.mk b/graphics_file_rules.mk index 92cc3338dc..a87344e93c 100644 --- a/graphics_file_rules.mk +++ b/graphics_file_rules.mk @@ -22,6 +22,7 @@ POKEDEXGFXDIR := graphics/pokedex STARTERGFXDIR := graphics/starter_choose NAMINGGFXDIR := graphics/naming_screen SPINDAGFXDIR := graphics/pokemon/spinda/spots +TITLESCREENGFXDIR := graphics/title_screen types := normal fight flying poison ground rock bug ghost steel mystery fire water grass electric psychic ice dragon dark contest_types := cool beauty cute smart tough @@ -298,9 +299,13 @@ $(FONTGFXDIR)/frlg_female.fwjpnfont: $(FONTGFXDIR)/japanese_frlg_female.png ### Miscellaneous ### -graphics/title_screen/pokemon_logo.gbapal: %.gbapal: %.pal + +$(TITLESCREENGFXDIR)/pokemon_logo.gbapal: %.gbapal: %.pal $(GFX) $< $@ -num_colors 224 +$(TITLESCREENGFXDIR)/emerald_version.8bpp: %.8bpp: %.png + $(GFX) $< $@ -mwidth 8 -mheight 4 + graphics/pokemon_jump/bg.4bpp: %.4bpp: %.png $(GFX) $< $@ -num_tiles 63 -Wnum_tiles