ROM Hack bgm hacking

sandwichwater

Active Member
OP
Newcomer
Joined
Apr 13, 2021
Messages
38
Trophies
0
Age
22
XP
340
Country
United States
greetings , im having a problem with trying to edit the bgm of the game kingdom hearts 358/2 days and im not quite sure what the problem is . i can edit the swar of sound effects and battle quotes for example and they play just fine in game , but when i edit a music swar and try it in game , nothing plays at all , almost as if the swar was blank . other sound effects such as walking and menu sounds play fine so i know its an issue with the swar itself

is this an issue with the sbnk not recognizing the files ¿ this is the most likely but ive read that the sbnk itself doesnt have any audio files actually in it , just tells the game which swav to play and when to play it and at what volume or length etc

the other strange thing is that it plays fine in a program like vgmtrans , yet not in the game itself . the individual swav files play fine in tinke too

any help with this would be very much appreciated
 
Last edited by sandwichwater,

FAST6191

Techromancer
Editorial Team
Joined
Nov 21, 2005
Messages
36,798
Trophies
3
XP
28,348
Country
United Kingdom
For the sake of providing an overview

sseq is what contains the what note, what timings, what repetition and a few other things like what. Much akin to midi, or sheet music if you prefer that analogy.

sbnk (presumably short for soundbank) is the archive detailing the instruments/samples the sseq calls upon. Much akin to instrument libraries or sound fonts.

swav. Short clips of wave type audio (rarely going to be more than about 10 seconds, and usually a lot less than that). Sound effects, catchphrases and very short monologues being this.

swar is an archive of swav files. Sometimes thousands, often without a name where the others might have something indicated somewhat in this all.

strm is long form audio, typically in a more raw form PCM or ADPCM with its own strm header. If the game does not support it out of the box then the compiler tends to remove the functionality, though there are means to add playback of long form audio.

All these typically get bundled into a format called sdat.

smap is a file detailing the contents of the SDAT file and all it contains. Is normally deleted by the developers when assembling the final ROM, however a few slipped out over the years with the earlier ones being responsible for figuring out the format rather faster than it might have. Tools like vgmtoolbox will also aim to generate such a file as well and can help when looking at file contents more than playing with stuff like vgmtrans, crystaltile2, tinke, ndssndext and all the others.

https://kiwi.ds.googlepages.com/sdat.html
http://www.romhacking.net/documents/469




Usual issue here in general editing of files is you did not match the format with what you inserted, or did not alter its listing of what it expected to see. This can also include the injection/rebuilding method you used not being what it should be. As vgmtrans does its own thing rather than emulating what a game might see (some of the playback means in stuff like 2sf are basically an emulator with a cut down sound player from a ROM, hence the difficulty in finding the tools to make them) then it might be more capable in some ways than the base player you are trying to use.
The other option is what you inserted pushed it over a limit (usually memory or length, which can be situational as well), try a smaller clip of it to see what happens.
 

sandwichwater

Active Member
OP
Newcomer
Joined
Apr 13, 2021
Messages
38
Trophies
0
Age
22
XP
340
Country
United States
my first guess was the swav was too big therefore pushing over its memory limit but the new one i used was smaller than the original one the game used , im fairly sure its the same format as ive done the same for sfx , so i guess the last option would be that i didnt alter the listing of what it expects to see . how would i go about doing that ¿
 

sandwichwater

Active Member
OP
Newcomer
Joined
Apr 13, 2021
Messages
38
Trophies
0
Age
22
XP
340
Country
United States
nevermind ! i fixed it by compressing only the audio files i changed in the swar , the original ones kept the same file sizes so i didnt need to compress them . the issue was that it was pushed over the limit , my bad . mustve been thinking of something else . either way im surprised more people dont know about this .. everywhere i tried looking for instrument replacement help everyone said it couldnt be done but here i am doing it

anyway , thanks for your help mr fast
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • BakerMan
    The snack that smiles back, Ballsack!
  • TwoSpikedHands @ TwoSpikedHands:
    I really would like to make a hack that I would enjoy playing, and maybe other people would too. swapping to the EU version would also mean my US friends could not legally play it
  • TwoSpikedHands @ TwoSpikedHands:
    I am definitely considering porting over some of the EU features without using the actual ROM itself, tbh that would probably be the best way to go about it... but i'm sad that the voice acting is so.... not good on the US version. May not be a way around that though
  • TwoSpikedHands @ TwoSpikedHands:
    I appreciate the insight!
  • The Real Jdbye @ The Real Jdbye:
    @TwoSpikedHands just switch, all the knowledge you learned still applies and most of the code and assets should be the same anyway
  • The Real Jdbye @ The Real Jdbye:
    and realistically they wouldn't

    be able to play it legally anyway since they need a ROM and they probably don't have the means to dump it themselves
  • The Real Jdbye @ The Real Jdbye:
    why the shit does the shitbox randomly insert newlines in my messages
  • Veho @ Veho:
    It does that when I edit a post.
  • Veho @ Veho:
    It inserts a newline in a random spot.
  • The Real Jdbye @ The Real Jdbye:
    never had that i don't think
  • Karma177 @ Karma177:
    do y'all think having an sd card that has a write speed of 700kb/s is a bad idea?
    trying to restore emunand rn but it's taking ages... (also when I finished the first time hekate decided to delete all my fucking files :wacko:)
  • The Real Jdbye @ The Real Jdbye:
    @Karma177 that sd card is 100% faulty so yes, its a bad idea
  • The Real Jdbye @ The Real Jdbye:
    even the slowest non-sdhc sd cards are a few MB/s
  • Karma177 @ Karma177:
    @The Real Jdbye it hasn't given me any error trying to write things on it so I don't really think it's faulty (pasted 40/50gb+ folders and no write errors)
  • DinohScene @ DinohScene:
    run h2testw on it
    +1
  • DinohScene @ DinohScene:
    when SD cards/microSD write speeds drop below a meg a sec, they're usually on the verge of dying
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    Samsung SD format can sometimes fix them too
  • Purple_Heart @ Purple_Heart:
    yes looks like an faulty sd
  • Purple_Heart @ Purple_Heart:
    @Psionic Roshambo i may try that with my dead sd cards
    +1
  • Psionic Roshambo @ Psionic Roshambo:
    It's always worth a shot
  • TwoSpikedHands @ TwoSpikedHands:
    @The Real Jdbye, I considered that, but i'll have to wait until i can get the eu version in the mail lol
  • I @ I-need-help-with-wup-wiiu:
    i need help with nusspli failed downloads, can someone respond to my thread? pretty please:wub:
  • Sheeba- @ Sheeba-:
    I can't wait to hack my 11.00 PS4 pro
  • BakerMan @ BakerMan:
    Wake up, it's da first of da month
    BakerMan @ BakerMan: Wake up, it's da first of da month