jinxOAO-DSPCalculator icon

DSPCalculator

Automatically calculate the required factory quantity and raw material requirements for the entire production line based on the target product and speed. 根据目标产物和速度,自动计算需要的整个生产线的工厂数量需求和原材料需求。

Last updated 8 hours ago
Total downloads 10262
Total rating 4 
Categories Quality of Life
Dependency string jinxOAO-DSPCalculator-0.3.2
Dependants 0 other packages depend on this package

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
xiaoye97-LDBTool-3.0.1 icon
xiaoye97-LDBTool

Library that allows mods to add and edit Proto data. Also allows you to see Proto data, config ID's of mod Protos and change localized strings

Preferred version: 3.0.1
CommonAPI-CommonAPI-1.6.5 icon
CommonAPI-CommonAPI

A modding library for Dyson Sphere Program. Currently is under development.

Preferred version: 1.6.5

README

DSP Calculator 量化计算器

  • Press 'Q' to open the calculator.
  • 按下Q打开量化计算器。

calc_front2.png

calc2.png

How To Use 如何使用

  • Press 'Q' to open the calculator. Set the target product in the upper left corner.
  • 按下Q打开量化计算器。在左上角设置目标产物。
  • You can open multiple window at the same time. If you enable SingleWindow in the config file, you will only be able to open one window, but you can control whether to open or close the window using only the 'Q' key.
  • 你可以同时打开多个窗口。如果你在config文件中将SingleWindow开启,你将只能开启一个窗口,但你只用Q键就可以控制打开或关闭窗口。
  • Press 'Tab' to fold/unfold the window.
  • 按下Tab折叠/还原窗口。
  • The hotkey can be changed in the game settings.
  • 快捷键可以在游戏设置中更改。

Compatibility 兼容性

  • This mod can be used in vanilla, and is compatible with Genesis book, They come from void and More MegaStructure.
  • 此mod可在原版使用,且与创世之书、深空来敌、更多巨构兼容。

Acknowledgments 致谢

  • 此mod的UI布局很大程度上参考了创世之书的量化计算器布局设计,也使用了莳槡_makuwa和MengLei开发/维护的网页版计算器来进行数据比对和验证。十分感谢这些社区内容及其作者的工作。
  • The UI layout of this mod is largely based on the Qtool layout design of the Genesis Book, and also uses the web version calculator developed/maintained by 莳槡_makuwa and MengLei for data comparison and verification. Thank you very much for the community content and the work of its authors.

Installation (If Manually) 如果手动安装

  1. Install BepInEx.
    安装BepInex.
  2. Intsall LDBTool, DSPModSave and CommonAPI.
    安装LDBTool,DSPModSave 和 CommonAPI.
  3. Drag DSPCalculator.dll and MathNet.Numerics.dll into "Dyson Sphere Program/BepInEx/plugins/".
    将DSPCalculator.dll 和 MathNet.Numerics.dll 拖入Dyson Sphere Program/BepInEx/plugins/。

Change log

0.3.2:

  • Changed the conveyor belt sharing logic during blueprint generation, now prioritizing the sharing of up to 3 conveyor belts instead of the previous prioritizing "a single blueprint to accommodate as many factories as possible". Note that if sharing the conveyor belt results in the inability of the highest level available sorters to meet the factory's full speed, the conveyor belt will not be shared during blueprint generation.
  • 更改了蓝图生成时的传送带共享逻辑,现在优先共享最多3条传送带,而非之前的“优先单个蓝图可以让传送带满足尽可能多数量的工厂”。注意,若共享传送带会导致:最高级的可用分拣器都无法满足工厂满速运行,那么蓝图生成时将不会共享传送带。
  • Now, dragging the folded calculator window to the left or right edge of the screen can automatically hide it there. Solved the rebound problem of the window folding, thank starfi5h for the help.
  • 现在,将折叠的计算器窗口拖到显示器左侧或右侧边缘,可以使其自动隐藏在窗口边缘。解决了小窗口在边缘收起的回弹问题,在此感谢starfi5h的帮助。

0.3.1:

  • Fixed an error when generating some blueprints with Blue Buff checked.
  • 修复了开启蓝Buff时生成蓝图的报错问题。
  • Added the option to "keep multiple last closed windows". In previous versions, only one window could be kept, but now it defaults to keeping 5 windows. You can also change this value in the config file. A value that is too large (or set to 0, which means all closed windows are kept) might cause performance issues.
  • 新增“保留多个最后关闭的窗口”选项,之前版本只能保留一个,现在默认保留5个,你还可以在config文件中更改这个数值,过大的数值(或者设置为0,这意味着所有关闭的窗口都被保留)可能会导致性能问题。
  • Testing feature: The function of allowing the small window to hide at the edge. However due to the game's drag and drop window rebound setting, this function does not work properly when the user drags the window out of the monitor.
  • 小窗口允许在边缘收起的功能测试,但由于游戏本身拖拽出窗口回弹的设定,该功能在用户将窗口拖出显示器时并不能正常生效

