Page 1 of 2
The Evil Winthin 2
Posted: Sat Dec 16, 2017 2:55 pm
by Zotya0330
Hi!
I've unpacked the game's language files with this script:
http://aluigi.altervista.org/bms/the_evil_within_2.bms (quick bms)
I've the autoi script to the lanb file
I want to translate the game, but I can not repack the file

Can someone help you in it?
Re: The Evil Winthin 2
Posted: Sun Dec 24, 2017 8:08 pm
by halfway
Zotya0330 wrote:Hi!
I've unpacked the game's language files with this script:
http://aluigi.altervista.org/bms/the_evil_within_2.bms (quick bms)
I've the autoi script to the lanb file
I want to translate the game, but I can not repack the file

Can someone help you in it?
wath?! edit text files? can you give me that script?
Re: The Evil Winthin 2
Posted: Sat Apr 07, 2018 10:21 am
by Zotya0330
I send a message
Re: The Evil Winthin 2
Posted: Sat Apr 07, 2018 10:21 am
by Zotya0330
UP.
Re: The Evil Winthin 2
Posted: Sat May 12, 2018 7:33 am
by Zotya0330
Is there no solution for backpacking?
Re: The Evil Winthin 2
Posted: Sat May 12, 2018 5:12 pm
by GHOST DEAD
Zotya0330 wrote:Is there no solution for backpacking?
quickbms can import files... you know that, right?
did you know about repack with QuickBMS?
Did you try It? (Sorry if i was ask a wrong question)
Re: The Evil Winthin 2
Posted: Sat May 12, 2018 6:03 pm
by Zotya0330
Yeah I know
I tried
Re: The Evil Winthin 2
Posted: Wed May 16, 2018 6:39 am
by GHOST DEAD
Good news, finally... I found a way to do that(for font and text and voice)
I wil share this information soon... Just wait for a while
Re: The Evil Winthin 2
Posted: Sat May 19, 2018 8:20 am
by Zotya0330
Cool! I can't wait!

Re: The Evil Winthin 2
Posted: Fri May 25, 2018 4:59 pm
by Zotya0330
Any progress with repack?
Re: The Evil Winthin 2
Posted: Fri Jun 01, 2018 3:36 pm
by ripper
*.PTR
Code: Select all
UINT32 - XORed by 0xFADC4688 decompressed PTR size
UINT32 - version
UINT32 - splited to 4 parts and XORed first 32768 bytes (32 KB) PKR MD5
UINT32 - splited to 4 parts and XORed decompressed PTR MD5
You should compress PTR file. It's work fine with C# DeflateStream. And you don't need compress PKR data.
Re: The Evil Winthin 2
Posted: Sat Jun 02, 2018 4:10 am
by delutto
ripper wrote:Code: Select all
UINT32 - splited to 4 parts and XORed first 32768 bytes (32 KB) PKR MD5
UINT32 - splited to 4 parts and XORed decompressed PTR MD5
Great research! Can you explain more about this two fields?
Re: The Evil Winthin 2
Posted: Sat Jun 02, 2018 4:18 pm
by ripper
delutto wrote:ripper wrote:Code: Select all
UINT32 - splited to 4 parts and XORed first 32768 bytes (32 KB) PKR MD5
UINT32 - splited to 4 parts and XORed decompressed PTR MD5
Great research! Can you explain more about this two fields?
common.ptr and common.pkr as example.
On the first image we skip header (0x10 bytes), select next 0x8000 bytes and calculate MD5 and get AAA643D74BB3433E09F662006A05EDB8
Then (img2) we split this hash to 4 parts and XOR it.
Code: Select all
0xAAA643D7 ^ 0x4BB3433E ^ 0x09F66200 ^ 0x6A05EDB8 = 0x82E68F51
As i promise Zotya0330. I'll share tool source when return to home, monday-tuesday.
Re: The Evil Winthin 2
Posted: Sun Jun 03, 2018 8:35 pm
by delutto
ripper wrote:*.PTR
Code: Select all
UINT32 - XORed by 0xFADC4688 decompressed PTR size
UINT32 - version
UINT32 - splited to 4 parts and XORed first 32768 bytes (32 KB) PKR MD5
UINT32 - splited to 4 parts and XORed decompressed PTR MD5
You should compress PTR file. It's work fine with C# DeflateStream. And you don't need compress PKR data.
Thank you a lot ripper! Finally I was able to add Import Mode to my tool.
Download link
I could not make it's work with compressed data, only works with uncompressed data.
Re: The Evil Winthin 2
Posted: Tue Jun 05, 2018 6:38 pm
by ripper
As i promised, here is my
sources. Compiled binary in bin/Debug folder.
Usage for extract data:
1. Click PTR File "..." button and choose ptr file (note: pkr file must be placed on the same level with ptr, or 1 level above, like in game directory);
2. If needed click Extract directory "..." button and choose preferred directory.
Usage for import data:
1. Click Data directory "..." button and choose directory with extracted data (note: this program import only self-extracted files);
2. If needed click PKR/PTR File "..." button and choose preferred directory and filename.
This tool convert lanb files to txt (same as bms script format) and 48.dat font map files to xml like format.
Fonts in bimage files. If you see in xml data x coordinate more than image width it means that you need select image alpha channel.
In game little bit more than 58 763 words.