Yet another production viewer(Update 2: Win install update)

Enhance your gameplay with these tools. This category is also the right place for tools useful for modders.
Mod databases, calculators, cheatsheets, multiplayer, scripts, libs and other useful stuff that is not strictly in-game mods.
Post Reply
Max S.
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Apr 30, 2016 8:08 pm
Contact:

Yet another production viewer(Update 2: Win install update)

Post by Max S. »

Hello @ all,

I was always manually calculating the required fabs for a certain amount of units I want to produce per minute. Because I don't like Excel sheets and wanted to have a quick response I programmed a small comand line utility.

You can download it at github https://github.com/MaxSagebaum/Factorio ... tag/v0.2.1. In the folder binaries/linux64 is a executable that should work on all linux systems. I will try to provide a version that runs under windows on the next weekend.

A simple example and how to compile the tool by yourself is described in the readme file of the project.

For a fast inserter the output of the program is:

Code: Select all

./build/FactorioViewer fast-inserter -u 20
fast-inserter        electronic-circuit       iron-plate
  20.000 u/min --+->   40.000 u/min     --+->   40.000 u/min
   0.167 fabs    |      0.333 fabs        |      2.333 fabs
                 |                        |
                 |                        |   copper-cable         copper-plate
                 |                        +->  240.000 u/min ---->  120.000 u/min
                 |                               0.500 fabs           7.000 fabs
                 |
                 |   iron-plate
                 +->   40.000 u/min
                 |      2.333 fabs
                 |
                 |   basic-inserter       electronic-circuit       iron-plate
                 +->   20.000 u/min --+->   20.000 u/min     --+->   20.000 u/min
                        0.167 fabs    |      0.167 fabs        |      1.167 fabs
                                      |                        |
                                      |                        |   copper-cable         copper-plate
                                      |                        +->  120.000 u/min ---->   60.000 u/min
                                      |                               0.250 fabs           3.500 fabs
                                      |
                                      |   iron-gear-wheel       iron-plate
                                      +->   20.000 u/min  ---->   40.000 u/min
                                      |      0.167 fabs            2.333 fabs
                                      |
                                      |   iron-plate
                                      +->   20.000 u/min
                                             1.167 fabs

copper-plate         iron-plate
 180.000 u/min        160.000 u/min
  10.500 fabs           9.333 fabs
For the mark two armor the output is:

Code: Select all

