Force of Nature

How to translate the files of a game
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Force of Nature

Post by giangy64 »

Help.
I would like to translate this game, so that the texts are in:
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
-----

I made it because I had time.
I think I can use it.
(At a minimum, Unpack Data and Repack Data are now identical.)

I'm sorry, but I may not be able to fix the bug.

(I use machine translation.)
Last edited by mugicoco on Tue May 07, 2019 9:46 am, edited 2 times in total.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

mugicoco wrote:I made it because I had time.
I think I can use it.
(At a minimum, Unpack Data and Repack Data are now identical.)

I'm sorry, but I may not be able to fix the bug.

(I use machine translation.)

Ok unpack but it creates .sdb files, how do I open them?
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
-----

I also created a Tool for .sdb files.
(Also updated .pck Tool. Please use this.)
However, you are probably checking the number of bytes on a file-by-file basis.

It is TSV File that is output by .sdb tool.
The line feed code (CRLF) has been replaced by "[CRLF]". When repacking, if there is this string, it will be rewritten to a line feed code.
Line 1: Do not change.
Line 2: Do not change.
Line 3 and beyond: ID --> Translation text
※ Please do not change the ID.

Check the byte count of the original .sdb file.
Add 0x00 after the new .sdb file so that the number of bytes is the same.
If it exceeds, please adjust it with the text for translation.

We are sorry but we can not support it further because we do not know how we check in the game.
Please try trial and error.
Last edited by mugicoco on Tue May 07, 2019 9:46 am, edited 2 times in total.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

mugicoco wrote:I also created a Tool for .sdb files.
(Also updated .pck Tool. Please use this.)
However, you are probably checking the number of bytes on a file-by-file basis.

It is TSV File that is output by .sdb tool.
The line feed code (CRLF) has been replaced by "[CRLF]". When repacking, if there is this string, it will be rewritten to a line feed code.
Line 1: Do not change.
Line 2: Do not change.
Line 3 and beyond: ID --> Translation text
※ Please do not change the ID.

Check the byte count of the original .sdb file.
Add 0x00 after the new .sdb file so that the number of bytes is the same.
If it exceeds, please adjust it with the text for translation.

We are sorry but we can not support it further because we do not know how we check in the game.
Please try trial and error.

Ok Thank for the work you've done... I can unpack and recompile the files but the game doesn't start
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
-----

I think this game is checking the byte count of "probably" files.
It is unknown whether it is the unpacked file unit or the Data.pck unit.

First try matching the size in individual file units.
For example, if Quest.sdb is 16000 bytes, try repacking to have the same file size.
Example) Repack Quest.txt, fill in 400 bytes with 0x00 if it is 15600 bytes.
Therefore, you can only adjust by translation what becomes larger than the original file size.
Also, "D" in Data.pck must be in upper case (updated tools will output in upper case).

I am also working on translating into my native language, but it is a series of trial and error.
First of all, please try from what you can do.

P.S.
As a side note, sdb's repacker does not reproduce the original file completely.
Because the original file is adjusted file size, unnecessary data may be written (please check in other languages).
Therefore, as mentioned earlier, please make the original file size the same as the repacked file size.

I wish you the best of luck.
Last edited by mugicoco on Tue May 07, 2019 9:46 am, edited 1 time in total.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

mugicoco wrote:I think this game is checking the byte count of "probably" files.
It is unknown whether it is the unpacked file unit or the Data.pck unit.

First try matching the size in individual file units.
For example, if Quest.sdb is 16000 bytes, try repacking to have the same file size.
Example) Repack Quest.txt, fill in 400 bytes with 0x00 if it is 15600 bytes.
Therefore, you can only adjust by translation what becomes larger than the original file size.
Also, "D" in Data.pck must be in upper case (updated tools will output in upper case).

I am also working on translating into my native language, but it is a series of trial and error.
First of all, please try from what you can do.

P.S.
As a side note, sdb's repacker does not reproduce the original file completely.
Because the original file is adjusted file size, unnecessary data may be written (please check in other languages).
Therefore, as mentioned earlier, please make the original file size the same as the repacked file size.

I wish you the best of luck.

It doesn't even work by changing another language. If you can make it work with your language, let us know. Thank you
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
----

1. Unpack the .sdb
2. Edit the text
3. Repack
 - Do not exceed the original file size.
4. Original File size = Repack File size
5. Repack to Data.pck
6. Game start

As you can see, the game is launched and the changes are reflected.
Last edited by mugicoco on Tue May 07, 2019 9:45 am, edited 1 time in total.
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
-----

