The original YAFC repository has been inactive for a year. Bugfixes piled up, but there was no one to review and merge them. This repository aims to fix that.
Yes, we have their approval.
Yet Another Factorio Calculator or YAFC is a planner and analyser. The main goal of YAFC is to help with heavily modded Factorio games.
YAFC is more than just a calculator. It uses multiple algorithms to understand what is going on in your modpack to the point of calculating the whole late-game base. It knows what items are more important and what recipes are more efficient.
It was created as an answer to deeply recursive Pyanodon recipes, which the tools like Helmod could not handle. YAFC uses Google's OrTools as a model solver to handle them extremely well.
Among other things YAFC has Never Enough Items, which is FNEI on steroids. In addition to showing the recipes, it shows which ones you probably want to use, and how much.
YAFC is a desktop app. The Windows build is the most tested, but OSX and Linux are supported too. See Linux and OSX installation instructions.
- Navigate to the Releases,
- Download the zip file for your given OS,
- Extract the zip file to your preferred location,
- Run either
./YAFC
or./YAFC.exe
(OS-dependent), - Once YAFC is opened, make sure to locate your mod folder. Refer to the wiki for your given OS.
- Works with any combination of mods for Factorio 0.17+.
- Multiple pages, the Undo button (Ctrl+Z).
- Dependency Explorer tool that allows to see which objects are needed for what.
- Never Enough Items tool that helps to find out how to produce any item, and also which way YAFC thinks is optimal.
- Main calculator sheet:
- Links: YAFC will try to balance production/consumption only for linked goods. Unlinked goods are calculated but not balanced. It is a core difference from Helmod, which attempts to balance everything and breaks on deeply recursive recipes.
- Nested sheets: You can attach a nested sheet to any recipe. When a sheet is collapsed, you will see a summary for all recipes in it. Nested sheets have their own set of links. For example, you can create a nested sheet for electronic circuits, and put copper cables inside that sheet. If you add an internal link for copper cables, it will be separate, so you can calculate copper cables just for electronic circuits.
- Auto modules: You can add modules to recipes by using a single slider. Based on your milestones, it will automatically add modules you have access to. It will prioritize putting modules into buildings that benefit the most from them.
- Fluid temperatures, although without mixing them, allow to calculate energy generation.
- Fuel, including electricity. You can even add energy generation exactly enough for your sheet. Howerver, inserters are not included.
- Multiple analyses:
- Accessibility analysis: Shows inaccessible objects. Mods often hide objects, and Factorio has a bunch of hidden ones too. However, it is impossible to find objects that are spawned by mods or map scripts. This analysis may fail for modpacks like Seablock, but you can mark some objects as accessible manually.
- Milestone analysis: You can add anything as a milestone. YAFC will display that milestone icon on every object that is locked behind it, directly or indirectly. Science packs are natural milestones, and so they are added by default.
- Automation analysis: YAFC tries to find objects that can be fully automated. For example, wood in a vanilla game cannot be fully automated because it requires to cut trees.
- Cost analysis: YAFC assigns a cost to each object. The cost is a sum of logistic actions you need to perform to get that object, using the most optimal recipes. YAFC cost is very useful to quickly compare items and recipes. This cost also helps to find which recipes are suboptimal.
- Flow analysis: YAFC calculates a base that produces enough science packs for all non-infinite research. It knows how much of everything you will probably need.
More gifs can be found here (Traffic warning!)
YAFC loads mods in an environment that is not completely compatible with Factorio. If you notice any bugs, please report them in the issues.
I am playing Seablock / Other "scripted progression" mod, and YAFC thinks that items are inaccessible
No ultimate solution to this has been found, but you can open Dependency Explorer and manually mark a bunch of items or technologies as accessible.
For Seablock specifically, please check this issue that contains a small list of things to enable at first.
For mod authors: You can detect YAFC by checking the data.data_crawler
variable during the data stage. It will be equal to yafc a.b.c.d
where a.b.c.d
is yafc version. For instance, yafc 0.5.4.0
.
Do you want to make a Pull Request to YAFC? Great! Please check out the Contributor's Guide to make sure the review process of your PR is smooth.
- GNU GPL 3.0
- Copyright 2020 © ShadowTheAge
- This readme contains gifs featuring Factorio icons. All Factorio icons are copyright of Wube Software.
- Powered by free software: .NET core, SDL2, Google Or-Tools, Lua and others (see full list).