./build/FactorioViewer power-armor-mk2
power-armor-mk2       effectivity-module-3       effectivity-module-2       effectivity-module       advanced-circuit       electronic-circuit       iron-plate    
   1.000 u/min  --+->    5.000 u/min       --+->   25.000 u/min       --+->  100.000 u/min     --+->  500.000 u/min   --+-> 1000.000 u/min     --+-> 1000.000 u/min
   0.417 fabs     |      5.000 fabs          |     12.500 fabs          |     25.000 fabs        |     66.667 fabs      |      8.333 fabs        |     58.333 fabs 
                  |                          |                          |                        |                      |                        |                 
                  |                          |                          |                        |                      |                        |   copper-cable         copper-plate  
                  |                          |                          |                        |                      |                        +-> 6000.000 u/min ----> 3000.000 u/min
                  |                          |                          |                        |                      |                              12.500 fabs         175.000 fabs 
                  |                          |                          |                        |                      |                                                               
                  |                          |                          |                        |                      |   plastic-bar          petroleum-gas 
                  |                          |                          |                        |                      +-> 2000.000 u/min --+-> 6000.000 u/min
                  |                          |                          |                        |                      |      8.333 fabs    |    125.000 fabs 
                  |                          |                          |                        |                      |                    |                 
                  |                          |                          |                        |                      |                    |   coal          
                  |                          |                          |                        |                      |                    +-> 1000.000 u/min
                  |                          |                          |                        |                      |                                      
                  |                          |                          |                        |                      |                                      
                  |                          |                          |                        |                      |   copper-cable         copper-plate  
                  |                          |                          |                        |                      +-> 4000.000 u/min ----> 2000.000 u/min
                  |                          |                          |                        |                             8.333 fabs         116.667 fabs 
                  |                          |                          |                        |                                                             
                  |                          |                          |                        |   electronic-circuit       iron-plate    
                  |                          |                          |                        +->  500.000 u/min     --+->  500.000 u/min
                  |                          |                          |                               4.167 fabs        |     29.167 fabs 
                  |                          |                          |                                                 |                 
                  |                          |                          |                                                 |   copper-cable         copper-plate  
                  |                          |                          |                                                 +-> 3000.000 u/min ----> 1500.000 u/min
                  |                          |                          |                                                        6.250 fabs          87.500 fabs 
                  |                          |                          |                                                                                        
                  |                          |                          |   advanced-circuit       electronic-circuit       iron-plate    
                  |                          |                          +->  125.000 u/min   --+->  250.000 u/min     --+->  250.000 u/min
                  |                          |                          |     16.667 fabs      |      2.083 fabs        |     14.583 fabs 
                  |                          |                          |                      |                        |                 
                  |                          |                          |                      |                        |   copper-cable         copper-plate  
                  |                          |                          |                      |                        +-> 1500.000 u/min ---->  750.000 u/min
                  |                          |                          |                      |                               3.125 fabs          43.750 fabs 
                  |                          |                          |                      |                                                               
                  |                          |                          |                      |   plastic-bar          petroleum-gas 
                  |                          |                          |                      +->  500.000 u/min --+-> 1500.000 u/min
                  |                          |                          |                      |      2.083 fabs    |     31.250 fabs 
                  |                          |                          |                      |                    |                 
                  |                          |                          |                      |                    |   coal          
                  |                          |                          |                      |                    +->  250.000 u/min
                  |                          |                          |                      |                                      
                  |                          |                          |                      |                                      
                  |                          |                          |                      |   copper-cable         copper-plate  
                  |                          |                          |                      +-> 1000.000 u/min ---->  500.000 u/min
                  |                          |                          |                             2.083 fabs          29.167 fabs 
                  |                          |                          |                                                             
                  |                          |                          |   processing-unit       electronic-circuit       iron-plate    
                  |                          |                          +->  125.000 u/min  --+-> 2500.000 u/min     --+-> 2500.000 u/min
                  |                          |                                31.250 fabs     |     20.833 fabs        |    145.833 fabs 
                  |                          |                                                |                        |                 
                  |                          |                                                |                        |   copper-cable          copper-plate  
                  |                          |                                                |                        +-> 15000.000 u/min ----> 7500.000 u/min
                  |                          |                                                |                              31.250 fabs          437.500 fabs 
                  |                          |                                                |                                                                
                  |                          |                                                |   advanced-circuit       electronic-circuit       iron-plate    
                  |                          |                                                +->  250.000 u/min   --+->  500.000 u/min     --+->  500.000 u/min
                  |                          |                                                |     33.333 fabs      |      4.167 fabs        |     29.167 fabs 
                  |                          |                                                |                      |                        |                 
                  |                          |                                                |                      |                        |   copper-cable         copper-plate  
                  |                          |                                                |                      |                        +-> 3000.000 u/min ----> 1500.000 u/min
                  |                          |                                                |                      |                               6.250 fabs          87.500 fabs 
                  |                          |                                                |                      |                                                               
                  |                          |                                                |                      |   plastic-bar          petroleum-gas 
                  |                          |                                                |                      +-> 1000.000 u/min --+-> 3000.000 u/min
                  |                          |                                                |                      |      4.167 fabs    |     62.500 fabs 
                  |                          |                                                |                      |                    |                 
                  |                          |                                                |                      |                    |   coal          
                  |                          |                                                |                      |                    +->  500.000 u/min
                  |                          |                                                |                      |                                      
                  |                          |                                                |                      |                                      
                  |                          |                                                |                      |   copper-cable         copper-plate  
                  |                          |                                                |                      +-> 2000.000 u/min ----> 1000.000 u/min
                  |                          |                                                |                             4.167 fabs          58.333 fabs 
                  |                          |                                                |                                                             
                  |                          |                                                |   sulfuric-acid        sulfur               water         
                  |                          |                                                +->  312.500 u/min --+->  625.000 u/min --+->  937.500 u/min
                  |                          |                                                       0.208 fabs    |      2.604 fabs    |                 
                  |                          |                                                                     |                    |                 
                  |                          |                                                                     |                    |   petroleum-gas 
                  |                          |                                                                     |                    +-> 1875.000 u/min
                  |                          |                                                                     |                          39.062 fabs 
                  |                          |                                                                     |                                      
                  |                          |                                                                     |   iron-plate    
                  |                          |                                                                     +->   62.500 u/min
                  |                          |                                                                     |      3.646 fabs 
                  |                          |                                                                     |                 
                  |                          |                                                                     |   water         
                  |                          |                                                                     +->  625.000 u/min
                  |                          |                                                                                       
                  |                          |                                                                                       
                  |                          |   advanced-circuit       electronic-circuit       iron-plate    
                  |                          +->   25.000 u/min   --+->   50.000 u/min     --+->   50.000 u/min
                  |                          |      3.333 fabs      |      0.417 fabs        |      2.917 fabs 
                  |                          |                      |                        |                 
                  |                          |                      |                        |   copper-cable         copper-plate  
                  |                          |                      |                        +->  300.000 u/min ---->  150.000 u/min
                  |                          |                      |                               0.625 fabs           8.750 fabs 
                  |                          |                      |                                                               
                  |                          |                      |   plastic-bar          petroleum-gas 
                  |                          |                      +->  100.000 u/min --+->  300.000 u/min
                  |                          |                      |      0.417 fabs    |      6.250 fabs 
                  |                          |                      |                    |                 
                  |                          |                      |                    |   coal          
                  |                          |                      |                    +->   50.000 u/min
                  |                          |                      |                                      
                  |                          |                      |                                      
                  |                          |                      |   copper-cable         copper-plate  
                  |                          |                      +->  200.000 u/min ---->  100.000 u/min
                  |                          |                             0.417 fabs           5.833 fabs 
                  |                          |                                                             
                  |                          |   processing-unit       electronic-circuit       iron-plate    
                  |                          +->   25.000 u/min  --+->  500.000 u/min     --+->  500.000 u/min
                  |                          |      6.250 fabs     |      4.167 fabs        |     29.167 fabs 
                  |                          |                     |                        |                 
                  |                          |                     |                        |   copper-cable         copper-plate  
                  |                          |                     |                        +-> 3000.000 u/min ----> 1500.000 u/min
                  |                          |                     |                               6.250 fabs          87.500 fabs 
                  |                          |                     |                                                               
                  |                          |                     |   advanced-circuit       electronic-circuit       iron-plate    
                  |                          |                     +->   50.000 u/min   --+->  100.000 u/min     --+->  100.000 u/min
                  |                          |                     |      6.667 fabs      |      0.833 fabs        |      5.833 fabs 
                  |                          |                     |                      |                        |                 
                  |                          |                     |                      |                        |   copper-cable         copper-plate  
                  |                          |                     |                      |                        +->  600.000 u/min ---->  300.000 u/min
                  |                          |                     |                      |                               1.250 fabs          17.500 fabs 
                  |                          |                     |                      |                                                               
                  |                          |                     |                      |   plastic-bar          petroleum-gas 
                  |                          |                     |                      +->  200.000 u/min --+->  600.000 u/min
                  |                          |                     |                      |      0.833 fabs    |     12.500 fabs 
                  |                          |                     |                      |                    |                 
                  |                          |                     |                      |                    |   coal          
                  |                          |                     |                      |                    +->  100.000 u/min
                  |                          |                     |                      |                                      
                  |                          |                     |                      |                                      
                  |                          |                     |                      |   copper-cable         copper-plate  
                  |                          |                     |                      +->  400.000 u/min ---->  200.000 u/min
                  |                          |                     |                             0.833 fabs          11.667 fabs 
                  |                          |                     |                                                             
                  |                          |                     |   sulfuric-acid        sulfur               water         
                  |                          |                     +->   62.500 u/min --+->  125.000 u/min --+->  187.500 u/min
                  |                          |                            0.042 fabs    |      0.521 fabs    |                 
                  |                          |                                          |                    |                 
                  |                          |                                          |                    |   petroleum-gas 
                  |                          |                                          |                    +->  375.000 u/min
                  |                          |                                          |                           7.812 fabs 
                  |                          |                                          |                                      
                  |                          |                                          |   iron-plate    
                  |                          |                                          +->   12.500 u/min
                  |                          |                                          |      0.729 fabs 
                  |                          |                                          |                 
                  |                          |                                          |   water         
                  |                          |                                          +->  125.000 u/min
                  |                          |                                                            
                  |                          |                                                            
                  |                          |   alien-artifact
                  |                          +->    5.000 u/min
                  |                                            
                  |                                            
                  |   speed-module-3       speed-module-2       speed-module         advanced-circuit       electronic-circuit       iron-plate    
                  +->    5.000 u/min --+->   20.000 u/min --+->   80.000 u/min --+->  400.000 u/min   --+->  800.000 u/min     --+->  800.000 u/min
                  |      5.000 fabs    |     10.000 fabs    |     20.000 fabs    |     53.333 fabs      |      6.667 fabs        |     46.667 fabs 
                  |                    |                    |                    |                      |                        |                 
                  |                    |                    |                    |                      |                        |   copper-cable         copper-plate  
                  |                    |                    |                    |                      |                        +-> 4800.000 u/min ----> 2400.000 u/min
                  |                    |                    |                    |                      |                              10.000 fabs         140.000 fabs 
                  |                    |                    |                    |                      |                                                               
                  |                    |                    |                    |                      |   plastic-bar          petroleum-gas 
                  |                    |                    |                    |                      +-> 1600.000 u/min --+-> 4800.000 u/min
                  |                    |                    |                    |                      |      6.667 fabs    |    100.000 fabs 
                  |                    |                    |                    |                      |                    |                 
                  |                    |                    |                    |                      |                    |   coal          
                  |                    |                    |                    |                      |                    +->  800.000 u/min
                  |                    |                    |                    |                      |                                      
                  |                    |                    |                    |                      |                                      
                  |                    |                    |                    |                      |   copper-cable         copper-plate  
                  |                    |                    |                    |                      +-> 3200.000 u/min ----> 1600.000 u/min
                  |                    |                    |                    |                             6.667 fabs          93.333 fabs 
                  |                    |                    |                    |                                                             
                  |                    |                    |                    |   electronic-circuit       iron-plate    
                  |                    |                    |                    +->  400.000 u/min     --+->  400.000 u/min
                  |                    |                    |                           3.333 fabs        |     23.333 fabs 
                  |                    |                    |                                             |                 
                  |                    |                    |                                             |   copper-cable         copper-plate  
                  |                    |                    |                                             +-> 2400.000 u/min ----> 1200.000 u/min
                  |                    |                    |                                                    5.000 fabs          70.000 fabs 
                  |                    |                    |                                                                                    
                  |                    |                    |   processing-unit       electronic-circuit       iron-plate    
                  |                    |                    +->  100.000 u/min  --+-> 2000.000 u/min     --+-> 2000.000 u/min
                  |                    |                    |     25.000 fabs     |     16.667 fabs        |    116.667 fabs 
                  |                    |                    |                     |                        |                 
                  |                    |                    |                     |                        |   copper-cable          copper-plate  
                  |                    |                    |                     |                        +-> 12000.000 u/min ----> 6000.000 u/min
                  |                    |                    |                     |                              25.000 fabs          350.000 fabs 
                  |                    |                    |                     |                                                                
                  |                    |                    |                     |   advanced-circuit       electronic-circuit       iron-plate    
                  |                    |                    |                     +->  200.000 u/min   --+->  400.000 u/min     --+->  400.000 u/min
                  |                    |                    |                     |     26.667 fabs      |      3.333 fabs        |     23.333 fabs 
                  |                    |                    |                     |                      |                        |                 
                  |                    |                    |                     |                      |                        |   copper-cable         copper-plate  
                  |                    |                    |                     |                      |                        +-> 2400.000 u/min ----> 1200.000 u/min
                  |                    |                    |                     |                      |                               5.000 fabs          70.000 fabs 
                  |                    |                    |                     |                      |                                                               
                  |                    |                    |                     |                      |   plastic-bar          petroleum-gas 
                  |                    |                    |                     |                      +->  800.000 u/min --+-> 2400.000 u/min
                  |                    |                    |                     |                      |      3.333 fabs    |     50.000 fabs 
                  |                    |                    |                     |                      |                    |                 
                  |                    |                    |                     |                      |                    |   coal          
                  |                    |                    |                     |                      |                    +->  400.000 u/min
                  |                    |                    |                     |                      |                                      
                  |                    |                    |                     |                      |                                      
                  |                    |                    |                     |                      |   copper-cable         copper-plate  
                  |                    |                    |                     |                      +-> 1600.000 u/min ---->  800.000 u/min
                  |                    |                    |                     |                             3.333 fabs          46.667 fabs 
                  |                    |                    |                     |                                                             
                  |                    |                    |                     |   sulfuric-acid        sulfur               water         
                  |                    |                    |                     +->  250.000 u/min --+->  500.000 u/min --+->  750.000 u/min
                  |                    |                    |                            0.167 fabs    |      2.083 fabs    |                 
                  |                    |                    |                                          |                    |                 
                  |                    |                    |                                          |                    |   petroleum-gas 
                  |                    |                    |                                          |                    +-> 1500.000 u/min
                  |                    |                    |                                          |                          31.250 fabs 
                  |                    |                    |                                          |                                      
                  |                    |                    |                                          |   iron-plate    
                  |                    |                    |                                          +->   50.000 u/min
                  |                    |                    |                                          |      2.917 fabs 
                  |                    |                    |                                          |                 
                  |                    |                    |                                          |   water         
                  |                    |                    |                                          +->  500.000 u/min
                  |                    |                    |                                                            
                  |                    |                    |                                                            
                  |                    |                    |   advanced-circuit       electronic-circuit       iron-plate    
                  |                    |                    +->  100.000 u/min   --+->  200.000 u/min     --+->  200.000 u/min
                  |                    |                          13.333 fabs      |      1.667 fabs        |     11.667 fabs 
                  |                    |                                           |                        |                 
                  |                    |                                           |                        |   copper-cable         copper-plate  
                  |                    |                                           |                        +-> 1200.000 u/min ---->  600.000 u/min
                  |                    |                                           |                               2.500 fabs          35.000 fabs 
                  |                    |                                           |                                                               
                  |                    |                                           |   plastic-bar          petroleum-gas 
                  |                    |                                           +->  400.000 u/min --+-> 1200.000 u/min
                  |                    |                                           |      1.667 fabs    |     25.000 fabs 
                  |                    |                                           |                    |                 
                  |                    |                                           |                    |   coal          
                  |                    |                                           |                    +->  200.000 u/min
                  |                    |                                           |                                      
                  |                    |                                           |                                      
                  |                    |                                           |   copper-cable         copper-plate  
                  |                    |                                           +->  800.000 u/min ---->  400.000 u/min
                  |                    |                                                  1.667 fabs          23.333 fabs 
                  |                    |                                                                                  
                  |                    |   advanced-circuit       electronic-circuit       iron-plate    
                  |                    +->   25.000 u/min   --+->   50.000 u/min     --+->   50.000 u/min
                  |                    |      3.333 fabs      |      0.417 fabs        |      2.917 fabs 
                  |                    |                      |                        |                 
                  |                    |                      |                        |   copper-cable         copper-plate  
                  |                    |                      |                        +->  300.000 u/min ---->  150.000 u/min
                  |                    |                      |                               0.625 fabs           8.750 fabs 
                  |                    |                      |                                                               
                  |                    |                      |   plastic-bar          petroleum-gas 
                  |                    |                      +->  100.000 u/min --+->  300.000 u/min
                  |                    |                      |      0.417 fabs    |      6.250 fabs 
                  |                    |                      |                    |                 
                  |                    |                      |                    |   coal          
                  |                    |                      |                    +->   50.000 u/min
                  |                    |                      |                                      
                  |                    |                      |                                      
                  |                    |                      |   copper-cable         copper-plate  
                  |                    |                      +->  200.000 u/min ---->  100.000 u/min
                  |                    |                             0.417 fabs           5.833 fabs 
                  |                    |                                                             
                  |                    |   processing-unit       electronic-circuit       iron-plate    
                  |                    +->   25.000 u/min  --+->  500.000 u/min     --+->  500.000 u/min
                  |                    |      6.250 fabs     |      4.167 fabs        |     29.167 fabs 
                  |                    |                     |                        |                 
                  |                    |                     |                        |   copper-cable         copper-plate  
                  |                    |                     |                        +-> 3000.000 u/min ----> 1500.000 u/min
                  |                    |                     |                               6.250 fabs          87.500 fabs 
                  |                    |                     |                                                               
                  |                    |                     |   advanced-circuit       electronic-circuit       iron-plate    
                  |                    |                     +->   50.000 u/min   --+->  100.000 u/min     --+->  100.000 u/min
                  |                    |                     |      6.667 fabs      |      0.833 fabs        |      5.833 fabs 
                  |                    |                     |                      |                        |                 
                  |                    |                     |                      |                        |   copper-cable         copper-plate  
                  |                    |                     |                      |                        +->  600.000 u/min ---->  300.000 u/min
                  |                    |                     |                      |                               1.250 fabs          17.500 fabs 
                  |                    |                     |                      |                                                               
                  |                    |                     |                      |   plastic-bar          petroleum-gas 
                  |                    |                     |                      +->  200.000 u/min --+->  600.000 u/min
                  |                    |                     |                      |      0.833 fabs    |     12.500 fabs 
                  |                    |                     |                      |                    |                 
                  |                    |                     |                      |                    |   coal          
                  |                    |                     |                      |                    +->  100.000 u/min
                  |                    |                     |                      |                                      
                  |                    |                     |                      |                                      
                  |                    |                     |                      |   copper-cable         copper-plate  
                  |                    |                     |                      +->  400.000 u/min ---->  200.000 u/min
                  |                    |                     |                             0.833 fabs          11.667 fabs 
                  |                    |                     |                                                             
                  |                    |                     |   sulfuric-acid        sulfur               water         
                  |                    |                     +->   62.500 u/min --+->  125.000 u/min --+->  187.500 u/min
                  |                    |                            0.042 fabs    |      0.521 fabs    |                 
                  |                    |                                          |                    |                 
                  |                    |                                          |                    |   petroleum-gas 
                  |                    |                                          |                    +->  375.000 u/min
                  |                    |                                          |                           7.812 fabs 
                  |                    |                                          |                                      
                  |                    |                                          |   iron-plate    
                  |                    |                                          +->   12.500 u/min
                  |                    |                                          |      0.729 fabs 
                  |                    |                                          |                 
                  |                    |                                          |   water         
                  |                    |                                          +->  125.000 u/min
                  |                    |                                                            
                  |                    |                                                            
                  |                    |   alien-artifact
                  |                    +->    5.000 u/min
                  |                                      
                  |                                      
                  |   processing-unit       electronic-circuit       iron-plate    
                  +->   40.000 u/min  --+->  800.000 u/min     --+->  800.000 u/min
                  |     10.000 fabs     |      6.667 fabs        |     46.667 fabs 
                  |                     |                        |                 
                  |                     |                        |   copper-cable         copper-plate  
                  |                     |                        +-> 4800.000 u/min ----> 2400.000 u/min
                  |                     |                              10.000 fabs         140.000 fabs 
                  |                     |                                                               
                  |                     |   advanced-circuit       electronic-circuit       iron-plate    
                  |                     +->   80.000 u/min   --+->  160.000 u/min     --+->  160.000 u/min
                  |                     |     10.667 fabs      |      1.333 fabs        |      9.333 fabs 
                  |                     |                      |                        |                 
                  |                     |                      |                        |   copper-cable         copper-plate  
                  |                     |                      |                        +->  960.000 u/min ---->  480.000 u/min
                  |                     |                      |                               2.000 fabs          28.000 fabs 
                  |                     |                      |                                                               
                  |                     |                      |   plastic-bar          petroleum-gas 
                  |                     |                      +->  320.000 u/min --+->  960.000 u/min
                  |                     |                      |      1.333 fabs    |     20.000 fabs 
                  |                     |                      |                    |                 
                  |                     |                      |                    |   coal          
                  |                     |                      |                    +->  160.000 u/min
                  |                     |                      |                                      
                  |                     |                      |                                      
                  |                     |                      |   copper-cable         copper-plate  
                  |                     |                      +->  640.000 u/min ---->  320.000 u/min
                  |                     |                             1.333 fabs          18.667 fabs 
                  |                     |                                                             
                  |                     |   sulfuric-acid        sulfur               water         
                  |                     +->  100.000 u/min --+->  200.000 u/min --+->  300.000 u/min
                  |                            0.067 fabs    |      0.833 fabs    |                 
                  |                                          |                    |                 
                  |                                          |                    |   petroleum-gas 
                  |                                          |                    +->  600.000 u/min
                  |                                          |                          12.500 fabs 
                  |                                          |                                      
                  |                                          |   iron-plate    
                  |                                          +->   20.000 u/min
                  |                                          |      1.167 fabs 
                  |                                          |                 
                  |                                          |   water         
                  |                                          +->  200.000 u/min
                  |                                                            
                  |                                                            
                  |   steel-plate          iron-plate    
                  +->   40.000 u/min ---->  200.000 u/min
                  |     11.667 fabs          11.667 fabs 
                  |                                      
                  |   alien-artifact
                  +->   50.000 u/min
                                    

