Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Cayo Perico Heist
      2. Find Lobbies & Players
      3. Guides & Strategies
      4. Vehicles
      5. Content Creator
      6. Help & Support
    2. Red Dead Online

      1. Frontier Pursuits
      2. Find Lobbies & Outlaws
      3. Help & Support
    3. Crews

    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. Grand Theft Auto Series

      1. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
    6. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
    7. GTA III

      1. Guides & Strategies
      2. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

      1. GTANet 20th Anniversary
    2. Support

      1. Court House
    3. Suggestions

[IV|WIP] OpenIV project


Recommended Posts

Hi all.

 

Someone without explaining remove previous topic (GTAIV-IMG's)... Ok, create new topic...

 

In this topic discussing ways to extract new rpf-files from GTA IV

 

So start. Now I create the first version of program which will extract data from the rpf-files.

user posted image

 

I recall that in rpf-files stored unencrypted different data, for example:

-- GTX tables

-- XML files

-- One PNG image:)

And Other yet unknown data...

Edited by GooD-NTS
Link to post
Share on other sites

 

Hi all.

 

Someone without explaining remove previous topic (GTAIV-IMG's)... Ok, create new topic...

 

In this topic discussing ways to extract new rpf-files from GTA IV

 

So start. Now I create the first version of program which will extract data from the rpf-files.

user posted image

 

I recall that in rpf-files stored unencrypted different data, for example:

-- GTX tables

-- XML files

-- One PNG image:)

And Other yet unknown data...

mercie_blink.gif sh*t man!

GTA IV was released just a few days ago and you allready cracked it...

Good job! But I think there is much to do yet

 

BTW is it possible to open/extract the files from this rpf file?

Edited by H3NR1QU3
Link to post
Share on other sites

The RPF and IMG are compressed with Zlib !

I think it's a compression of type "deflate" with use a dictionnary !

 

http://en.wikipedia.org/wiki/DEFLATE

 

In the Xbox360 executable we can see :

 

'%s' is not a valid rpf or zip file.'%s' is not a valid rpf or zip file (way too small)ZIP-REF:%sfiPackfile::OpenBulk - '%s' is externally compressed, cannot open with OpenBulkfiPackfile::Open(%s) - inflateInit faileddeflate 1.2.3 Copyright 1995-2005 Jean-loup Gailly

 

 

And I want add a big respect to Steve-M and aru for your editor !

 

