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

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Arena War
      2. After Hours
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA Next

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

REspawn

IMGiv

Recommended Posts

REspawn

This is an early version app that will allow you to open IV PC IMG archives, it currently only supports viewing and extracting archive contents, this is to test the waters with R* and to give people access to the files so that other tools may be developed.

This application will be updated frequently over the coming days so check here regularly for updates.

 

The only requirement of using this app is that you supply the path to your GTAIV.exe file.

Any problems or questions just post them here.

 

Updated to version 1.1 - 15th Dec 2008

Download 551kb: IMGiv.rar

 

user posted image

Share this post


Link to post
Share on other sites
Gforce

Great work REspawn, the first of many useful GTA IV apps i hope biggrin.gif

Share this post


Link to post
Share on other sites
Fabio206

Great cookie.gifcookie.gif

Share this post


Link to post
Share on other sites
FunGt

Nice,

Can't wait to see the final version. icon14.gif

Share this post


Link to post
Share on other sites
ZAZ

Yeah, execellent cookie.gifcookie.gifcookie.gif

Share this post


Link to post
Share on other sites
the hubster

Any chance of getting the source code to this released or some documentation on the format?

Nice work btw.

Share this post


Link to post
Share on other sites
Shadow-Link

 

Any chance of getting the source code to this released or some documentation on the format?

Nice work btw.

Would be awesome if you could give us some information!

 

And ofcourse great work! icon14.gif

Share this post


Link to post
Share on other sites
JostVice

Great, REspawn. This is supposed to open the IMG files of IV, but nothing about the RPFs, right?

 

I'm a bit confused about the file formats, both contains game files?

Share this post


Link to post
Share on other sites
REspawn

 

Any chance of getting the source code to this released or some documentation on the format?

Nice work btw.

Would be awesome if you could give us some information!

 

And ofcourse great work! icon14.gif

Yes, it will be 100% open source.

Its written in C++, wxWidgets for the GUI, more info in the next day or two if R* don't sue.

 

@Jost_Vice - Just the IMG files, I haven't looked at the RPF files at all.

Share this post


Link to post
Share on other sites
DimazzzZ

Great work REspawn!

And special thanks for OpenSource! icon14.gif

Share this post


Link to post
Share on other sites
aru

Nice work REspawn!

Share this post


Link to post
Share on other sites
xmen

AWESOME work mate wink.gif

Share this post


Link to post
Share on other sites
xadet3

Very nice work, looking forward to the open source release.

Share this post


Link to post
Share on other sites
listener

Great work, REspawn, but something wrong with your size calculations.

 

Each RSC contains two segments: CPU (virtual) segment and GPU (physical) segment.

CPU seg contains one object with all included subobjects (in case of .wtd - rage::pgDictionary<rage::grcTexture>), GPU seg contains pixel/vertex data. You need segment sizes to resolve relocations.

 

 

struct RscHeader { DWORD dwMagick; DWORD dwVersion; DWORD dwFlags;};RscHeader header;// ... some code skippedDWORD cpuSize = (header.dwFlags&0x7FF) << (((header.dwFlags >> 11) & 0xF) + 8);DWORD gpuSize = ((header.dwFlags >> 15)&0x7FF) << (((header.dwFlags >> 26) & 0xF) + 8);// ... anothr part of code skippedint inLength = filelength (rscFile)-sizeof (RscHeader);int outLength = (int)(cpuSize+gpuSize);// ... allocate memory and read file int result = uncompress (outBuf, &outLength, inBuf, inLength);

 

 

Share this post


Link to post
Share on other sites
Shurik123

excellent!!! lol.gificon14.gif thx

Edited by Shurik123

Share this post


Link to post
Share on other sites
aru
Great work, REspawn, but something wrong with your size calculations.

 

Heh, thats because the sizes that are displayed is the compressed RSC sizes (theres nothing wrong with that) and when exported, they get decompressed.

 

Ideally, I think each RSC should be exported as-is (compressed), and let the future RSC tools deal with the de/compression of them. If you look at the RSC files that are outside of the .img/.rpf archives (.whm, etc).. you'll notice that they are still compressed. However, the decompressed version is still useful for format REing smile.gif

Share this post


Link to post
Share on other sites
listener

aru, look at this:

 

