Overview
I simply thought some musics in SUGURI and Sora are more suitable in AOS2, so I tried to modify the file bgm.dat. If someone wanna do the same thing, this may help you making less detours. Sorry for my poor English skill.I have written this less than a year before.https://steamcommunity.com/app/390710/discussions/0/1741094390482605641/
Get the tool
100% OJ Music Packer
Useful tool for packing and unpacking bgm pack files in 100OJ, Sora and AoS2.
Locate and Unpack
In game directory, you can find bgm.dat, bgm_add.dat, bgm_realism.dat, bgm_suguri.dat. The first one contained the most musics you wanted to change. The second one should be an update in the past. The last two are DLC bgms.
Drag these files to the Packer one by one, you can get the folders with ogg files in them. For example, drag bgm.dat to the Packer, you will get a folder named as bgm.dat_unpacked. To pack, just drag the folder into the Packer, too.
Modify files
Before re-packing the files, you should know something. The game discriminate those ogg files in the pack by file size. When you replace the ogg files with your owns, you should make them keep the same size to the originals. If your file isn’t ogg, you can convert it online[cloudconvert.com].
Solve:
- Your own file should be smaller than the original file.
- Compare the properties of your own file to the original. Calculate the difference “X” between their size (unit is “byte”)(not “size on disk”).
- Open command prompt.
- Create a blank file (abc) with X bytes. (fsutil file createnew abc X)
- Merge these two files. Your own file (yourfile.ogg) on the start and the blank file (abc) on the later. (copy /b yourfile.ogg+abc xyz.ogg) [1]
- Then you got one of your own file with the same size to the original waiting to be replaced.
Re-pack and Replace
To pack, just drag the folder into the Packer. The quantity, the size should be same as the original files. And the original bgm_add.dat should be renamed or moved before.
Launch the game
Now you play the game with your own bgm. Because something changed, the game may start slower. If no more problems, you can enjoy now.[2]
Notice
[1] Your own ogg file size had better be close to the original. If the size is too small, then the bgm will be blank for about 50 sec or more in game. I think it’s due to the blank filling take up a lot of places make the game program confused……?
[2] When in game, if the bgm didn’t played yet (program “confusing”), quit match may dump the game.
[3] To solve [1], you can use some audio editor to make some loop to make the file larger.
[4] If you wanted to change the names displayed in the games as well, you may need to modify the file script.pak. Open it as archive (use 7zip, WinRAR, etc.) and then modify each bgm.txt in 4 directories of 4 different languages (The 4 files are same. You can extract one, modify and then add the file into the archive to replace all the 4). As you wish, you can change all the text in the game, too.
Example
[link]
This is my modified file. Included musics from Sora, Suguri, AOS and QPS those I felt very good for fighting.