• Just a reminder that providing specifics on, sharing links to, or naming websites where ROMs can be accessed is against the rules. If your post has any of this information it will be removed.
  • Our friends from the Johto Times are hosting a favorite Pokémon poll - and we'd love for you to participate! Click here for information on how to vote for your favorites!
  • Cyndy, May, Hero (Conquest), or Wes - which Pokémon protagonist is your favorite? Let us know by voting in our poll!
  • Welcome to PokéCommunity! Register now and join one of the best fan communities on the 'net to talk Pokémon and more! We are not affiliated with The Pokémon Company or Nintendo.

[Audio] Disable surf and bike music?

  • 3
    Posts
    4
    Years
    • Seen Aug 30, 2020
    Is it possible (using hex edits or some other method) to prevent the surf and bike themes from playing? A Google search turned up no useful results. Note that I'm not looking for a way to do this for a specific area (e.g. later gen Victory Roads), but disable them entirely.
     
    Yup! If you're using decomp, you can stop the surf theme from playing by going to src/field_effect.c, and looking for this method:
    Code:
    u8 FldEff_UseSurf(void)
    {
    	u16 i, j;
        u8 taskId = CreateTask(sub_80B8D84, 0xff);
    	if(gSpecialVar_0x8000 == 113)
    		gTasks[taskId].data[15] = gSpecialVar_0x8000;
        Overworld_ClearSavedMusic();
        Overworld_ChangeMusicTo(MUS_NAMINORI);
        return FALSE;
    }
    All you have to do is delete the "Overworld_ChangeMusicTo(MUS_NAMINORI);" line, and you're good to go. For the bike theme, go into src/bike.c and look for this method:
    Code:
    void GetOnOffBike(u8 transitionFlags)
    {
        gUnusedBikeCameraAheadPanback = FALSE;
    
        if (gPlayerAvatar.flags & (PLAYER_AVATAR_FLAG_MACH_BIKE | PLAYER_AVATAR_FLAG_ACRO_BIKE))
        {
            SetPlayerAvatarTransitionFlags(PLAYER_AVATAR_FLAG_ON_FOOT);
            Overworld_ClearSavedMusic();
            Overworld_PlaySpecialMapMusic();
        }
        else
        {
            SetPlayerAvatarTransitionFlags(transitionFlags);
            Overworld_SetSavedMusic(MUS_CYCLING);
            Overworld_ChangeMusicTo(MUS_CYCLING);
        }
    }
    Delete the "Overworld_SetSavedMusic(MUS_CYCLING);" and "Overworld_ChangeMusicTo(MUS_CYCLING);" near the bottom there, and you're all set.
     
    Back
    Top