Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

I think the QuickBMS script is not encrypting the file properly.

Here you have a small app to decrypt/encrypt game files: https://we.tl/t-nQILZCBPcw

If you drag&drop a game file, the app will create the decrypted version with ".decrypted" extension.
If you drag&drop a ".decrypted" file, the app will encrypt it.
Siengried
Posts: 29
Joined: Sun Nov 25, 2018 11:18 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Siengried »

Kaplas wrote:I think the QuickBMS script is not encrypting the file properly.

Here you have a small app to decrypt/encrypt game files: https://we.tl/t-nQILZCBPcw

If you drag&drop a game file, the app will create the decrypted version with ".decrypted" extension.
If you drag&drop a ".decrypted" file, the app will encrypt it.

Thanks m8
Dj_Mike238
Posts: 13
Joined: Fri Nov 16, 2018 8:18 am

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Dj_Mike238 »

Kaplas wrote:Once decrypted, .mdt files have the following header:

Code: Select all

ushort numberOfScenesInFile;
ushort dummy; // 0
uint[numberOfScenesInFile] sceneStartOffset;

And after this header goes the data.

If you add or remove bytes, you have to update the "sceneStartOffset" pointers.


Do you use any specific tools to do that or do you just edit the file with an hex editor?
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

I'm coding a tool to make a translation, but it isn't finished yet.
Siengried
Posts: 29
Joined: Sun Nov 25, 2018 11:18 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Siengried »

Can you share that tool, please?
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

Siengried wrote:Can you share that tool, please?


You can download here: https://mega.nz/#F!GZNQWSBQ!JA42-HIGTy79O0I7is0FGw
And the source code is here: https://github.com/Kaplas80/TranslationFramework2

How to use (it's for Yakuza 0, but it's almost the same for the rest of supported games): viewtopic.php?p=46239#p46239

Please, remember that it hasn't been used to translate the complete game yet, so it may contains bugs.
Johny233
Posts: 13
Joined: Sun Jan 20, 2019 4:39 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Johny233 »

The tool works magnificentaly, Kaplas! Thank you very much for it! I can translate the game to my language perfectly fine.
I hope to see a possibility to change sprites and music soon too.
Master21
Posts: 3
Joined: Fri Apr 19, 2019 7:54 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Master21 »

Kaplas wrote:
Siengried wrote:Can you share that tool, please?


You can download here: https://mega.nz/#F!GZNQWSBQ!JA42-HIGTy79O0I7is0FGw
And the source code is here: https://github.com/Kaplas80/TranslationFramework2

How to use (it's for Yakuza 0, but it's almost the same for the rest of supported games): viewtopic.php?p=46239#p46239

Please, remember that it hasn't been used to translate the complete game yet, so it may contains bugs.

Hi, with this tool I can translate only .bin files. Once I obtain the .decrypted file from .mdt what do i have to do to edit the texts?
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

You don't need the .decrypted files with this app, it decrypts and encrypt when needed.

Once you select the game installation folder (with original untouched files) and create the translation project, the app will load all the translatable files on the left window.
Master21
Posts: 3
Joined: Fri Apr 19, 2019 7:54 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Master21 »

It is strange, in the left window it only gives me the .bin files.

Image

Those files have only the settings text. All the dialogues of the game's characters are not there.
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

I think you are not choosing a game installation folder with unmodified files. There has to be lots of .dds files and text files. This is what I get when I create a new translation:

Image
Johny233
Posts: 13
Joined: Sun Jan 20, 2019 4:39 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Johny233 »

Actually, yeah i have the same problem as Master21, only those specific files show up for me too, they do work when i translate them, but that's not all of the text. Am i missing something?

EDIT: Nevermind! The program gets confused if it's inside the games folder. It has to be put somewhere else on the disk. That fixed it for me. Works like an angel. Though still i can't find any character sprites that i could edit at the moment hopefully that can be added somehow possibly?
Master21
Posts: 3
Joined: Fri Apr 19, 2019 7:54 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Master21 »

Johny233 wrote:EDIT: Nevermind! The program gets confused if it's inside the games folder. It has to be put somewhere else on the disk. That fixed it for me. Works like an angel. Though still i can't find any character sprites that i could edit at the moment hopefully that can be added somehow possibly?

Now works. There must be no spaces in the directory name.
Dj_Mike238
Posts: 13
Joined: Fri Nov 16, 2018 8:18 am

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Dj_Mike238 »

Kaplas wrote:I think you are not choosing a game installation folder with unmodified files. There has to be lots of .dds files and text files. This is what I get when I create a new translation:

Image


I tried to create a new translation, but it always gives me an error about some .unity3d files it can't decrypt, I think in the GSx/BG folder.
I had to pick the various scenario folders one by one and recreate the original game's folder structure to get the tool to find all the MDTs.
Johny233
Posts: 13
Joined: Sun Jan 20, 2019 4:39 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Johny233 »

Yeah, the only problem now with the tool for me is that it still doesnt get all the sprites/backgrounds , so im stuck in regards of changing character sprites or most of the backgrounds. But for me mdt and bin files are all there and work fine when translated (incl. scenario folders). I've tried changing things around but that breaks the tool for me completely.
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

Dj_Mike238 wrote:I tried to create a new translation, but it always gives me an error about some .unity3d files it can't decrypt, I think in the GSx/BG folder.
I had to pick the various scenario folders one by one and recreate the original game's folder structure to get the tool to find all the MDTs.

Can you tell me what files are not loading properly?

Johny233 wrote:Yeah, the only problem now with the tool for me is that it still doesnt get all the sprites/backgrounds , so im stuck in regards of changing character sprites or most of the backgrounds. But for me mdt and bin files are all there and work fine when translated (incl. scenario folders). I've tried changing things around but that breaks the tool for me completely.

The app is meant only for translation, so it only loads the files with english localization (the ones ending with "u"). If you want to load and replace other files, you'll have to modify this file and recompile the app
Johny233
Posts: 13
Joined: Sun Jan 20, 2019 4:39 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Johny233 »

Ahhhh i see! I know that all i need to do is just remove u from u.unity3d from that script, but no idea how to compile it. however it seems if i add an u to any file it seems to add it to list which is fine, just takes some time to do.
Avigalis
Posts: 3
Joined: Sat Apr 20, 2019 4:39 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Avigalis »

Hey there all.. i want to localise the "Objection", "Hold it!" and "take that" VOICE shouts in my own language. Is it possible currently to do that using the tool provided?
Kaplas
Posts: 60
Joined: Fri Jan 25, 2019 2:47 pm

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Kaplas »

Avigalis wrote:Hey there all.. i want to localise the "Objection", "Hold it!" and "take that" VOICE shouts in my own language. Is it possible currently to do that using the tool provided?


No, sorry, you can't do that with my app. It only supports text and images. I might add sounds and voices to it in the future, but at the moment it's not my priority.
Dj_Mike238
Posts: 13
Joined: Fri Nov 16, 2018 8:18 am

Re: Phoenix Wright Ace Attorney Trilogy Pc(file mdt)

Post by Dj_Mike238 »

Kaplas wrote:
Dj_Mike238 wrote:I tried to create a new translation, but it always gives me an error about some .unity3d files it can't decrypt, I think in the GSx/BG folder.
I had to pick the various scenario folders one by one and recreate the original game's folder structure to get the tool to find all the MDTs.

Can you tell me what files are not loading properly?


I get the same files as Master21's post:

Master21 wrote:It is strange, in the left window it only gives me the .bin files.

Image

Those files have only the settings text. All the dialogues of the game's characters are not there.