Skip to content

0fuz/dsp-calc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

DSP Factory Calculator

English · 中文

A single-page, zero-build calculator for Dyson Sphere Program factories. Pick a target item and rate, and it solves the full crafting tree, packs machines into logistics stations (ILS/PLS), and draws the layout — including what each station imports and exports.

▶ Live: https://0fuz.github.io/dsp-calc/

Hub view — Small Carrier Rocket factory laid out across logistics stations

Why this, not FactorioLab?

Every other DSP calculator — FactorioLab, dyson-calculator.com, dsp-ratios.com — answers "how many machines and belts?" and stops at a number, a list, or an abstract Sankey/flow graph. None of them place a building or route a belt. This tool's point is the next step: it turns the ratio into a drawable, grid-based station layout you can use to plan a base.

  • A spatial layout, not a table. Real DSP building footprints on a tile grid, tier-correct icons, belt counts, and two views (logistics-station hub and flat belt manifold) with pan/zoom — the step numbers-only calculators leave you to do by hand.
  • It plans your ILS/PLS stations. Crafts are bin-packed into Interstellar / Planetary Logistics Station slot budgets, with a concrete per-station import↓ / export↑ contract and an over-capacity warning. No other tool models stations as logistics entities.
  • A recipe matrix, not a tree. A square M·x=b system (Gaussian elimination), so oil-cracking loops, byproduct hydrogen, and self-feeding recipes balance correctly — and it errors loudly on an inconsistent recipe set instead of mis-counting.
  • Zero-install, offline. One page, no build, no CDN; the whole build lives in a shareable compressed URL; installable as a PWA and works offline.

Use FactorioLab instead when you want power-draw numbers, a cost-minimizing solver that auto-picks among competing recipes, or the complete DSP recipe database. This is a focused layout planner on a curated recipe subset — single-planet, no power/pollution modeling, not a blueprint exporter. Use it for the spatial / station-packing step the calculators skip.

Features

  • Recipe solver — exact machine counts and item rates for any target item / output rate.
  • Station layout — assemblers/smelters packed into Interstellar (ILS) and Planetary (PLS) Logistics Stations, with a per-station import↓ / export↑ contract and belt throughput.
  • Proliferator — extra-products math (Mk.I/II/III), applied to intermediate crafts.
  • Presets — late-game import boundaries (graphene, carbon nanotube, sulfuric acid, organic crystal, diamond, raw ores, etc.) treated as imported rather than crafted.
  • Hub & belt views — toggle between logistics-station grouping and a flat belt layout.
  • i18n — UI in Русский · English · 中文 with localized ILS/PLS abbreviations (МЛС/ПЛС · ILS/PLS · 星际站/行星站). Item names are localized in English and 中文 (Russian falls back to English item names). Language persists.
  • Share links — the full configuration (target, rate, options, view, language, panel state) is encoded in the URL.
  • Export — copy a parts list as text, or download the layout as a PNG.
  • PWA / offline — installable, works without a network connection after first load.
  • Responsive — mouse pan/zoom on desktop, one-finger pan and pinch-zoom on touch.

State is saved to the URL and localStorage, so a link reproduces exactly what you see.

Screenshots

A single logistics station, packed with six chained crafts — note the ILS badge, the import↓ / export↑ contract with rates, per-craft headers (item + proliferator), and the real building footprint:

Station card — a 6-craft Processor station

The same factory in belt view — a flat manifold layout with import sources feeding the craft row:

Belt view — flat manifold layout

Running locally

It's a single static page — no build step. Either open index.html directly, or serve the folder (the service worker / PWA features need http(s)):

python3 -m http.server 8000
# → http://localhost:8000

See also

Credits & licensing

  • Game: Dyson Sphere Program © Youthcat Studio / Gamera Games. This is an unofficial fan-made tool, not affiliated with or endorsed by the developers.
  • Icons: sprite from FactorioLab (MIT License), bundled in assets/icons.webp.
  • This project's code is released under the MIT License (see LICENSE).

About

Dyson Sphere Program factory calculator — crafting ratios + buildable ILS/PLS station & belt layout. RU · EN · 中文. PWA/offline.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors