Space Engineers

Space Engineers

Not enough ratings
Cargo Fill Triggers
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
4.948 KB
29 Mar, 2019 @ 9:34pm
15 Apr, 2019 @ 5:35pm
2 Change Notes ( view )

Subscribe to download
Cargo Fill Triggers

Description
Triggers timer blocks at 2 configurable levels of cargo fill - Warning and Maxed. Use warning for a heads up light, and max to stop drills and pistons... or use it to trigger warheads. You know, you do you.


Cargo requires that blocks be added to a group (name configurable), and accepts anything that has inventory as the game defines it.

On timers are triggered once when entering configured fill levels OR when script is initially compiled and fill levels reach configured levels.
Likewise, off timers are triggered once when leaving configured levels, but will NOT trigger on compile / recompile.


Let me know if you run into any bugs or have feature requests. I have a few of my own I'm considering.
25 Comments
Citra Joe  [author] 2 Mar, 2024 @ 9:49am 
In the PB, the right panel should show some status information. If the relevant cargo volume numbers don't look right to you, the cargo group may not be configured correctly.
It also shows whether it was able to find timer blocks for the trigger ON / OFF states - those are timer names, not group names. I'd make sure all of those show YES for the triggers you want to act on. If they all look ok, check your timer blocks, and make sure the right ones are named as expected - do they do what you expect when you click "Trigger Now" ?
ShadowGames 2 Mar, 2024 @ 8:09am 
Hey mate, thanks for the reply. I activated the experimental mode + allow scripts.
Script is loaded in the PB, runs without errors. In the script I adjusted the cargo block to the group of cargo blocks I have saved before. During drilling there are no warnings and the drill is not stopped when reaching 90% cargo capacity. What could be missing?
Citra Joe  [author] 29 Feb, 2024 @ 6:39pm 
@ShadowGames Do other scripts appear in the in the PB's script list? Do you have Experimental Mode enabled? Does the server (if relevant) allow scripts? I just checked and it's still on my list.
Rough process I followed:
From the PB, scroll down to Edit, then Browse Scripts, script was listed for me on the left. Selected the script, copy to editor. There are some basic instructions in the process.
Hopefully it's not a keen change causing problems
ShadowGames 29 Feb, 2024 @ 4:18pm 
Newby just got his first cool miner ship and wonders how to get intel about cargo capacity.
The instructions in the description are not clear to me. I have subscriped this script, but it does not appear in the PB (I restarted SE before). So does this mod work or what do I need to do?
Citra Joe  [author] 27 Feb, 2022 @ 11:12pm 
I'm glad it's been helpful!
Kalibr 26 Feb, 2022 @ 2:59pm 
Thanks for the script! It saved us from rebuilding our base :)
Armigus 15 Nov, 2021 @ 8:37pm 
Confirmed the mod works. Mind that you are setting up 3 fill states: green (below warn), yellow (warn), and red (max allowed fill). Yellow can be entered from green or red and you have timers for both that might not be needed.
Armigus 13 Nov, 2021 @ 4:52pm 
Testing the mod right now. The data you keep in the block screen can and should be made available to an LCD or even a corner LCD. Main LCD would show total and used capacity like the block screen and corner would simply be "Fill: "+fill bar. Color of either could be influenced by WarnColor and MaxColor variables in custom data of LCD.
Deadmeat 4 Aug, 2021 @ 3:03am 
This works great and is a wonderful tool to have. I do not know how I managed before I had it. I am using 2 sets of lights, 1 set for warning (yellow flashing) and 1 set for max (red flashing), and 4 timer blocks. It took less than 2 mins to set up and when I hit max it shuts down my drilling rig,
Nildayan 21 Mar, 2021 @ 10:27pm 
Just tried this out on a survivor world to simplify things and keep my Nanobots Drill system from overwhelming my base's storage (again), and it dropped right in and worked like a charm. Thanks!