Forza Horizon 3 Pc (.Str)

How to translate the files of a game
reveng3
Posts: 12
Joined: Sat Aug 13, 2016 10:43 pm

Forza Horizon 3 Pc (.Str)

Post by reveng3 »

Help extract the files from the archive of the STR and Language file edit.

https://www.mediafire.com/?z0ppnndtln5vz2m
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Forza Horizon 3 Pc (.Str)

Post by aluigi »

Use this script:

Code: Select all

# 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.
reveng3
Posts: 12
Joined: Sat Aug 13, 2016 10:43 pm

Re: Forza Horizon 3 Pc (.Str)

Post by reveng3 »

it's working. thanks a lot .. aluigi number one
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Forza Horizon 3 Pc (.Str)

Post by aluigi »

The Slog command of quickbms used for the textual strings rocks for real :)
SeanPenn
Posts: 17
Joined: Tue Nov 07, 2017 11:03 pm

Re: Forza Horizon 3 Pc (.Str)

Post by SeanPenn »

How do I import the file? could you Write a script, please?
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Forza Horizon 3 Pc (.Str)

Post by aluigi »

SeanPenn
Posts: 17
Joined: Tue Nov 07, 2017 11:03 pm

Re: Forza Horizon 3 Pc (.Str)

Post by SeanPenn »

Sorry, unfortunately I could not. Could you give a little more simple explanation? This is very important for me.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Forza Horizon 3 Pc (.Str)

Post by aluigi »

  • 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.
SeanPenn
Posts: 17
Joined: Tue Nov 07, 2017 11:03 pm

Re: Forza Horizon 3 Pc (.Str)

Post by SeanPenn »

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

Re: Forza Horizon 3 Pc (.Str)

Post by SeanPenn »

:((
I made a translation, I imported the file but it did not change in the game.
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Forza Horizon 3 Pc (.Str)

Post by aluigi »

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.
swuforce
Posts: 233
Joined: Thu Oct 16, 2014 4:39 pm

Re: Forza Horizon 3 Pc (.Str)

Post by swuforce »

Try the tool from my sources.
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Re: Forza Horizon 3 Pc (.Str)

Post by makc_ar »

Thanks a lot swuforce!