Space Engineers

Space Engineers

Not enough ratings
Wico Cargo Percentage Control and Report [OBSOLETE]
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
2.988 KB
9 Feb, 2015 @ 12:06am
18 Oct, 2015 @ 9:43am
4 Change Notes ( view )

Subscribe to download
Wico Cargo Percentage Control and Report [OBSOLETE]

Description
No comments/demands, so I've stopped supporting this code. Comment if you really need something like this.

Cargo Percentage Controls

Part of the heart of the system is the cargo control system that pauses mining when the cargo is getting full to allow the stone ejection and refining to make space for more ores (and stone from mining).

The system is controlled through a programmable block that triggers timers based on cargo percentage.

The timer blocks are automatically triggered at the specified percentage in the name. The percentages are every automated ten, so 0, 10, 20, etc. through 100. Blocks are triggered for being above or below a specified percentage. So, “Cargo Above 80” will be triggered when the cargo percentage goes above (or at) 80%. “Cargo Below 80” will be triggered when the cargo percentage goes below 80%.

The timers will triggered each time the programmable blocks run. I recommend turning off the timer block after being called so that the action is only performed once. The block should be turned back on in the trigger for the percentage falling below the block trigger amount. (see the miner ship for examples).


The mining system is currently set up to pause at 80% and resume when it falls below 70%. I tested this and it seems pretty good. At 1x cargo space, I’d recommend adding a cargo module or two to give enhanced space. I also tested that (in survival, of course).
19 Comments
Wicorel  [author] 18 Oct, 2015 @ 9:44am 
Fixed. Missing space in names.
Animal 18 Oct, 2015 @ 8:49am 
The Drill space update is amazing. hadn't realized just mow much space was in them, but my timers aren't triggering anymore
grifter 21 Jul, 2015 @ 11:01pm 
thanks for the quick update
and gratfull that it is very easy to aply
grifter 9 Jul, 2015 @ 9:04am 
thanks Wicorel
i dont know what to change i will likly need help with it but i dont mind changing it if you show me
or add it to the script if you think others mite use it
Wicorel  [author] 9 Jul, 2015 @ 7:34am 
No, it isn't it is already gathering drill data. I based the percentage on cargo space so that there would be still enough room to take stone out of drills/cargo and into ejectors/connectors.

If you are capable of modifying the script, go ahead. Or do you want me to make an option for drill cargo space?
grifter 9 Jul, 2015 @ 7:08am 
Hi Wicorel

is it hard to get this scipt to look in drill cargo space as well
my new ship is 90% stored in the drills
Animal 22 Jun, 2015 @ 10:19am 
I've got two backup reactors thanks to symmetry, which helps soak up the power interuption.

for the time being i've just put another timer on as a one-shot to start the disconnect timer rather than just trigger it, to allow for offloading time
Wicorel  [author] 22 Jun, 2015 @ 9:23am 
I have a single backup reactor on my my miner. But you're right. I should allow for battery only powered ships.
Animal 22 Jun, 2015 @ 6:32am 
All Containers even connected ones would explain why this thing keeps failing to offload its cargo

It senses that the station it's connected to is not below 10% and via the timers i've set, switches over to battery management to decide whether or not to disconnect, rather than seeing that its containers are full and waiting till ofloaded to check
Animal 22 Jun, 2015 @ 4:02am 
A pretty minor detail, but regarding #5 of that list: Make sure to switch the batteries to discharge about a second before disconnection. I made that mistake on my drone, which is timer based. If i didnt flip the batteries before unlocking the connector it would just sit there, because power got interupted during the unlocking process and it couldnt complete the timer