You are viewing a potentially older version of this package. View all versions.
starfi5h-Bottleneck-1.1.3 icon

Bottleneck

Add more information to the production stats panel. (theoretical max, filters, production/consumption planet list) 在统计面板(P)增加最大理论值,产物筛选,产地星球瓶颈等信息

Date uploaded 3 months ago
Version 1.1.3
Download link starfi5h-Bottleneck-1.1.3.zip
Downloads 9415
Dependency string starfi5h-Bottleneck-1.1.3

This mod requires the following mods to function

xiaoye97-BepInEx-5.4.17 icon
xiaoye97-BepInEx

BepInEx5.4.17 mod plugin framework, Mod框架

Preferred version: 5.4.17

README

Bottleneck

This is fork version of Semar's Bottleneck to support the Dark Fog update.
You can find readme files in other languages here

English / 中文

This mod adds some information to the stats panel to help find production bottlenecks. It will show the top 5 (configurable) planets an item is made on and also try to assess what your assemblers are stuck on (needing items, no power, stacking). It also adds some filter buttons for limiting the items shown to only the precursor (or dependent) items to narrow down the search for bottlenecks

Example

BetterStats with Proliferator

This plugin contains a fork of BetterStats with support for Proliferator. To use it, you'll have to disable the actual BetterStats plugin, unfortunately. The forked BetterStats is completely optional, the Bottleneck plugin should work just fine when BetterStats is installed, the proliferator enhancements just won't be present.

For production items that can be proliferated, buttons are added next to each item where you can choose between:

  • Disable - don't consider Profilerator when determining Theoretical max production for the item
  • Assembler setting - Use the assemblers current setting (more products or more speed) when calculating theoretical max
  • Force speed - Calculate theoretical max assuming every assembler is in Production Speedup mode
  • Force productivity - Calculate theoretical max assuming every assembler is in Extra Products mode. Only available for recipes that support extra products

Proliferator

Config

The config file can be found in BepInEx\config\Bottleneck.cfg after the mod load for the first time.
If you're using mod manager, you can find the file in Config editor.

## Settings file was created by plugin Bottleneck
## Plugin GUID: Bottleneck

[General]

## Number of production planets to show. Too many and tip gets very large
# Setting type: Int32
# Default value: 5
# Acceptable value range: From 2 to 35
ProductionPlanetCount = 5

## Disable to show only the direct consumers or producers. When enabled one extra level of consumer/producer will be included in results
# Setting type: Boolean
# Default value: true
Include Second Level Items = true

## Suppress item tooltip in stats window
# Setting type: Boolean
# Default value: false
Disable Item Hover Tip = false

## When planets with too little power are detected a message will be popped up (once per session)
# Setting type: Boolean
# Default value: true
PopupLowPowerWarnings = true

## When precursor/consumer filter is active filter planet list to only ones that produce/consume selected item
# Setting type: Boolean
# Default value: true
Planet Filter = true

## When planet filter is active include star systems item in list (requires Planet Filter enabled)
# Setting type: Boolean
# Default value: true
System Filter = true

## When consumption rises above the given ratio of max production, flag the text in red. (e.g. if set to '0.9' then you will be warned if you consume more than 90% of your max production)
# Setting type: Single
# Default value: 1
lackOfProductionRatio = 1

## If max consumption raises above the given max production ratio, flag the text in red. (e.g. if set to '1.5' then you will be warned if your max consumption is more than 150% of your max production)
# Setting type: Single
# Default value: 1.5
consumptionToProductionRatio = 1.5

[Stats]

## Disable Bottleneck functionality, use only BetterStats features
# Setting type: Boolean
# Default value: false
Disable Bottleneck = false

## Overwrite the maximum cargo stacking level. By default it uses the vanilla limit (4)
# Setting type: Int32
# Default value: -1
Overwrite Stacking Level = -1

## Overwrite the maximum proliferator level. By default it uses the highest proliferator unlocked
# Setting type: Int32
# Default value: -1
Overwrite Proliferator Level = -1

## Tells mod to ignore proliferator points completely. Can cause production rates to exceed theoretical max values
# Setting type: Boolean
# Default value: false
Disable Proliferator Calculation = false

## EM-Rail Ejector speed multiplier. Set this value to 2.0 when feeding proliferated sails.
# Setting type: Single
# Default value: 1
Ejector Speed Factor = 1

## Vertical Launching Silo speed multiplier. Set this value to 2.0 when feeding proliferated rockets.
# Setting type: Single
# Default value: 1
Silo Speed Factor = 1

