*.bytes files [Decrypted PSVita game assets]

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
cardia
Posts: 11
Joined: Mon Oct 05, 2020 4:02 pm

*.bytes files [Decrypted PSVita game assets]

Post by cardia »

The bytes files (textures) are obtained from the decrypted psarc file (after decrypting the nonpdrm game folder). Is there any way to convert/extract them to PNG files? They are characters.
Game name:Moshi, Konoyo Sakai ni Kamisama ga Iru Tosuru Nara
BloodRaynare
Posts: 367
Joined: Fri Mar 10, 2017 7:23 am

Re: *.bytes files [Decrypted PSVita game assets]

Post by BloodRaynare »

These are raw 32bpp images and honestly this post should go in Graphics section. The 4MB ones resolution is 1024x1024 while the 16MB ones is 2048x2048. You can use any raw image viewer tools to convert it to PNG (ex TiledGGD or Kuriimu2 OTOH).
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: *.bytes files [Decrypted PSVita game assets]

Post by rabatini »

cardia wrote:The bytes files (textures) are obtained from the decrypted psarc file (after decrypting the nonpdrm game folder). Is there any way to convert/extract them to PNG files? They are characters.
Game name:Moshi, Konoyo Sakai ni Kamisama ga Iru Tosuru Nara


Hi, you can use mummggtool to convert to png.



Use this script to eliminate the zeros or null bytes.

Code: Select all

findloc OFFSET LONG "0X00000001"
GOTO OFFSET
SAVEPOS TEMP

GET FILE ASIZE
XMATH SIZE "(FILE - TEMP)"
LOG "" OFFSET SIZE
cardia
Posts: 11
Joined: Mon Oct 05, 2020 4:02 pm

Re: *.bytes files [Decrypted PSVita game assets]

Post by cardia »

rabatini wrote:
cardia wrote:The bytes files (textures) are obtained from the decrypted psarc file (after decrypting the nonpdrm game folder). Is there any way to convert/extract them to PNG files? They are characters.
Game name:Moshi, Konoyo Sakai ni Kamisama ga Iru Tosuru Nara


Hi, you can use mummggtool to convert to png.

4@0010682493.png

Use this script to eliminate the zeros or null bytes.

Code: Select all

findloc OFFSET LONG "0X00000001"
GOTO OFFSET
SAVEPOS TEMP

GET FILE ASIZE
XMATH SIZE "(FILE - TEMP)"
LOG "" OFFSET SIZE


Thank you!Could you give me a sample that how to use the tool?I get image like this horrible one
rabatini
Posts: 179
Joined: Tue Jan 18, 2022 12:21 am

Re: *.bytes files [Decrypted PSVita game assets]

Post by rabatini »

Image

Its 2048 width image, if you use the script i posted you have t put 743 for height, if not 2048x2048

To save as png or bmp, in the window just press right mouse button, to import back click twice in the window.