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: (5) « First ... 2 3 [4] 5   ( Go to first unread post ) Closed TopicStart new topicStart Poll

 IMG Manager 2.0 [III | VC | SA | IV]

 > LOCKED: Topic Author Request
 
-BLITZ-  
Posted: Tuesday, Mar 13 2012, 12:46
Quote Post


Typical behaviour for someone with your condition
Group Icon
Group: Members
Joined: Apr 4, 2008

ro.gif

XXXXX



This is magnificent! biggrin.gif
Users WebsitePM
  Top
 

 
JF-Mir2  
Posted: Tuesday, Mar 13 2012, 13:16
Quote Post


I AM NOT INSANE!
Group Icon
Group: Members
Joined: Feb 8, 2011

jolly-roger.gif

XXXXX



QUOTE (xmen @ Tuesday, Mar 13 2012, 20:08)
@JF-Mir2 : well everyone needs todo list when working on large things smile.gif

Lol, yeah, especially me, I easily forget what I need to do when I install big mods which has advanced installation process.

Anyway, can't wait for the tool since it's compatible with VC. Man, can't wait to modify Vice. I wonder how it looks like, modifed? rolleyes.gif
PMPlayStation Network
  Top
 

 
fastman92  
Posted: Tuesday, Mar 13 2012, 15:43
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



QUOTE (SilentPL @ Tuesday, Mar 13 2012, 12:39)
Never seen such a big HDD + SA will f*cking explode tounge.gif

Limitation of GTA SA are (untested, theoretical and based on EXE code):

On file list:
File position is saved as DWORD (4-byte value) divided by 2048
File size is saved as WORD (2-byte value) divided by 2048

File position limit = ((2^(4*8))*2048)/1024^3 = 8 192 GB = 8 TB
Max file size limit = ((2^(2 * 8)) * 2 048) / (1 024^2) = 128 MB

Single entry of file list:
CODE
#pragma pack(push, 1)
struct CDirectoryEntry
{
 DWORD Position;
 WORD Size;
 __int16 _padding;
 char Name[24];
};
#pragma pack(pop)


This post has been edited by fastman92 on Tuesday, Mar 13 2012, 15:46
Users WebsitePMMSN
  Top
 

 
xmen  
Posted: Tuesday, Mar 13 2012, 15:45
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (fastman92 @ Tuesday, Mar 13 2012, 21:13)
QUOTE (SilentPL @ Tuesday, Mar 13 2012, 12:39)
Never seen such a big HDD + SA will f*cking explode tounge.gif

Limitation of GTA SA are (untested, theoretical and based on EXE code):

On file list:
File position is saved as DWORD (4-byte value) divided by 2048
File size is saved as WORD (2-byte value) divided by 2048

File position limit = ((2^(4*8))*2048)/1024^3 = 8 192 GB = 8 TB
Max file size limit = ((2^(2 * 8)) * 2 048) / (1 024^2) = 128 MB

only gta4 has 128 mb single limit, rest are using same 8TB
Users WebsitePMMSNYahoo
  Top
 

 
fastman92  
Posted: Tuesday, Mar 13 2012, 15:52
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



I disagree
CODE
     if ( Entry.Size > SizeOfBiggestFileInIMGArchive )
       SizeOfBiggestFileInIMGArchive = Entry.Size;


Why in function 0x005B6170 - _createListOfFilesFromImgArchive
WORD value of Entry.Size is taken?

CODE
.text:005B6470 04C                 mov     [esp+4Ch+Entry.Size], cx
.text:005B6475
.text:005B6475     loc_5B6475:                            ; CODE XREF: _createListOfFilesFromImgArchive+2FEj
.text:005B6475 04C                 movzx   ecx, [esp+4Ch+Entry.Size]
.text:005B647A 04C                 mov     edx, [esp+4Ch+Entry.Position]
.text:005B647E 04C                 push    ecx
.text:005B647F 050                 push    edx
.text:005B6480 054                 lea     ecx, _loadedObjectInfo.nextIndex[eax]
.text:005B6486 054                 call    dummy_4075E0  ; _f8 = _a0; _fC = _a4;


mov [esp+4Ch+Entry.Size], cx

cx - 2-bytes register
Users WebsitePMMSN
  Top
 

 
