Page 1 of 1
Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Sat Jul 10, 2021 6:07 pm
by void133
ok, i actually want to try to extract resource from a res.dat file from a psp iso but i heard theres very little tools that can help do this... so where can i start to give this a try?
Re: PSP DAT files
Posted: Sat Jul 10, 2021 8:09 pm
by ikskoks
What is name of the game you are trying extract data from?
Also, please upload sample DAT file.
Re: PSP DAT files
Posted: Sun Jul 11, 2021 6:37 am
by void133
the game is boku ha tomodachi ga sukunai portable, i would like to put the sample file but the extension is .dat so i cant really put it as attachment, sorry...
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Sun Jul 11, 2021 10:54 am
by ikskoks
i cant really put it as attachment, sorry...
You can upload it to service like mega.nz, google drive etc. and then share a link here.
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Mon Jul 12, 2021 6:14 am
by void133
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Mon Jul 12, 2021 6:47 pm
by ikskoks
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Tue Jul 13, 2021 4:59 pm
by void133
thanks, i didnt think it was that simple tbh, i found what i wanted but now i got a new problem, the textures are in gim extension... and i know gimconv can convert it back to png but how do i use it? didnt work using terminal
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Tue Jul 13, 2021 6:17 pm
by ikskoks
You can use it like this:
Check also other GIM tools from the wiki
http://wiki.xentax.com/index.php/GIM_Image
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Wed Jul 14, 2021 6:13 am
by void133
yea... i gave it a try but now i just realized gimconv only works with ps3 type gims... the game i target was psp so it got the wrong format error... any ideas about which converter for gim works with the psp type?
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Wed Jul 14, 2021 9:16 pm
by ikskoks
gimconv only works with ps3 type gims... the game i target was psp so it got the wrong format error...
No, you're wrong. Gimconv works fine with PSP GIM files. You can check it for example with those files:
RES\image_map\map00\
bg.gim
RES\image_title\image_title\
t_logo.gim
See result here
https://i.imgur.com/ONY4FOQ.png
You're getting "wrong format" error because most of those GIM files are also compressed with
gzip.
Script for DAT file should handle it automatically, but it didn't, so I will post my script for decompression below.
You can see it for example for file RES\image_bg\
BG01A.gim
Result here
https://i.imgur.com/obUGoN7.png
And here is the script:
Code: Select all
# Author: Bartlomiej Duda
# Creation Date: 14.07.2021
comtype gzip
get ZSIZE asize
set SIZE long 0
math SIZE = ZSIZE
math SIZE *= 20
get NAME basename
string NAME + "_new.gim"
clog NAME 0 ZSIZE SIZE
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Thu Jul 15, 2021 6:21 am
by void133
uh... okay then... is that supposed to be executed as a bat file? how do i exactly use it to decompress gzip compressed gim files? im not an expert at programming so i dont really have much of a clue on how to use the code you just sent me
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Thu Jul 15, 2021 8:04 am
by ikskoks
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Thu Jul 15, 2021 3:19 pm
by void133
thanks for the help, it works well also has some experience using quickbms with destiny child pck files so the rest is easy, but im curious about something... can quickbms process more than 1 file using the same script?
Re: Boku wa Tomodachi ga Sukunai Portable (PSP) - DAT files
Posted: Thu Jul 15, 2021 6:24 pm
by ikskoks
can quickbms process more than 1 file using the same script?
Sure, but you need additional BAT script for that.
So for example if you have some GIM files, quickbms script, quickbms executable and BAT script in the same directory,
then it would look like this
https://i.imgur.com/UEDscNr.png
And the script for automation could look like this:
https://github.com/bartlomiejduda/Tools ... OR_ALL.BAT