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.

Gangstar Vegas - *.g4, compression problem

Featured Replies

  • Author
  • Localization

AlphaTwentyThree, posted Tue Mar 31, 2015 7:25 pm (4254)


Hello!
I've just written a script for the g4 archives of Gangstar Vegas (for iOS) but I think the decompression is off. None of the extracted zip archives can be opened or extracted (with Luigi's script). The decompression size is correct but maybe I chose the wrong comp method nevertheless?
Here's my script (I've attached the func_getTYPE.bms):
Code:
include "func_getTYPE.bms"
comtype COMPRLIB_RLE2
idstring "Voxarch2"
get DUMMY long
get VER long
get FILES long
get BNAME basename
goto 0x80
for i = 1 <= FILES
   get CRC long
   get HASH long
   get COMP long
   get SIZE long
   get ZSIZE long
   get OFFSET long
   if COMP == 0
      putVarChr MEMORY_FILE SIZE 0
      log MEMORY_FILE 0 0
      append
      log MEMORY_FILE OFFSET SIZE
      append
   elif COMP == 1
      putVarChr MEMORY_FILE ZSIZE 0
      log MEMORY_FILE 0 0
      append
      clog MEMORY_FILE OFFSET SIZE ZSIZE
      append
   endif
   callfunction getTYPE 1
   string NAME p= "%s_0xx%s" BNAME CRC EXT
   get SIZE asize MEMORY_FILE
   if SIZE != 0
      log NAME 0 SIZE MEMORY_FILE
   endif
next i
And here's a sample file: http://*USE_ANOTHER_FILEHOSTING*/04460f4 ... enu_low.7z
Thanks for your help!

func_getTYPE.7z

  • Author
  • Localization

aluigi, posted Tue Mar 31, 2015 9:03 pm (4259)


As far as I can see the alrogithm CRLE (189) is the best one but I don't think is the correct one or the ZIP archives are customized.
  • Author
  • Localization

AlphaTwentyThree, posted Tue Mar 31, 2015 9:18 pm (4262)


CRLE crashes with an error. :\
I'll leave it as it is, I already got my hands on the music (MPCK-compressed though). ;)
  • Author
  • Localization

hackspeedok, posted Wed Apr 01, 2015 10:21 am (4280)


I hope the completed script for this game :)
  • Author
  • Localization

AlphaTwentyThree, posted Wed Apr 01, 2015 10:22 am (4281)


hackspeedok wrote:
I hope the completed script for this game :)

Well, the above script seems to work but as Luigi said maybe the zip archives are obfuscated.
  • Author
  • Localization

hackspeedok, posted Wed Apr 01, 2015 12:07 pm (4288)


AlphaTwentyThree wrote:
hackspeedok wrote:
I hope the completed script for this game :)

Well, the above script seems to work but as Luigi said maybe the zip archives are obfuscated.

Import ok ? And what's problem with the text files ?? Can you help me ? Thanks.
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.