Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. Gameplay
      2. Missions
      3. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    3. Featured Mods

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Programming
      5. Movies & TV
      6. Music
      7. Sports
      8. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. News

    2. Forum Support

    3. Site Suggestions

NTAuthority

[REL|IV] RIL.Budgeted - population budget adjuster/taxi bug fix

Recommended Posts

NTAuthority

So while I was looking into why ViIV wouldn't spawn any pedestrians even though I made navigation meshes (.wnv files) that had a higher-than-zero probability of ped spawning on them (aka what Alexander Blade has called 'pedgen flags', although they're not flags), I had to find the function that spawned random pedestrians first.

While doing so, I found a function that would be called any time a vehicle/pedestrian loaded, which incremented a global counter with what I had earlier documented to be the size of the current vehicle/pedestrian, including its textures. Checking this counter's references, I found that it in fact was referenced before the game attempted to load a new vehicle/pedestrian from the population cycle files!

Therefore, this is the taxi bug fix the game has needed for all those years.

That is, this plugin attacks the taxi bug right at its source, rather than working around the bug by loading models forcibly, it allows you to change the maximum size in bytes the game will allow automatically-loaded vehicles to take up! Isn't that fun?

It currently only works on 1.0.4.0 and 1.0.7.0 (and now 1.1.2.0 thanks to ThirteenAG).

One can download the fix and its .ini file (which you'll have to edit to contain a suitable limit - currently it contains the default limits) at http://refint.org/files/RIL.Budgeted.zip :)

Also, source code is available at http://tohjo.eu/ntauthority/budgeted and can be compiled as desired.

Have fun!

Edited by NTAuthority

Share this post


Link to post
Share on other sites
Jinx.

F*CK NO! That's epic!

Share this post


Link to post
Share on other sites
ThirteenAG

I'm still waiting that COL Accel thing for EFLC.

Share this post


Link to post
Share on other sites
LordNeophyte

holy sh*t!

 

i like it

Share this post


Link to post
Share on other sites
Zer0w5

Nice job, you should also upload it to gta4mods :)

Share this post


Link to post
Share on other sites
Saunders420

safe NTA. on point as usual.

Share this post


Link to post
Share on other sites
corvettelover

I'm guessing you still need to be careful with file sizes? (IE don't have a bunch of optimized models and then 9mb police vehicles?)

 

Awesome work. Funny you fixed it unintentionally from the sounds of it!

 

I'll be testing on a steam copy and let you know how it works (what car pack and whatnot) and can post specs and settings for anyone who wonders.

Share this post


Link to post
Share on other sites
s-paco

Wow, never thought i would see the day lol. Good job!

Share this post


Link to post
Share on other sites
ikt

This is great! Much better than my flimsy workaround, which I happen to be making less of a mess right now.

 

In-game, the variety of vehicles is more like stock though, with lots of recurring vehicles, even with a 1GB limit instead of 40MB streaming limit. I suppose this is because of the popcycle and such?

Share this post


Link to post
Share on other sites
NTAuthority

In-game, the variety of vehicles is more like stock though, with lots of recurring vehicles, even with a 1GB limit instead of 40MB streaming limit. I suppose this is because of the popcycle and such?

The game still loads models in batches of ~3-4 every minute/two minutes or so in a fixed order based on the relevant cargrp entries for the specified popcycle groups - I'll see at a later time if I can add an additional setting to reduce this delay/increase the batch size so the population gets more varied faster.

Share this post


Link to post
Share on other sites
corvettelover

Works great! I noticed especially on vanilla IV it causes vehicles to load which didnt normally load though (Bus. Sultan RS..ect)

 

With for example a 300mb vehicle.img should it be set to like 150mb or 300mb or more?

Share this post


Link to post
Share on other sites
Rich246

I have a few questions. :)

 

1) Does this work work EFLC

2) Can custom cars be loaded, if so, do they have to be in the cargrp?

 

Thanks for helping me. :)

Edited by Rich246

Share this post


Link to post
Share on other sites
Saunders420

Will this help the traffic and peds if used on the recent release of ViIV?

Share this post


Link to post
Share on other sites
NTAuthority

Will this help the traffic and peds if used on the recent release of ViIV?

 

Don't they already load fine? Anyway, this should affect other players on the network too if the person in control for said traffic zone uses this modification - loading of models for cloned entities is not restricted by the game.

Share this post


Link to post
Share on other sites
Gastings

A small installation guide would be extremely appreciated! Just a few tips how to adjust the values, if possible... Thanks!

Share this post


Link to post
Share on other sites
NTAuthority

A small installation guide would be extremely appreciated! Just a few tips how to adjust the values, if possible... Thanks!

 

Set the vehicle count to the size in bytes of your vehicles.img, if you have sufficient VRAM to fit such.

Share this post


Link to post
Share on other sites
fefenc

Do you mean that I can use a lot of 4MB HD texturized vehicles mods without worrying about the game suddenly start spawning a lot of yellow cars due to the game keeping struggling to load the same car as the custom one I'm using?

 

When this mod work on EFLC, it'll make my f*cking day :D

 

I'll test it right now

 

TESTED: After 10~20 seconds riding a car (custom or vanilla), the game crashes and give me the fatal error: SMPA60 (Unrecoverable fault - Please restart the game). I've put the size of the vehicles file on the .ini file in bytes. After reentering the game due to a fatal error, I could see that the mod seems to random spawn the stored vehicles on the garages sometimes, it has turned my unique orange infernus given to me as a gift into a orange badass intruder and a white sultan I was storing on my garage for racing into a sh*tty rekt white sabre. The mod random spawn'd my stored cars on the parking spot, but it's maintained their colors.

 