15.12.2008  10:38         5 771 264 brook_new_roads.wtd.listener15.12.2008  10:36         5 788 518 brook_new_roads.wtd.respawnInput file: brook_new_roads.wtdLoaded resource file: version=8, CPU_size = 0x1000, GPU_size = 0x580000Output file: brook_new_roads.wtd.listenerin = 3137524, out = 5771264OutSize = 5771264, err = 0Complete.

 

 

Share this post


Link to post
Share on other sites
uNi

Awesome REspawn, this will be handy. biggrin.gif

Share this post


Link to post
Share on other sites
mr.Dageron

Your work is cool, REspawn icon14.gif

I have got just only one question: why we need to have GTAIV.exe to make this programm workable? biggrin.gif Can you put this spesial parametres wich your program "read from exe" right into it?

Share this post


Link to post
Share on other sites
simkas

Nice.

But, is there a way to open the .wtd texture files yet?

Share this post


Link to post
Share on other sites
mr.Dageron

In OpenIV

Share this post


Link to post
Share on other sites
REspawn

@listener - Thanks for the info, I'm at work now but will check it out as soon as I get home

 

@aru- Yea, letting tools handle the decompression themselves is the way to go, and provides a nice common ground for everyone to work with.

 

@mr.Dageron - The reason for this is a legal one, I'm not sure how R* will react to tools, but having the AES key in my app might not be the best, so thats why it needs the path to the .exe. This im sure will become less of an issue over the next few weeks.

 

 

Share this post


Link to post
Share on other sites
_CP_

It's possible to open files from x0?

Share this post


Link to post
Share on other sites
Kakashevich

It writes me "AES Key did not match. Unable to continue"

 

What to do? I have official russian version of the game from 1C (legal of course)

Share this post


Link to post
Share on other sites
mr.Dageron

Maybe the .exe file error. If your version already has last patch updates, you should backup new exe and put old into directory. (old it is possible to get from first GTAIV realise)

Share this post


Link to post
Share on other sites
Kakashevich
Maybe the .exe file error. If your version already has last patch updates, you should backup new exe and put old into directory. (old it is possible to get from first GTAIV realise)

Could be... ß äî ñèõ ïîð íå ðàçîáðàëñÿ, ïàò÷åííàÿ ëè âåðñèÿ îò 1Ñ èëè íåò.

Share this post


Link to post
Share on other sites
aru

 

aru, look at this:

 

15.12.2008  10:38         5 771 264 brook_new_roads.wtd.listener15.12.2008  10:36         5 788 518 brook_new_roads.wtd.respawnInput file: brook_new_roads.wtdLoaded resource file: version=8, CPU_size = 0x1000, GPU_size = 0x580000Output file: brook_new_roads.wtd.listenerin = 3137524, out = 5771264OutSize = 5771264, err = 0Complete.

 

 

 

Interesting... I wonder if REspawn is doing anything special... my current version of SparkIV just deflates the data and lets the deflater take care of the output size.

 

 

Your work is cool, REspawn icon14.gif

I have got just only one question: why we need to have GTAIV.exe to make this programm workable?  biggrin.gif Can you put this spesial parametres wich your program "read from exe" right into it?

 

 

Heh, including the AES encryption key into the program is an open invitation for Rockstar's lawyers to start sending DCMA/EUCD notices not only to the author but also the sites hosting the program (GTAForums, etc). As long as the key is not included, no DRM has been broken. Extracting it out of the exe is probably the best way to go.

Share this post


Link to post
Share on other sites
REspawn
Interesting... I wonder if REspawn is doing anything special... my current version of SparkIV just deflates the data and lets the deflater take care of the output size.

Nope, nothing special at all, I just pass the data to zlib and let it take care of the output size itself, I'm at work ATM but will have a look when I get home.

 

@Kakashevich - I will have a look at your exe when I get home and post here with an update.

Share this post


Link to post
Share on other sites
mr.Dageron

aru, please, post some screens of your SparkIV smile.gif I am sure that it is as cool as OpenIV icon14.gif

 

What about encrypting code, will it description be on gtamodding.com? Or maybe the "way how to read it from exe"?

Share this post


Link to post
Share on other sites
REspawn

Updated to version 0.1

- Added support for Russian exe version 1.1

- fixed the file size bug

Share this post


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

×

Important Information

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