ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Mon Mar 08, 2021 6:03 am

All times are UTC




Post new topic  Reply to topic  [ 11 posts ] 
Author Message
PostPosted: Fri Feb 12, 2021 8:58 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
I need help to export and import.
Need a tool for game localization.


Attachments:
LocalizationData.rar [1.89 MiB]
Downloaded 44 times
Top
   
PostPosted: Sun Feb 14, 2021 5:42 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
https://github.com/bartlomiejduda/Tools ... AT_Tool.py

http://wiki.xentax.com/index.php/Haven_DAT


Top
   
PostPosted: Sun Feb 14, 2021 9:13 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12011
Even if the format is already covered, I made a script trying to figure out the format from scratch:
Code:
# 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.


Top
   
PostPosted: Sun Feb 14, 2021 9:45 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
ty for your helps.
working fine.


Top
   
PostPosted: Sun Feb 14, 2021 9:50 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 97
aluigi wrote:
Even if the format is already covered, I made a script trying to figure out the format from scratch:
Code:
# 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:
quickbms.exe -G -w -r -r -r

Code:
- 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


Top
   
PostPosted: Sun Feb 14, 2021 9:53 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 12011
Try the beta of quickbms, I'm currently working with it:
https://aluigi.org/beta/quickbms_exe.zip


Top
   
PostPosted: Wed Feb 24, 2021 1:20 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 538
Haven DAT Tool
By Delutto

See Readme.txt for instructions.
Attachment:
Haven_DAT_Tool_By_Delutto.7z [3.22 MiB]
Downloaded 30 times
Notes: Based on file samples and not tested ingame.

_________________
Tribo Gamer Brasil


Top
   
PostPosted: Wed Feb 24, 2021 9:41 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
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


Top
   
PostPosted: Mon Mar 01, 2021 3:26 am 
User avatar

Joined: Tue Oct 13, 2015 1:26 pm
Posts: 538
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.

_________________
Tribo Gamer Brasil


Top
   
PostPosted: Mon Mar 01, 2021 7:25 am 

Joined: Wed Jun 17, 2020 1:12 pm
Posts: 97
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.


Top
   
PostPosted: Mon Mar 01, 2021 7:38 am 

Joined: Sun Jun 02, 2019 10:40 pm
Posts: 38
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.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 11 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited