Genkai Tokki Seven Pirates .PAC & TEX_VITA files

Extraction and unpacking of game archives and compression, encryption, obfuscation, decoding of unknown files
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

Genkai Tokki Seven Pirates .PAC & TEX_VITA files

Post by ChrisX930 »

Hey Guys,

currently I started to activly using my PSVita again.
I want to translate a game where no translation exists for + maybe edit models and textures.

The Game I want to modify is Genkai Tokki Seven Pirates.
I've uploaded some file samples on my server so you're able to check out the files.

I'd like to extract and rebuild this files, if possible.
https://cellenseres.de/SP/newLogin/down ... tes/BG.rar (tex_vita files)
https://cellenseres.de/SP/newLogin/down ... /CHARA.rar (pac files)

Would be awesome if someone could help me out with this :D
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Genkai Tokki Seven Pirates .PAC & TEX_VITA files

Post by Acewell »

here is Noesis python script to open your tex_vita samples. :D
tex_GenkaiTokkiSevenPirates_PSVita_tex_vita.zip

supports rgba8888
ChrisX930
Posts: 35
Joined: Wed Feb 24, 2016 11:08 am

Re: Genkai Tokki Seven Pirates .PAC & TEX_VITA files

Post by ChrisX930 »

Acewell wrote:here is Noesis python script to open your tex_vita samples. :D
tex_GenkaiTokkiSevenPirates_PSVita_tex_vita.zip
supports rgba8888


Thank you very much :D
I'm very new to python and I'm currently trying to understand how your script works.
Based on this, I'm trying to create a png to tex_vita converter.
I mean, I never worked much with imagefiles yet and mainly use C# for my stuff.

That's what I understand so far:
Image

So I don't understand the unknown variable. Is it like a checksum? Not sure what this part is tbh.
Do you maybe know how to read the raw pixel data of png-files in C#?
If I knew that, I'd probably be able to write a small tool that lets me convert png-files to tex_vita files.
Still learning xP


Also any idea about the pac-files?


UPDATE [So May 17, 2020 2:00 am]:
Was able to create a C# Version of the tex_vita to png converter.
Now I'm trying to do create a png to tex_vita converter (will try this tomorrow)
Acewell
Posts: 706
Joined: Fri Aug 08, 2014 1:06 am

Re: Genkai Tokki Seven Pirates .PAC & TEX_VITA files

Post by Acewell »

ChrisX930 wrote:So I don't understand the unknown variable. Is it like a checksum?

i guess it could be like a hash or something, all i
know is it wasn't vital to parsing the image data. :D

ChrisX930 wrote:Also any idea about the pac-files?

i didn't look at the pac files, i figured aluigi would cover that one,
i enjoy looking at image data so i just picked the tex_vita samples. :)

edit
i just took a quick look at a pac file and i see various data including more
image data, but the file structure looks too chaotic for me to parse properly. :(