The Council Episode 1

How to translate the files of a game
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

The Council Episode 1

Post by patyek »

Hi!

How to extract/repack the Loca_en_Main_0.cpk file?

Thanks before!

Br.: Patyek
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

The Council CPK Tool
By Delutto
See Readme.txt for instructions.
Updated version below.

Ps.:
1 - Texts are in *.db files. I need some other localization sample to reseach, like Loca_es_Main_0.cpk(spanish).
2 - CPKH files have some checksum information, so there's a chance of the game doesn't accept the mod files without the checksum update.
3 - There's a chance of the game read the extracted files. I don't have the game so I can't confirm that. Try copy the extracted "data" folder to same folder of the cpk file and rename/delete the respective cpk file and maybe cpkh file too.
Last edited by Delutto on Sun Mar 18, 2018 2:06 am, edited 1 time in total.
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Oh, thanks a lot! I will try it! :R
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Delutto wrote:The Council CPK Tool
By Delutto
See Readme.txt for instructions.The_Council_CPK_Tool_By_Delutto.7z
Ps.:
1 - Texts are in *.db files. I need some other localization sample to reseach, like Loca_es_Main_0.cpk(spanish).
2 - CPKH files have some checksum information, so there's a chance of the game doesn't accept the mod files without the checksum update.
3 - There's a chance of the game read the extracted files. I don't have the game so I can't confirm that. Try copy the extracted "data" folder to same folder of the cpk file and rename/delete the respective cpk file and maybe cpkh file too.


Hi!

The results: extracted files won't work, even if i deleted both 2 files. But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this. How can i edit the db files?

Thanks before!

Br.: Patyek
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

patyek wrote:But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this.

I need the Loca_es_Main_0.cpk file for research the *.db file structure. Upload that file for me.
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Delutto wrote:
patyek wrote:But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this.

I need the Loca_es_Main_0.cpk file for research the *.db file structure. Upload that file for me.


Unfortunately my game version is contain just the english files. :(
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Delutto wrote:
patyek wrote:But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this.

I need the Loca_es_Main_0.cpk file for research the *.db file structure. Upload that file for me.



I bought the game, i will see that contains the spanish version.
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Delutto wrote:
patyek wrote:But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this.

I need the Loca_es_Main_0.cpk file for research the *.db file structure. Upload that file for me.
codec
Posts: 46
Joined: Tue Feb 10, 2015 8:28 am

Re: The Council Episode 1

Post by codec »

patyek wrote:
Delutto wrote:
patyek wrote:But good news that are the other file looks not needed - because if i deleted Loca_es_Main_0.cpkh file the subtitles are correct (english) but the Loca_es_Main_0.cpk needed for this.

I need the Loca_es_Main_0.cpk file for research the *.db file structure. Upload that file for me.



I bought the game, i will see that contains the spanish version.

Take this.But He can make Swuforce for this files
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Council Episode 1

Post by makc_ar »

@Delutto
How about all archives?

Image

Code: Select all

Exception EOutOfMemory in module The_Council_CPK_Tool.exe at 000AF98E.
Out of memory.

Exception EStreamError in module The_Council_CPK_Tool.exe at 000AF9B9.
Out of memory while expanding memory stream.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

makc_ar wrote:@Delutto
How about all archives?

Code: Select all

Exception EOutOfMemory in module The_Council_CPK_Tool.exe at 000AF98E.
Out of memory.

Exception EStreamError in module The_Council_CPK_Tool.exe at 000AF9B9.
Out of memory while expanding memory stream.

Hmm... my tool load cpk file to memory but there's some huge files, I'll change to FileMemory...
I need some of these up to 1Gb files to tests. Can someone upload?
Ps.: Google Drive links, please.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Council Episode 1

Post by makc_ar »

Оld tool by swuforce for .db files. Need test
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

The Council Episode 1 CPK Tool
By Delutto
See Readme.txt for instructions.
The_Council_CPK_Tool_By_Delutto.7z

The Council Episode 1 DB Text Tool
By Delutto
See Readme.txt for instructions.
The_Council_Episode_1_DB_Text_Tool_By_Delutto.7z
Last edited by Delutto on Sat Feb 02, 2019 6:14 pm, edited 3 times in total.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Council Episode 1

Post by makc_ar »

@Delutto
Crash:

Code: Select all

Exporting texts from chapter2_loc_toc_0.db to chapter2_loc_toc_0.txt...
Entries Count: 1

Exporting texts from q11_loc_toc_0.db to q11_loc_toc_0.txt...
Entries Count: 2

Exporting texts from q12_loc_toc_0.db to q12_loc_toc_0.txt...
Entries Count: 1

Exporting texts from q2_loc_toc_0.db to q2_loc_toc_0.txt...
Entries Count: 3

Exporting texts from chapter5_loc_toc_0.db to chapter5_loc_toc_0.txt...
Entries Count: 0

Exporting texts from q4_loc_toc_0.db to q4_loc_toc_0.txt...
Entries Count: 3

Exporting texts from q8_loc_toc_0.db to q8_loc_toc_0.txt...
Entries Count: 11
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: The Council Episode 1

Post by makc_ar »

For Bitmap Font Generator http://www.angelcode.com/products/bmfont configuration files (*.bmfc)
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

makc_ar wrote:@Delutto
Crash:

Code: Select all

Exporting texts from chapter2_loc_toc_0.db to chapter2_loc_toc_0.txt...
Entries Count: 1

Exporting texts from q11_loc_toc_0.db to q11_loc_toc_0.txt...
Entries Count: 2

Exporting texts from q12_loc_toc_0.db to q12_loc_toc_0.txt...
Entries Count: 1

Exporting texts from q2_loc_toc_0.db to q2_loc_toc_0.txt...
Entries Count: 3

Exporting texts from chapter5_loc_toc_0.db to chapter5_loc_toc_0.txt...
Entries Count: 0

Exporting texts from q4_loc_toc_0.db to q4_loc_toc_0.txt...
Entries Count: 3

Exporting texts from q8_loc_toc_0.db to q8_loc_toc_0.txt...
Entries Count: 11

These *.db are from "Databases_PC_Main_0.cpk" file? These cpk file have only just a few french texts, and the file structure have some little differences, but they are useless for translations. Use DB tool only on *db files extracted from Loca_**_Main_0.cpk files. Or try the swuforce tool on they.
By the way, updated CPK Tool work on other cpk files? The big ones?
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

makc_ar wrote:Оld tool by swuforce for .db files. Need test


Thanks! I try to import an edited txt file, and the program say that: "Can't open common_loc_en_0 file."

Any idea?

Br.: Patyek
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

patyek wrote:Thanks! I try to import an edited txt file, and the program say that: "Can't open common_loc_en_0 file."

Any idea?

Br.: Patyek
*.txt files need to be on the same folder of the original *.db files.
patyek
Posts: 100
Joined: Sat May 28, 2016 5:43 am

Re: The Council Episode 1

Post by patyek »

Delutto wrote:
patyek wrote:Thanks! I try to import an edited txt file, and the program say that: "Can't open common_loc_en_0 file."

Any idea?

Br.: Patyek
*.txt files need to be on the same folder of the original *.db files.



Your tool is working, but i got these (see the pictures), is still when i reimport the untouched txt file.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: The Council Episode 1

Post by Delutto »

patyek wrote:Your tool is working, but i got these (see the pictures), is still when i reimport the untouched txt file.
Hmm... strange. Please, send me your edited txt. Let me see whats is going on.