alien-artifact       coal                 copper-plate          iron-plate            petroleum-gas  
  60.000 u/min       3610.000 u/min       39650.000 u/min       11167.500 u/min       26385.000 u/min
                                          2312.917 fabs          651.438 fabs          549.688 fabs  

water         
3937.500 u/min
It can also produce dot files that can be rendered with graphviz

Code: Select all

./build/FactorioViewer power-armor-mk2 -d > test.dot
./build/FactorioViewer power-armor-mk2 -d -g > test2.dot
dot -Tpng test.dot > test.png 
dot -Tpng test2.dot > test2.png 
For large chains the output gets quite large:
Image
The '-g' option can be used to summarize the nodes:
Image

If you e.g. know how to produce electronic circuits then you can also define these as base ingredients:

Code: Select all

./build/FactorioViewer fast-inserter -u 20 -b electronic-circuit
fast-inserter        electronic-circuit
  20.000 u/min --+->   40.000 u/min    
   0.167 fabs    |      0.333 fabs     
                 |                     
                 |   iron-plate    
                 +->   40.000 u/min
                 |      2.333 fabs 
                 |                 
                 |   basic-inserter       electronic-circuit
                 +->   20.000 u/min --+->   20.000 u/min    
                        0.167 fabs    |      0.167 fabs     
                                      |                     
                                      |   iron-gear-wheel       iron-plate    
                                      +->   20.000 u/min  ---->   40.000 u/min
                                      |      0.167 fabs            2.333 fabs 
                                      |                                       
                                      |   iron-plate    
                                      +->   20.000 u/min
                                             1.167 fabs 

