PCM .wav to TTYD .stm by puggsoy at 11:35 PM EDT on October 21, 2014
I'm wanting to convert .wav to the .stm format used in Paper Mario: The Thousand Year Door. I can convert it from .stm using vgmstream, but to my knowledge there's no tool that does the reverse.
Does anybody know of a program that does this? Alternatively, a specification of the format would be helpful for making a program myself.
Nein, there aren't any tools that exist to make a .stm for Paper Mario directly. Feel free to take a look at vgmstream's .stm code for specs on the file.
I've managed to figure out the metadata using vgmstream's source code. However, the actual decompression algorithm looks really complex, and I'm not very fluent in C (I'm surprised I've been able to follow this much). I'm not sure if I can reverse it on my own.
Is anybody able to maybe explain how the decompression works in a clearer way than the code shows?