Fatal Frame: Maiden of Black Water(Wii U)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

@phay007
I have just updated the script:
http://aluigi.org/bms/fatal_frame.bms
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

TNX, script works perfect in EUR rom.
So finally how I can reimport extracted files (with latest updated bms script) in a new archive00 (EUR rom), please?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

The problem is that the format uses chunks, with compression too.
Even if you don't change the size of the edited files the reimporting may fail or result in content not correctly read by the game.
The alternative is manually setting the ZIP field of each file to zero for bypassing this limitation (complicated to explain).

Anyway if your format is "WHD1.0" there is no problem because the files are normal.

Reimporting is very simple, launch reimport2.bat and select the same file and folder you selected during extraction.
Quickbms will do all the job automatically.
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

Thanks, always very attentive and accurate.
Mysticus
Posts: 182
Joined: Sat Mar 02, 2019 3:24 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Mysticus »

Does anyone know some tool or script to extract .vcpk files?
https://drive.google.com/file/d/1rQWx9h ... mrRs-01vYf
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

Ok script updated, this vcpk format was very simple.
Mysticus
Posts: 182
Joined: Sat Mar 02, 2019 3:24 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Mysticus »

Well...
This is quite unusual.
How does this .wii file work?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

Regarding that WiiBGM file, there is some audio data from offset 0x800 but I don't know what codec is that.

I remember that Nintendo had an adpcm codec with an 8 bytes pattern while here it's 16 bytes (like the one on playstation).

I suppose the data in the first 0x100 bytes are the two coefficients for the channels.
Try posting in the Audio section, you can get better support.
alanmugiwara
Posts: 16
Joined: Fri Jun 15, 2018 2:46 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by alanmugiwara »

Hello guys! thanks aluigi for this sript. Works perfectly! But anyone found text files?
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

In TEXT folder!
You can edit it with MsbtEditor.
Problem is recompress a working file.
pliskin
Posts: 11
Joined: Mon Feb 15, 2021 3:45 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by pliskin »

aluigi wrote:The problem is that the format uses chunks, with compression too.
Even if you don't change the size of the edited files the reimporting may fail or result in content not correctly read by the game.
The alternative is manually setting the ZIP field of each file to zero for bypassing this limitation (complicated to explain).

Anyway if your format is "WHD1.0" there is no problem because the files are normal.

Reimporting is very simple, launch reimport2.bat and select the same file and folder you selected during extraction.
Quickbms will do all the job automatically.


Hi!
I tried to reimport selecting the same file and folder and i'm not able to get the game works.

It says:
Incomplete input file 0:
Can't read 4 bytes from offset dc7c1800.
Anyway don't worry, it's possible that the BMS script has veen written to exit in this way if it's reached the end of the archive so check it or contact its autor or verify that all the files have been extracted
Please check the following coverage information to know if it's ok.
Coverage file 0 0% 2861708 3699120128 . offset dc7c1800

Last script line before the error or that produced the error:
94 get CHUNK_ZSIZE long

Press ENTER or close the window to quit.


Please help, i'm not able to put everything to work.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

@pliskin
Are you really sure that in reimport mode you selected the same files you selected during extraction?
Because if it worked in extraction you can't get that error during reimporting.
pliskin
Posts: 11
Joined: Mon Feb 15, 2021 3:45 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by pliskin »

aluigi wrote:@pliskin
Are you really sure that in reimport mode you selected the same files you selected during extraction?
Because if it worked in extraction you can't get that error during reimporting.



Thank you for your quick reply.

Yes. I extracted archive00 and got that message.
I used reimport2.bat and select fatal_frame.bms file, archive00 and the same folder as I extracted earlier.
I said to use experimental and got the second picture, don't know what i'm doing wrong...
My version is EUR.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by aluigi »

Ah ok, now I understand.
The format uses chunked files that obviously are a big problem in reimport mode... not surprised it goes wrong :)
The script can't be used in reimport mode.

BTW there is a possible way to get reimport working but it requires some steps.
1) setting all the ZIP fields to zero for disabling the chunked compression
2) reimporting
3) setting the ARCHIVE_SIZE field to the new value

I show you the steps but I doubt it will work:

1) Use this script on the archive for setting ZIP to zero, quickbms must be launched with the -w option:

Code: Select all

