Next Generation Emulation banner

Model dumping

14K views 17 replies 7 participants last post by  Videogamer555 
#1 ·
Is it possible to add an brres dumper into dolphin like the texture dumper currently in dolphin? I am able to dump them manually from the ram in dolphin but this is time consuming and not easy to do in the emulator.
I wrote a script to dump the models from a memory dump of dolphin
for quickbms

Code:
#locate first header
findloc RES_START string "bresþÿ\0\0"
goto RES_START
savepos RES_START
math FILES += 0xFFF

for i = 0 < FILES
math NAME += 1
savepos OFFSET
getdstring BRES 0x8
endian BIG
get SIZE long
endian small
log NAME OFFSET SIZE
findloc RES_START string "bresþÿ\0\0"
goto RES_START

next i
 
See less See more
#7 ·
There are a lot of games that use very simple containers to hold the brmdl files.
Here are a few I have that I know work with this.
-Super Smash Brothers Brawl #inside .pac files
-Castlevania Judgment # Just plain in the directory
-Onechanbara # Inside .bin files
-Trauma Center New Blood # inside .dat files
-Tales Of Symphonia Dawn of the New World #inside .bin files
-all games made by 8ing #inside .fpk archives and plain files in some games also
you can grab the brres files from ram to get them decompressed.
-Bleach VS Crusade# inside .mrg files
-Simple Wii Series Vol 6 #inside dpk files I need to look at the compression or grab them from ram.
-Tenchu 4 #plain files in game
-Final Fantasy Fables Chocobos Dungeon #plain files in game
This is what i have tested so far.
 
#12 ·
onechanbara bin extractor for quickbms
Luigi Auriemma

Code:
get FILES long
get TABLE long
goto 0x20

for i = 0 < FILES
math NAME += 1
savepos OFFSET
getdstring NULL 0x8
endian big
get SIZE long
endian little
goto OFFSET
log NAME OFFSET SIZE
math OFFSET += SIZE
goto OFFSET
next i
and a generic brres extractor works for brawl pac files.

Code:
get NAME filename
string NAME += _
#locate first header
findloc RES_START string "bresþÿ\0\0"
goto RES_START
savepos RES_START
math FILES += 0xFFF

for i = 0 < FILES
math COUNTER += 1
string NAME += COUNTER
savepos OFFSET
getdstring BRES 0x8
endian BIG
get SIZE long
endian small
log NAME OFFSET SIZE
string NAME -= 1
findloc RES_START string "bresþÿ\0\0"
goto RES_START

next i
 
#18 ·
Now that I've extracted all the "brtex" out of the "brres" how do I convert ALLL of the "brtex" files to PNG? You do realize that leaving them in native "brtex" might be fine for textures, but "brtex" are also image files (think character portraits). Please help. So for my use, "brtex" is NOT the final format. I want to batch convert ALL "brtex" to PNG. Any Wii hackers wrote a program like this yet?
 
This is an older thread, you may not receive a response, and could be reviving an old thread. Please consider creating a new thread.
Top