ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Tue Apr 24, 2018 4:30 pm

All times are UTC




Post new topic  Reply to topic  [ 13 posts ] 
Author Message
PostPosted: Tue Oct 31, 2017 2:00 am 

Joined: Sat Aug 13, 2016 10:43 pm
Posts: 12
Help extract the files from the archive of the STR and Language file edit.

https://www.mediafire.com/?z0ppnndtln5vz2m


Top
   
PostPosted: Tue Oct 31, 2017 10:16 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7928
Use this script:
Code:
# Forza Horizon 3 STR
quickbmsver "0.8.1"
get NAME basename
string NAME + ".txt"
savepos CHUNK_OFF
idstring "\x00\x03\x02\x00"
for CHUNK = 0 < 2
    # the first chunk of strings are the values, while the second one are the id/type
    if CHUNK == 0
        get DUMMY long
        get CHUNK_SIZE long
    else
        math CHUNK_SIZE = 0
        cleanexit   # you don't need the ids if you want to translate the game
    endif
    get CHUNK_DATA_SIZE long
    get DATA_SIZE long
    get STRINGS long
    savepos TMP
    xmath BASE_OFF "TMP + (STRINGS * (4 + 4))"
    for i = 0 < STRINGS
        get DUMMY long
        get OFFSET long
        math OFFSET + BASE_OFF
        slog NAME OFFSET -1 unicode
    next i
    math CHUNK_OFF + CHUNK_SIZE
    goto CHUNK_OFF
next CHUNK
As written in the comments there are 2 sets of strings: values and ids.
If you want to translate the game you need to dump only the values which is the default action of the script.
Use the reimport mode to reinsert your strings back in the STR files.


Top
   
PostPosted: Tue Oct 31, 2017 4:19 pm 

Joined: Sat Aug 13, 2016 10:43 pm
Posts: 12
it's working. thanks a lot @aluigi. aluigi number one


Top
   
PostPosted: Tue Oct 31, 2017 7:24 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7928
The Slog command of quickbms used for the textual strings rocks for real :)


Top
   
PostPosted: Tue Nov 07, 2017 11:04 pm 

Joined: Tue Nov 07, 2017 11:03 pm
Posts: 10
How do I import the file? could you Write a script, please?


Top
   
PostPosted: Wed Nov 08, 2017 11:02 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7928
Read section 3 of http://aluigi.org/papers/quickbms.txt


Top
   
PostPosted: Wed Nov 08, 2017 11:31 am 

Joined: Tue Nov 07, 2017 11:03 pm
Posts: 10
Sorry, unfortunately I could not. Could you give a little more simple explanation? This is very important for me.


Top
   
PostPosted: Wed Nov 08, 2017 11:50 am 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7928
  • open the generated txt file with an editor
  • edit the strings you want without making them longer than the originals
  • click on reimport.bat and select the SAME script, file and folder you selected for the extraction. I repeat, the SAME.


Top
   
PostPosted: Wed Nov 08, 2017 11:59 am 

Joined: Tue Nov 07, 2017 11:03 pm
Posts: 10
Thank you very much, man.


Top
   
PostPosted: Wed Nov 08, 2017 12:18 pm 

Joined: Tue Nov 07, 2017 11:03 pm
Posts: 10
:((
I made a translation, I imported the file but it did not change in the game.


Top
   
PostPosted: Wed Nov 08, 2017 12:37 pm 
Site Admin
User avatar

Joined: Wed Jul 30, 2014 9:32 pm
Posts: 7928
Unfortunately I can't help you in real-time.
It's very simple: if it doesn't work it means you made something wrong.
quickbms tells you if reimporting was successful.


Top
   
PostPosted: Sun Nov 26, 2017 10:31 pm 

Joined: Thu Oct 16, 2014 4:39 pm
Posts: 166
Try the tool from my sources.

_________________
Texttool sources: viewtopic.php?f=12&t=645


Top
   
PostPosted: Fri Dec 01, 2017 2:54 pm 
User avatar

Joined: Sun Aug 17, 2014 7:27 pm
Posts: 1017
Thanks a lot swuforce!


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 13 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