Source-checkedWeapons, items & crafting

Raw Calculator

by RedRafe · for Factorio

Computes total amount of raw resources needed to craft any item. Raw Calculator will find the shortest path (lowest cost) to craft any item. Intended use for mod developers, does not affect the game.

329Downloads
5 yr agoLast updated
MITLicense
Factorio Mod PortalSource

About Raw Calculator

From Factorio Mod Portal

Computes total amount of raw resources needed to craft any item. Raw Calculator will find the shortest path (lowest cost) to craft any item. Intended use for mod developers, does not affect the game.

Raw Calculator

A Factorio mod that computes the total raw cost for items' recipes. Raw Calculator will find the shortest path (lowest cost) to craft any item. Intended use for mod developers, does not affect the game.

Features

  • A RecipeBook object is created pushing all the parsed recipes from data.raw.recipe
  • Raw Calculator then computes all the recipes raw cost, computing is performed across the recipe tree, bottom-up, time is ~ O(n)
  • Raw Calculator already computes the minimum cost possible for recipes
  • Value is expressed on total raw resources (e.g.: iron-ore=1, copper-ore=2, automation-science-pack=3)
  • Results are logged in the log file

Future developments

  • Add in-game GUI to show exact total raw resources
  • Improve compatibility with mods (some recipes might need to be inputted manually maybe)
  • Express the raw total for each of the raw resources (e.g.: automation-science-pack = 2 iron-ore, 1 copper-ore)

Highlights

From source data

Footprint

Rated a light load on a server.

License

Published under MIT.

Last update

Its author last shipped an update 5 yr ago.

Raw Calculator on Nxeon

From our catalogue
One-click install
Supported on Nxeon Factorio servers. We download it from Factorio Mod Portal, place it, and restart the server.
Server side
Required on the server
Server load
light
Smallest plan we suggest
Factorio — 2 GB (2 GB RAM). This follows our own load rating above, not a benchmark.
Latest build
0.1.0, released 2021-11-11

Run Raw Calculator on a Factorio server

Pick a server or deploy a new one above; it is installed in one click.

What kind of mod it is

From the catalog
Listed on Factorio Mod Portal as “Mods”

Weapons, items & crafting

New weapons, gear, items and the recipes to make them.

Runs on your server

From source side support

Factorio Mod Portal lists Raw Calculator as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Compatibility

Game
Factorio
Runs on
Serverrequired on the server

Verified at the source

  • ✓Factorio Mod PortalOfficial listing, checked 2026-10-09Open ↗
  • ✓AuthorRedRafe, as published on Factorio Mod Portal
  • ✓LicenseMITFree

Raw Calculator, answered

Generated from the mod’s own source data.

Do my players need to install Raw Calculator?

Factorio Mod Portal lists Raw Calculator as required on the server. Check its Factorio Mod Portal page to see whether players need it too.

Is it free?

Yes. Raw Calculator is free to download from Factorio Mod Portal. Its license is MIT.

How do I add it to my Nxeon server?

Use “Add to a server” on this page, or open NxLabs from your dashboard. We install it, restart your server and switch it on.

NxLabs

Run Raw Calculator on a Factorio server.

Deploy in about a minute from $2.99 a month, then add Raw Calculator in one click.