Factory Planner


This mod allows you to plan your production in advance, specifying the recipes and machines that make up each assembly line. It provides powerful features that are fast and intuitive to use, so you can focus on actually building your factory.

Utilities
4 months ago
0.17 - 1.1
209K

g suggestion: allow simple math in some number fields

1 year, 8 months ago

The main one I want this for is the product output field

I am thinking nothing more the basic +-*/

example use case
the current product amount uses 2.687 machines, if I do
(current output) /2.687 then
(new output) * 3
I will have exactly 3 machines required

example 2
the current product amount required 20 items per sec in, if i do
(current output) / 1.333
then I will input exactly 1 belt.

1 year, 8 months ago

This is a good idea, and has indeed been on my todo list for quite a while. It's not super simple to implement though, so I'm not sure when I'll be able to get to it.

1 year, 8 months ago
(updated 1 year, 8 months ago)

i think one of the best ways to implement it would be with the lua string library, in particular

lua patterns
https://www.lua.org/manual/5.4/manual.html#6.4.1

and the for loop shown in string.gmatch
https://www.lua.org/manual/5.4/manual.html#pdf-string.gmatch

it is a good mod, but there are a couple pieces of friction like this where it still lacks polish.

1 year, 8 months ago

Sure :) It's not just the math that's the issue, it's also the GUI that now needs to be a bit more custom in some ways.