... in combination with the disc order. All brstm files are stored at the beginning (small offset) with an alignment of 0x20. And the freeze comes with an bad sound.sounds like alignment to me somehow
So, you mean that when we repack the game, all files are sorted in a new order, and this cause the repacked game broken? Is there any other reason?
In theory, if we didn't replace any file from the extracted game, just keep all the extracted files original, then the repacked new game must be absolutely equal with the original game.
I think you could record the file order or some other information not very clear from original game into a log file during the unpack process, and read the log file to rebuild game when repacking it, so that it can be "absolutely equal" with the original game.
"Super Paper Mario" is a very very strange game, upacking/repacking will cause it broken, and sometimes I replace some file(like *.bfn font file, *.txt message file) with WiiScrubber tools but not wit.exe, it will also be broken on Wii, but it works well on Dolphin... oh my god, I didn't know what happened " border="0" alt="frown.gif" />
I have changed the sorting algorithm and now the files are in identical order as the original. But the game still freeze at the same point. There must be something special with this game.
0x4 = files/*.bin
0x4 = files/*.bnr
0x20 = files/*.tpl
0x8 = files/a/*.bin
0x8000 = files/eff/*.dat
0x20 = files/eff/*.tpl
0x8000 = files/eff/fr/*.dat
0x20 = files/eff/fr/*.tpl
0x8000 = files/eff/ge/*.dat
0x20 = files/eff/ge/*.tpl
0x8000 = files/eff/it/*.dat
0x20 = files/eff/it/*.tpl
0x8000 = files/eff/jp/*.dat
0x20 = files/eff/jp/*.tpl
0x8000 = files/eff/nl/*.dat
0x20 = files/eff/nl/*.tpl
0x8000 = files/eff/sp/*.dat
0x20 = files/eff/sp/*.tpl
0x8000 = files/eff/uk/*.dat
0x20 = files/eff/uk/*.tpl
0x8000 = files/eff/us/*.dat
0x20 = files/eff/us/*.tpl
0x20 = files/font/*.bfn
0x4 = files/hbm/*.bin
0x4 = files/lyt/*.fr
0x20 = files/lyt/*.ge
0x4 = files/lyt/*.it
0x8 = files/lyt/*.jp
0x8 = files/lyt/*.sp
0x20 = files/lyt/*.uk
0x8 = files/lyt/*.us
0x4 = files/map/*.bin
0x4 = files/msg/FR/*.txt
0x4 = files/msg/GE/*.txt
0x4 = files/msg/IT/*.txt
0x4 = files/msg/JP/*.txt
0x4 = files/msg/SP/*.txt
0x4 = files/msg/UK/*.txt
0x4 = files/msg/US/*.txt
0x4 = files/rel/*.bin
0x8000 = files/setup/*.dat
0x40 = files/sound/*.brsar
0x20 = files/sound/*.brstm
0x10000 = files/sound/*.dat
0x20 = files/tizu/*.tpl
0x8000 = files/win/*.dat
0x20 = files/win/*.tpl
0x20 = files/win/fr/*.tpl
0x20 = files/win/ge/*.tpl
0x20 = files/win/it/*.tpl
0x20 = files/win/jp/*.tpl
0x20 = files/win/sp/*.tpl
0x20 = files/win/uk/*.tpl
0x20 = files/win/us/*.tpl
I have solved this problem. Beginning with the next release, my tools create for each extracted partition a file named "align-files.txt" (see below). It contains a little alignment analysis for each group of files (group= all files of a dir with the same extension). If the new option --align-files is set on composing, this file is used for aligning.
I have tested it with Super Paper Mario and it works.
wit v2.02a r3240 - 2011-11-25
- The default output filename for WBFS files changed from "ID6.wbfs" ("%+")
to "TITLE [ID6].wbfs" ("%X").
- The file order for composed files is now Nintendo like.
- If extracting an image, a new files called 'align-files.txt' is created. It
stores information about file alligning. If creating a new image and option
--align-files is set, this file is read to align files, that have a previous
aligning of >=0x8000 (Wii sector size). This fixes the bug for "Super Paper
Mario" and perhaps for some other games.
- wit FILES: If the file list is sorted by offset, than an 'unused' column is
added before the 'offset' column.
- wfuse for Mac is back again. It was lost because non installed FUSE package.
Known bugs:
- There are new problems while reading from non seekable sources (e.g. pipes).
The reason is the complete new and more intelligent wiidisc lib which makes
more lookups ==> The best is to use version 1.01c for pipes.
I have solved this problem. Beginning with the next release, my tools create for each extracted partition a file named "align-files.txt" (see below). It contains a little alignment analysis for each group of files (group= all files of a dir with the same extension). If the new option --align-files is set on composing, this file is used for aligning.
I have tested it with Super Paper Mario and it works.
Provided this doesn't create new bugs, shouldn't this be enabled by default? Otherwise, there's the possibility of creating dumps that aren't perfect, or even worse, don't function.
I recall the Metroid Prime GameCube games having file alignment issues as well, for example.
That WDF works is clear, because it only find out zeroed areas and manage this holes.I have been using WDF to archive gamecube images and seems to work very well, thank you Wimm.
Would it do any harm to use WIA on gamecube images?