IMG

 
IMG
IMG   IMG
  Welcome to GTAForums! Be sure to check out the Grand Theft Auto V Forum.

You are not registered! (If you are, click here to login) Registering is fast, free and easy and allows you to instantly reply to any topic on GTAForums.
Why wait? Click here to register your own unique username and become part of the ever-growing community!


( Log In | Register | Revalidate Validation E-mail )
Quick Log-In:
  IMG
       
>
Forum Rules GTA Modification Forums

This section is for obtaining help on creating and releasing tools

GTAGarage.com
free mod hosting from GTANet, simply login with your GTAForums account details

GTAModding.com
GTANet's modding wiki

GTA Modding Chatroom
provided by irc.gtanet.com (Don't have an IRC client? Click here)


Pages: (2) [1] 2   ( Go to first unread post ) Closed TopicStart new topicStart Poll

 IMGiv

 Open IV PC IMG Archives
 
REspawn  
Posted: Sunday, Dec 14 2008, 20:27
Quote Post


REgent
Group Icon
Group: Members
Joined: Jul 6, 2002

il.gif

Member Award




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
PMICQ
  Top
 

 
Gforce  
Posted: Sunday, Dec 14 2008, 20:42
Quote Post



Group Icon
Group: Members
Joined: Sep 17, 2003

en.gif

Member Award




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

 
Fabio206  
Posted: Sunday, Dec 14 2008, 21:00
Quote Post


GTA-Expert.it Webmaster
Group Icon
Group: Members
Joined: Oct 20, 2006

it.gif

XXXXX



Great cookie.gif cookie.gif
Users WebsitePM
  Top
 

 
FunGt  
Posted: Sunday, Dec 14 2008, 21:08
Quote Post


LOL
Group Icon
Group: Members
Joined: Jun 10, 2005

it.gif

XXXXX



Nice,
Can't wait to see the final version. icon14.gif
Users WebsitePM
  Top
 

 
ZAZ  
Posted: Sunday, Dec 14 2008, 21:15
Quote Post


Kernlochbohrer
Group Icon
Group: Members
Joined: Jan 10, 2005

eu.gif

Member Award




Yeah, execellent cookie.gif cookie.gif cookie.gif
Users WebsitePM
  Top
 

 
the hubster  
Posted: Sunday, Dec 14 2008, 21:23
Quote Post


Sup Homies
Group Icon
Group: Members
Joined: May 3, 2005

en.gif

XXXXX



Any chance of getting the source code to this released or some documentation on the format?
Nice work btw.
PM
  Top
 

 
Shadow-Link  
Posted: Sunday, Dec 14 2008, 21:39
Quote Post


Li'l G Loc
Group Icon
Group: Members
Joined: Dec 1, 2004

nl.gif

Member Award




QUOTE (the hubster @ Dec 14 2008, 23:23)
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
Users WebsitePMXbox LivePlayStation Network
  Top
 

 
Jost_Vice  
Posted: Sunday, Dec 14 2008, 21:44
Quote Post


realtime, not prerendered
Group Icon
Group: Members
Joined: Oct 30, 2005

es.gif

Member Award




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?
Users WebsitePMMSNPlayStation Network
  Top
 

 
REspawn  
Posted: Sunday, Dec 14 2008, 22:50
Quote Post


REgent
Group Icon
Group: Members
Joined: Jul 6, 2002

il.gif

Member Award




QUOTE (Prince-Link @ Dec 14 2008, 22:39)
QUOTE (the hubster @ Dec 14 2008, 23:23)
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.
PMICQ
  Top
 

 
DimazzzZ  
Posted: Sunday, Dec 14 2008, 23:01
Quote Post


Aircraft Man
Group Icon
Group: Members
Joined: Jan 28, 2006

ru.gif

XXXXX



Great work REspawn!
And special thanks for OpenSource! icon14.gif
Users WebsitePM
  Top
 

 
aru  
Posted: Monday, Dec 15 2008, 02:19
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




Nice work REspawn!
PM
  Top
 

 
xmen  
Posted: Monday, Dec 15 2008, 04:29
Quote Post


Foot Soldier
Group Icon
Group: Members
Joined: Jun 2, 2005

jolly-roger.gif

Member Award




AWESOME work mate wink.gif
Users WebsitePMMSNYahoo
  Top
 

 
xadet3  
Posted: Monday, Dec 15 2008, 08:01
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 13, 2008

en.gif

XXXXX



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

 
listener  
Posted: Monday, Dec 15 2008, 08:51
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Sep 6, 2007

ru.gif

XXXXX



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.

CODE

struct RscHeader {
 DWORD dwMagick;
 DWORD dwVersion;
 DWORD dwFlags;
};

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

PM
  Top
 

 
Shurik123  
Posted: Monday, Dec 15 2008, 08:59
Quote Post


Player Hater
Group Icon
Group: Members
Joined: Dec 7, 2008

ru.gif

XXXXX



excellent!!! lol.gif icon14.gif thx

This post has been edited by Shurik123 on Monday, Dec 15 2008, 09:01
PMICQ
  Top
 

 
aru  
Posted: Monday, Dec 15 2008, 09:26
Quote Post


developer in disguise
Group Icon
Group: Members
Joined: Jun 20, 2005

cd.gif

Member Award




QUOTE (listener @ Dec 15 2008, 03:51)
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
PM
  Top
 

 
listener  
Posted: Monday, Dec 15 2008, 09:51
Quote Post


Crackhead
Group Icon
Group: Members
Joined: Sep 6, 2007

ru.gif

XXXXX



aru, look at this:
CODE

15.12.2008  10:38         5 771 264 brook_new_roads.wtd.listener
15.12.2008  10:36         5 788 518 brook_new_roads.wtd.respawn

Input file: brook_new_roads.wtd
Loaded resource file: version=8, CPU_size = 0x1000, GPU_size = 0x580000
Output file: brook_new_roads.wtd.listener
in = 3137524, out = 5771264
OutSize = 5771264, err = 0
Complete.

PM
  Top
 

 
uNi  
Posted: Monday, Dec 15 2008, 09:55
Quote Post


 
Group Icon
Group: Moderators
Joined: May 14, 2004

Member Award




Awesome REspawn, this will be handy. biggrin.gif
Users WebsitePMMSN
  Top
 

 
mr.Dageron  
Posted: Monday, Dec 15 2008, 10:05
Quote Post


Bbobik - my old nickname
Group Icon
Group: BUSTED!
Joined: Nov 25, 2008

ru.gif

XXXXX



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?
Users WebsitePMICQ
  Top
 

 
simkas  
Posted: Monday, Dec 15 2008, 11:23
Quote Post


That guy
Group Icon
Group: Members
Joined: Dec 13, 2006

lh.gif

Member Award




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

 

0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)

0 Members:

Pages: (2) [1] 2 

Topic Options Closed TopicStart new topicStart Poll
Search topic for posted by (exact match)



 
IMG IMG