0.3.0:

  • Added a simple blueprint generation function, which can generate quantified blueprints for each production line separately, and then paste them. The blueprint can include or not include logistics stations, depending on whether or not the Shift button is pressed to when click the generate button. Conversely, holding Ctrl will only generate production facilities, without any conveyor belts or sorters.
  • 新增简单蓝图生成功能,可以分别生成每个产线的量化蓝图,并进行粘贴。(蓝图可以包含或不包含物流塔,由是否按住Shift点击生成蓝图按钮决定。此外,按住Ctrl则只会生成生产设施,而不包括传送带和分拣器)。
  • Optimized the overflow product handling logic in some cases and fixed some display issues with overflow handling logic.
  • 优化了部分情况下的溢出产物处理逻辑,修复了一些溢出处理逻辑的显示问题。
  • Fixed a bug where the energy burst meta driver (TCFV mod) was ineffective.
  • 修复了深空来敌mod中,能量迸发元驱动无效的bug。
Click to view update history 点击查看历史日志

0.2.1:

  • 新增了“在新窗口中计算”的按钮,当一个材料被视为原矿,且可以由其他配方生产时,你可以点击右上角的“在新窗口中计算”按钮,打开一个新的窗口,并显示生产该产物的生产线。该功能还可以通过按住Shift并点击主产线中的视为原矿按钮直接触发。
  • 修复了一个被视为原矿的材料,在生产线中拥有部分产出时,输入的原矿数量显示不正确的bug。
  • 修复了一个使用星际组装厂时,部分情况下显示溢出产物会报错的bug。
  • 修复了劣质加工元驱动在计算时被认为在星际组装厂中生效的bug。

0.2.0:

  • Added Interstellar Assembly (from mod MoreMegaStructure) support.
  • 新增了星际组装厂(更多巨构mod)的适配。

0.1.15:

  • Added single window mode, enabling this setting will use the same shortcut key to open and close the calculator window (i.e. the shortcut key originally used to open the window, default to Q). But in this mode, you cannot open multiple windows unless you simultaneously hold down the Ctrl+Shift+Alt. You can enable this mode in the config file, it is not enabled by default.
  • 新增了单窗口模式,启用该设置后,你开启和关闭计算器窗口都会使用同一个快捷键(即原本用于开启窗口的快捷键,默认为Q)。但该模式下,你无法开启多个窗口,除非同时按住Ctrl+Shift+Alt+开启窗口快捷键。你可以在config文件中启用此模式,默认不启用。

0.1.14:

  • Fixed the errors caused by adding proliferator into product line.
  • 修复了增产剂并入生产线计算导致出错的问题。
  • Fixed the problem of some texts being misplaced when using high UI layout reference height.
  • 修复了高UI布局参考高度时部分文本的错位问题。

0.1.13:

  • Fixed an error which caused by using directional keys to interact with buttons.
  • 修复了一个使用方向键与按钮互动会导致的报错问题。
  • Fixed an issue where the calculator would still open even if in typing text mode when the calculator shortcut key was pressed.
  • 修复了一个按下了计算器快捷键时,即使在输入文本的状态,仍然会打开计算器的问题。
  • Fixed a calculation error of the fractionation facility's power consumption.
  • 修复了一个分馏设施耗电量的计算错误。

0.1.12:

  • Added a new feature. Now you can click on the item in the recipe of any production line, and the main panel will immediately jump to the position of the production line that produced the item you clikced, and highlight the production line (or raw material). The icon of the overflow product can also be clicked to quickly locate its related production line (Sometimes the main product displayed on the production line is not the overflow product itself).
  • 新增功能:现在你可以点击任意一个生产线的配方中的物品图标,主面板会立刻跳转到产出该物品的生产线的位置,并高亮显示该生产线(或原材料)。溢出产物的图标也可以点击,从而快速定位到相关生产线(有时产线显示的主要产物并非该溢出产物本身)。
  • Adjusted the display order of the production line to better match the order of the recipe's resources.
  • 调整了生产线的显示顺序,使其更符合配方顺序。
  • Fixed a bug where the resource demand won't refresh correctly when you switch the proliferator type of a single product line if it was set to speed-up mode.
  • 修复了一个bug,该bug曾导致如果你在设置为加速状态下,切换了某个配方的增产剂设置,原材料需求窗口不会正确地刷新。

0.1.10 & 0.1.11:

  • Fixed a bug where selecting a quick assembly recipe for multifunctional components would cause errors.
  • 修复了一个选择多功能组件的快速组装配方会导致报错的bug。

