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