Fable Anniversary bbb

How to translate the files of a game
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Fable Anniversary bbb

Post by aluigi »

The following is a parser for the bbb files of the game Fable Anniversary.
In reality they are not files, they are just text strings and in fact the script dumps them on the screen.
If you want to dump them as files just uncomment and comment the relative lines.

Code: Select all

idstring "BBBB"
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get DUMMY long
get OFFSET long
goto OFFSET

get DUMMY long
get DUMMY long  # 0
get FILES long
get DUMMY long  # 1
get DUMMY long  # 83c

for i = 0 < FILES
    get DUMMY long
    if DUMMY != 0
        get DUMMY long
    endif
    get DUMMY long  # 2a
    get FILE_NUM long
    get DUMMY long  # 0
    get SIZE long
    get OFFSET long
    get DUMMY long  # 0
    get NAMESZ long
    getdstring NAME NAMESZ
    get DUMMY long  # 0
    get DUMMY long  # 0

    # make your choice
    #log NAME OFFSET SIZE   # dump to file
    callfunction DUMP 1     # dump to screen
next i

startfunction DUMP
    savepos TMP
    goto OFFSET
    get STR unicode
    print "%NAME%=%STR%"
    goto TMP
endfunction
kamuline
Posts: 1
Joined: Thu Sep 15, 2022 7:15 pm

Re: Fable Anniversary bbb

Post by kamuline »

Hello all
Can someone take a look at these files too?
This is where the game read the texts.
Thx