ROM Hack Crystal Tile "replace swar error" ?

Deleted member 514389

GBA Connoisseur
Member
Joined
Dec 24, 2019
Messages
509
Solutions
1
Reaction score
453
Trophies
0
Location
the toolshed
Website
f.ls
XP
753
Country
Germany
While trying to replace a sound file inside "Mario Kart Deluxe" DS hack

(namely 193-Track193.SWAR swar file) I encountered this error here:


xx1iE0I.png

I suppose it has something to do wtih soundbanks ?

227-Track227.SWAR could easily be replaced with what I chose...

Odd
 
Don't use crystaltile2's audio editor/playback. Have its viewer tell you info if you want, or maybe the manual file extraction, but beyond that don't do it.

Grab vgmtrans, tinke or one of the other tools and use that instead, or go manual with a hex editor.
 
  • Like
Reactions: banjo2
Hex Editor ? Mind elaborating ?

VGMTrans:
Can that even be used for exact file replacement ?
I only used it for extracting soundtracks in the past...

As for Tinke:
I can view the .sdat's content, but exchanging ".swar" files as I want to is not something that seems to be doable (?).
Replacing the entire .sdat ? Totally.

I'm starting to wonder whether my error is related to this:

[... ] Again, you cannot exceed the file size, otherwise an error will appear.
https://gbatemp.net/threads/the-ultimate-nintendo-ds-rom-hacking-guide.291274/

(I'm in fact exceeding the file size by double with 44kb over the previous 16 ...)

PS:
Is there any way to "create" .swar files manually ?
So far I've only found ways to create SSEQ files etc.
One would think this should be possible in 2020, especially as turning .swar -> .wav is no problem...
 
Last edited by Deleted member 514389,
VGMtrans, especially the fork love.emu made, is pretty good. Right click on the things down the bottom and replacement should be an option.

Not sure what we got for tinke in the end.

Either way I would still discourage using crystaltile2's audio editing options beyond simple extraction (no conversion) and displaying info.

For the most part any editing I have wanted to do I have done manually or with the tools mentioned above. Much of DS ROM hacking stalled out a while back and that was before robust tools capable of handling increased file sizes were made.

File size errors with oversized files being one of those problems, I would either make space at the end of the file and repoint accordingly or make space within the file and use that.

As for going manual then it is much as it sounds and you find where the size of the swar is noted in the main SDAT, whatever sizes are within the SWAR, find something to overwrite (often games have unused samples in them) and either put it at the end or change the location of everything that follows.
 

Site & Scene News

Popular threads in this forum