[Sun/Moon] Replacing sound files and repacking does not work?

Discussion in '3DS - ROM Hacking, Translations and Utilities' started by SkaillZ, Feb 24, 2017.

  1. SkaillZ
    OP

    SkaillZ Member

    Newcomer
    10
    23
    Sep 12, 2016
    Australia
    I unpacked my ROM (.3ds) according to this post successfully and tried replacing Lusamine's battle theme (bgm_nj_vs_motherbeast.dspadpcm) with a custom BCSTM file. I made sure that this is the right one by converting it to wav. After rebuilding the rom with HackingToolkit3DS and playing it on the Citra emulator, it still played the regular battle for some reason. I thought that something might have used the old RomFS, so I unpacked the edited ROM and actually found the modified sound file (I even converted it back to wav to make sure. Even the file size is different to the original).

    Am I missing something? Does Citra somehow cache the RomFS or anything like that? I'm utterly confused because it shouldn't be able to play the original music anymore since it's no longer in the RomFS...
     
  2. SkaillZ
    OP

    SkaillZ Member

    Newcomer
    10
    23
    Sep 12, 2016
    Australia
    Nevermind. The file I mentioned contains her battle music, but isn't used in battle. The music file that's actually used is bgm_nj_demo09.dspadpcm.bcstm. That took me a while to figure out...