Win32 command line utility

General discussions about the release versions of Capitalism Lab
Post Reply
Esoteric Rogue
Level 6 user
Posts: 413
Joined: Sun Nov 18, 2012 8:18 am

Win32 command line utility

Post by Esoteric Rogue »

I made a win32 command line utility to show all the products you can make with only specific inputs. Feel free to pm me if you wish me to directly e-mail it to you, although it is linked below.

Process build 201212022343 http://www.qfpost.com/file/d?g=BxLHOv97U (updated 2 Dec 2012 @ 23:43 UTC-05)

Extract the rar archive to any directory. Open a command prompt in that directory. Type "process" followed by any material names, e.g., "process wheat". Material names are by the Manufacturer's Guide, case insensitive. Material names that include a space must be enclosed in quotes (which is decidedly necessary because "coconut", "oil" and "coconut oil" are three distinct things.) As the example shows, "iron" will fail gracefully because it requires "iron ore".

Code: Select all

C:\>process "chemical minerals" iron oil silica

'''iron''' is not a component in Capitalism Lab 1.993.

----------             ------------
(3) Inputs             (14) Outputs
----------             ------------
chemical minerals      ccd
oil                    cold pills
silica                 cpu
                       glass
                       headache pills
                       hud glasses
                       perfume
                       plastic
                       polyester
                       shampoo
                       silicon
                       smart phone
                       toilet cleaner
                       toothpaste
[/size]
By specifying the option "2", you can use the Capitalism 2 database instead.

Code: Select all

C:\>process 2 "chemical minerals" oil silica

----------             ------------
(3) Inputs             (13) Outputs
----------             ------------
chemical minerals      cold tablets
oil                    cough syrup
silica                 cpu
                       eye shadow
                       glass
                       headache pills
                       perfume
                       plastic
                       polyester
                       shampoo
                       silicon
                       toilet cleaner
                       toothpaste
[/size]
WilliamMGary
Level 9 user
Posts: 1052
Joined: Mon Nov 12, 2012 8:00 pm

Re: Win32 command line utility

Post by WilliamMGary »

Nice!
Post Reply