Haven (2020) LocalizationData.dat

How to translate the files of a game
JesWhite
Posts: 47
Joined: Sun Jun 02, 2019 10:40 pm

Haven (2020) LocalizationData.dat

Post by JesWhite »

I need help to export and import.
Need a tool for game localization.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Haven (2020) LocalizationData.dat

Post by aluigi »

Even if the format is already covered, I made a script trying to figure out the format from scratch:

Code: Select all

# Haven (2020) LocalizationData.dat

get STRINGS long
for i = 0 < STRINGS
    callfunction GET_STRING 1   # can be ""
    callfunction GET_STRING 1
    if NAME != ""
        get NUM long
        for x = 0 < NUM
            callfunction GET_STRING 1
            callfunction GET_STRING 1
        next x
        get NUM long
        if NUM != 0
            for x = 0 < NUM
                callfunction GET_STRING 1
            next x
        else
            callfunction GET_STRING 1
        endif
    endif
next i

get NUM long
for x = 0 < NUM
    callfunction GET_STRING 1
next x

startfunction GET_STRING
    get NAMESZ long
    slog "" -1 NAMESZ
    padding 4
endfunction

In theory the reimport3 mode of quickbms should allow the reimporting.

reimport3 is a special mode that must be manually activated:
quickbms.exe -G -w -r -r -r

Just for testing.
JesWhite
Posts: 47
Joined: Sun Jun 02, 2019 10:40 pm

Re: Haven (2020) LocalizationData.dat

Post by JesWhite »

ty for your helps.
working fine.
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Re: Haven (2020) LocalizationData.dat

Post by yusuf2020 »

aluigi wrote:Even if the format is already covered, I made a script trying to figure out the format from scratch:

Code: Select all

# Haven (2020) LocalizationData.dat

get STRINGS long
for i = 0 < STRINGS
    callfunction GET_STRING 1   # can be ""
    callfunction GET_STRING 1
    if NAME != ""
        get NUM long
        for x = 0 < NUM
            callfunction GET_STRING 1
            callfunction GET_STRING 1
        next x
        get NUM long
        if NUM != 0
            for x = 0 < NUM
                callfunction GET_STRING 1
            next x
        else
            callfunction GET_STRING 1
        endif
    endif
next i

get NUM long
for x = 0 < NUM
    callfunction GET_STRING 1
next x

startfunction GET_STRING
    get NAMESZ long
    slog "" -1 NAMESZ
    padding 4
endfunction

In theory the reimport3 mode of quickbms should allow the reimporting.

reimport3 is a special mode that must be manually activated:
quickbms.exe -G -w -r -r -r

Just for testing.

Export succesfly but there are more lines than python script (100k)
My reimport3.bat

Code: Select all

quickbms.exe -G -w -r -r -r

Code: Select all

- error in src\file.c line 1965: dumpa_slog()
Error: No such file or directory

Last script line before the error or that produced the error:
  31  slog "" -1 NAMESZ

reimport does not work
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Haven (2020) LocalizationData.dat

Post by aluigi »

Try the beta of quickbms, I'm currently working with it:
https://aluigi.org/beta/quickbms_exe.zip
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Haven (2020) LocalizationData.dat

Post by Delutto »

Haven DAT Tool
By Delutto

See Readme.txt for instructions.
Haven_DAT_Tool_By_Delutto.7z
Notes: Based on file samples and not tested ingame.
JesWhite
Posts: 47
Joined: Sun Jun 02, 2019 10:40 pm

Re: Haven (2020) LocalizationData.dat

Post by JesWhite »

Delutto wrote:Haven DAT Tool
By Delutto

See Readme.txt for instructions.Haven_DAT_Tool_By_Delutto.7zNotes: Based on file samples and not tested ingame.

Ty, Delutto.
But there is game crash.
Image
Delutto
Posts: 561
Joined: Tue Oct 13, 2015 1:26 pm

Re: Haven (2020) LocalizationData.dat

Post by Delutto »

JesWhite wrote:Ty, Delutto.
But there is game crash.
There's nothing wrong, my tool recreate the file structure perfectly.
I suppose that is a bundle asset recreation error.
If you are using the UnityEx paid version, report this problem to developer, it's your right.
yusuf2020
Posts: 106
Joined: Wed Jun 17, 2020 1:12 pm

Re: Haven (2020) LocalizationData.dat

Post by yusuf2020 »

Delutto wrote:
JesWhite wrote:Ty, Delutto.
But there is game crash.
There's nothing wrong, my tool recreate the file structure perfectly.
I suppose that is a bundle asset recreation error.
If you are using the UnityEx paid version, report this problem to developer, it's your right.

I imported file without changing anything, and checked if there is any difference with python.There is no even one different character.
JesWhite
Posts: 47
Joined: Sun Jun 02, 2019 10:40 pm

Re: Haven (2020) LocalizationData.dat

Post by JesWhite »

Delutto wrote:
JesWhite wrote:Ty, Delutto.
But there is game crash.
There's nothing wrong, my tool recreate the file structure perfectly.
I suppose that is a bundle asset recreation error.
If you are using the UnityEx paid version, report this problem to developer, it's your right.


i fixed now.
ty so much.
Working fine for me.