Important information: this site is currently scheduled to go offline indefinitely by end of the year.

The Evil Winthin 2

Need help translating games in other languages? Have your language problems solved here.
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

The Evil Winthin 2

Post 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?
halfway
beginner
Posts: 27
Joined: Thu Aug 24, 2017 6:50 am
Has thanked: 1 time

Re: The Evil Winthin 2

Post 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?
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

I send a message
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

UP.
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

Is there no solution for backpacking?
GHOST DEAD
mega-veteran
mega-veteran
Posts: 191
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 10 times

Re: The Evil Winthin 2

Post 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)
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

Yeah I know
I tried
GHOST DEAD
mega-veteran
mega-veteran
Posts: 191
Joined: Sat Nov 26, 2016 3:39 pm
Has thanked: 7 times
Been thanked: 10 times

Re: The Evil Winthin 2

Post 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
Be Good, Even in distressing or defamation and chill, Even Everyone's Called You a Bad Guy Or Lier and Mad
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

Cool! I can't wait! :D
Zotya0330
beginner
Posts: 24
Joined: Tue Dec 16, 2014 5:47 pm
Been thanked: 1 time

Re: The Evil Winthin 2

Post by Zotya0330 »

Any progress with repack?
ripper
n00b
Posts: 11
Joined: Wed Nov 19, 2014 9:52 pm
Location: Ukraine
Has thanked: 1 time
Been thanked: 10 times

Re: The Evil Winthin 2

Post 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.
Impossible is nothing.
User avatar
delutto
veteran
Posts: 153
Joined: Sat Apr 16, 2011 5:20 am
Has thanked: 49 times
Been thanked: 14 times

Re: The Evil Winthin 2

Post 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?
ripper
n00b
Posts: 11
Joined: Wed Nov 19, 2014 9:52 pm
Location: Ukraine
Has thanked: 1 time
Been thanked: 10 times

Re: The Evil Winthin 2

Post 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

Image

Then (img2) we split this hash to 4 parts and XOR it.

Code: Select all

0xAAA643D7 ^ 0x4BB3433E ^ 0x09F66200 ^ 0x6A05EDB8 = 0x82E68F51
Image

As i promise Zotya0330. I'll share tool source when return to home, monday-tuesday.
Impossible is nothing.
User avatar
delutto
veteran
Posts: 153
Joined: Sat Apr 16, 2011 5:20 am
Has thanked: 49 times
Been thanked: 14 times

Re: The Evil Winthin 2

Post 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.
ripper
n00b
Posts: 11
Joined: Wed Nov 19, 2014 9:52 pm
Location: Ukraine
Has thanked: 1 time
Been thanked: 10 times

Re: The Evil Winthin 2

Post 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.
Impossible is nothing.
Post Reply