xmen  
Posted: Tuesday, Mar 13 2012, 16:05
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (fastman92 @ Tuesday, Mar 13 2012, 21:22)
I disagree
CODE
     if ( Entry.Size > SizeOfBiggestFileInIMGArchive )
       SizeOfBiggestFileInIMGArchive = Entry.Size;


Why in function 0x005B6170 - _createListOfFilesFromImgArchive
WORD value of Entry.Size is taken?

CODE
.text:005B6470 04C                 mov     [esp+4Ch+Entry.Size], cx
.text:005B6475
.text:005B6475     loc_5B6475:                            ; CODE XREF: _createListOfFilesFromImgArchive+2FEj
.text:005B6475 04C                 movzx   ecx, [esp+4Ch+Entry.Size]
.text:005B647A 04C                 mov     edx, [esp+4Ch+Entry.Position]
.text:005B647E 04C                 push    ecx
.text:005B647F 050                 push    edx
.text:005B6480 054                 lea     ecx, _loadedObjectInfo.nextIndex[eax]
.text:005B6486 054                 call    dummy_4075E0  ; _f8 = _a0; _fC = _a4;


mov [esp+4Ch+Entry.Size], cx

cx - 2-bytes register

Im not exactly talking about 8 TB, even if you calculate, it will go 7.99 and of course it will be wrong if file size will be bigger than max archive size, it must be minus (HeaderSize + Space for more files)
Users WebsitePMMSNYahoo
  Top
 

 
fastman92  
Posted: Wednesday, Mar 14 2012, 18:33
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



I found something important to GTA SA IMG archives what's been unknown for over 7 years.
Well, in the file list entry +4 is not DWORD, it's WORD.

Structure:
CODE
#pragma pack(push, 1)
struct CDirectoryEntry
{
 DWORD Position;
 WORD SizeSecondPriority;
 WORD SizeFirstPriority;
 char Name[24];
};
#pragma pack(pop)


If +6 SizeFirstPriority is NOT zero, +6 will be used as file size, else +4 SizeSecondPriority will be used.
Why it's been unnoticed? Because all standard R* IMG archives have +6 with zero value applied to all entries.
Zero didn't change resulting value read by IMG editors when treated as DWORD.

This post has been edited by fastman92 on Wednesday, Mar 14 2012, 20:35
Users WebsitePMMSN
  Top
 

 
methodunderg  
Posted: Sunday, Mar 25 2012, 07:47
Quote Post


Grandpa
Group Icon
Group: Members
Joined: May 23, 2008

nz.gif

XXXXX



Can you include something like this : http://www.gtaforums.com/index.php?showtopic=200418&st=0 in this tool?