electronic-circuit       iron-plate    
  60.000 u/min            100.000 u/min
   0.500 fabs               5.833 fabs 
Further help and other options are described in the help:

Code: Select all

./build/FactorioViewer --help
It works already quite nicely but I want to improve on it after I finish my thesis.
One big thing on my TODO list ist to add language support and add the pictures to the dot output.

If you have any suggestions, bugs or other comments I am happy to hear about them.
Last edited by Max S. on Thu May 05, 2016 7:58 am, edited 2 times in total.

Max S.
Burner Inserter
Burner Inserter
Posts: 6
Joined: Sat Apr 30, 2016 8:08 pm
Contact:

Re: Yet another production viewer

Post by Max S. »

Ok now there are also windows binaries included at: https://github.com/MaxSagebaum/Factorio ... tag/v0.2.1 in binaries/win32 (Visual Studio Express lets you only build 32 bit binaries)

If you get an error like "could not load vcruntime140.dill" you have to install the c++ redistributable package. You can download it at https://www.microsoft.com/en-us/downloa ... x?id=48145. Make sure to select the x86 (32-bit) binaries even if you have 64-bti system.
If you wonder that the programs does nothing. It is a command line application. So if you just double click it, a command window opens and is closed directly after the program finishes.

In order to get a terminal at the correct location:

Code: Select all

Open the folder with the executable in the explorer.
Click once in the navigation bar so that the folder text is selected. Press 'ctrl+c' in order to copy it.
Press the windows button and enter 'cmd' press 'enter'.
A command prompt should be open now.
Enter there 'cd ' (do not forget the space) and right click in the window and select paste. After that press 'enter'.(Windows 10 users might be able to just press 'ctrl+v' in order to paste.(I still run windows 7))
You should be now in the directory where the 'FactorioViewer.exe' is located. (Type 'dir' + enter to see the files in the directory)
Type 'FactorioViewer.exe fast-inserter' + enter to get your fist output.
The default width of the terminal in windows 7 is just 80 character. You can increase that by installing a proper bash or by right clicking on the top bar of the command line and going to 'Properties->Layout->Screen Buffer Size->Width'
Hope you have fun with the tool

Post Reply

Return to “Tools”