Quantcast

Jump to content

» «
Photo

[IV|WIP] OpenIV project

  • This topic is locked This topic is locked
342 replies to this topic
GooD-NTS
  • GooD-NTS

    OpenIV lead developer

  • Members
  • Joined: 03 May 2008
  • Russia

#1

Posted 05 May 2008 - 03:50 AM Edited by GooD-NTS, 08 May 2008 - 05:45 PM.

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

riquenunes
  • riquenunes

    Soldier

  • Members
  • Joined: 28 Apr 2008
  • Brazil

#2

Posted 05 May 2008 - 08:25 PM Edited by H3NR1QU3, 05 May 2008 - 08:39 PM.

QUOTE (GooD-NTS @ May 5 2008, 00:50)
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?

steve-m
  • steve-m

  • Members
  • Joined: 26 Jul 2002

#3

Posted 05 May 2008 - 08:44 PM

user posted image

aru
  • aru

    *poof*

  • Members
  • Joined: 20 Jun 2005

#4

Posted 05 May 2008 - 08:45 PM

user posted image

user posted image

riquenunes
  • riquenunes

    Soldier

  • Members
  • Joined: 28 Apr 2008
  • Brazil

#5

Posted 05 May 2008 - 08:58 PM

oh, sorry for the noob's question ^^^^ seens like I'm a bit outdated

Acoustik
  • Acoustik

    -> FrEnCh PlAyEr <-

  • Members
  • Joined: 19 Aug 2005

#6

Posted 05 May 2008 - 09:28 PM

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 :
CODE

'%s' is not a valid rpf or zip file.
'%s' is not a valid rpf or zip file (way too small)
ZIP-REF:%s
fiPackfile::OpenBulk - '%s' is externally compressed, cannot open with OpenBulk
fiPackfile::Open(%s) - inflateInit failed
deflate 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 !)

ParoXum
  • ParoXum

    Proud PC Gamer

  • Members
  • Joined: 28 Jul 2005
  • None

#7

Posted 05 May 2008 - 10:50 PM

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*.

GamerSuper
  • GamerSuper

    Пожалуй, лучший геймер в мире

  • BUSTED!
  • Joined: 24 May 2005

#8

Posted 06 May 2008 - 09:48 AM Edited by GamerSuper, 06 May 2008 - 09:52 AM.

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)

Alexander Blade
  • Alexander Blade

    Come As You Are

  • Members
  • Joined: 05 Nov 2006

#9

Posted 06 May 2008 - 10:55 AM

GamerSuper : supergey biggrin.gif biggrin.gif

Acoustik
  • Acoustik

    -> FrEnCh PlAyEr <-

  • Members
  • Joined: 19 Aug 2005

#10

Posted 06 May 2008 - 11:15 AM

CODE
+-----------------------------------+
|         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...

Alexander Blade
  • Alexander Blade

    Come As You Are

  • Members
  • Joined: 05 Nov 2006

#11

Posted 06 May 2008 - 11:26 AM

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

Acoustik
  • Acoustik

    -> FrEnCh PlAyEr <-

  • Members
  • Joined: 19 Aug 2005

#12

Posted 06 May 2008 - 11:31 AM

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" !

UZI-I
  • UZI-I

    WPL Manager...

  • Members
  • Joined: 23 Aug 2006

#13

Posted 06 May 2008 - 11:48 AM Edited by UZI-I, 06 May 2008 - 11:51 AM.

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

 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):

CODE

 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

Peter
  • Peter

    Secretly Heroic

  • Members
  • Joined: 21 Sep 2006

#14

Posted 06 May 2008 - 12:10 PM

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.

UZI-I
  • UZI-I

    WPL Manager...

  • Members
  • Joined: 23 Aug 2006

#15

Posted 06 May 2008 - 12:19 PM

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

X_ATP_X
  • X_ATP_X

    GTA United Scripter

  • Members
  • Joined: 17 Dec 2007

#16

Posted 06 May 2008 - 12:21 PM

@Steve-m and aru where can I Download your tools?

Alexander Blade
  • Alexander Blade

    Come As You Are

  • Members
  • Joined: 05 Nov 2006

#17

Posted 06 May 2008 - 01:41 PM

private only

Thunderfuckrapist
  • Thunderfuckrapist

    Turdler Durpden

  • $outh $ide Hoodz
  • Joined: 21 Jun 2005

#18

Posted 06 May 2008 - 02:00 PM

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

[CTD]LaBan
  • [CTD]LaBan

    Homie

  • Members
  • Joined: 11 May 2006

#19

Posted 06 May 2008 - 09:21 PM

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

GamerSuper
  • GamerSuper

    Пожалуй, лучший геймер в мире

  • BUSTED!
  • Joined: 24 May 2005

#20

Posted 07 May 2008 - 01:52 PM Edited by GamerSuper, 07 May 2008 - 01:56 PM.

QUOTE (Alexander Blade @ May 6 2008, 13:55)
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?

Arvis
  • Arvis

    Li'l G Loc

  • The Yardies
  • Joined: 28 Jul 2006

#21

Posted 07 May 2008 - 02:14 PM Edited by Vecis, 07 May 2008 - 02:19 PM.

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

HungaryFox
  • HungaryFox

    Player Hater

  • Members
  • Joined: 08 May 2008

#22

Posted 08 May 2008 - 03:21 PM

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

Alexander Blade
  • Alexander Blade

    Come As You Are

  • Members
  • Joined: 05 Nov 2006

#23

Posted 08 May 2008 - 03:35 PM

HungaryFox: try 2 find your answer at first page )

AK-73
  • AK-73

    Hustler

  • Members
  • Joined: 31 Oct 2005

#24

Posted 09 May 2008 - 01:19 PM

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

Zdemon29958
  • Zdemon29958

    Gta xbox hack3r!

  • Members
  • Joined: 24 Jun 2005

#25

Posted 09 May 2008 - 02:44 PM

excellent work - and only a few days after the release of the game!
any idea on when these rpf tools will be released?
thanks

Fembel
  • Fembel

    Player Hater

  • Members
  • Joined: 09 May 2008

#26

Posted 09 May 2008 - 02:48 PM

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

nprimex1
  • nprimex1

    Player Hater

  • Members
  • Joined: 09 May 2008

#27

Posted 09 May 2008 - 04:46 PM

this is indeed good news !

Kowaah
  • Kowaah

    Pseudo-Rendered

  • BUSTED!
  • Joined: 29 Apr 2008

#28

Posted 09 May 2008 - 05:30 PM

Impossible!
but possible.

P.S. San Fransisco rules!Russia suicidal.gif

GamerSuper
  • GamerSuper

    Пожалуй, лучший геймер в мире

  • BUSTED!
  • Joined: 24 May 2005

#29

Posted 10 May 2008 - 09:11 AM Edited by GamerSuper, 10 May 2008 - 09:17 AM.

anybody decoded xtd texture format? I really need this

J-Fox
  • J-Fox

    . . .

  • Members
  • Joined: 04 Aug 2007

#30

Posted 11 May 2008 - 06:40 AM Edited by J-Fox, 12 May 2008 - 11:16 AM.

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




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users