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.

Gta-Action Mod Pack (*.gamp) and encrypted modpack.ini

Featured Replies

  • Author
  • Localization

barti, posted Mon Apr 06, 2015 2:26 pm (4372)


This is a package format used for some GTA mods, for example Pimp my car. The installer for these packages, GAMI, has not been updated in almost a decade and doesn't even work with modern computers (and apparently it's not available on the internet anymore). As a result, I started disassembling the mod pack and figured almost everything out. Except for the modpack.ini file, which I couldn't decrypt after numerous retries. It contains the most useful information, like the installation script which puts files from the package in the correct place.

Here's my QuickBMS script (unpacks all data, but modpack.ini is left encrypted):
Code:
idstring "VER2"
get FILES  long

for i = 0 < FILES
    get  OFFSET long
    math OFFSET *= 0x800
   
    get  ZSIZE  long
    math ZSIZE  *= 0x800
   
    getdstring NAME 24
    set EXT extension NAME
   
    if EXT == "jpg"
        log NAME OFFSET ZSIZE
    elif EXT == "ini"
   log NAME OFFSET ZSIZE
        #encryption "" ""
    else
        math SIZE = ZSIZE
        math SIZE *= 64
        clog NAME OFFSET ZSIZE SIZE
    endif
next i


The Pimp my car mod along with GAMI is available here:
http://zazmahall.de/ZAZGTASANATORIUM/za ... _final.zip

- link expired -

I was somehow able to decrypt the modpack.ini from this modpack, not sure how (the most I remember is that I used Cheat Engine to browse through the program's memory):
Code:
[Info]
Title=drowningpoolsz
EndScript=RebuildImg {\models\gta3.img}
HTML=
HTMLHeight=218
[Typ1]
TypeID=1
Name=Modifikation
Description=
Picture=_cover.jpg
[Mod1]
TypeID=1
Name=Mazda RX-7
Description=Replace: ZR350 | Tuningparts: 0 | Paintjobs: 0 | Extras: 0
InstallScript=RemoveImg {\models\gta3.imgzr350.dffzr350.txd}# ====================================Check TXDIfExistGoto {Img\models\gta3.imgzr3500.txdzr3500YESzr3500NO}:zr3500YESRemoveImg {\models\gta3.imgzr3500.txd}Goto {Step1}:zr3500NOGoto {Step1}:Step1IfExistGoto {Img\models\gta3.imgzr3501.txdzr3501YESzr3501NO}:zr3501YESRemoveImg {\models\gta3.imgzr3501.txd}Goto {Step2}:zr3501NOGoto {Step2}:Step2IfExistGoto {Img\models\gta3.imgzr3502.txdzr3502YESzr3502NO}:zr3502YESRemoveImg {\models\gta3.imgzr3502.txd}Goto {Step3}:zr3502NOGoto {Step3}:Step3IfExistGoto {Img\models\gta3.imgzr3503.txdzr3503YESzr3503NO}:zr3503YESRemoveImg {\models\gta3.imgzr3503.txd}Goto {Step4}:zr3503NOGoto {Step4}:Step4IfExistGoto {Img\models\gta3.imgzr3504.txdzr3504YESzr3504NO}:zr3504YESRemoveImg {\models\gta3.imgzr3504.txd}Goto {Step5}:zr3504NOGoto {Step5}:Step5AddImg {\models\gta3.imgzr350.dffzr350.txd}ReplaceLine {\data\vehicles.ide477,    zr350,*477,    zr350,       zr350,       car,       ZR350,      ZR350,       null,   richfamily,    10,    0,   0,      -1, 0.76, 0.76,      0}ReplaceLine {\data\handling.cfgZR350*ZR350        1200.0 2998.3 2.0 0.0 0.1 -0.8 75 0.70 0.80 0.47 5 350.0 50.0 5.0 R P 8.0 0.45 0 55.0 1.4 0.15 0.0 0.28 -0.05 0.5 0.3 0.25 0.10 35000 00110000 00c24007 0 2 0}ReplaceLine {\data\carmods.datzr350,*zr350, nto_b_l, nto_b_s, nto_b_tw}ReplaceLine {\data\carcols.datzr350,*zr350, 92,1, 94,1, 101,1, 121,1, 0,1, 22,1, 36,1, 75,1}
Readme=************Mazda Rx-7 By:drowningpoolsz*************How to installInstallation:1. Dowload Sami mod installer in gtagaming.com2. Install Sami mod installer 3. Find the folder where you input GTA san andreas Example: Local Disk C / Program Files Sorry for my English Im filipino************Tagalog instolasyon*************Instolasyon:1.i download ang sami mod installer2. i install ang sami mod installer3. hanapin kung saan nakalagay ang folder Example: Example: Local Disk C / Program Filesu can use my handling Example:Carname: 1200.0 2998.3 2.0 0.0 0.1 -0.8 75 0.70 0.80 0.47 5 350.0 50.0 5.0 R P 8.0 0.45 0 55.0 1.4 0.15 0.0 0.28 -0.05 0.5 0.3 0.25 0.10 35000 00110000 00c24007 0 2 0Special Thanks to: m11osass09Visit: www.pngaming.co.ccPlease Note: Don't Re-post Without my permission E-mail me at [email protected]                   ***************Thank you For Downloading**************
Files=zr350.dff|zr350.txd|
Picture=_cover.jpg
  • Author
  • Localization

aluigi, posted Fri Apr 10, 2015 9:53 pm (4443)


Very interesting.
I have found the way to decrypt the ini file and embedded everything in a new script:
http://aluigi.org/papers/bms/others/gta_action_mod.bms

My only doubt is about the 0x800 alignment because it leaves garbage at the end of the file after the decryption.
  • Author
  • Localization

barti, posted Sat Apr 11, 2015 11:11 am (4456)


Thank you very much for the script.
Yes, it's strange that the unaligned sizes aren't stored anywhere. Weird format.
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.