Skip to content
View in the app

A better way to browse. Learn more.

ResHax

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.
Help us keep the site running.

[City Mania] .l4z Files and more

Featured Replies

  • Author
  • Localization

Havi, posted Sun Jul 16, 2017 11:42 pm (24679)


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
  • Localization

spider91, posted Mon Jul 17, 2017 1:05 am (24686)


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
  • Localization

spider91, posted Mon Jul 17, 2017 4:18 pm (24772)


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

Havi, posted Mon Jul 17, 2017 4:43 pm (24774)


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
  • Localization

spider91, posted Mon Jul 17, 2017 7:25 pm (24778)


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

Havi, posted Tue Jul 18, 2017 12:19 pm (24789)


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
  • Localization

spider91, posted Tue Jul 18, 2017 2:33 pm (24793)


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
  • Localization

Havi, posted Tue Jul 18, 2017 5:32 pm (24797)


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
  • Localization

Havi, posted Fri Jul 21, 2017 4:14 pm (24913)


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
  • Localization

spider91, posted Fri Jul 21, 2017 6:34 pm (24918)


.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
  • Localization

Havi, posted Fri Jul 21, 2017 7:45 pm (24922)


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
  • Localization

Havi, posted Fri Jul 21, 2017 8:00 pm (24923)


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

spider91, posted Fri Jul 21, 2017 8:04 pm (24924)


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
  • Localization

Havi, posted Fri Jul 21, 2017 8:11 pm (24925)


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
  • Localization

spider91, posted Fri Jul 21, 2017 11:43 pm (24931)


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
  • Localization

Havi, posted Sat Jul 22, 2017 1:21 pm (24951)


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
  • Localization

spider91, posted Sat Jul 22, 2017 2:53 pm (24962)


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

160k - bitrate. you can change it to 128 or any other.
Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.