This plugin fixes the Fallout New Vegas mod limit bug. It allows a maximum of 255 plugins to be loaded. It can also cause an increase in fps, remove game stutter and allow for faster loading times especially when using a large number of mods.
Other user's assetsAll the assets in this file belong to the author, or are from free-to-use modder's resources
Upload permissionYou are not allowed to upload this file to other sites under any circumstances
Modification permissionYou must get permission from me before you are allowed to modify my files to improve it
Conversion permissionYou are not allowed to convert this file to work on other games under any circumstances
Asset use permissionYou must get permission from me before you are allowed to use any of the assets in this file
Asset use permission in mods/files that are being soldYou are not allowed to use assets from this file in any mods/files that are being sold, for money, on Steam Workshop or other platforms
Asset use permission in mods/files that earn donation pointsYou are not allowed to earn Donation Points for your mods if they use my assets
Author notes
This author has not provided any additional notes regarding file permissions
File credits
This author has not credited anyone else in this file
Donation Points system
Please log in to find out whether this mod is receiving Donation Points
Changelogs
Version 3.1
Add optimizations to filestreams that were removed in v3.0
Version 3.0
Removed all previous optimizations with filestreams.
Version 2.5
Changed the old asm code into C++ and forwards all exceptions to the caller (this should prevent the fix from ever crashing your game). All files that fail to load get put back onto the stack instead of simply floating into the abyss. Improved logging. Logs also log every filestream loaded, closed and failed to open by the game.
Completely re-implements getstream and fclose to use an empty handle stack. Possibly improves performance. Locked the main critical section for getstream while patching to prevent any potential conflicts. Logging has been improved.
Version 1.2
Ignored the condition where getstream would check if the address being checked was part of the IOB_ENTRIES as getstream ignores them due to being offset. Incorrect critical sections were being accessed due to this check.
Version 1.1
Copies the old file handles to the new array and deallocates the old array. Changed the getstream function to be offset by ignoring the first 20 IOB_ENTRIES.
Version 1.0
Base fix - simply creates a new file handle array and redirects game to the new array.
Donations
No donations accepted
Installation
You will need NVSE for this plugin to work. Simply overwrite your Data/NVSE folder with the folder in the zip file. It works with MO2.
Conflicts
This fix should have no conflicts whatsoever. A mod limit message might appear. It will happen if you use JIP's Companions Command and Control mod. There is nothing I can do about the message for now. When the mod author returns from his busy schedule I will let him know about what has happened and I'm certain he will patch it. It in no way means that the plugin does not work or that the limit still exists.
Why the Limit Existed
The plugin limit bug existed because the game opens 3 file handles for each plugin and never seems to close them. The reason as to why it does this is still unknown. The game has a hard coded limit of 512 maximum file handles that can be opened at once. When loading anywhere around 140 plugins, the game requires around 420 handles for these alone. Along with bsa files as well as normal files the game requires, the game would easily attempt to open more than 512 handles. This is the reason assets stopped loading and things would begin to go south.
How this Fix Works
This fix simply bumps the maximum number of file handles up to 2048. The reason that 2048 is used is because it is the maximum number of file handles that Windows usually allows, and the more the merrier. The fix also redesigns the way the game obtains file handles. Due to the file handles not closing, the game would have iterate over all of the loaded plugin handles in order to open a new one. This fix changes this and allows for file handles to be opened instantly.
Performance Boost
The increase in fps, stutter removal and decreased loading times seems to affect everyone to a different extent. This mod can only have positive performance benefits and will in no way affect any of the game's content. The only way to know if it will benefit you is to download it and try it for yourself.