Space Engineers

Space Engineers

Not enough ratings
Ice Manager
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
983.787 KB
1 Sep, 2021 @ 5:09pm
5 Feb @ 8:06pm
15 Change Notes ( view )

Subscribe to download
Ice Manager

Description


Featured in Reclamation Project Alpha YT series.

Manage H2 and O2 generation
This PB code optimizes O2 and H2 production by moving small amounts of ice from storage into O2/H2 generators. It does not increase the O2/H2 production rate, but it drastically reduces ice consumption rate.

Installation
  1. Copy to Programmable block
  2. Recompile
  3. Check Custom Data for configuration options

Warning
When using in conjunction with Isy's Inventory Manager, you should disable ice balancing in IIM. This can be done by setting this option to false. Note this is a setting in IIM.
// Enable balancing of ice in O2/H2 generators? // All O2/H2 generators will be used. To use one manually, add the manualMachineKeyword to it (by default: "!manual") bool enableIceBalancing = false;

Keywords
  • enhanced, proficient, elite
    O2/H2 generators with these terms in their names will have additional ice moved into them to support their higher production capability. This is ignored when a value is set for the Override Ice Quantity configuration option.
  • [Exclude]
    Add this keyword to any O2/H2 Generator, cargo container, hydrogen tank, and oxygen tank that you don't want managed.
  • All keywords are case insensitive.

CONFIGURATION
This code works out-of-the-box, however there are configuration options available in the Custom Data of the programmable block.

Ice Storage
Default value: cargo
This tag tells the manager where to look for ice. All ice storage locations must have this tag in the name somewhere. Only cargo containers with this tag are checked for ice.

Display Tag
Default value: IceManager
Place this tag in the name of any LCD where you want the status displayed. Tag format is [IceManager]

Fill
Default value: hydrogen oxygen
The Ice Manager monitors the grid's gas levels. When levels get low, the O2/H2 generators are turned on. When the tanks are full, the generators are turned off. This setting tells the manager which resources to monitor to determine when to turn O2/H2 generators on or off. This allows the manager to monitor hydrogen, oxygen, or both hydrogen and oxygen. The default is to monitor both.

Refresh Rate
Default value: <blank>
This is only useful during grid construction. The manager can periodically check for new O2/H2 generators, oxygen and hydrogen tanks, and ice storage containers. To enable this behavior, set this to any value above 0. This value is in seconds. This is the frequency the manager will scan the grid to update its list of storage, generators, and tanks. Newly added generators will have their excess ice put back in ice storage.

This is only necessary when running the manager on a grid under construction. Recommend using a value of 900 (15 minutes). To disable this behavior, leave this setting blank or put a 0 there, and recompile. By default, this is blank.

Show Ice Inventory
Default value: false
This controls the display of the total amount of ice in all managed storage areas. The information appears in the Terminal Details area and on the PB main screen.

Override Ice Quantity
Default value: <blank>
By default, the manager will move ice to maintain a balance of 2 per generator. Some online servers consider this an exploit and have imposed a minimum ice-per-generator requirement. Put that value here.

Multigrid Tanks
Default value: False
The manager can monitor hydrogen and oxygen tanks across multiple connected grids. The default behavior is to only manage the grid with the programmable block running the program. This option is useful for managing a modular base that is connected via connectors.

Multigrid Generators
Default value: False
The manager can manage O2/H2 generators across multiple connected grids. The default behavior is to only manage the grid with the programmable block running the program. This option is useful for managing a modular base that is connected via connectors.

Multigrid Storage
Default value: False
The manager can manage ice storage across multiple connected grids. The default behavior is to only manage the grid with the programmable block running the program. This option is useful for managing a modular base that is connected via connectors.

Other Mods You Might Like

Other Scripts You Might Like

Bugs, Suggestions, Questions, and Comments -> Discord[discord.gg]
I don't troubleshoot, give technical advice, or have discussions in the comment section. That's what the Discord is for. Comments get lost to time, but discord histories can be searched and referenced.
11 Comments
Vomsay 10 Apr @ 3:42am 
Nice!
erik 6 Feb @ 2:15am 
pas de gestion sur les lcd? dommage
:steamfacepalm:
erik 4 Feb @ 3:02am 
hello everyone I use your Ice Manager mod I would like to know how to display it on screen sorry for my English thank you google trad
Patrick  [author] 24 Nov, 2023 @ 6:52pm 
I hope you find it helpful! If you have any questions, be sure to jump on the Discord and we'll help you out!
Volmen 24 Nov, 2023 @ 4:10pm 
Omg thank you, I had made a script similar to this but mine wasn’t as nice!
trigger happy idiot 6 Jun, 2023 @ 10:47am 
Thanks for the tip!
Patrick  [author] 2 Jun, 2023 @ 2:00pm 
Thanks! No, it's a trade off. This maximizes your hydrogen production per unit ice, at the cost of taking more time to produce it. If you want to maximize production rate, the best thing you can do is keep the O2/H2 generators full of ice, which is the default behavior.
trigger happy idiot 2 Jun, 2023 @ 1:33pm 
Great Mod. Could it somehow work to improve hydrogen production rate as well?
Nuko - San 16 May, 2023 @ 2:03pm 
Cheers mate :-)
Patrick  [author] 16 May, 2023 @ 1:52pm 
Do you mean hydrogen bottles? Just put them in the hydrogen tank and then toggle auto-refill on and off again. Or put the bottles in the H2/O2 generator. Or use the [Exclude] keyword on an H2 tank so it isn't disabled from auto-refill. Or have a dedicated system that isn't managed by this script, like a dedicated H2/O2 generator or something. There are several options. Please go to the discord if you need more help.