159.026
656
159.026
656
The game has a hardcoded limit on the number of weapons.meta files that can be loaded and on the total number of weapon components that can be defined, which Rockstar increases everytime new weapons.meta or weapon components are added in DLCs.
Reaching any these limits when installing weapon mods makes the game crash while loading. This ASI allows you to increase these limits to prevent those crashes.
Thanks to CitizenFX/FiveM for their weapon components limit patch.
Installation
Install an ASI loader (dinput8.dll).
Then, just drop 'WeaponLimitsAdjuster.asi' and 'WeaponLimitsAdjuster.ini' in your GTAV directory.
If you have installed the old version and still have 'CWeaponInfoBlob Adjuster.asi' and 'CWeaponInfoBlob Adjuster.ini' in your GTAV directory, delete them. Otherwise, both ASIs will conflict and crash.
Configuration
The 'WeaponLimitsAdjuster.ini' file allows you define the new limits. It has two settings:
Changelog
2.1:
2.0:
Source code
Reaching any these limits when installing weapon mods makes the game crash while loading. This ASI allows you to increase these limits to prevent those crashes.
Thanks to CitizenFX/FiveM for their weapon components limit patch.
Installation
Install an ASI loader (dinput8.dll).
Then, just drop 'WeaponLimitsAdjuster.asi' and 'WeaponLimitsAdjuster.ini' in your GTAV directory.
If you have installed the old version and still have 'CWeaponInfoBlob Adjuster.asi' and 'CWeaponInfoBlob Adjuster.ini' in your GTAV directory, delete them. Otherwise, both ASIs will conflict and crash.
Configuration
The 'WeaponLimitsAdjuster.ini' file allows you define the new limits. It has two settings:
- 'CWeaponInfoBlob': determines the maximum number 'weapons.meta' files that can be included in the game files (default: 512).
- 'CWeaponComponentInfo': determines the maximum total number of weapon components that can be defined in 'weaponcomponents.meta' files (default: 1024).
Changelog
2.1:
- Now the 'CWeaponComponentInfo' pool size from gameconfig.xml is overwritten with the value defined in 'WeaponLimitsAdjuster.ini', so it is no longer necessary to modify gameconfig.xml.
2.0:
- Added weapon components limit adjuster, adapted from CitizenFX/FiveM.
- Renamed to Weapon Limits Adjuster, formerly CWeaponInfoBlob Limit Adjuster.
Source code
Eerste Upload: 6 april 2018
Laatst bijgewerkt: 15 augustus 2021
Laatst Gedownload: 13 minuten geleden
106 Reacties
The game has a hardcoded limit on the number of weapons.meta files that can be loaded and on the total number of weapon components that can be defined, which Rockstar increases everytime new weapons.meta or weapon components are added in DLCs.
Reaching any these limits when installing weapon mods makes the game crash while loading. This ASI allows you to increase these limits to prevent those crashes.
Thanks to CitizenFX/FiveM for their weapon components limit patch.
Installation
Install an ASI loader (dinput8.dll).
Then, just drop 'WeaponLimitsAdjuster.asi' and 'WeaponLimitsAdjuster.ini' in your GTAV directory.
If you have installed the old version and still have 'CWeaponInfoBlob Adjuster.asi' and 'CWeaponInfoBlob Adjuster.ini' in your GTAV directory, delete them. Otherwise, both ASIs will conflict and crash.
Configuration
The 'WeaponLimitsAdjuster.ini' file allows you define the new limits. It has two settings:
Changelog
2.1:
2.0:
Source code
Reaching any these limits when installing weapon mods makes the game crash while loading. This ASI allows you to increase these limits to prevent those crashes.
Thanks to CitizenFX/FiveM for their weapon components limit patch.
Installation
Install an ASI loader (dinput8.dll).
Then, just drop 'WeaponLimitsAdjuster.asi' and 'WeaponLimitsAdjuster.ini' in your GTAV directory.
If you have installed the old version and still have 'CWeaponInfoBlob Adjuster.asi' and 'CWeaponInfoBlob Adjuster.ini' in your GTAV directory, delete them. Otherwise, both ASIs will conflict and crash.
Configuration
The 'WeaponLimitsAdjuster.ini' file allows you define the new limits. It has two settings:
- 'CWeaponInfoBlob': determines the maximum number 'weapons.meta' files that can be included in the game files (default: 512).
- 'CWeaponComponentInfo': determines the maximum total number of weapon components that can be defined in 'weaponcomponents.meta' files (default: 1024).
Changelog
2.1:
- Now the 'CWeaponComponentInfo' pool size from gameconfig.xml is overwritten with the value defined in 'WeaponLimitsAdjuster.ini', so it is no longer necessary to modify gameconfig.xml.
2.0:
- Added weapon components limit adjuster, adapted from CitizenFX/FiveM.
- Renamed to Weapon Limits Adjuster, formerly CWeaponInfoBlob Limit Adjuster.
Source code
Eerste Upload: 6 april 2018
Laatst bijgewerkt: 15 augustus 2021
Laatst Gedownload: 13 minuten geleden
I need a detailed explanation, pleaseeeeeeeeeeeee
if still crash, change the limit in the CWeaponInfoBlob Adjuster.ini from 200 to 256 (Recommended), 512 (Not recommended), or 1024 (Not recommended). The higher the number, the heavier it get to load
Excellent work adding the weapon components limit adjuster! 5/5
oh yeah
@alexguirre
Is it possible to make the value entered in the Weapon Limits Adjuster 2.0 .ini settings file also force the change and reading of the value, e.g. 1024 over the priority over gameconfig.xml?
Something similar I understand is used in Packfile Limit Adjuster 1.1 by @alloc8or
Such a change would limit the possibility and frequency of accidental crashes of the game. If I am wrong please correct me.
@Remix Definitely possible, I thought about it at some point but forgot. Thanks for mentioning it!
@Remix Added it in 2.1
@alexguirre
Thanks!
@alexguirre @PNWParksFan @Dilapidated @alloc8or
I thought about something like that, but I don't know if it's possible.
Is there a chance to create an .asi / .dll script together with a .ini configuration file that could be placed in the main game directory or the scripts folder so that the whole gameconfig.xml can be saved in it ???
Something like instead of manually replacing gameconfig.xml in a directory:
mods-update-update.rpf-common-data-gameconfig.xml
You could use and upload your chosen gameconfig settings to the main game folder so that the game overrides the settings from it, i.e. from the script, instead of the original gameconfig.xml.
Would it have the right to work and does it make sense?
Or instead of what I wrote, it's just a script e.g. gameconfig_native and a folder where we would just paste the new configured gameconfig.xml, and the script would make the game instead of reading the one from mods-update-update.rpf-common-data -gameconfig.xml would read the one from the main game folder in the selected script directory, e.g. gameconfig_native.
Why am I thinking about it? Faster and easier for installation and updates because it would be enough to always copy it to the main game folder along with the native trainer and other scripts to increase the stability of the game.
@Remix Something like that is already possible with LML: https://github.com/pnwparksfan/gameconfig#lml-installation-instructions
@alexguirre does the latest version of this mod replace the "CWeaponInfoBlob Adjuster" mod from 2018 or is that a separate mod altogether?
@alexguirre After adding several planes to my custom add-on pack, I get a crash when trying to spawn them.
Do I have to change the values in the WeaponsLimitAdjuster.ini ? To what number should I put that? It's now at default.
How can i open weapon limits adjuster???
Game crashes on start with these files in GTA 5 root folder. If I remove them, the game will start.
looks like this mod need updates for the latest GTA 5 version
@Alexguirre, Hi I just read this in Github but not sure if I understand correctly!,
" **Important**: the pool size `CWeaponComponentInfo` in gameconfig.xml should have the same value, otherwise the game will crash when the number of weapon components reaches this pool size (default: 1024)."
I can only find this reference in game config is that that the one you reference,
<PoolName>CWeapon</PoolName> <PoolSize value="1024"/>
thanks for any assistance here.
What should the values be for several add on weapon mods?
@alexguirre Could you update this to increase the amount of files in pickups.meta? Having more than 5 add-on weapons with pickups files will cause the game to crash on load. Deleting the all pickups files with the add-on weapon will fix the crash on load but the weapon itself cannot be picked up. Without pickups for add-on weapons if they are added to enemy loadouts will cause the to run at you unarmed.
@alexguirre Hello, asiloader.log says that this mod failed to load. Here's what written in it:
LOADER: Loading *.asi plugins
ASI: Loading "C:\Games\Grand Theft Auto V\GTAV.HeapAdjuster.asi"
"GTAV.HeapAdjuster.asi" => 00007FF9A59D0000
ASI: Loading "C:\Games\Grand Theft Auto V\HeapAdjuster.asi"
"HeapAdjuster.asi" => 00007FF9955A0000
ASI: Loading "C:\Games\Grand Theft Auto V\Menyoo.asi"
"Menyoo.asi" => 00007FF943EE0000
ASI: Loading "C:\Games\Grand Theft Auto V\OpenIV.asi"
"OpenIV.asi" => 00007FF995570000
ASI: Loading "C:\Games\Grand Theft Auto V\PackfileLimitAdjuster.asi"
"PackfileLimitAdjuster.asi" => 00007FF9A27A0000
ASI: Loading "C:\Games\Grand Theft Auto V\ScriptHookVDotNet.asi"
"ScriptHookVDotNet.asi" => 00007FF990250000
ASI: Loading "C:\Games\Grand Theft Auto V\TrainerV.asi"
"TrainerV.asi" => 00007FF943AB0000
ASI: Loading "C:\Games\Grand Theft Auto V\WeaponLimitsAdjuster.asi"
"WeaponLimitsAdjuster.asi" failed to load
ASI: Loading "C:\Games\Grand Theft Auto V\ZMenuV.asi"
"ZMenuV.asi" failed to load
LOADER: Finished loading *.asi plugins
Furthermore, trying to install custom weapons only results in the game crashing. Is there really nothing I can do about it? I'm clearly in league with the others who have the same problem as I do. Install this mod, install vehicle with custom weapons, install custom gun, game crashes. It's been bugging us for too long.
@alexguirre can u please patch CPickupdata? game crashes around 10 weapon addons. Poolmanager says crashes are happen because of CPickupdata