ROM Hack 3DS .CWAV Dumper

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
Is there any way to currently play the formats other than BCWAV? I dumped some files but only sound effects were in BCWAV format.

The closest is using that vgmstream plugin. It's currently the only thing that can be played. The .CSEQ format hasn't been fully documented as of yet.

Anyways, I'm working on an update, in which I plan to add streaming from disc options instead of loading the file into ram. This is for when decryption becomes possible, because, as a quick test, I dumped a rom of my own, then proceeded to open it in my application (I know it won't dump anything as it's encrypted) just to see how it'd handle large files - it failed with an OutOfMemory exception, and the line that errors is exactly where I thought it'd be: where it copies the file to the buffer that then becomes stored in the ram.

I'd like to improve this and make it stream the file from the disc, reading it in chunks, however, there is a margin of error with this, so I need to rethink and retool how this works to keep this margin of error as low as possible, if not non-existent.
 
  • Like
Reactions: Celice

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
So I've been following up on what I mentioned about a week ago there, and I've implemented file streaming from the disc so that you can load files larger than 1GB. However, I've come across yet another issue: the scanning is, as a result of adding file streaming support, slower than bloody hell. It does work though, if you're willing to wait a day for a dump from anything. Once I get speed up where I'd like it to be, I'll probably make a a V0.5 release.
 

atenzor

Well-Known Member
Newcomer
Joined
Mar 14, 2010
Messages
78
Trophies
0
XP
115
Country
Canada
So I've been following up on what I mentioned about a week ago there, and I've implemented file streaming from the disc so that you can load files larger than 1GB. However, I've come across yet another issue: the scanning is, as a result of adding file streaming support, slower than bloody hell. It does work though, if you're willing to wait a day for a dump from anything. Once I get speed up where I'd like it to be, I'll probably make a a V0.5 release.

I am very interested where this is going so far, great job. But, you left me confused by "streaming from the disc", what you mean by that? what disc?
 

atenzor

Well-Known Member
Newcomer
Joined
Mar 14, 2010
Messages
78
Trophies
0
XP
115
Country
Canada
Wow, are you saying to me that when you release 0.5, one can load a rom file and simply extract those streams, sequences, etc from the rom? cause that would be FANTASTIC!! :D
 

Kaphotics

badc0ded
Member
Joined
Sep 10, 2010
Messages
612
Trophies
0
XP
626
Country
United States
Wow, are you saying to me that when you release 0.5, one can load a rom file and simply extract those streams, sequences, etc from the rom? cause that would be FANTASTIC!! :D
No. ROMs are encrypted and can only be decrypted by the 3DS; this tool is for dumped RAM or other decrypted files.
 

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
No. ROMs are encrypted and can only be decrypted by the 3DS; this tool is for dumped RAM or other decrypted files.

This, exactly, but once decrypted roms are a thing that can easily be accessible, this program will support them.

Basically at this point, I just need to improve upon the speed of the program. Once that obstacle is out of the way, the sky's the limit.

Edit: omg so I think I fixed it. I took my dump of Theatrhythm Final Fantasy and scanned it to benchmark the program.

It took 7:34 to scan a 1GB file ten times (Twice for each format (One for each form of endianness in the header), times five formats) on a laptop with an Intel i3 core and 8GB of RAM. This is a substantial improvement from earlier. Of course I can't test it with a decrypted rom, since I have no access to them at the moment, but I'm quite confident that the application should be able to handle it once they're more available.

A ram dump, that's 128MB, took 49 seconds under identical conditions.

Edit 2: Download v0.5 now! https://dl.dropboxusercontent.com/u/34957059/3DS Audio Ripper 0.5.zip
Also, changes for this version have been pushed to GitHub for those interested in seeing the source.
 

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
See if you can find a way to look for all the formats in one pass maybe? Don't know if that would help or not, just a thought. :)

That wouldn't be that bad, but that'll probably come at a later time, although that'd increase the efficiency of the application for sure. That might be for 0.6 though, as it's nice to just get one major bug out.
 

misterb98

Moral Gateway User. Wat.
Member
Joined
Aug 24, 2010
Messages
449
Trophies
0
XP
290
Country
United States
So its pretty much known that if you run something like GW before the Ram Dumper, you cannot get a dump. Does anyone know if by going to System Settings and then closing out of system settings (hence soft-rebooting the console) if that clears the RAM?
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,036
Country
Vietnam
So its pretty much known that if you run something like GW before the Ram Dumper, you cannot get a dump. Does anyone know if by going to System Settings and then closing out of system settings (hence soft-rebooting the console) if that clears the RAM?

Pretty sure rebooting will clear it.
 

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
Thought I'd take a quick moment to mention that now there's a 5/6.X userland ram dumper available, that I'd mention that this scanner will NOT find any appropriate files in those dumps. You must use Kane49's dumper and obtain a full fcram dump to be able to get anything of use.

Also take note that Kane49's dumper will probably not work on 5/6.X because of security fixes. So if you're trying and not getting anything, don't be surprised.
 

Duo8

Well-Known Member
Member
Joined
Jul 16, 2013
Messages
3,613
Trophies
2
XP
3,036
Country
Vietnam
Thought I'd take a quick moment to mention that now there's a 5/6.X userland ram dumper available, that I'd mention that this scanner will NOT find any appropriate files in those dumps. You must use Kane49's dumper and obtain a full fcram dump to be able to get anything of use.

Also take note that Kane49's dumper will probably not work on 5/6.X because of security fixes. So if you're trying and not getting anything, don't be surprised.

How much of the RAM does the userland dumper dump?
 

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
How much of the RAM does the userland dumper dump?

Like, 8MB or something like that. I can't remember, I've only been using fcram dumpers (Well, a fcram dumper, since Kane49's is the only public one) ever since I got my hacked 3DS. I know the amount was really small though. fcram dumping was actually the main reason I got my hacked 3DS.
 

loco365

Well-Known Member
OP
Member
Joined
Sep 1, 2010
Messages
5,457
Trophies
0
XP
2,927
So, I'm really bored right now, so I may go and test this on Ubuntu through Wine. It does boot, however, I haven't tested compatibility entirely on Wine, but it does look promising.

Edit: Can now confirm that the application does work 100% with Wine.
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
    NinStar @ NinStar: because I already got burned out with breath of the wild, which for the most part is essentially...