10411253_653056474815492_903745984065167

Luckily, I've modded a backup copy of the game :)

 

EDIT 2: I did used a backupd copy of the game but I didn't used a backup save, so I f*cked up. Anyway, the solution for this error is empty our garages.

 

I'm playing for awhile in a car that both files sums 4MB and no signal of the taxi glitch. Noice uorque Eni Ti Êi. Do it for EFLC, do it for the best GTA protagonist Luis Fernando Lopez.

 

Someone give this guy a medal for fixing the most annoying bug of the GTA IV modding.

Edited by fefenc

Share this post


Link to post
Share on other sites
glenster

My vehicles.img is 99,382 KB.

 

I right click vehicles.img, click Properties, and get

 

Size: 97.0 MB (101,767,168 bytes)

Size on disk: 97.0 MB (101,769,216 bytes)

 

Is this the one I use?

 

101,767,168 aka 101767168

 

VehicleBudget=101767168

Edited by glenster

Share this post


Link to post
Share on other sites
NTAuthority

Yes, that seems like it should fit your vehicles (assuming you have over 1.5 GB of system RAM, and therefore the amount doesn't get divided by 3).

Share this post


Link to post
Share on other sites
glenster

Thanks! I was a little confused about a previous post. Is there a concern it will change the cars in parking spaces in my save game files?

 

 

 

v yay!

Edited by glenster

Share this post


Link to post
Share on other sites
NTAuthority

Thanks! I was a little confused about a previous post. Is there a concern it will change the cars in parking spaces in my save game files?

That's probably an unfortunate side effect of something else, as cars from parking areas should not even take this limit into account - only use up the space this limit gets checked against.

 

Also, slightly unrelated: love your primary works (i.e. your GTA guides and associated materials) - they really provide a perspective into the background of... whatever. :p

Edited by NTAuthority

Share this post


Link to post
Share on other sites
PhillBellic

NTA, do I install this script into the scripts folder or the root file?

Share this post


Link to post
Share on other sites
theNGclan

NTA, do I install this script into the scripts folder or the root file?

Drop it into the root folder of the game. Make sure you're using an ASI loader of course.

Share this post


Link to post
Share on other sites
PhillBellic

 

NTA, do I install this script into the scripts folder or the root file?

Drop it into the root folder of the game. Make sure you're using an ASI loader of course.

 

Thanks NG. I found that out myself whilst installing this. So far so good. I am finally seeing some vehicles from my secondary vehicles archive appear. :)

Share this post


Link to post
Share on other sites
DrGta

NT will this taxi bug script work with online on viiv online on citizen.fx?

So while I was looking into why ViIV wouldn't spawn any pedestrians even though I made navigation meshes (.wnv files) that had a higher-than-zero probability of ped spawning on them (aka what Alexander Blade has called 'pedgen flags', although they're not flags), I had to find the function that spawned random pedestrians first.

While doing so, I found a function that would be called any time a vehicle/pedestrian loaded, which incremented a global counter with what I had earlier documented to be the size of the current vehicle/pedestrian, including its textures. Checking this counter's references, I found that it in fact was referenced before the game attempted to load a new vehicle/pedestrian from the population cycle files!

Therefore, this is the taxi bug fix the game has needed for all those years.

That is, this plugin attacks the taxi bug right at its source, rather than working around the bug by loading models forcibly, it allows you to change the maximum size in bytes the game will allow automatically-loaded vehicles to take up! Isn't that fun?

It currently only works on 1.0.4.0 and 1.0.7.0, however support for 1.1.2.0 may or may not be added once I get confirmation that it works.

One can download the fix and its .ini file (which you'll have to edit to contain a suitable limit - currently it contains the default limits) at http://refint.org/files/RIL.Budgeted.zip :)

Also, source code is available at http://tohjo.eu/ntauthority/budgeted and can be compiled as desired.

Have fun!

 

Share this post


Link to post
Share on other sites
nonew

So I tried this with EFLC and its not working. NTA, can you please make it available for EFLC too?

Give it to us as an early new year present. :)

Share this post


Link to post
Share on other sites
WTFcatcher

Well can we have a confirmation for EFLC compatibiliy to be done or not? I really do like this mod, just wondering this bit since EFLC, especially TBoGT has a lot of extra features that I would use. Also, thank you for finally properly fixing this annoying bug. If you can't or don't want to do the compatibility, at least let us know which parts of the script code needs to be adjusted, provided you don't have a problem for that.(You WILL be credited properly of course)

Share this post


Link to post
Share on other sites
ThirteenAG

Well can we have a confirmation for EFLC compatibiliy to be done or not? I really do like this mod, just wondering this bit since EFLC, especially TBoGT has a lot of extra features that I would use. Also, thank you for finally properly fixing this annoying bug. If you can't or don't want to do the compatibility, at least let us know which parts of the script code needs to be adjusted, provided you don't have a problem for that.(You WILL be credited properly of course)

RIL.Budgeted with EFLC 1.1.2.0 support (though it's untested)

Happy New Year everyone!

Edited by ThirteenAG

Share this post


Link to post
Share on other sites
Silent

EFLC 1.0.7.0

 

ikr

Share this post


Link to post
Share on other sites
Blackbird88

EFLC 1.0.7.0

 

ikr

Obviously he has internal R* version.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.