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
8.0K Downloads
This version will only work with SPT 3.10.x
- Update for SPT 3.10.0
57.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
120.6K 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
30.1K Downloads
This version will only work with SPT 3.9.x
- Update for 3.9.0
172.1K Downloads
This version will only work with SPT 3.8.0
- Update for 3.8.0
100.5K Downloads
This version will only work with SPT 3.7.1-3.7.6
Improved error handling
40.2K Downloads
This version will only work with SPT 3.7.1, 3.7.2, 3.7.3
Update for 3.7.1 / 26535
13.4K Downloads
This version will only work with SPT 3.7.0
Update for 3.7.0 / 26282
44.4K Downloads
This version will only work with SPT 3.6.0-3.6.1
Update for 3.6.0 / 25206
19.2K Downloads
This version will only work with SPT 3.5.8
- Update for SPT 3.5.8
- Add some more sanity checks
- Add some methods that can be useful for debugging (Used by BotDebug)
3.5K Downloads
This version will only work with SPT 3.5.7
- Some internal restructuring
- Allow adding and removing more than one layer at a time
- Added some more helper functions to BrainManager
- Fix a bug where sometimes custom layers wouldn't get priority over base layers, if their priority numbers were the same
Backwards compatible with mods built for BigBrain 0.1.2
5.9K Downloads
- Initial release
This version will only work with SPT 3.5.7
Not quite yet...