So we don't have to extract the .dff/.txd's out of the file (as well as the textures out of the .txd's) to view it. Would be awesome to see it on-the-fly xD
PM
  Top
 

 
xmen  
Posted: Sunday, Mar 25 2012, 10:15
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (methodunderg @ Sunday, Mar 25 2012, 13:17)
Can you include something like this : http://www.gtaforums.com/index.php?showtopic=200418&st=0 in this tool?

So we don't have to extract the .dff/.txd's out of the file (as well as the textures out of the .txd's) to view it. Would be awesome to see it on-the-fly xD

That still possible with IMGM V.1.5, double click on any file in the archive and it will open in associates tool.

http://www.gtaforums.com/index.php?showtopic=354093
Users WebsitePMMSNYahoo
  Top
 

 
Swoorup  
Posted: Tuesday, Apr 3 2012, 01:42
Quote Post


innovator
Group Icon
Group: Members
Joined: Oct 28, 2008

au.gif

XXXXX



What's the progress of this tool? biggrin.gif
PMMSNYahoo
  Top
 

 
xmen  
Posted: Tuesday, Apr 3 2012, 09:23
Quote Post


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

jolly-roger.gif

Member Award




Users WebsitePMMSNYahoo
  Top
 

 
JF-Mir2  
Posted: Tuesday, Apr 17 2012, 12:42
Quote Post


I AM NOT INSANE!
Group Icon
Group: Members
Joined: Feb 8, 2011

jolly-roger.gif

XXXXX



I've been following your progress for the last few days, and I must say, you make very fast progress xmen. Good luck for the remaining 5%, can't wait for the release. notify.gif
PMPlayStation Network
  Top
 

 
xmen  
Posted: Tuesday, Apr 17 2012, 12:48
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (JF-Mir2 @ Tuesday, Apr 17 2012, 18:12)
I've been following your progress for the last few days, and I must say, you make very fast progress xmen. Good luck for the remaining 5%, can't wait for the release. notify.gif

thanks, its almost finished just adding a tiny useless feature biggrin.gif
Users WebsitePMMSNYahoo
  Top
 

 
fastman92  
Posted: Tuesday, Apr 17 2012, 12:49
Quote Post


фастман92 | ف
Group Icon
Group: Members
Joined: Jul 28, 2009

pl.gif

XXXXX



QUOTE (xmen @ Tuesday, Apr 3 2012, 10:23)
Progress

QUOTE
DAT(gta.dat)

I hope you didn't forget about "default.dat" in GTA SA.
Please add support for [ur=http://www.gtaforums.com/index.php?showtopic=500814]IMGLIST[/url] keyword as well. It's used like the following.

In gta.dat or default.dat
CODE
IMGLIST DATA\IMAGES.TXT


Create images.txt and put entry:
models\weapons.img

Commented lines are possible, must begin with # sign.
For example:
# comment

Example:
CODE
#comment
#next comment
models\weapons.img
models\vehicles.img
#another comment comment
#last comment
Users WebsitePMMSN
  Top
 

 
xmen  
Posted: Tuesday, Apr 17 2012, 13:20
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (fastman92 @ Tuesday, Apr 17 2012, 18:19)
QUOTE (xmen @ Tuesday, Apr 3 2012, 10:23)
Progress

QUOTE
DAT(gta.dat)

I hope you didn't forget about "default.dat" in GTA SA.
Please add support for [ur=http://www.gtaforums.com/index.php?showtopic=500814]IMGLIST[/url] keyword as well. It's used like the following.

In gta.dat or default.dat
CODE
IMGLIST DATA\IMAGES.TXT


Create images.txt and put entry:
models\weapons.img

Commented lines are possible, must begin with # sign.
For example:
# comment

Example:
CODE
#comment
#next comment
models\weapons.img
models\vehicles.img
#another comment comment
#last comment

Click Here
Users WebsitePMMSNYahoo
  Top
 

 
Convetors  
Posted: Tuesday, Apr 17 2012, 13:31
Quote Post


Suddently its Me !
Group Icon
Group: Members
Joined: Aug 4, 2010

XXXXX



Got a Suggestion maybe its already said but any way ^^
i Used to use Alcis Img editor becaus of the feature (import/remove if exist) But the problem Is that there is a Size Limit for object . So u Shuldnt Do that size limit ^^
Users WebsitePM
  Top
 

 
xmen  
Posted: Tuesday, Apr 17 2012, 13:44
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (Convetors @ Tuesday, Apr 17 2012, 19:01)
Got a Suggestion maybe its already said but any way ^^
i Used to use Alcis Img editor becaus of the feature (import/remove if exist) But the problem Is that there is a Size Limit for object . So u Shuldnt Do that size limit ^^

there is no limit like that...
Users WebsitePMMSNYahoo
  Top
 

 
Togrul  
Posted: Wednesday, Apr 18 2012, 09:02
Quote Post



Group Icon
Group: Members
Joined: Jun 10, 2010

az.gif

XXXXX



It would be very good if you can make archive rebuilding more faster.
Plus a bug spawn if your file has written with Caps lock.
For example, when you add MERIT.dff it crashes.

user posted image

Anyway good luck with your awesome tool icon14.gif
PM
  Top
 

 
xmen  
Posted: Wednesday, Apr 18 2012, 16:36
Quote Post


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

jolly-roger.gif

Member Award




QUOTE (Togrul @ Wednesday, Apr 18 2012, 14:32)
It would be very good if you can make archive rebuilding more faster.
Plus a bug spawn if your file has written with Caps lock.
For example, when you add MERIT.dff it crashes.

user posted image

Anyway good luck with your awesome tool icon14.gif

Never tested that with current version(1.5) but version 2 wont crash.
Users WebsitePMMSNYahoo
  Top
 

 
Togrul  
Posted: Sunday, Apr 22 2012, 08:31
Quote Post



Group Icon
Group: Members
Joined: Jun 10, 2010

az.gif

XXXXX



Yay, today is release date! Can't wait icon14.gif
PM
  Top
 

 

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

0 Members:

Pages: (5) « First ... 2 3 [4] 5 

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



 
IMG IMG