The original YAFC repository was inactive for a long time. Bugfixes piled up, but there was no one to merge them.
This repository addresses that by providing continuous support to the development.
Yes, we have their approval.
Yet Another Factorio Calculator or YAFC is a planner and analyzer. 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 recursive Pyanodon recipes that tools like Helmod could not handle. YAFC uses Google's OrTools as a model solver to handle them extremely well.
YAFC also has its own Never Enough Items, which is FNEI on steroids. In addition to showing the recipes, it shows which ones you 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.
- Make sure that you have VC Redist installed. It's needed for Google OrTools.
- Navigate to the Yafc 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.
We also have the following materials to improve your Yafc experience:
- Gifs for the examples of different use cases, but beware that Gifs are traffic-heavy.
- Tips and Tricks and the in-built tips for useful info.
- Shortcuts for quality of life.
If you want to build Yafc from source, you need to install .NET 8.
You can run build.sh
with Git Bash to build for all systems, or just a single line from it that contains dotnet publish
to build for your system.
- Works with any combination of mods for Factorio 2.0+. The most recent version that supports Factorio 1.1 is 0.9.1.
- Multiple pages, the Undo button (Ctrl+Z).
- Dependency Explorer that allows to see which objects are needed for what.
- Never Enough Items that helps to find out how to produce any item, and which option YAFC considers 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 tables: You can attach a nested table to any recipe. When a table is collapsed, you will see a summary for all recipes in it. Nested tables have their own set of links. For example, if a nested table has copper cables that are linked inside, then these cables will be calculated only inside the nested table.
- Auto modules: You can add modules to recipes by using a single slider. It will add modules based on your milestones and will prioritize modules in buildings that benefit most.
- Fluid temperatures, without mixing.
- Fuel and electricity. You can even add exactly enough energy for your sheet. However, 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 finds objects that cannot be fully automated. For example, wood in a vanilla.
- Cost analysis assigns a cost to each object. The cost is a sum of logistic actions you need to perform to get that object when using optimal recipes. It helps to compare which recipe is better.
- Flow analysis calculates a base that produces enough science packs for all non-infinite research.
- Load projects from the command line.
YAFC loads mods in 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 PyHM, enable copper-mining.
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 discuss things about YAFC? Feel free to join our channel on the Pyanodons Discord!
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).