This is a simple traffic loading fix, for people who have modded cars and get the issue of always the same car appearing. It is also a welcome addition for people who wish to have more diverse traffic.
You will need an asi loader and aru's Scripthook, or something similar. Be sure you GTA IV can load .asi scripts. This script has been tested on 184.108.40.206 (with ScriptHook 0.4.0), 220.127.116.11 (ScriptHook 0.4.0) and 18.104.22.168 (with ScriptHook 0.5.1).
To install this mod, TrafficLoad.asi files in your GTA IV folder. Remove older or other versions! This version is the newest one. If the mod does not load, check ScriptHook.log for possible messages, or the lack thereof. If nothing is loaded, be sure to right click the file and check for any security measurements Windows Vista and Windows 7 apply. Remove those, they prevent the file from getting loaded.
How this mod works and further things you maybe would like to know
This fix randomly loads any car into the memory. After 26 car models are loaded it tells the game to mark ALL cars as unneeded if they exist. This causes the game to unload any cars which aren't on screen anymore. After that, it randomly loads 26 cars again. This process repeats the entire time the game is loaded. Each cycle takes roughly 30 seconds, but you won't notice anything. Just give the script some time to load, after 1 minute after loading a savegame traffic diversity is constant.
Busses and taxis however do not participate in the cycle. They always load no matter what has been chosen, they just load. Busses appear regulary and all taxi variants appear in a good mixture.
This way of loading offers far more diversity than older methods. Cars which aren't loaded normally appear in traffic. Sports cars load sparingly, but they all load. Even the Infernus and Comet load. You won't notice repeating cycles anymore consisting of 30 different cars, all 84 cars (excluding service cars and taxis) are loaded.
If problems occur, please reply in this thread:
or reply in the download page of this mod GTA4-mods.com
You may freely host, rehost or distribute this mod.
All I ask now is just a mention of the original creator of this if you're using either the last build I made, or edited from the source. Thank you.
Please, if you're reasonable enough to, give some credit if you're releasing stuff based on this. Have fun tweaking it and give a heads up if it's perfect.
- source is version with adaptive custom cars, you can use as many custom cars as you like.
Here is the configuration file, save it as trafficload.ini and place it in the same place as the compiled file.
|[Options] //multipliers in %|
CustomDensity=0 //0 is false 1 is true
PedDensityMultiplier=400 //100 is default, 50 is half, 200 is double, etc. Value has no effect when CustomDensity is 0
CarDensityMultiplier=400 //same as peddensitymultiplier
[AddedCars] //refer to the readme for more info