## Maximum output limit (/min) of Mining Machine, Water Pump or Oil Extractor. Default value (0) is no limit
# Setting type: Single
# Default value: 0
Miner Output Limit = 0

[UI]

## Used by UI to persist the last selected value for checkbox
# Setting type: Boolean
# Default value: false
displayPerSecond = false

## Font size of the value text in UIProductEntry. Vanilla font size is 34
# Setting type: Int32
# Default value: 28
Font Size - Value = 28
  • ProductionPlanetCount allows showing more "Produced on" planets in tooltip (max 35)
  • 'Disable Bottleneck' lets you disable the Bottleneck functionality of this mod and just focus on stats
  • 'Disable Proliferator Calculation' removes Proliferator from Theoretical max calculations completely
  • 'Planet Filter' removes non-production (or non-consumption) planets from list when a precursor/consumer item filter is active
  • 'System Filter' when Planet Filter is active add a "Star System" item the list for system with producers
  • 'Include Second Level Items' when a precursor/consumer item filter is active also include grandparent / grandchild precursor/consumer

Notes

This mod was originally planned as an enhancement to BetterStats by brokenmass. Now this fork continue the work of Semar and adpat to the Dark Fog update in the game.

Planetary consumption/production is only calculated one time after the statistics window is opened. If you add machines to your factory while the stats window is open then you'll have to close and re-open the window to see those values update to reflect the change.

Contact

Bugs? Create an issue in the github repository.

CHANGELOG

Changelog

v1.1.3

  • Add: config Font Size - Value
  • Add: precursor/successor button now can click again to clear filter

v1.1.2

  • Add: config Ejector Speed Factor, Silo Speed Factor, Miner Output Limit
  • Add: filter and display per second in killtab.
  • Change: refine decimal place in rate numbers.

v1.1.1

  • Update: Adpat NebulaAPIv2.0.0.

v1.1.0

  • Update: Refactor and add multithreading to improve performance.
  • Bugfix: Fix recipe of non-productive product not set to production speedup mode when using assembler setting.

v1.0.18

  • Add: config Overwrite Stacking Level, Overwrite Proliferator Level

v1.0.17

  • Update: Fix for game version 0.10.28.21150

v1.0.16

  • Update: Support for DSP Dark Fog update. (0.10.28.21014)
  • Bugfix: Fix production rate is not precise when displayed in per second.
Previous Changelog

v1.0.15

  • Update: add translated readme provided by Ximu-Luya on Github (thanks for contribution)

v1.0.14

  • Update: add zhCn translations provided by Ximu-Luya on Github (thanks for contribution)

v1.0.13

  • Update: change fractionator theoretical max calculation to account for stacked belts & spray

v1.0.12

  • Update: adjust item tooltip to get rid of cannot craft in replicator message

v1.0.11

  • Update: add item tooltip when item icon is hovered in stats window (disable with "Disable Item Hover Tip" config property)

v1.0.10

  • Bugfix: Fix bug with planet filtering when matched planet count is smaller than 2
  • Update: Add config property to disable filtering of planet list by precursor/consumer target
  • Update: Add config property to control whether 2nd level precursor/consumers are shown

v1.0.9

  • Update: Add support for Nebula (thanks starfi5h)
  • Bugfix: Fix issue where Local System is added to astro list twice

v1.0.8

  • Update: change so that when pre-cursor or successor filter is enabled, planet list is filtered to only planets that are producers or consumers of the item
  • Add "Local System" to planet dropdown

v1.0.7

  • Update: update to sync with latest changes in game.

v1.0.6

  • Bugfix: fix labs not detecting stacking condition

v1.0.5

  • Bugfix: fix detection of non-productive assembler recipe default mode. Assemblers for antimatter treated as if they supported productivity mode

v1.0.4

  • Bugfix: fix initialization issue with enhanced stats version

v1.0.3

  • Bugfix: resolve issue with initialization of Proliferator info when using BetterStats official was enabled

v1.0.2

  • Update: combined stats collection with bottleneck calculations
  • Update: added 'Disable Bottleneck' config to allow only BetterStats functionality to be used. Removes precursors, made on, etc.
  • Update: added detection for unsprayed items in bottleneck calculation

v1.0.1

  • Bugfix: handle modded items that are created after this plugin is initted

v1.0.0

  • Update: removed dependency on BetterStats. Now when that plugin is not installed a local fork of it will be used instead
  • Update: Account for usage of proliferator in local BetterStats fork
  • Update: Detect stacking for Ray Receivers generating critical photons