Tool for patching SWBF2 (2005) to extend it's memory limits and fix bugs.
- DLC Mission Limit Extension. Increased from 500 to 4096. This lets more mods be installed at once, provided that don't conflict and no other limits are hit.
- Runtime Heap Extension. This makes it much harder for modders to hit "Allocating X bytes failed - no free blocks left in Heap 5 (Runtime)" errors.
- SoundParameterized Layer Limit Extension. This keeps maps with lot's of flyers and entities that use
EngineSoundfrom crashing. - SkyObjectClass Limit Extension. This prevents a buffer overflow when too many sky objects were created that could crash the game.
- Terrain Detail Map Cleanup. This fixes a crash with multiple maps in a playlist and switching to one without a terrain detail map after playing another one.
- PropGenerator Update Loop Exit Condition. This fixes a crash where by while updating foliage objects the game will read pass the end of the cluster object array. This is caused by game sometimes branching over the bounds check for the array, typically when using very high Field of Views.
- BlurEffect::Render Downsize Clamp. This fixes the water normal maps (or scope blur intermediate target) sometimes being overlaid onto the world when using the blur effect.
- Screenshot::RequestScreenshot Redirect. GoG/Steam Only. This fixes using Print Screen to capture a screenshot crashing the game.
- Logging Enablement. GoG/Steam Only. This allows passing
/logon the commandline to activate the games log file (BFront2.log). Be aware that far less info is printed in the "normal" builds of the game. This is mostly useful for modders looking to debug their Lua scripts. - RedWarning::DialogBoxMessage Fix. GoG/Steam Only. This fixes error message dialogs not being shown.
- DLC Mission List Initialization Fix. This fixes not being able to launch into mod maps via the commandline.
- GoG Version
- Steam Version
- BF2_modtools (The version of the game used to debug mods. Found in the modtools.)
If you're interested in seeing another version of the game supported feel free to open an Issue (or +1 an Issue if someone else has already asked for your version to be supported).
The tool itself is a simple Win32 GUI app. Launch it, click "Patch Executable", browse to your game's executable (the one named BattlefrontII.exe and is in the same folder as your Addon folder) and click Open. The tool will then patch the executable, if it recognizes the executable and is able to patch it you'll get a success message.
If it fails the executable will left unmodified. Replacing it is the final step it does after everything else has succeeded.