[City Mania] .l4z Files and more
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
[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
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
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: [City Mania] .l4z Files and more
Code: Select all
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
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
Re: [City Mania] .l4z Files and more
spider91 wrote:Code: Select all
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
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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.
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
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?
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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.
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
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?
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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.
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
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.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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/
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/
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
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.
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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
.tga -> decompress with my script and rename output to .zip -> unpack .zip and it will have .pvr files inside
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
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
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
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
Re: [City Mania] .l4z Files and more
Then I used FOR /R %f IN (*.tgatga) DO REN "%f" *z.pvr
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: [City Mania] .l4z Files and more
Anyway i'm glad that it works.
P.S.
replace
with
and you will have .pvr files directly instead of .tgatga
P.S.
replace
Code: Select all
get NAME filename
get EXT fileext
string NAME += EXT
with
Code: Select all
get NAME basename
string NAME += ".pvr"
and you will have .pvr files directly instead of .tgatga
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
Re: [City Mania] .l4z Files and more
spider91 wrote:Anyway i'm glad that it works.
P.S.
replaceCode: Select all
get NAME filename
get EXT fileext
string NAME += EXT
withCode: Select all
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
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
Re: [City Mania] .l4z Files and more
Also, do you have Discord or Skype where I can contact you if that's possible?
Sorry, but no. Forum is enough for me.
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.
City_official_soundpack.voxpack = http://www73.zippyshare.com/v/X7k7biUE/file.html
Code: Select all
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
-
- Posts: 60
- Joined: Fri Jun 23, 2017 5:55 pm
Re: [City Mania] .l4z Files and more
spider91 wrote:Also, do you have Discord or Skype where I can contact you if that's possible?
Sorry, but no. Forum is enough for me.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.City_official_soundpack.voxpack = http://www73.zippyshare.com/v/X7k7biUE/file.htmlCode: Select all
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?
-
- Posts: 233
- Joined: Sun Aug 24, 2014 5:26 pm
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.
160k - bitrate. you can change it to 128 or any other.