doomeer / factorio

Factorio Planner
MIT License
137 stars 40 forks source link

Factorio Planner

Factorio Planner helps you plan your factories by computing how many resources and machines you need to produce a given throughput of resources. Try it here: http://doomeer.com/factorio

Current Version

Recipes for Factorio version 0.17.

Architecture

Factorio Planner is written in OCaml, but is then compiled to Javascript using js_of_ocaml.

Install OCaml

To compile Factorio Planner you need to install the OCaml compiler as well as js_of_ocaml.

Debian or Ubuntu:

sudo apt-get install ocaml ocaml-findlib camlp4 js-of-ocaml

Alternatively, you can use OPAM (OCaml Package Manager, https://opam.ocaml.org):

sudo apt-get install opam
opam init
opam switch 4.03.0
opam install js_of_ocaml js_of_ocaml-camlp4

Windows:

Download OCaml for Windows here: https://fdopen.github.io/opam-repository-mingw/installation Open the OCaml terminal that the installation produces and run the following:

opam init
opam switch 4.03.0
opam install js_of_ocaml js_of_ocaml-camlp4

Compile Factorio Planner

Just run:

make

This will compile the project and regenerate factorio.js.

License

Factorio Planner is released under the MIT license. See the LICENSE file.