Package: satisfy-calc
Satisfy-CalcIntroduction:satisfy-calcis a command line utility for calculating and visualizing crafting trees inSatisfactory GamebyCoffee Stain Studioswritten in Python. This utility is intended to aid users in the planning of complex production lines utilizing all available recipes, or for users that simply want to check their own designs for efficiency and correctness.satisfy-calcis available on PyPI and can be installed usingpython -m pip install satisfy-calc.Quick Use Guide:On first use, invokepython -m satisfy_calc updateto get all up to date recipes. Repeat this step after game updates.Note:This step might take around a minute, and requires an active internet connection.After recipes have been fetched, invokepython -m satisfy_calc calc <Item Name> <Item Rate>and make selections as instructed.Note:Use single or double quotes around item names that have multiple words in them e.g.'Iron Plate' 20instead of justIron Plate 20.Detailed Use Guide:satisfy-calccurrently has 2 operating modes:1. Updating locally stored recipes:Invoked throughpython -m satisfy_calc updateorpython -m satisfy_calc -u, this mode will acquire all recipes currently available the game if they do not exist locally, or update the locally stored recipes if they exist.Recipes are fetched from theSatisfactory Wiki, and therefore are subject to change during/after updates that affect recipe contents and/or add new recipes. The fetched recipes are stored locally under the package install directory asrecipes.sc.The use of this mode is recommended during first use of the utility in order to generate the initial file locally, and after any update that adds new recipes.satisfy-calcis not intended to allow for simple recipe browsing, as the recipe tables found on the Wiki provide a more intuitive visual representation for recipes. While thesatisfy-calcrecipes.scis a plaintext file, it is not meant for human viewing.2. Building a crafting tree for a given input item at a desired rate:Invoked throughpython -m satisfy_calc calc <Item Name> <Item Rate>orpython -m satisfy_calc -c <Item Name> <Item Rate>, this mode will calculate the individual requirements to craft the given item at the given rate. Rate units for items is assumed to be items/min for solids and m3/min for fluids and gases.Upon invocation the utility will start building a tree structure, starting from the specified item and given rate. The tree will grow new branches for each ingredient required to craft the specified item. At each such step, the user will be asked to provide their recipe of choice from a suitable list of recipes that can be utilized in the production of the necessary item. In this list, the first choice will always be the base recipe for a part, and following recipes are alternate, unlockable recipes. This process will repeat for each crafing step until each branch concludes in some form of raw input that can be extracted from the world, such as Ore or Crude Oil.The display of each crafting step can be broken down into several parts:Item name produced at given rate.All byproducts of the crafting step at rates which they will be produced at, if applicable.Name and number of buildings to carry out the crafting step.Note:If the item is any type of raw input, the necessary rate of extraction from the world will be listed instead.Usage Example:Upon the invocation of the following line:python -m satisfy_calc calc 'Iron Plate' 30The following the user will be prompted to make a recipe selection:Begin crafting tree calculation... 
Please select what recipe to use at each step: 

1 - [Iron Plate] made from [Iron Ingot]
2 - [Coated Iron Plate] made from [Iron Ingot, Plastic]
3 - [Steel Coated Plate] made from [Steel Ingot, Plastic]
Enter recipe # to use: _This specific crafting tree does not conclude after a single step, therefore the user will be prompted to make a selection again:Begin crafting tree calculation... 
Please select what recipe to use at each step: 

1 - [Iron Plate] made from [Iron Ingot]
2 - [Coated Iron Plate] made from [Iron Ingot, Plastic]
3 - [Steel Coated Plate] made from [Steel Ingot, Plastic]
Enter recipe # to use: 1

1 - [Iron Ingot] made from [Iron Ore]
2 - [Pure Iron Ingot] made from [Iron Ore, Water]
3 - [Iron Alloy Ingot] made from [Iron Ore, Copper Ore]
Enter recipe # to use: _In both cases the base recipe from the list was selected, and the crafting tree is constructed automatically after all selections have been made:Begin crafting tree calculation... 
Please select what recipe to use at each step: 

1 - [Iron Plate] made from [Iron Ingot]
2 - [Coated Iron Plate] made from [Iron Ingot, Plastic]
3 - [Steel Coated Plate] made from [Steel Ingot, Plastic]
Enter recipe # to use: 1

1 - [Iron Ingot] made from [Iron Ore]
2 - [Pure Iron Ingot] made from [Iron Ore, Water]
3 - [Iron Alloy Ingot] made from [Iron Ore, Copper Ore]
Enter recipe # to use: 1

 30/min Iron Plate.
 Made in 1.50x Constructor.

        L_ 45.0/min Iron Ingot.
           Made in 1.50x Smelter.

                L_ 45.0/min Iron Ore.
                   Mine/Extract resource from the world.This specific crafting tree can be read as follows:Extract 45 Iron Ore/min from the world.Use 1.5 Smelters to smelt the 45 Iron Ore/min into 45 Iron Ingot/min.Use 1.5 Constructors to craft 45 Iron Ingot/min into 30 Iron Plate/min.Note:The 1.5x [Building] notation is used to denote the use of 1.5 times the full production capacity of a single building instance. For example:One [Building] overclocked to 150%One [Building] at 100%, one [Building] downclocked to 50%Two [Building] downclocked to 75%Any other mathematically equivalent solutioncan be used to satisfy the rate requirement. Due to the sandbox nature of Satisfactory, the user is free to implement any solution appropriate for their situation.Future Plans:Reuse of recipes already selected by the user during the crafting tree.This will likely be the default behavior of the utility.A command line flag will be made available for users wishing to construct more complex factories, and will be asked to make a selection for every encountered recipe.Saving of generated crafting trees locally, and being able to fetch and see saved trees freely.Addition of item transport guidelines such as the Mk. of conveyors or pipes required for each connection.Scaling of crafting trees according to user-selected input constraints.For example, if a generated crafting tree requires a larger amount of resources than what the user is able to provide, the crafting tree will be able to be entirely adjusted based on the specified resource.Optimization of crafting trees towards minimizing either power use or any chosen input the user considers limiting.This includes the use of alternate recipes that will either remove the chosen input or maximally reduce the amount the chosen input used.Walkthrough mode to select what recipes should be offered during crafting tree construction, to allow the users to select their favorite recipes once and not have to worry about making numerous selections during the construction of each crafting tree.And in typical software development fashion, more tests and overall polish.Update History:Version 1.1.2 released:Made available on PyPI.Version 1.0.0 released.