Page 1 of 1

Persona 5 .bin

Posted: Mon Dec 19, 2016 3:31 am
by victordm09
I'm trying to get the portraits from Persona 5, I've had luck extracting the game files, but inside there are these .bin files in which I'm sure the portraits are. Opening some of them on a hex editor reveals a .dds and .dds2 files inside them

Image
Image

Some samples to help converting
http://puu.sh/sUcUg/010e9300cb.rar

Thanks in advance

Re: Persona 5 .bin

Posted: Mon Dec 19, 2016 6:25 pm
by Acewell
here is generic bms script to split the textures with names :D

Code: Select all

findloc OFFSET binary "\x44\x44\x53\x20" 
do
    goto OFFSET
    get DUMMY long
    findloc NEXT_OFFSET binary "\x44\x44\x53\x20" 0 ""
    if NEXT_OFFSET == ""
        get SIZE asize
    else
        math SIZE = NEXT_OFFSET
    endif
    math SIZE - OFFSET
    math OFFSET - 0x24 
    goto OFFSET
    getdstring NAME 0x24
    savepos OFFSET
    log NAME OFFSET SIZE
    math OFFSET = NEXT_OFFSET
while NEXT_OFFSET != ""