A library for adding extra logic layers to existing bot brains
This is a library meant for use by developers, and may be required as a dependency for some plugins. Installing it by itself will have no effect on your game, without another plugin that utilizes it.
Installation
1) Open the downloaded zip file in 7-zip
2) Select the folders in the zip file in 7-zip
3) Drag the selected folders from 7-zip into your SPT folder
Demonstration Video (Yes, it’s Quest Tracker, but the same concept applies to all of my mods, I’m not making mod-specific extraction example videos. No, you don’t need to drop it onto LICENSE-Launcher.txt, just drop it into your SPT folder):
What is BigBrain
Have you ever wanted to take full control of bots, but found that patching into methods only gets you so far? BigBrain will allow you to insert your own logic layers into bot brains, at whatever priority you want, allowing you to take full control of the bots. If you’ve ever wanted to completely re-write how a bot behaves in certain circumstances, you are also able to remove original layers, so you don’t have to worry about the original BSG brains conflicting with yours.
Mod Developer Notice
Please do not bundle BigBrain directly with your plugin, link users to this mod page to download and install it alongside your plugin. This allows multiple mods to utilize it, without risk of one mod or another being bundled with an old version of BigBrain and potentially breaking things.
Documentation
Documentation is still a to-do, for now the code is the documentation.
I’ve created a test brain that re-implements the logic of the “PatrolAssault” layer, which can be found on GitHub: https://github.com/DrakiaXYZ/SPT-BrainTest
Note due to this being an almost direct re-implementation of the “PatrolAssault” layer, that was mostly used for testing that I was able to interact with all of the things required to re-implement a base logic layer, the logic may not be implemented in the most concise or best manner.
If you enjoy my work, you can feed my caffeine addiction
SPT 3.11.3
106.9K Downloads
This version will only work with SPT 3.11.x
* Fix exceptions when a custom layer doesn’t exist in the base node dictionary
Unknown SPT Version
475 Downloads
This version will only work with SPT 3.11.x
Fix issue with some bots being less aggressive than expected
- Switch to using further up the class chain for the base logic type
- Switch to using newly publicized methods/fields for BotAgentUpdatePatch, so we can keep the code closer to the original for comparison purposes
Unknown SPT Version
594 Downloads
This version will only work with SPT 3.11.x
Update for SPT 3.11
Unknown SPT Version
143.6K Downloads
This version will only work with SPT 3.10.x
- Update for SPT 3.10.0
Unknown SPT Version
62.9K Downloads
This version will only work with SPT 3.9.x
- Allow layers to be removed and restored during the raid. Thanks DanW!
Note that this doesn’t change anything for end users, but adds functionality useful for other mod developers
Unknown SPT Version
121.0K Downloads
This version will only work with SPT 3.9.x
- Add Read-Only Properties to allow other mods to get Custom Layer and Logic Information
Not quite yet...