Guardians of the Galaxy

How to translate the files of a game
lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Guardians of the Galaxy

Post by lazenes »

With which script I can open the pc_resourcelib extension files of the game called Guardians of the Galaxy, no script files are extracted.
Sample file is available at the link :https://www32.zippyshare.com/v/f76z9ksO/file.html
the script i use

Code: Select all

# Deus EX: Mankind Divided (script 0.2)
# script for QuickBMS http://quickbms.aluigi.org

math PARSE_SOMETHING = 0    # try to dump the FSB files from the SBSF containers

idstring "ARCH"
get DUMMY long
get FILES long  # it's more like FOLDERS
get NAMES long
get OFFSET longlong
goto OFFSET
for i = 0 < NAMES
    callfunction GET_NAME 1
next i
for i = 0 < FILES
    get TSTAMP longlong
    getdstring HASH 16
    callfunction GET_NAME 1
    get CHUNKS long
    string NAME + /
    if PARSE_SOMETHING != 0
        log MEMORY_FILE 0 0
        append
    endif
       for x = 0 < CHUNKS  # it's more like FILES
        get NUMOFNAME long #if NAMES are more than 1, it loads some files from another file
        get DUMMY longlong
        get OFFSET longlong
        get SIZE longlong
        if PARSE_SOMETHING != 0
            log MEMORY_FILE OFFSET SIZE
        else
            log NAME OFFSET SIZE
        endif
    next x
    if PARSE_SOMETHING != 0
        append

        goto 0 MEMORY_FILE
        get SIZE asize MEMORY_FILE
        math MEM_SIZE = SIZE
        getdstring SIGN 4 MEMORY_FILE
        if SIGN == "BILR"
            getdstring ZERO 8 MEMORY_FILE
            get SIZE long MEMORY_FILE
            get DUMMY long MEMORY_FILE
            get ZERO long MEMORY_FILE
            for OFFSET = 16 != MEM_SIZE
                savepos OFFSET MEMORY_FILE
                getdstring SIGN 4 MEMORY_FILE
                if SIGN == "SBSF"
                    getdstring ZERO 8 MEMORY_FILE
                    get SIZE long MEMORY_FILE
                    getdstring DUMMY 8 MEMORY_FILE
                    findloc FSB_OFF binary "FSB5" MEMORY_FILE
                    math SIZE + 0x18
                    xmath NEXT_OFF "OFFSET + SIZE"
                    if FSB_OFF u< NEXT_OFF
                        math OFFSET = FSB_OFF
                        xmath SIZE "NEXT_OFF - OFFSET"
                    endif
                    log NAME OFFSET SIZE MEMORY_FILE
                    math OFFSET = NEXT_OFF
                    goto OFFSET MEMORY_FILE
                else
                    log NAME OFFSET SIZE MEMORY_FILE
                    math OFFSET = MEM_SIZE
                endif
            next
        else
            log NAME 0 SIZE MEMORY_FILE
        endif
    endif
next i

startfunction GET_NAME
    get NAMESZ long
    math NAMESZ + 1
    getdstring NAME NAMESZ
endfunction
lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Re: Guardians of the Galaxy

Post by lazenes »

@ aluigi Can you help?
lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Re: Guardians of the Galaxy

Post by lazenes »

I am looking for Programmer Friends to help me I am trying to develop a Tool for this game
https://prnt.sc/21m7khy
https://github.com/lazenes/PC_Headerlib-Viewer
aluigi
Site Admin
Posts: 12984
Joined: Wed Jul 30, 2014 9:32 pm

Re: Guardians of the Galaxy

Post by aluigi »

@lazenes
There are already other topics open about the BILR format, here is the first mention I found:
viewtopic.php?p=17003#p17003
Please refer to those topics
Ekey
Posts: 1383
Joined: Sat Aug 09, 2014 2:34 pm

Re: Guardians of the Galaxy

Post by Ekey »

lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Re: Guardians of the Galaxy

Post by lazenes »

https://prnt.sc/23lli45
I have accessed the files, but there is a separate file for each word, I do not know how to organize them into a single file?
NoobInCoding
Posts: 127
Joined: Sat Aug 07, 2021 9:49 am

Re: Guardians of the Galaxy

Post by NoobInCoding »

Send some sample files
lazenes
Posts: 22
Joined: Sat Feb 13, 2021 8:32 pm

Re: Guardians of the Galaxy

Post by lazenes »

NoobInCoding wrote:Send some sample files

https://www110.zippyshare.com/v/rD9C8RUg/file.html