Adjusted Sdb's unpacker / Repacker.
Please unpack the .sdb again.
The original file size is written to the first line of the output file, so do not change lines 1 to 3.
Read the original file size when repacking.
With that as a reference, create a new file with the same file size. (0x00 will be written for the shortage.)
However, if the original file size is exceeded, it will not be repacked.

PS.
If this does not work, it is impossible for me.
Sorry, please forgive me.
Last edited by mugicoco on Tue May 07, 2019 9:45 am, edited 1 time in total.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

mugicoco wrote:Adjusted Sdb's unpacker / Repacker.
Please unpack the .sdb again.
The original file size is written to the first line of the output file, so do not change lines 1 to 3.
Read the original file size when repacking.
With that as a reference, create a new file with the same file size. (0x00 will be written for the shortage.)
However, if the original file size is exceeded, it will not be repacked.

PS.
If this does not work, it is impossible for me.
Sorry, please forgive me.

this is the modified file in my language, check if it's ok.
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Please do not refer to the following.
-----

First, attached "Menu. Txt" is made of old unpacker, so please recreate it.
(If the file size is described in the first line, it is a new type.)
Also, I think that the file size will differ depending on what the original language is, so I do not know if the attached one can be used.

However, I understood a part that seems to be the cause.
About text encoding, it has to be UTF-8 (without BOM).
Open with UTF-8 (without BOM) if you open it with a compatible text editor. (Eg "Notepad ++")
I did not explain about this and I was bad.

I am not sure if the attached file was originally in English, but I attached the attached file to the English version for confirmation. As a result, the number of characters is too large (Repack can not be performed).
Please devise it to be smaller than the original file size.
(Do not mix languages. If you use the English version, use the English version of .sdb for everything.)
Last edited by mugicoco on Tue May 07, 2019 9:46 am, edited 1 time in total.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Force of Nature

Post by Delutto »

mugicoco wrote:Please devise it to be smaller than the original file size.
Why? Your tool don't update the size on TOC?

Force of Nature PCK Tool
By Delutto
See Readme.txt for instructions.
Force_of_Nature_PCK_Tool_By_Delutto.7z

Notes: Automatic conversion of the *.sdb files.
I did some quick tests and didn't see any problem related to file size, but...
Image
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Thank you for the new tool.
The file size was also described in the .pck file. I completely forgot.

Questioners should use the new tool.
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Force of Nature

Post by Delutto »

mugicoco wrote:The file size was also described in the .pck file. I completely forgot.
It's part of the learning process... now you just need update your tool, certainly will be useful.
I also noticed some trash data on english sdb files, a few russian texts at the end of some files, probably some initial multilocalization test made by game dev, my tool ignore this additional data, but maybe it's a good idea you check this.
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

I used Force_of_Nature_PCK_Tool.exe.
The attached file is a part of the text file created using this tool, and imported.
If this file is used, the game will not start.
Why?
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Force of Nature

Post by Delutto »

mugicoco wrote:The attached file is a part of the text file created using this tool, and imported.
If this file is used, the game will not start.
Why?
Have you edited any files? What is the game version?
Edit: Your file doesn't worked here too, so I decided to make a nonsense test, rename the file from "data.pck" to "Data.pck" and guess what... the game works. :lol:
So, the conclusion is that the file paths are case sensitive...
mugicoco
Posts: 17
Joined: Thu May 04, 2017 11:03 am

Re: Force of Nature

Post by mugicoco »

Sorry.
Since it did not start even if it returns to the original, it seems that you have accidentally deleted other files if you confirmed.
It worked once I checked the integrity of the file.
Thank you.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

Delutto wrote:
mugicoco wrote:Please devise it to be smaller than the original file size.
Why? Your tool don't update the size on TOC?

Force of Nature PCK Tool
By Delutto
See Readme.txt for instructions.Force_of_Nature_PCK_Tool_By_Delutto.7z
Notes: Automatic conversion of the *.sdb files.
I did some quick tests and didn't see any problem related to file size, but...
Image

Thanks Debuto, it works great.
giangy64
Posts: 26
Joined: Thu Mar 03, 2016 2:43 pm

Re: Force of Nature

Post by giangy64 »

Hi Delutto, you have a script for Force of Nature 2 ??
Thanks
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Force of Nature

Post by Delutto »

giangy64 wrote:Hi Delutto, you have a script for Force of Nature 2 ??
This new one is Unity Engine, search for tools to work with Unity assets.