Blackbox
Allows you to "blackbox" sets of buildings together
Last updated | a year ago |
Total downloads | 6244 |
Total rating | 3 |
Categories | Optimization |
Dependency string | Raptor-Blackbox-0.2.7 |
Dependants | 0 other packages depend on this package |
This mod requires the following mods to function
CommonAPI-DSPModSave
Library that allows to store mod save data separately from vanilla saves
Preferred version: 1.1.3CommonAPI-CommonAPI
A modding library for Dyson Sphere Program. Currently is under development.
Preferred version: 1.6.2README
Blackbox Mod
This mod allows you to "blackbox" sets of buildings together to improve your UPS
WARNING: This is an alpha release of the mod. Use at your own risk or if you would like to help support development of this mod
What's new in this update?
- Fix compatiblity issues with combat update (game version 0.10.28.xxxxx)
How to use this mod
- First install the mod, and reboot the game.
- Press Ctrl + N after either
- Selecting a station (the station window must have opened)
- In blueprint copy mode, select the input station(s) of your blackbox setup (not recommended any more, might possibly be deprecated in the future)
- Press Ctrl + M to open up the Blackbox Manager Panel to view the blackboxed
- Use "Highlight" to view what buildings got grouped together as a blackbox
- Settings
- You can untick "Analyse in background thread" if you want to blackbox in game time and check your blackbox setup for inefficiencies. Note that analysing in background thread is anywhere between 10x - 1000x faster.
- Use Cycle Length Override to specify the duration of the recipe - otherwise the automatic duration detection uses a very high duration and may delay the analysis
- You can also adjust the thresholds at the bottom if you want to control how accurate you want your blackbox to be
- Ideally, you should not need to toggle any other setting below except for "Auto-blackbox" (I still recommend manual blackboxing at this stage, since the auto-blackbox algorithm goes through the stations in the order they were placed. The algorithm cannot discriminate between blackboxable and non-blackboxable setups without simulating them, so it will probably waste a lot of time on non-blackboxable setups)
- The rest of the settings are currently for debugging purpose. You will only need to change them if you have been in contact with me on the DSP Discord
I will provide clearer explanations once the mod is out of alpha. For now, I just want to get this out there
You are encouraged to contact me on the DSP Discord to provide feedback
Known issues
- The background benchmarking (default option) sometimes converges too fast with a suboptimal recipe. In such a case, you can try unticking the "Analyse in background thread" option and try again to see if it gives a better recipe
- The benchmarking takes a much longer time to converge, if the setup oversaturates the belt. This is because the excess items need to back up through the setup, till it reaches the input stations, for the recipe to stabilize
Roadmap
- ✅ Provide configurable thresholds for analysis
- ✅ Allow item saturation phase to be skippable (defaults to skipping item saturation phase)
- ✅ Maintain internal buffer for blackbox simulation
- ✅ Support proliferated output
- Basic fingerprinting support to allow for reuse of analysed recipes
- Auto-blackbox QoL improvements
- Complete blackbox insufficient power logic
- Provide visual feedback regarding which item / recipe is preventing the setup from being blackboxable
- Figure out static analysis logic (if possible)
Changelog
v0.2.7
- Fix a build issue with dotnet
v0.2.6
- Fix compatiblity issues with combat update (game version 0.10.28.xxxxx)
v0.2.5
- Fix an infinite loop that occurred when trying to blackbox a setup containing an adv. mining machine
- Fix stale UI issue with the Blackbox Inspect window
v0.2.4
- Fix compatibility with latest game version (0.9.27.15466) (for real, this time, I hope)
v0.2.3
- Fix compatibility with latest game version (0.9.27.15466)
v0.2.2
- Fix a crash that occurred when trying to delete prebuilds
v0.2.1
- Fix a bug with blackboxing setups that had output belts from stations for items set to supply or input belts to stations for items set to demand
v0.2.0
- Fix a bug with blackbox inspect and hover highlight, that caused a blackbox on another planet to be selected if the station ID matches
- Add configurable analysis thresholds
v0.1.0
- Fix a crash that occurred when trying to save the game after deleting a blackbox that was being highlighted
- Fix a bug that prevented blackboxed belts / paths from being rendered
- Sections with unblackboxable buildings and warper belts are now automatically ignored as part of blackbox selection
- Deleting a building that's part of a blackbox also deletes the blackbox (Still doesn't cover all cases)
- Add hover highlight for blackboxes (Experimental)
- Allow blackbox creation using keybind from inspecting station normally without blueprint mode
- Revamp station input output recording logic for benchmarking
- Add support for proliferated outputs at stations
- Add internal input/output buffer to blackboxed stations
- Start following SemVer guidelines for this mod
v0.0.9
- Fix UI bug that threw errors when in space
v0.0.8
- Fix issues in Item Saturation phase
- Fix power consumption recording for piler, spraycoater and traffic monitor
- Add support for fractionators in blackbox
v0.0.7
- Fix spraycoater consumption benchmarking
- Fix power benchmarking for piler, spraycoater and traffic monitor
- Fix UI exception on hovering over certain blackboxed entities, like belts (due to game patch 0.9.25.11989)
- Revamp benchmarking logic (yet again). It should handle non-ratio setups much better now, instead of ending with "Analysis Failed"
- Add setting to override the cycle length of the blackbox recipe
v0.0.6
- Fix bug introduced by consolidating power consumer logging in previous update
- Add keybind for Blackbox Manager Window
v0.0.5
- Fix support for spraycoaters, pilers and traffic monitors
- Consolidate power consumer logging to reduce memory required for benchmarking
- Add recipe display in the inspect window
- Add inspect button to the entries in the overview panel
v0.0.4
- Update code to support the Jan 20 update (game version 0.9.24.11182), i.e. spraycoaters and pilers
v0.0.3
- First working version, I think
Contact / Feedback / Bug Reports
You can either find me on the DSP Discord's #modding channel
Or you can create an issue on GitHub
- Raptor#4825