ZenHAX

Free Game Research Forum | Official QuickBMS support | twitter @zenhax | SSL HTTPS://zenhax.com
It is currently Thu Dec 14, 2017 8:52 pm

All times are UTC




Post new topic  Reply to topic  [ 19 posts ] 
Author Message
PostPosted: Sun Jul 16, 2017 11:42 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
Hey folks,

So, I extracted the game from mobile to PC and got all the files. I can rename .l4z to .zip or use 7-zip to get all the files but everything else is encrypted. .TGA images are not working. Localization.json's are encrypted. There are some .PAK files too. So every help is appreciated.

Maybe someone here can write a script.

Game Files: https://www.mediafire.com/?i39s15ce4x6nexy


Top
   
PostPosted: Mon Jul 17, 2017 1:05 am 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Code:
comtype lz4
get SIZE long
get SIZE long
get ZSIZE asize
math ZSIZE -= 8
get NAME filename
get EXT fileext
string NAME += EXT
clog NAME 8 ZSIZE SIZE


Top
   
PostPosted: Mon Jul 17, 2017 11:20 am 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
Code:
comtype lz4
get SIZE long
get SIZE long
get ZSIZE asize
math ZSIZE -= 8
get NAME filename
get EXT fileext
string NAME += EXT
clog NAME 8 ZSIZE SIZE


From dlc000.pak.lz4

https://image.prntscr.com/image/1EV8OYF ... ZbOS4w.png


Top
   
PostPosted: Mon Jul 17, 2017 4:18 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
It's nor for .pak.lz4, they are zip files without compression. Script unpacks files extracted from *.pak.lz4.


Top
   
PostPosted: Mon Jul 17, 2017 4:43 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
It's nor for .pak.lz4, they are zip files without compression. Script unpacks files extracted from *.pak.lz4.


Hmm, I'm quite lost. So I have these files now

http://prntscr.com/fwsybl

What do I have to do? Unpack them manually?


Top
   
PostPosted: Mon Jul 17, 2017 7:25 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Yes. Unpack them with winrar or another archiver that supports .zip format. After thet use script on unpacked files, it will decompress them.


Top
   
PostPosted: Tue Jul 18, 2017 12:19 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
Yes. Unpack them with winrar or another archiver that supports .zip format. After thet use script on unpacked files, it will decompress them.


So I suppose it works on .dds files too. I tried that and afterward it converted it to .tgatga - Is this normal and if so, how can I actually convert it to a image?


Top
   
PostPosted: Tue Jul 18, 2017 2:33 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
It should decompress all files extracted from .pak.lz4, because it seems all of that files are compressed with lz4 algo. As for tga i'm not familiar with this format, but file decompressed from .tga it's just another zip archive with some .pvr files inside. Also dds are not really dds too, if you open decompressed dds with hex editor you can see some "PVR!" strings too.


Top
   
PostPosted: Tue Jul 18, 2017 5:32 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
Interesting. Yeah, only thing I'm trying to achieve with this is to obtain the images. The rest, I honestly don't care about.


Top
   
PostPosted: Tue Jul 18, 2017 6:24 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
http://cdn.imgtec.com/sdk-documentation ... Legacy.pdf

According to this specs .pvr files are the images you need, so PVRTexTool should let you see them and convert to other formats
https://community.imgtec.com/developers ... vrtextool/


Top
   
PostPosted: Fri Jul 21, 2017 4:14 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
http://cdn.imgtec.com/sdk-documentation/PVR+File+Format.Specification.Legacy.pdf

According to this specs .pvr files are the images you need, so PVRTexTool should let you see them and convert to other formats
https://community.imgtec.com/developers ... vrtextool/


So I've downloaded the tools etc, and u said ".pvr files are the images you need" but there ain't no .pvr files, only .tga and other files.

Maybe u could download the files and look for yourself and maybe tell me what u did so I can reproduce it. Would be very appreciated.


Top
   
PostPosted: Fri Jul 21, 2017 6:34 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
.dds -> decompress with my script and rename output to .pvr
.tga -> decompress with my script and rename output to .zip -> unpack .zip and it will have .pvr files inside


Top
   
PostPosted: Fri Jul 21, 2017 7:45 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
http://prntscr.com/fyngyj

Got it to work.

".tga -> decompress with my script and rename output to .zip -> unpack .zip and it will have .pvr files inside"

I did it differently. I copied all the .tga files and put them in one folder, opened QuickBMS, loaded ur script and converted them all. After that, the files were NAME.tgatga and I renamed them to NAME.pvr and opened it with vrtextool and it worked :)


