You are viewing a potentially older version of this package. View all versions.
BUG-BUG_CalculatorPatch-1.0.2 icon

BUG CalculatorPatch

Fixes for DSPCalculator 0.5.25, applied at runtime: GenesisBook machines, recipes and output maths, production loops, surplus used inside the line, saved windows, BUG_OreEnrichment and BUG_Reclamation support. The calculator is not changed.

Date uploaded 2 weeks ago
Version 1.0.2
Download link BUG-BUG_CalculatorPatch-1.0.2.zip
Downloads 75
Dependency string BUG-BUG_CalculatorPatch-1.0.2

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
jinxOAO-DSPCalculator-1.0.0 icon
jinxOAO-DSPCalculator

Calculate the factory quantity and material requirements, and generate blueprint for the production line based on the target product. 根据目标产物,自动计算整个生产线所需的各种原料和工厂数,或生成蓝图。

Preferred version: 1.0.0
CommonAPI-DSPModSave-1.2.2 icon
CommonAPI-DSPModSave

Library that allows to store mod save data separately from vanilla saves

Preferred version: 1.2.2

README

BUG_CalculatorPatch

Fixes for DSPCalculator 0.5.25. The calculator's own file is not changed: the fixes are applied to it while the game runs, and removing this mod gives you the plain calculator back.

What it fixes

  • Missing recipes and machines. Every valid recipe of the loaded game is in the calculator, and each recipe offers every building that can run it, including GenesisBook's furnaces, chemical plants and large factories.
  • GenesisBook output and power. The Negentropy Smelter's extra product is added to the proliferator bonus as the game does, not multiplied; recipes with extra power draw show it.
  • GenesisBook recipe picker. The picker uses GenesisBook's 17 by 7 grid, so recipes in the last columns can be picked.
  • Proliferators. Any proliferator a spray coater of the loaded game accepts can be used, not only the vanilla three; a failed proliferator solve is reported.
  • Recipe loops. A loop that uses less of an item than it makes (sulfuric acid feeding its own graphene chain) is solved: every item in it is made and the amounts include what the loop uses itself. A loop that does not shrink no longer ends in an "unsolvable loop": one of its items is supplied from outside for this line, and you can change which item is supplied.
  • Surplus used in the line. After solving, the chosen recipes are sized together so that by-products replace other production wherever they can and the line asks for as little raw input as possible. Only what the chosen recipes cannot avoid is left over.
  • Lists. An input fully covered by a by-product of the same line is not listed as a demand; a "sources" section shows where shared items come from. The proliferator mode switch of each row stays inside the list.
  • Windows. Open calculator windows are stored in the save and come back after loading. The interstellar assembly button no longer sits on top of another button with GenesisBook and MoreMegaStructure.
  • BUG_OreEnrichment. All of its recipes are known to the calculator: dusts and enriched smelting, catalysed copies, the gold and silver chain (copper refining, anode slime, dust, ingots) and the gold and silver copies of other recipes. They are listed after an item's normal recipes, also with GenesisBook, so the calculator keeps using the normal recipe until you pick an alternative. A line with a gold or silver recipe is solved through the whole chain, with the leftover silver or gold and copper shown as by-products. Recipes it hides in a game where their product has no normal recipe (magnets under GenesisBook) are left out of the calculator too.
  • BUG_Reclamation. Dark Fog items stay drops: they count as raw resources by default, and the trash converter is listed after any other recipe. X on one of them in the raw list makes it from trash points instead.

Notes

  • Written for DSPCalculator 0.5.25. With another version the mod checks every patch first and, if one does not fit, applies none and says so in the BepInEx log.
  • Needs DSPModSave. The calculator writes DSPCalculator-recipes.csv next to its DLL at start: the list of recipes it knows.

CHANGELOG

Changelog

1.0.3

  • Updated for DSPCalculator 1.0.0.
  • Removed the product-list cycle-walk guard (ChildrenOnce / ShowRowsOnce) and the "facilitiy" typo workaround: DSPCalculator 1.0.0 fixes both itself.
  • Adapted the product-list demand check (ListedNeed) to DSPCalculator 1.0.0's updated RefreshProductContent loop.
  • Linear Programming solver (new in 1.0.0):
    • Fixed GenesisBook Negentropy Smelter output maths (additive with proliferator bonus, not multiplicative) and the inverted TCFV Inferior output ratio in LPProductionCalculator.GetEffectiveRates so LP agrees with RecipeInfo and the game.
    • Filtered LPProductionCalculator.BuildModel so context-dependent recipes (GenesisBook Material Recovery) are never included and unpicked BUG_OreEnrichment / BUG_Reclamation alternative recipes are left out whenever an item has normal recipes (picked alternatives and alternative-only intermediates stay included).
    • Directed-graph loop cutting (BreakForcedLoops) and post-solve surplus rebalancing (Balance.Optimize) now run only for the Directed Graph solver (and LP's directed-graph fallback), stepping aside when 1.0.0's Linear Programming solver solves the line.

1.0.2

  • "Item sources" in the right-hand panel: a recipe whose picture does not load shows its product instead of an empty card, and the card for raw supply shows the item with a small vein mark instead of the bare vein icon.
  • Main Info settings: each checkbox label ends before the next column or input and shrinks to fit, so "Proliferator Extra/Spd+" no longer run under their inputs and "Round up facility number" (typo fixed) no longer spills onto "Add proliferator product line".
  • BUG_OreEnrichment 1.2.0: its new catalysed copies (fluid chemistry, particle collider, buildings), Moebius silver refining and the new dust recipes (rare veins, aluminium, niobium) are listed after the normal recipes like its other alternatives.
  • An item with no recipe of its own that comes entirely from other rows' by-products (salt from seawater washing) no longer gets an "Excessive" row in the product list; its surplus stays in the by-product panel.
  • X on a raw row that would close a loop (for example salt after making hydrogen chloride, when salt is made from hydrogen chloride) is undone: the window keeps its result instead of going empty, and the warning names the items of the loop.
  • Production loops that shrink every round are solved: X on an item inside such a loop (sulfuric acid in the catalysed graphene chain, fire ice dust) makes it, and the calculator works out the extra amount the loop uses itself. Loops that do not shrink (salt <-> hydrogen chloride, 1:1) are still refused or supplied from outside, and a solve that would not settle stops with the window keeping its last result.
  • Surplus is used inside the line: after the usual solve, the run counts of the chosen recipes are worked out again together so that by-products replace other production where they can and the line asks for as little raw input as possible. A recipe with two products (tar and hydrogen, water electrolysis) no longer keeps running just for one of them while the other piles up; what is left over is only what the chosen recipes cannot avoid. Recipe choices, raw/X settings and targets are not changed.
  • Right click on an item's picture in the product list counts it as raw again, the opposite of X in the raw list.
  • BUG_Reclamation: Dark Fog items made only by the trash converter count as raw (drops) by default instead of asking for millions of trash points; the converter's recipes come after an item's other recipes.
  • BUG_OreEnrichment: recipes it hides because their product has no normal recipe in the game (magnet tiers under GenesisBook) no longer show in the calculator. Recipe 9600 (another mod's Signal Nexus) is no longer taken for one of its alternatives.

1.0.1

  • The proliferator mode switch of each row fits inside the list; on Production Speedup it was cut off at the right edge.

1.0.0

First release.