Page 1 of 1
Help with unpacking and repacking the TSA .gpk files
Posted: Tue Mar 29, 2011 5:09 pm
by abcfate
TSA(TOHO SKY ARENA) is a new TOHO game from Japan.
there is the file of TSA ,and it used .gpk .
Anyone can help me to unpaking and repaking the TSA .gpk files?
I tried this
viewtopic.php?f=10&t=4742&hilit=T and this
http://www.gildor.org/downloads
but both Error.
may you help me, PLEASE
A .gpk files can be download from the attachments~
I'm sorry my English is very poor
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Sun May 29, 2011 6:08 am
by finale00
Second this request.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Sat Jun 04, 2011 2:35 am
by finale00
The contents of this post was deleted because of possible forum rules violation.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Tue Jul 19, 2011 1:34 am
by finale00
Well, starting to figure out archives so I guess I'll start with the very simple files
There are two archives that are unencrypted/uncompressed (textures/mesh), which contain small things but I guess it gets you somewhere.
Code: Select all
#touhou sky arena
#for mesh.gpk and texture.gpk only
get files long
for i = 0 < files
getdstring name 0x104
get size long
get offset long
log name offset size
next i
The rest..lol I don't even know what it is.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Tue Jul 19, 2011 1:54 am
by chrrox
looks encrypted best bet is just use 3d ripper dx.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Tue Jul 19, 2011 2:06 am
by finale00
lol that's no fun.
Well, some other people are interested in translating it to chinese so maybe they'll figure something out in the future.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Sat Dec 10, 2011 7:39 pm
by finale00
The contents of this post was deleted because of possible forum rules violation.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Fri Jan 06, 2012 2:21 am
by finale00
Ok I'm going to try cracking this by brute force and guesswork after reading the DGTEFF again (cause there are 5 more models in the next patch)
Some things are done that make it a little more manageable:
-someone already unpacked it, so the contents are known
-the number of files in the archive is known
-the filenames and filesizes are known
-there are unencrypted archives, which may provide a hint
First I started by highlighting arbitrary bytes and noticed that the number of results matched the number of files.
So ok, that might actually be part of the filename. It is known that unencrypted gpk archives store strings in 260 bytes.
In fact, the BMS script I wrote for those is just
Code: Select all
get FILES long
for i = 0 < FILES do
getdstring NAME 260
get SIZE long
get OFFSET long
log NAME OFFSET SIZE
next i
So now I just need to figure out how to decrypt it.
But...lol hmm I'm not sure how that would work.
The following archive contains 24 files, and it is known that strings are stored in 260 bytes.
Now I should probably get the patch files.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Fri Jan 06, 2012 4:45 am
by finale00
Got a hold of the guy that wrote the unpacker and repacker.
http://pastebin.com/ZRwgzhji
http://pastebin.com/bAiCy0yw
Will require insani.py
http://www.insani.org/tools/
Trying to write a quickBMS script but there's too much XOR'ing

Re: Help with unpacking and repacking the TSA .gpk files
Posted: Thu Feb 23, 2012 10:12 am
by rslifemanu
Second this request.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Mon Nov 18, 2013 6:01 pm
by Escope12
Can you send me the unpacker & repacker because the links are broken.
Re: Help with unpacking and repacking the TSA .gpk files
Posted: Tue Nov 19, 2013 4:17 pm
by Escope12
Who is this guy who wrote the unpacker & repaker?