DSHack

Archive Generated December 23rd, 2018
�?Tutorial】How to make BCSTM files
Author Posted on 2016/12/02
#2592
MKGirlism In this tutorial, I'll explain you on how to make BCSTM files, complete with loops and final lap versions.
This tutorial was made on Manjaro Linux, but I'll do my best to explain this for Linux and Windows users.

→ Requirements
- BRSTM Conversion Tool (Windows and Linux versions are both listed there).
- Wine, Sox, libqt5widgets5, libaq5gui5, libqrt5core5a, libsox-fmt-all, php (Linux only, install those through your package manager) (Ubuntu/Linux Mint/Debian users: Use the .deb file instead).
- MakeROMFS (Linux, installed through our own Repos, or Hack Store), or RomFS-Builder (Windows, downloadable online, search for it).
- Audacity (Linux users: Get it from your package manager; Windows users: Get it from its official website).

→ Get .wav file somehow
YouTube, own music, whatever, just make sure it's a .wav file.

→ Make a final lap version
Yep, now!
Before anything, make sure you cut off everything from the ending, that will not be included in the loop.
Otherwise, you won't be able to make a proper loop later on.

Open Audacity, and drag/drop your .wav file, then go to Effect → Change Tempo...
Set the tempo to 12, and press "OK".

Now go to File → Export Audio..., or otherwise, press Shift + CTRL + E.
After you click "Export", make sure all the fields.

→ Make a loop, and convert
Now open BRSRMConversionTool(.exe, in case you're on Windows),
Now things get a bit tricky, because you need to know in advance where you want to loop.

You could as well leave Audacity open, and play around with a decent looping there, by selecting an area, and then note down where the loop should start.
For example, if your loop starts at 5 seconds and 186 milliseconds, go to the "Looping" tab, and write "5.186000" in the right-hand field.
No need to worry about the left-hand field, both fields are in sync with each other.
Now click "Convert audio to BRSTM", select your .wav file, press "Open", then you give your .brstm file a new name (can be the same name as well), and press "Save".
Depending on the size of your .wav file, it might take a while, so if it seems to crash or not respond, don't worry, it's still doing its job.

Once done, click "Convert BRSTM to BCSTM", open the .brstm file, and give the .bcstm file a new name (again, can be the same name as well).
Now simply put both .bcstm files in your ROMFS folder, and rename them to the track you want to use them on.
For example, if you want to use them over SFC Rainbow Road, delete "STRM_CR_SFC_RAINBOW_ROAD_N.bcstm" and "STRM_CR_SFC_RAINBOW_ROAD_F.bcstm", and rename your own .bcstm files to exactly these names.

→ Build ROMFS (Linux)
Now open the Terminal, "cd" to whatever folder you've put your ROMFS stuff.
In the meantime, you might put your (Micro)SD Card into your PC, if you want.
Now type:
makeromfs 00030x00.romfs
Replace "x" by the region of your own MK7 game.
Japan = 6.
Europe/Australia = 7.
USA = 8.

Once you press Enter, it should take about a few seconds to create the .romfs file for you, once done, put it on your (Micro)SD Card, and load HANS like you normally would.

→ Build ROMFS (Windows)
Open RomFS-Builder, open your ROMFS Folder, and export it.
In the meantime, you might put your (Micro)SD Card into your PC, if you want.
Name your file like this: 00030x00.romfs
Replace "x" by the region of your own MK7 game.
Japan = 6.
Europe/Australia = 7.
USA = 8.

Now confirm, it should take about a few minutes to create the .romfs file for you, once done, put it on your (Micro)SD Card, and load HANS like you normally would.

The end.