getdstring SIGN 4   # it can be "LNS5", "CHCM", "COSQ" and so on!
get ZERO long
get FILES longlong
endian guess FILES
get ARCHIVE_SIZE longlong
get ALIGN longlong
for i = 0 < FILES
    get OFFSET longlong
    get SIZE longlong
    get ZSIZE longlong
    put 0 longlong
next i


2) now reimporting will work very well but the archive will become even more bigger, I strongly suggest to use quickbms_4gb_files.exe instead of quickbms.exe

3) use this script for fixing the ARCHIVE_SIZE field (-w option needed here too):

Code: Select all

getdstring SIGN 4   # it can be "LNS5", "CHCM", "COSQ" and so on!
get ZERO long
get FILES longlong
endian guess FILES
get ARCHIVE_SIZE asize
put ARCHIVE_SIZE longlong
pliskin
Posts: 11
Joined: Mon Feb 15, 2021 3:45 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by pliskin »

aluigi wrote:Ah ok, now I understand.
The format uses chunked files that obviously are a big problem in reimport mode... not surprised it goes wrong :)
The script can't be used in reimport mode.

BTW there is a possible way to get reimport working but it requires some steps.
1) setting all the ZIP fields to zero for disabling the chunked compression
2) reimporting
3) setting the ARCHIVE_SIZE field to the new value

I show you the steps but I doubt it will work:

1) Use this script on the archive for setting ZIP to zero, quickbms must be launched with the -w option:

Code: Select all

getdstring SIGN 4   # it can be "LNS5", "CHCM", "COSQ" and so on!
get ZERO long
get FILES longlong
endian guess FILES
get ARCHIVE_SIZE longlong
get ALIGN longlong
for i = 0 < FILES
    get OFFSET longlong
    get SIZE longlong
    get ZSIZE longlong
    put 0 longlong
next i


2) now reimporting will work very well but the archive will become even more bigger, I strongly suggest to use quickbms_4gb_files.exe instead of quickbms.exe

3) use this script for fixing the ARCHIVE_SIZE field (-w option needed here too):

Code: Select all

getdstring SIGN 4   # it can be "LNS5", "CHCM", "COSQ" and so on!
get ZERO long
get FILES longlong
endian guess FILES
get ARCHIVE_SIZE asize
put ARCHIVE_SIZE longlong



Thank you so mucho for your help.
As you said, reimport worked well, but the game doesn't load, I just imported text filles translated and it freezes before the first loading menu.
Quite sad a lot of people can't play this game due the language :(
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

This is for JP version
https://github.com/wmltogether/BlackWat ... r/issues/2
Use link in 7th comment (not principal github code) and let me know if works for you
pliskin
Posts: 11
Joined: Mon Feb 15, 2021 3:45 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by pliskin »

Rulesless wrote:This is for JP version
https://github.com/wmltogether/BlackWat ... r/issues/2
Use link in 7th comment (not principal github code) and let me know if works for you

No it doesn’t work. :(
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

pliskin wrote:Thank you so much for your help.
As you said, reimport worked well, but the game doesn't load, I just imported text filles translated and it freezes before the first loading menu.
Quite sad a lot of people can't play this game due the language :(

And without editing (aka without change files size)?
pliskin wrote:No it doesn’t work. :(

Japan version?
pliskin
Posts: 11
Joined: Mon Feb 15, 2021 3:45 pm

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by pliskin »

Rulesless wrote:
pliskin wrote:Thank you so much for your help.
As you said, reimport worked well, but the game doesn't load, I just imported text filles translated and it freezes before the first loading menu.
Quite sad a lot of people can't play this game due the language :(

And without editing (aka without change files size)?
pliskin wrote:No it doesn’t work. :(

Japan version?



Finally!!!! I've been able to put translated text on screen, now the main issue is on the text editor only displays chinese and japanese text, not the us, I have no idea how to convert msbt files to txt, and my japanese is not so good for make a good translation.
How can I convert those files to txt?
Rulesless
Posts: 39
Joined: Mon Mar 02, 2020 3:32 am

Re: Fatal Frame: Maiden of Black Water(Wii U)

Post by Rulesless »

Use this tool, is with GUI, automatic conversion.
If U don't have to keep the same size and need use necessarily the Chinese tool you can open two instances by copying or translating from the English (or French or German ...) msbt.
Tell us what you did with suggested Chinese tool, please.