ZenHAX
http://zenhax.com/

[City Mania] .l4z Files and more
http://zenhax.com/viewtopic.php?f=6&t=4551
Page 1 of 1

Author:  Havi [ Sun Jul 16, 2017 11:42 pm ]
Post subject:  [City Mania] .l4z Files and more

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

Author:  spider91 [ Mon Jul 17, 2017 1:05 am ]
Post subject:  Re: [City Mania] .l4z Files and more

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

Author:  Havi [ Mon Jul 17, 2017 11:20 am ]
Post subject:  Re: [City Mania] .l4z Files and more

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

Author:  spider91 [ Mon Jul 17, 2017 4:18 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

It's nor for .pak.lz4, they are zip files without compression. Script unpacks files extracted from *.pak.lz4.

Author:  Havi [ Mon Jul 17, 2017 4:43 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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?

Author:  spider91 [ Mon Jul 17, 2017 7:25 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

Yes. Unpack them with winrar or another archiver that supports .zip format. After thet use script on unpacked files, it will decompress them.

Author:  Havi [ Tue Jul 18, 2017 12:19 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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?

Author:  spider91 [ Tue Jul 18, 2017 2:33 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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.

Author:  Havi [ Tue Jul 18, 2017 5:32 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

Interesting. Yeah, only thing I'm trying to achieve with this is to obtain the images. The rest, I honestly don't care about.

Author:  spider91 [ Tue Jul 18, 2017 6:24 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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/

Author:  Havi [ Fri Jul 21, 2017 4:14 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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.

Author:  spider91 [ Fri Jul 21, 2017 6:34 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

.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

Author:  Havi [ Fri Jul 21, 2017 7:45 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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 :)

Author:  Havi [ Fri Jul 21, 2017 8:00 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

Then I used FOR /R %f IN (*.tgatga) DO REN "%f" *z.pvr

Author:  spider91 [ Fri Jul 21, 2017 8:04 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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

Author:  Havi [ Fri Jul 21, 2017 8:11 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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

Author:  spider91 [ Fri Jul 21, 2017 11:43 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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

Author:  Havi [ Sat Jul 22, 2017 1:21 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

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?

Author:  spider91 [ Sat Jul 22, 2017 2:53 pm ]
Post subject:  Re: [City Mania] .l4z Files and more

ffmpeg.exe -i input.mpc -vn -b:a 160k output.mp3

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

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Limited
https://www.phpbb.com/