(Sorry for my poor English I'm French !)

Link to post
Share on other sites

Good to see the move being started. I hope we can all share our findings, french, german, canadian, all.. here to get the best done. Anyway lot of respect yet to Steve and aru. Amazing.

 

Tho after those rpf files, a very very large amount of new file will come into consideration, which compared to SA will increase the research time alot if we don't get major help of R*.

Link to post
Share on other sites

Good job, pal. Tried to reach you via icq but you don't answer.

We're gonna make Russian localisation of the game so we need tools.

 

What about xtd format? We need to replace fonts there (fonts.xtd)

Edited by GamerSuper
Link to post
Share on other sites

 

+-----------------------------------+|         Rage Package File         |+-----------------------------------+|      By Ac_K, UZI-I & ParoXum     |+-----------------------------------++--------+| Header |+--------+0x00 - 4 byte - CHAR[4]   - FourCC, Always "RPF0".0x04 - 2 byte - WORD      - Unknow (Certainly a padding ?).0x06 - 2 byte - BYTE      - Unknow (0x00 or 0x01).0x08 - 2 byte - BYTE      - Number of entry + 1 (for actual file).+-----------------------------+| Declaration Positions/Names |+-----------------------------+0x800 - 4 byte - UNK      - Always 0x00 0x80.0x804 - 4 byte - UNK      - Always 0x01 0x00.0x808 - 2 byte - BYTE     - Number of entry (Files positions ?).0x80C - 2 byte - BYTE     - Number of entry (Files names ?).+-------------------------+| Positions (on 16 Bytes) |+-------------------------+0x810 - 4 byte - BYTE     - Text position after the " / " ( " / " is after all the position).0x814 - 4 byte - WORD     - File Offset (number of "block").0x818 - 4 byte - DWORD    - Unknow (Certainly file size ?).0x81C - 4 byte - DWORD    - Unknow (Equal to 0x818 in different RPF).The next file is on the next 16 bytes.The second next file is on the next 16 bytes.Etc...+-------+| Names |+-------+The names begin after all position.For reconize the begin of the names, the / and the byte 0x00 is present.After, the names are separate by 0x00.+-------+| Files |+-------+Writing on as padding (block ?) to 2048 Bytes likely 0x1000, 01800, etc...The different formats :- *.anim          // animation array file- *.bnd           // collisions- *.cfg           // config basic file- *.cm            // camera coordinates ?- *.data          // -Unknow- *.dds           // directx texture format- *.dynamic       // -Unknow- *.fx            // compiled universal shaders- *.fxc           // another shader ?- *.levelfx       // -Unknow- *.list          // dictionnaries ?- *.mesh          // 3D models- *.mtl           // common material extension file- *.phys          // -Unknow- *.png           // universal image format- *.rmtpx         // effects/particles files- *.skel          // skeleton files- *.sps           // shader libraries ?- *.static        // Sound Bank- *.strtbl        // Boot Screen- *.sva           // -Unknow (Diffuse Texture?)- *.td            // Sound Bank- *.txt           // text, motd ?- *.xeck          // -Unknow (Sounds?)- *.xml           // input text files / ai files ?- and other not discovery

 

We wrote this for the RPF Table Tennis and not GTA IV (Because we don't succes to decompile it !).

But I think it's likely the same in GTA IV.

 

Many Unknow... But I repeat it's not the GTA IV version...

Link to post
Share on other sites
Alexander Blade

2Acoustik : nice , but it's not necessary until rpf archs will be unpacked

Link to post
Share on other sites

I already explain how unpack the RPF and the IMG !

 

Use Zlib and the Inflate function (to the Deflate Algorythm).

But with my code skill I'm not able to code this !

 

http://www.zlib.net/

 

And I think we can use a dictionnary ( inflateSetDictionary(strm, dictionary, dictLength); in Zlib), but I don't know how work the dictionnary and how use it...

 

So I leave this for the "genius" !

Link to post
Share on other sites

This is the .RPF File Format (UnCompressed and From Table Tennis)

 

 char  szFourCC[4]; int  	iUnknow1; DWORD  dwFilesNumber1; char  szPadding1[2036]; int  	iUnknow2; int  	iUnknow3; DWORD  dwFilesNumber2; // (x) DWORD  dwFilesNumber3; // (x)

 

 

And (Repeated 'x' time after the dwFilesNumber3):

 

 

 DWORD  dwStartNamePos; DWORD  dwPosition; DWORD  dwUnknow1; DWORD  dwUnknow2;

 

 

After, look at explanation from Acoustik for know how to find names and all other sh*t...

 

Thanks to him for some help smile.gif

Edited by UZI-I
Link to post
Share on other sites

Rockstar wrote a number of updates to their RPF file format for Grand Theft Auto IV, specifically version 2 and 3, whereas Table Tennis mainly uses version 0. The file format indeed did change.

Link to post
Share on other sites

We know (Acoustik and me) and it's the reason why Acoustik wrote "We wrote this for the RPF Table Tennis and not GTA IV"

 

and why I wrote "UnCompressed and From Table Tennis"

 

biggrin.gif

 

And btw GTA4 use RPF2 (As the first 4 Bytes said) wink.gif

Link to post
Share on other sites

Damn this is exciting, like the old days again, discovering new things smile.gif

Link to post
Share on other sites

Damn, there are very good modders coming from Russia. icon14.gif First steps are already done on cracking GTA IV archives.

Link to post
Share on other sites

 

GamerSuper : supergey  biggrin.gif  biggrin.gif

Òû è ñþäà çàëåç. devil.gif

Ñàì òû gey. ïðàâèëüíî gay.

 

 

 

 

By the way, who looked into Table Tennis image? Are there similar file formats as in IV?

Edited by GamerSuper
Link to post
Share on other sites

Good to see this topic back.

It's really great work guys, i didn't expect some tools to come so fast,

i could make a pizza for you, it's deserved.

Oh yeah, Russia rocks! smile.gif

Edited by Vecis
Link to post
Share on other sites

Hello! biggrin.gif

I would like to use too the "RPF TOOL 0.3 Beta" or the "Spark IV" for the GTA IV ^^

I'm searching for these programs but I didn't find them.

Somebody can give me links to download or if it doesn't possible which programs can am I using instead of them?

Thank you for the help! biggrin.gif

Link to post
Share on other sites
Alexander Blade

HungaryFox: try 2 find your answer at first page )

Link to post
Share on other sites

if you ever get some model data extracted, feel free to notify me and ready some sample files for me. I'd be willing to work on the format and an importer/exporter for gmax/3dsm. (As long as The Star doesn't object. wink.gif)

 

Alex

 

Link to post
Share on other sites

excellent work - and only a few days after the release of the game!

any idea on when these rpf tools will be released?

thanks

Link to post
Share on other sites

as someone mentioned here GTA: IV uses 2 new version of the RPF file, RPF2 for the xbox files and RPF3 for sound files

all other data is IMG.

im trying to get anything for 3 days now with no success

Link to post
Share on other sites

anybody decoded xtd texture format? I really need this

Edited by GamerSuper
Link to post
Share on other sites

Pretty cool work - too bad that I f*cked my whole DVD-Drive when hotswapping the disk so I could rip it (power cable fell out) confused.gif

//Edit: 12.05.08 - 12:06: Just got my other drive working - listening to the funky noise the drive makes while screwing up the whole disc inlove.gif

//Edit: 12.05.08 - 12:16: Done...

Edited by J-Fox
Link to post
Share on other sites
Guest
This topic is now closed to further replies.
  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.