Sky Gamblers: Storm Raiders .str

How to translate the files of a game
makc_ar
Posts: 1193
Joined: Sun Aug 17, 2014 7:27 pm

Sky Gamblers: Storm Raiders .str

Post by makc_ar »

aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Sky Gamblers: Storm Raiders .str

Post by aluigi »

The format of the STR files is simple but they use some obfuscation that I can't identify, so ignore the following work-in-progress script:

Code: Select all

get NAME filename
string NAME + ".txt"
idstring "STRB2\0"
get STRINGS short
savepos BASE_OFF
xmath BASE_OFF "BASE_OFF + ((STRINGS+1) * 4)"
for i = 0 < STRINGS # STRINGS+1 is asize
    get OFFSET long
    math OFFSET + BASE_OFF
    filexor 0x63   # WRONG!!!
    slog NAME OFFSET -1 unicode
    filexor ""
next i