0.1.9:

  • Added the function of integrating the proliferators production line into the current production line. When this function is enabled, the proliferator will no longer be directly obtained as an external input, but will be produced in the current production line. Note that when this function is enabled, the consumption and output will be calculated based on the condition that "all proliferators must be self sprayed first, before they spraying other goods".
  • 新增了将增产剂的产线并入当前生产线功能,开启该功能时,不再将增产剂作为可直接获取的外部输入,而是在当前产线中自行生产。注意该功能开启时,将按照“所有增产剂在喷涂货物前,都已经过了自喷涂”这一条件来计算消耗与产出。
  • (Only for TheyComeFromVoid mod) Fixed a bug where the consumption of proliferators was calculated incorrectly when enabling the Blue buff .
  • (仅针对深空来敌mod)修复了一个增产剂消耗数量在开启蓝buff时计算错误的bug。
  • Fixed a bug where the overflow product will not be handled correctly.
  • 修复了一个bug,该bug曾导致溢出的产物不会被正确地处理。

0.1.8:

  • Fixed an issue, which caused that if an item is considered as raw ore, it will not appear in the list of by-products, even if it has overflow production.
  • 修复了一个问题,该问题曾导致如果一个产物被视为原矿,他即使有溢出的产出,也不会在副产物列表中被显示出来。
  • Added a check box to to allow users to decide whether to display the quantity requirements of production facilities for each product in an upward rounding manner. This option will be automatically written to the configuration file after you make changes, so it will affect current and future newly opened windows (even if you reboot the game).
  • 新增了一个复选框,来让用户决定是否以向上取整的方式显示每个产物的生产设施的数量需求。该选项会在你变更后自动写入配置文件,并影响当前以及后续新打开的窗口(即使你重新启动游戏)。

0.1.7:

  • Now, the newly created window no longer completely overlaps with the previous window.
  • 现在,新建的窗口不再与之前的窗口完全重叠。
  • Fixed an issue with a combination hotkey.
  • 修复了一个组合快捷键的问题。
  • You can enable an EditTitle option in the configuration file to allow you to edit the name of the calculator window.
  • 你可以在配置文件中开启一个EditTitle选项,来允许你编辑计算器窗口的名称

0.1.6:

  • Corrected the minor error in the self spraying consumption of MK3 proliferator. In addition, the consumption displayed in parentheses for other proliferator will be changed to using a self spraying strategy instead of a fixed strategy of highest level spraying. Note that if self spraying does not affect actual consumption, it will not be displayed.
  • 修正了mk3级增产剂的自喷涂消耗的微小误差。此外,其他的增产剂的括号中的消耗显示,将改为使用自喷涂策略,而不再采用固定喷涂最高等级增产剂的策略(如果自喷涂后不会影响实际消耗,则不显示)。
  • Modified the display logic for the significant digits of some numbers. If the displayed values of the production facility are rounded, you can hover on it to view the specific values.
  • 修改了部分数字的有效位数的显示逻辑,如果生产设施的显示数值经过舍入,则你可以用鼠标悬停来查看具体数值。
  • Fixed an compat issue with FractionateEverything.
  • 修复了一个万物分馏中无法使用计算器的问题。
  • Fixed an issue where the blueprint window always covers the calculator window.
  • 修复了蓝图界面总是会覆盖在计算器上层的问题。

0.1.5:

  • Add a "Mark as Completed" button, which allows you to mark the production line as completed by clicking the button in the upper left corner of each product pane or by clicking on the blank space. (Marking does not actually affect any calculation process. If the target product or its speed is changed, all markings will be reset.)
  • 新增“标记为已完成”按钮,可以通过点击每种产物窗格左上角的按钮或点击空白处,来将该产线标记为已完成。(标记不会实际影响任何计算过程。如果更改目标产物或者目标产物的速度,所有标记都会重置。)

0.1.4:

  • Fixed a bug where you can't pause the game in the UI tech panel.
  • 修复了一个bug,该bug曾导致你无法在科技界面暂停游戏。

0.1.3:

  • Fixed a bug that caused the calculator panel to be filled with blueprint icons when creating a calc panel with a blueprint window opened.
  • 修复了一个bug,该bug曾导致蓝图窗口处在开启状态时,打开一个计算器窗口会导致计算器主面板被蓝图图标填充。

0.1.1 & 0.1.2:

  • Fixed a compatibility issue with the Genesis Book. Now the Darkfog smelter can be correctly selected as the production facility for smelting and mineral processing, and counted as generating double the product. The dark fog assembler can be correctly selected as the production facility for all its supporting recipes.
  • 修复了一个和创世之书的兼容性问题,现在黑雾熔炉可以正确地被选为熔炼和矿物处理的生产设施,并产出双倍产物。黑雾制造台也可以正确地被选为其所有支持配方的生产设施。

0.1.0:

  • 发布。
  • Initial release.