|
 |
|
|
|
|
|
GTA Modification Forums
IMG Limit Adjuster Adjusts number of IMG archives possible to load (defined in default.da
 |
|
 |
| |
fastman92  |
Posted: Wednesday, Feb 8 2012, 12:53
|
фастман92 | ف

Group: Members
Joined: Jul 28, 2009


|
IMG & Stream Limit Adjuster 3.0This open source ASI plugin adjusts amount of IMG archives possible to load. By default GTA San Andreas is able to load max of 8 archives (3 standard archives gta3.img, gta_int.img, player.img and 5 archives defined within default.dat or gta.dat) It`s very inconvenient when making total conversion. More IMG archives means better organization. Not only IMG limit is hacked - stream limit had to be hacked either. Now limit is: MAX_NUMBER_OF_IMG_ARCHIVES = 127; MAX_NUMBER_OF_STREAM_HANDLES = 400; It should be sufficient for anyone. Also it adds support to read IMGLIST file defined within default.dat or gta.dat, like in GTA IV. For example IMGLIST DATA\IMAGES.TXT in images.txt: anim\anim.img models\paths.img models\pedprops.img Works with GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE - - - - - - - - - - - - - - - - - - Downloadhttp://www.mediafire.com/?cz9tb7u5ce6jj7s***** Installation - Many users complain it doesn't work with DEP enabled. In that case you may have to exclude gta_sa.exe from Data Execution Prevention in Windows. - Make sure you are using this version of gta_sa.exe: GTA San Andreas v1.0 [US] HOODLUM No-CD Fixed EXE: EXE size: 14 383 616 bytes - You need to have ASI loader installed, it is already enabled if you installed CLEO Library. Otherwise you can download ASI loader from here: http://www.gtagarage.com/mods/show.php?id=8321- Put ImgLimitAdjuster.asi into GTA San Andreas directory. - There are two ways to define new archives 1. Open default.dat or gta.dat. Add entry like this: IMG models\weapons.img 2. Open default.dat or gta.dat. Add entry like this: IMGLIST DATA\IMAGES.TXT Create images.txt and put entry: models\weapons.img Commented lines are possible, must begin with # sign. For example: # comment IMGLIST handling has been introduced in IMG Limit Adjuster 3.0, inspired by GTA IV's IMGLIST. Copyright © 2011, fastman92 All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. ***** Informations: Date of release: 29-02-2012 (d-m-Y) Author: fastman92 Version: 3.0 For: GTA San Andreas Visit fastman92.tk This post has been edited by fastman92 on Wednesday, Feb 29 2012, 18:49
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
fastman92  |
Posted: Wednesday, Feb 8 2012, 16:44
|
фастман92 | ف

Group: Members
Joined: Jul 28, 2009


|
| QUOTE (SomeGuy86 @ Wednesday, Feb 8 2012, 17:36) | Wow, thanks for this awesome discovery!! You basically just made the number of adding new vehicles unlimited! |
About adding vehicles there`s another limit - ID range of defined object within .ide ID may range from 0 to 19999 You can`t define this, you`ll get the crash. | CODE | | 22343, newvehicle, newvehicle, car, LANDSTAL, LANDSTK, null, normal, 10, 0, 0, -1, 0.768, 0.768, 0 |
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
SomeGuy86  |
Posted: Wednesday, Feb 8 2012, 16:49
|
Dodo Pilot

Group: Members
Joined: Dec 14, 2010

|
| QUOTE (fastman92 @ Wednesday, Feb 8 2012, 16:44) | | QUOTE (SomeGuy86 @ Wednesday, Feb 8 2012, 17:36) | Wow, thanks for this awesome discovery!! You basically just made the number of adding new vehicles unlimited! |
About adding vehicles there`s another limit - ID range of defined object within .ide ID may range from 0 to 19999 You can`t define this, you`ll get the crash.
| CODE | | 22343, newvehicle, newvehicle, car, LANDSTAL, LANDSTK, null, normal, 10, 0, 0, -1, 0.768, 0.768, 0 | | Hmm, good point, didn't think about that one... Personally, I'm using IDs from 18631 to 19091... Which gives me 800 (and something?) more IDE slots to go... As for vehparts, I'm using 17999 and less, not sure at this point. Added approx. 80 new parts, but ended up having strange problems due to massive "shopping.dat"
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
Gforce  |
Posted: Thursday, Feb 9 2012, 19:25
|

Group: Members
Joined: Sep 17, 2003



|
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
-BLITZ-  |
Posted: Thursday, Feb 9 2012, 20:53
|
Typical behaviour for someone with your condition

Group: Members
Joined: Apr 4, 2008


|
A little more explanation if you could do,
I know the basic limit of SA gta3.img is 4GB[3,89] and after that the game goes in .lod mods. Using this plug-in/add-on, you wish how to name it, could make more than one GTA3.IMG witout reaching the 4GB limit ? So, did we escaped from this hell issue for ever; although having the same file in both IMG doesn't affect the game like cars for example ? Which file the game will choose first. I know about this from other members saying they are using more than one gta3.img. Me, I haven't made such test on my own game at the moment.
Another important question is that, this .asi increase the IDE & IPL limit or this doesn't have anything to do with what I'm saying, because above 18631/18636 the game reaches the limit.
This will help me with the .lod stuff.
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
fastman92  |
|
фастман92 | ف

Group: Members
Joined: Jul 28, 2009


|
| QUOTE (lpgunit @ Thursday, Feb 9 2012, 02:27) | | Can you make it compatible with other GTASA binaries besides the Hoodlum fixed EXE? |
Coming soon for GTA: San Andreas v1.01 [EURO] No-CD/Fixed EXE | QUOTE (-BLITZ- @ Thursday, Feb 9 2012, 21:53) | A little more explanation if you could do,
I know the basic limit of SA gta3.img is 4GB[3,89] and after that the game goes in .lod mods. Using this plug-in/add-on, you wish how to name it, could make more than one GTA3.IMG witout reaching the 4GB limit ? So, did we escaped from this hell issue for ever; although having the same file in both IMG doesn't affect the game like cars for example ? Which file the game will choose first. I know about this from other members saying they are using more than one gta3.img. Me, I haven't made such test on my own game at the moment.
Another important question is that, this .asi increase the IDE & IPL limit or this doesn't have anything to do with what I'm saying, because above 18631/18636 the game reaches the limit.
This will help me with the .lod stuff. |
There is sequence of loaded files: | CODE | • Hard-coded, loaded by _openStandardImgArchives) 1. MODELS\GTA3.IMG 2. MODELS\GTA_INT.IMG • Defined within gta.dat or default.dat, in standard game: 3. DATA\PATHS\CARREC.IMG 4. DATA\SCRIPT\SCRIPT.IMG 5. MODELS\CUTSCENE.IMG
• Special player.img, hard-coded: 6. MODELS\PLAYER.IMG |
For example you have model "dumper" defined in vehicles.ide. A game searches for this file in archive 1, failure? Searches in archive 2. Failure? Searches in archive 3. It will search continuously until finds a file with defined name in the archive. After that full list of files is created in memory. A search is case insensitive, "bullet" and "bUlLet" is the same. .lod problem is caused by exceeding limit of Unsigned int32 which is used to store positions and offsets. Limit of UNSIGNED INT32: 2 ^ 32 = 4 294 967 296 bytes, divide by 1024^3 = 4 GB. You can export some files from gta3.img, remove, then create new archive with these files. In the end define an archive within default.dat or gta.dat. It doesn`t matter what`s the number of archive in sequence, file must occur in one of loaded archives and it will work. | QUOTE | The game loads two text files whose names are hardcoded – data\default.dat & data\gta.dat. Let`s name it “Basic map file”. These files refer to other files in game directories to load such as IMG archives with binary models, textures or collisions, COL files, item definition files, item placement files and so on. Paths used in basic map entries are relative to executable location. default.dat is the first Basic map file loaded. It is followed by gta.dat. It is important for game to load IMG archives before IDE using models and textures, and IDE before IPL using entries from IDE, because the game loads them in order as it is in basic map file. Lines can be commented by the # sign at the beginning. | http://www.gtaforums.com/index.php?showtop...st&p=1060623971I`ll try IDs above 18636. It doesn`t do anything about .ide or .ipl, simplest explanation: game won`t crash if define more than 5 IMG archives in default.dat or gta.dat This post has been edited by fastman92 on Friday, Feb 10 2012, 10:04
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
TheD94  |
Posted: Saturday, Feb 18 2012, 21:54
|
Master Of Sorrow

Group: Members
Joined: Dec 20, 2011

|
Today, after 5 motherf*cking hours making slowly and carefully more *.img files with no f*cking Error, no Files are double, No file is missing, Every file is there where it suppose to be, gta3.dat edited correctly, looked after typing mistakes (none found), etc etc. Ofc gta3.img was still there, which had only all cars, peds, weapons and radar files. Other had map files, tuning parts, vegetation, level stuff (like seabed and objects). Rest stuff like some left over *.cols and all .ifp's in a file called gta4.img. I am sure: 100% no mistakes at this stuff.
When I finally started my GTASA and loaded a game from savegame which works always to me normally:
At 50% loading: CRASH!
Started new game... well no big change: @ 50% CRASH!
Nothing works here. Not even the asi loader you advise here. Nothing. Can you maybe tell me what I maybe did wrong? I mean 5 hours for nothing? Hell no, I won't do this sh*t again. I better go to hell than doing it again.
Oh and gta_sa.exe is US 1.0 No CD. The same you recommend.
This post has been edited by TheD94 on Saturday, Feb 18 2012, 21:57
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
TheD94  |
Posted: Saturday, Feb 18 2012, 22:18
|
Master Of Sorrow

Group: Members
Joined: Dec 20, 2011

|
| QUOTE (oksa8 @ Saturday, Feb 18 2012, 23:08) | If it crashes at 50% of loading, then it has to do with your data-files. Double-check any file modified, and especially try re-creating gta3.dat, it shouldn't be tough job. If it would crash right after the loading bar finishes, then it would be problem with your .img-files. I tested it and I can quarantee you don't need to do that thing again. (Unless after you fix the 50%-bug it also crashes at the end.) |
Everything worked before doing it. I had all cars, peds, weapons and radar files in a file called gta3.img, rest in gta4.img. I recovered orginal gta3.img, installed SRT3 and a Vegetation mod. Ofc i didnt replaced the gta3.img with cars, peds, weapons and so on. Anyway... so hows that? If IMG's are wrong, crash at beginning? I spotted something stupid made by me in my gta4.img.  I spotted, that i had still peds in there. I had in gta3.img and gta4.img peds in. Wouldnt that make a crahs at begin? It crashed at 50%. After deleting those peds which are doubled in gta4.img, it crashes now at 60%. There should be a tool which checks all files of a gta and tells you if anything is ok... I am sure, somewhere is only one gaylord file which causes this sh*t. Gforce, I did only IDE Harvest with G-IMG only. After that I imported with IMG Manager by x-men. Gotta check col files anyway  EDIT: Pretty long listing. What should i do to fix it? EDIT#2: I deleted all col files from old img's, and re-put them all in only one file. Now it crashes after loading at the black screen after loading screen. Loading music is still there, but with lower volume. This post has been edited by TheD94 on Saturday, Feb 18 2012, 22:40
|
|
|
|
|
 |
|
 |
 |
|
 |
| |
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
Pages:
(5) [1] 2 3 ... Last »
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.
| |
 |
|
 |
|
|
|
|