Dark Souls II (fmg)

How to translate the files of a game
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Dark Souls II (fmg)

Post by swuforce »

Here is a tool for the game fmg text files. Unfortunately i don't know any repacker working with bigger size then original, so you can only do a file size limit.
The end of the files has a padding so you can exceed the character limit with a very few. Each txt file has a first line contain the filename, the number of characters (not counting the first line), and a number you can exceed the limit.
eg, if you got newgame.fmg.txt and you see in first line [newgame.fmg.txt__8__2] and got one line New Game, you can change it to New Game12, and it should work.

There are two methods you can use it.
Use Atvaark's BinderTool to unpack GameDataEbl.bdt
Export, import text, watch the file size limit
Then use Atvaark's Dark-Souls-II-Mod-Loader to replace the files

Or
Use Atvaark's BinderTool to unpack GameDataEbl.bdt
Use Quickbms and GameDataEbl_fmgunpack.bms to unpack fmg's from GameDataEbl.bdt
Use compare.exe to separate the language files, Select menu\Text\English then the folder you unpack with quickbms
Export import texts from Ds2FMG folder, watch the file size limit
Reimport Ds2FMG folder with quickbms


Tested only with non original v1.0 game
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

thank you very much, it awesome
And to play the game, do we need to repack .bdt file
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Dark Souls II (fmg)

Post by michalss »

I made repacker with no char limitations for X360, it will be the same i can share it if you like just need a few fmg files.. Format is not that hard just tricky ..
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

michalss wrote:I made repacker with no char limitations for X360, it will be the same i can share it if you like just need a few fmg files.. Format is not that hard just tricky ..


here the sample for pc version
michalss
Posts: 320
Joined: Sun Aug 10, 2014 12:49 pm

Re: Dark Souls II (fmg)

Post by michalss »

here you go, never tested but should work ok..

Code: Select all

https://dl.dropboxusercontent.com/u/38234344/Tools/DS2%20FMG%20Manager.rar
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

michalss wrote:here you go, never tested but should work ok..

Code: Select all

https://dl.dropboxusercontent.com/u/38234344/Tools/DS2%20FMG%20Manager.rar


I not test yet, but thanks first
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Dark Souls II (fmg)

Post by swuforce »

I was not so accurate.
The size limit is because the bdt/bhd repack.
Quickbms can't reimport bigger files, and DS2ModLoader also not support Replacing a file with a bigger one.
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

swuforce wrote:I was not so accurate.
The size limit is because the bdt/bhd repack.
Quickbms can't reimport bigger files, and DS2ModLoader also not support Replacing a file with a bigger one.


i used your bms script to repack .bdt file, but it say: "the file is bigger than 4gb so it's not support by Quickbms"
Nameless32
Posts: 35
Joined: Sun Dec 21, 2014 7:43 pm

Re: Dark Souls II (fmg)

Post by Nameless32 »

No one can decrypt the header ?
if be possible, i can " move " the fmg files for " another place " in the GameDataEbl.bdt file...

making possible to insert files biggest than the original.
The_Reaper_CooL
Posts: 69
Joined: Sat Dec 05, 2015 2:31 pm

Re: Dark Souls II (fmg)

Post by The_Reaper_CooL »

Okay, this is what I got so far using these tools:

I can't use the Mod Tools, because it makes the game crash (no wonder, it was made for version 1.0, and I have the latest).

I can only use QuickBMS reimport with Bindertool and TextTool stuff, BUT when I import the text back in:
1. If it's longer it won't get imported, meaning it has to be the same size, smaller or a bit bigger (like it says).
2. If it has a good size, then unicode characters (such as é-á-ű...etc) won't get displayed.

Now I've tried using FMG Manager, this is what I've got:
1. If it's longer then EVERY text disappears, even menu ones.
2. If it has a good size, then only the modified file's text disappears in-game, regardless if it has unicode characters or not.



Can anyone help me with this? I need unicode characters and maybe longer text to be displayed in-game.
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Dark Souls II (fmg)

Post by swuforce »

I add a line to Atvaark's BinderTool to copy decrypted bhd to c. I can't find any email to ask premission, but i hope it's ok to post it.

Use the modified BinderTool to unpack GameDataEbl. A decrypted.dat file should appear on c: drive, rename to GameDataEbl.bhd and copy to gamefolder, backup original.
Copy text files to a new folder, keep the folder structure. eg: NEWFOLDER\menu\Text\English
Export, import text, no need to keep size limit.
Use darksouls2_bdt_import to copy modified files to end of bdt file. PossibleFilenames.csv need to be in the folder with exe.
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

swuforce wrote:I add a line to Atvaark's BinderTool to copy decrypted bhd to c. I can't find any email to ask premission, but i hope it's ok to post it.

Use the modified BinderTool to unpack GameDataEbl. A decrypted.dat file should appear on c: drive, rename to GameDataEbl.bhd and copy to gamefolder, backup original.
Copy text files to a new folder, keep the folder structure. eg: NEWFOLDER\menu\Text\English
Export, import text, no need to keep size limit.
Use darksouls2_bdt_import to copy modified files to end of bdt file. PossibleFilenames.csv need to be in the folder with exe.


Many thank to you :D
Hey swuforce, i run the darksouls2_bdt_import in 3 hours, and it still not complete, can you fix it?
The_Reaper_CooL
Posts: 69
Joined: Sat Dec 05, 2015 2:31 pm

Re: Dark Souls II (fmg)

Post by The_Reaper_CooL »

vinhmk02 wrote:
swuforce wrote:I add a line to Atvaark's BinderTool to copy decrypted bhd to c. I can't find any email to ask premission, but i hope it's ok to post it.

