Forza Horizon 5 / FH5 *.str files

How to translate the files of a game
Lord Vaako
Posts: 26
Joined: Tue Oct 17, 2017 7:36 pm

Forza Horizon 5 / FH5 *.str files

Post by Lord Vaako »

Does anyone know any tool to convert *.str files coming from Forza Horizon 5 to a text file?
Maybe there is some script for FH4 that works? I searched for one but could not find any so far.
I attach a sample *.str files from FH5.

update:

I found the script from FH3 and slightly modified it (I skip the "header").

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"
goto 132
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
NoobInCoding
Posts: 127
Joined: Sat Aug 07, 2021 9:49 am

Re: Forza Horizon 5 / FH5 *.str files

Post by NoobInCoding »

It seems that the bms script written by aluigi has a problem in importing (because of this) so ...

Forza Horizon TextTool
by swuforce(FH3 - FH2) & NoobInCoding(FH5)
ForzaHorizon_texttool.zip
Note: Based on samples. tested in game!

Supported Versions (Import & Export):
  • Forza Horizon 2
  • Forza Horizon 3
  • Forza Horizon 5