Space Engineers

Space Engineers

Not enough ratings
Assembler Needs Calculator
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
460.253 KB
2 Sep, 2018 @ 4:04am
14 Oct, 2024 @ 12:02pm
26 Change Notes ( view )

Subscribe to download
Assembler Needs Calculator

Description
Show info about missing ingots and ores for your assemblers, together with the components in inventory and in production.

-----------

Assembler Needs Calculator by Juggernaut93

CHECK ALSO: Projector2LCD (also by Juggernaut93) to show info about missing materials for blueprints.
Link: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1500259551

SETUP
  • You need a programming block, assemblers and up to 3 LCD screens. Text panels, small and wide LCD panels are supported. The use of Monospace font is RECOMMENDED (but not mandatory).
  • Run the script with this argument: AssemblerGroupName;LCDName1;LCDName2;LCDName3;yieldPorts
    • All parameters are optional and can be left empty.
    • AssemblerGroupName is the name of the group of assemblers you want to show info about. If you don't specify a group, the script will show info about all the assemblers on your grid
    • LCDName1 is the name of the LCD that will show info about which components are currently in inventory and the ones your assemblers are producing (see HOW IT WORKS). The list of elements shown can be configured (see ADDITIONAL CONFIGURATION)
    • LCDName2 is the name of the LCD that will show info about which ingots/refined ores are needed to build the components in your assemblers' queue (see HOW IT WORKS)
    • LCDName3 is the name of the LCD that will show info about which ores are needed to build the components in your assemblers' queue (see HOW IT WORKS). If no valid third LCD is specified, the script will try to fit the info on the second LCD (if specified) (see ADDITIONAL CONFIGURATION)
    • yieldPorts is an integer between 0 and 8 and specifies how many ports of your refineries should be considered as covered by a Yield Module. This value will affect calculations regarding how much of each ore is needed for your blueprint. If you don't specify yieldPorts, the script will use the average effectiveness of the ENABLED refineries on your grid. Note that the script will also account for available Basic Refineries if there are no Refineries available.
  • IMPORTANT: you HAVE to set the ASSEMBLER_EFFICIENCY variable at the top of the script according to your world settings: if you have set the assembler efficiency to realistic, set the variable to 1; if you have set it to 3x, then set the variable to 3; if you have set it to 10x, then set the variable to 10;
  • The script will run indefinitely with the specified settings. To change settings, just re-run the script with the different parameters.

MODS COMPATIBILITY
  • The script is not compatible with mods adding new types of components.
  • The script will ignore non-vanilla types of ores/ingots too and these won't be shown on the LCDs.

ADDITIONAL CONFIGURATION
The script has a number of hardcoded parameters that you can change. The parameters are in the section "CONFIGURATION" at the top of the script and control various settings: what to show, text auto-resize, whether to use blocks on subgrids, and so on. For an explanation of such parameters, refer to the in-game script Readme section (Steam description field limits the number of characters and this section of the readme can't be posted here).

HOW IT WORKS
  • The script gets from the specified assemblers the components currently in queue. If the specified group does not exist, the script will consider all the assemblers on your grid.
  • The script then proceeds to compute the various ingots and ores needed, using the average refinery effectiveness at transforming ores to ingots (or the one you have manually specified with the yieldPorts parameter).
  • The computed info are then shown on the available LCDs. If one of the LCDs is not found or is not specified, the script will simply ignore it, except for when fitOn2IfPossible is true: as explained before, in this case the content of the third LCD can be shown on the second one, if the third LCD is not available and the second one is. Each LCD will show the name of the assembler group (if applicable) and the number of assemblers considered. Also, each LCD will highlight with a ">>" the missing ingots and ores, the components for which the available ores are insufficient (they cannot produce enough ingots to build all the components) and the components in disassembling queues where the disassembling amount is higher than the amount in inventory (the assembler will get stuck).
  • COMPONENT LCD CONTENT:
    • AVAILABLE column: the amount of each component that is currently in inventory
    • IN PRODUCTION column: the amount of each component that is currently in production (negative means disassembling)
  • INGOT LCD CONTENT:
    • AVAILABLE column: the amount of each ingot type that is currently in inventory
    • NEEDED column: the amount of ingots needed to build the components currently in production (negative means ingots will be available from disassembling)
    • MISSING column: the difference between NEEDED and AVAILABLE. Not shown if 0. It represents how many additional ingots have to be produced to build the components in the queue
  • ORE LCD CONTENT:
    • AVAILABLE column: the amount of each ore that is currently in inventory
    • NEEDED column: the amount of ores needed to build the MISSING ingots. A "-" sign means this ore is not used to build materials in the assembler (e.g. Ice) or a NEEDED value doesn't make sense (e.g. Scrap Metal)
    • MISSING column: the difference between NEEDED and AVAILABLE. Not shown if 0. It represents how many additional ores have to be mined to build the missing ingots
    The panel will also show how much iron ore the available scrap metal (if any) can save you and the refinery effectiveness percentage used to compute the needed ores (together with the equivalent amount of ports covered by yield modules - exact if specified, averaged if the effectiveness has been averaged). Moreover, ores that can be refined on a Basic Refinery, in case there is no Refinery available, will be marked with a '^' and will use the Basic Refineries specs for resource calculation.
3 Comments
pinkpiton 3 Feb @ 10:14am 
DLC displays is not supported by this script. 5x5 future display is too small
LeNi 19 Mar, 2024 @ 9:14am 
Can we have an option to scroll the text instead of making it fit the LCD?
Calmaria 31 May, 2023 @ 9:58pm 
This is exactly what I was looking for, I am starting a 1x inventory playthrough, and need to know exactly how much of what to bring home for the next projects :)