Top
   
PostPosted: Fri Jul 21, 2017 8:00 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
Then I used FOR /R %f IN (*.tgatga) DO REN "%f" *z.pvr


Top
   
PostPosted: Fri Jul 21, 2017 8:04 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Anyway i'm glad that it works.

P.S.
replace
Code:
get NAME filename
get EXT fileext
string NAME += EXT

with
Code:
get NAME basename
string NAME += ".pvr"

and you will have .pvr files directly instead of .tgatga


Top
   
PostPosted: Fri Jul 21, 2017 8:11 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
Anyway i'm glad that it works.

P.S.
replace
Code:
get NAME filename
get EXT fileext
string NAME += EXT

with
Code:
get NAME basename
string NAME += ".pvr"

and you will have .pvr files directly instead of .tgatga


I'm really happy you were able to help me. There is also one thing left, not sure if you can help me. If I'm able to obtain these two, I'm ready to go. Also, do you have Discord or Skype where I can contact you if that's possible?

Discord: Havi#7736
Skype: xHaviiiHx

City_official_soundpack.voxpack = http://www73.zippyshare.com/v/X7k7biUE/file.html
UI_textues = http://www73.zippyshare.com/v/nE8FYAnB/file.html

I know, I can just unpack the .pak but when I try to do the same stuff with .pvr I get this stuff:

http://prntscr.com/fynx72


Top
   
PostPosted: Fri Jul 21, 2017 11:43 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
Quote:
Also, do you have Discord or Skype where I can contact you if that's possible?

Sorry, but no. Forum is enough for me.


Quote:
UI_textues = http://www73.zippyshare.com/v/nE8FYAnB/file.html

I know, I can just unpack the .pak but when I try to do the same stuff with .pvr I get this stuff:

http://prntscr.com/fynx72

.tga inside of this pak aren't compressed, so just rename them to .pvr.


Quote:
City_official_soundpack.voxpack = http://www73.zippyshare.com/v/X7k7biUE/file.html

Code:
idstring "Voxarch1"
get DUMMY long
get DUMMY long
get FILES long
get NAMES_SIZE long
get TOC_OFFSET long
get DUMMY long
get DUMMY long
get DUMMY long
get NAMES_OFFSET long

goto TOC_OFFSET
for i = 0 < FILES

   getdstring DUMMY 8
   get SIZE long
   get OFFSET long

   PutArray 0 i OFFSET
   PutArray 1 i SIZE
next i

SortArray 0 1
goto NAMES_OFFSET
for i = 0 < FILES

   GetArray OFFSET 0 i
   GetArray SIZE 1 i
   get NAME string

   log NAME OFFSET SIZE
next i


Top
   
PostPosted: Sat Jul 22, 2017 1:21 pm 

Joined: Fri Jun 23, 2017 5:55 pm
Posts: 29
spider91 wrote:
Quote:
Also, do you have Discord or Skype where I can contact you if that's possible?

Sorry, but no. Forum is enough for me.


Quote:
UI_textues = http://www73.zippyshare.com/v/nE8FYAnB/file.html

I know, I can just unpack the .pak but when I try to do the same stuff with .pvr I get this stuff:

http://prntscr.com/fynx72

.tga inside of this pak aren't compressed, so just rename them to .pvr.


Quote:
City_official_soundpack.voxpack = http://www73.zippyshare.com/v/X7k7biUE/file.html

Code:
idstring "Voxarch1"
get DUMMY long
get DUMMY long
get FILES long
get NAMES_SIZE long
get TOC_OFFSET long
get DUMMY long
get DUMMY long
get DUMMY long
get NAMES_OFFSET long

goto TOC_OFFSET
for i = 0 < FILES

   getdstring DUMMY 8
   get SIZE long
   get OFFSET long

   PutArray 0 i OFFSET
   PutArray 1 i SIZE
next i

SortArray 0 1
goto NAMES_OFFSET
for i = 0 < FILES

   GetArray OFFSET 0 i
   GetArray SIZE 1 i
   get NAME string

   log NAME OFFSET SIZE
next i


No worries and thank you! The Script worked and now I have bunch of .MPC files. Any command/script that I can convert them to a mp3?


Top
   
PostPosted: Sat Jul 22, 2017 2:53 pm 

Joined: Sun Aug 24, 2014 5:26 pm
Posts: 228
ffmpeg.exe -i input.mpc -vn -b:a 160k output.mp3

160k - bitrate. you can change it to 128 or any other.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 19 posts ] 

All times are UTC


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited