|
 |
|
|
|
|
|
GTA Modification Forums
IMG Manager 2.0 [III | VC | SA | IV] > LOCKED: Topic Author Request
 |
|
 |
| |
JF-Mir2  |
Posted: Tuesday, Mar 13 2012, 13:16
|
I AM NOT INSANE!

Group: Members
Joined: Feb 8, 2011


|
| QUOTE (xmen @ Tuesday, Mar 13 2012, 20:08) | @JF-Mir2 : well everyone needs todo list when working on large things | 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?
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
xmen  |
Posted: Tuesday, Mar 13 2012, 16:05
|
Foot Soldier

Group: Members
Joined: Jun 2, 2005



|
| 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)
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
fastman92  |
Posted: Wednesday, Mar 14 2012, 18:33
|
фастман92 | ف

Group: Members
Joined: Jul 28, 2009


|
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
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
xmen  |
|
Foot Soldier

Group: Members
Joined: Jun 2, 2005



|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
JF-Mir2  |
Posted: Tuesday, Apr 17 2012, 12:42
|
I AM NOT INSANE!

Group: Members
Joined: Feb 8, 2011


|
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.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
fastman92  |
Posted: Tuesday, Apr 17 2012, 12:49
|
фастман92 | ف

Group: Members
Joined: Jul 28, 2009


|
| QUOTE (xmen @ Tuesday, Apr 3 2012, 10:23) | | Progress | 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 |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(5) « First ... 2 3 [4] 5
Track this topic
Receive email notification when a reply has been made to this topic and you are not active on the board.
Subscribe to this forum
Receive email notification when a new topic is posted in this forum and you are not active on the board.
Download / Print this Topic
Download this topic in different formats or view a printer friendly version.
| |
 |
|
 |
|
|
|
|