Use the modified BinderTool to unpack GameDataEbl. A decrypted.dat file should appear on c: drive, rename to GameDataEbl.bhd and copy to gamefolder, backup original.
Copy text files to a new folder, keep the folder structure. eg: NEWFOLDER\menu\Text\English
Export, import text, no need to keep size limit.
Use darksouls2_bdt_import to copy modified files to end of bdt file. PossibleFilenames.csv need to be in the folder with exe.


Many thank to you :D
Hey swuforce, i run the darksouls2_bdt_import in 3 hours, and it still not complete, can you fix it?


Same here, if I run this new import, it won't finish and it won't modify the files. What are we missing? Or can we use the earlier import program for this?

EDIT: It also says "Script paused" when I click on it on the desktop

EDIT 2:

Okay, I've managed to get it working. Here's what I did:

1. I made a completely new folder in drive C, and I inserted all of these new BinderTool files in it, and the PossibleFileNames and new Import/Export stuff.
2. Then I copied the GameDataEbl files into this folder, and unpacked it with BinderTool
3. I exported the English text from it, then modified it, imported it back
4. Then I opened the bdt importer and imported the whole folder back, and it was complete in a minute or so (maybe more, maybe less).

And now I still can't see unicode characters. The first line in the intro should say "Talán már láthattad, talán egy álomban." in my language, yet it says "Taln mr lthattad, taln egy lomban."

Will do further tests to see what works, but so far the unicode importing isn't :\
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Dark Souls II (fmg)

Post by swuforce »

This is probably a font problem, not tool.
The_Reaper_CooL
Posts: 69
Joined: Sat Dec 05, 2015 2:31 pm

Re: Dark Souls II (fmg)

Post by The_Reaper_CooL »

swuforce wrote:This is probably a font problem, not tool.


The game also has French subtitles, and I think it uses the same font files, will do tests with that and see what I can come up with.

EDIT:

For some reason I couldn't extract the French text, but I tried it out with the Spanish version. And yes, SOME Unicode characters (like é and á) appeared, and some didn't (like ö and ő).

Where and how can I edit the font files, so that it will include everything that I need?

EDIT 2:

I think the text files are stored here: menu/tex/language/English.fetexbnd.dcx

Although I tried replacing this with the Spanish one, the fonts didn't change in-game.
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

I think the font stored in game directory, in the folder named "font"
The_Reaper_CooL
Posts: 69
Joined: Sat Dec 05, 2015 2:31 pm

Re: Dark Souls II (fmg)

Post by The_Reaper_CooL »

vinhmk02 wrote:I think the font stored in game directory, in the folder named "font"


You are right! I didn't think of something simple as this :lol:

Once I get home in 2 hours or so will test it to see if it's working or not.

Also there are many files in there, ranging from .ccm, .dcx, .tpf. I know that .tpf is supposed to be a texture file, but I don't know how to edit it (in case I need to)

EDIT:

Well... this wasn't 2 hours lol :D

So I tested out the fonts, and yes, it turned out that the Portuguese font files are the ones I'm looking for, as they have all the required unicode fonts that I need.

And so the big translation project begins :D
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

Still the same question: I run import tool in 3 hours, but it can't complete.
Reaper_Cool :do you have this problem?
The_Reaper_CooL
Posts: 69
Joined: Sat Dec 05, 2015 2:31 pm

Re: Dark Souls II (fmg)

Post by The_Reaper_CooL »

vinhmk02 wrote:Still the same question: I run import tool in 3 hours, but it can't complete.
Reaper_Cool :do you have this problem?


Nope, it works perfectly for me. This is how I solved it (detailed guide by TRC, aka myself)

1. Make a folder on a drive, it can be C, D or whatever, and call it Bindertool.
2. Unpack all the stuff in there, so that Bindertool files and darksouls2_export/import/whatever will be in the same folder.
3. Copy the GameDataEbl.bdt, .bhd and GameDataKeyCode.pem into this folder.
4. Drag the GameDataEbl.bdt file onto the Bindertool program, and let it finish (don't do a thing on your PC, it should be finished in 10 mins max., the Bindertool black cmd window will disappear).
5. Once it's done, run darksouls2_export, and go into the BinderTool\GameDataEbl\menu\Text\English folder, and select it.
6. It should be finished in 1 min max., and will create an English.txt next to these Bindertool files.
7. Edit it however you like, and once you are done editing it, just run the darksouls2_import application, choose the English.txt file and then the folder that you've chosen earlier (BinderTool\GameDataEbl\menu\Text\English)
8. You have a file on your C drive called "decrypted.dat", go and copy it here into your Bindertool folder.
9. Rename this file into "GameDataEbl.bhd", deleting the former one (you can make a backup copy of it).
10. Now comes the importing, which now shouldn't take long. You run the darksouls2_bdt_import application, and then choose GameDataEbl.bdt file, and then the GameDataEbl folder (which means you don't choose just the English folder or any folder, you choose the whole folder that you've extracted earlier). There's a PossibleFilenames.csv file, it should be in the same file as darksouls2_bdt_import (just like the rest of the files)
11. Now you have to wait, don't do anything or click on the application's icon on the tray in the bottom right corner of the screen, and let it run and do it's thing. It should be finished in 10 mins or so.
12. Copy the files back to the game's folder and test your stuff.

NOTE:
I've noticed that with this the files will be placed at the end of the .bdt file, meaning that it will always increase in size with every import. I suggest you always use a clean .bdt file for importing, otherwise it will get cluttered really quickly.


Hope this helps :)
vinhmk02
Posts: 27
Joined: Sat Jul 11, 2015 8:04 am

Re: Dark Souls II (fmg)

Post by vinhmk02 »

It work! :mrgreen: I forgot the "decrypted.dat", maybe that why the tool not working ealier.
Thank you very very much :D
Anyway, where are you from?