Jump to content

(Pixelbite) Reckless Getaway 2 (Android, iOS) - .bar packed files


Go to solution Solved by Thief1987,

Recommended Posts

Posted

Hi, I'm new to this site, but that's doesn't matter. I am looking for help to extract these .bar files used on Reckless Getaway 2 (and potentially other Pixelbite games like Space Marshals or Xenowerk), to get the music and in the future, search for unused content. I've doing some really basic research for myself with opening the file as a text file, surpringsly I found some stuff, at the end of the file there's a list of all the files inside.image.thumb.png.1a941afd9ab4e5457a7d3114f4331f78.png

Also I noticed is that the structure of (at least) this .bar file is very similar to the .vfs files found in some Zeebo and old Pixelbite games, sharing many file formats like .psn and .pxc. Also the header instead of "FUFS" is "CRAB".

But I can't find any info of how to open these .bar files. The most close thing I was see it was in a very old post of the .bar files of Space Marshals 2, another Pixelbite game that apparently also uses .bar files. Someone shared a script to open it but i didn't get the script working, also that post was made in 2016, and the game i'm asking for was released in 2017, probably a old script won't work properly. I attached the file I want to open, any help is welcomed. Thanks!

data.zip

Posted (edited)

It's not hard to extract the archive, but if you need the sound in particular, i can't help you here as i don't have enough knowledge in sound data formats. If you still need it i can make the tool for the archive itself.

Edited by Thief1987
Posted
2 hours ago, Thief1987 said:

It's not hard to extract the archive, but if you need the sound in particular, i can't help you here as i don't have enough knowledge in sound data formats. If you still need it i can make the tool for the archive itself.

Yes please, it could be very helpful. About the sound files, vgmstream has support for the .psn audio files, so don't worry. You only need to change the extension to .psnd an vgmstream will recognize it without issues

  • Solution
Posted (edited)

 

	get FILE_SIZE asize
xmath TOC_PTR "FILE_SIZE - 8"
goto TOC_PTR
get TOC_OFFSET long

goto TOC_OFFSET
get FILE_COUNT long

for i = 0 < FILE_COUNT
    get OFFSET long
    get SIZE long
    get COMP_FLAG byte
    get NAME_LEN short
    getdstring NAME NAME_LEN
    get UNK long
    savepos TOC_ENTRY_POS

    if COMP_FLAG == 0
        log NAME OFFSET SIZE
    else
        goto OFFSET
        get MAGIC long
        get UNCOMP_SIZE long
        get COMP_SIZE long
        savepos COMP_START
        clog NAME COMP_START COMP_SIZE UNCOMP_SIZE
    endif
    goto TOC_ENTRY_POS
next i
	

 

You can extract it with this script. I also tried audio, and like you said, it work with vgstream 

Edited by Thief1987
  • Like 1
Posted
10 hours ago, Thief1987 said:

 

	get FILE_SIZE asize
xmath TOC_PTR "FILE_SIZE - 8"
goto TOC_PTR
get TOC_OFFSET long

goto TOC_OFFSET
get FILE_COUNT long

for i = 0 < FILE_COUNT
    get OFFSET long
    get SIZE long
    get COMP_FLAG byte
    get NAME_LEN short
    getdstring NAME NAME_LEN
    get UNK long
    savepos TOC_ENTRY_POS

    if COMP_FLAG == 0
        log NAME OFFSET SIZE
    else
        goto OFFSET
        get MAGIC long
        get UNCOMP_SIZE long
        get COMP_SIZE long
        savepos COMP_START
        clog NAME COMP_START COMP_SIZE UNCOMP_SIZE
    endif
    goto TOC_ENTRY_POS
next i
	

 

You can extract it with this script. I also tried audio, and like you said, it work with vgstream 

It worked! Thank you very much!!!

  • Like 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...