Space Engineers

Space Engineers

971 ratings
Isy's Ship Refueler
3
2
   
Award
Favorite
Favorited
Unfavorite
File Size
Posted
Updated
465.153 KB
7 Feb, 2017 @ 5:30pm
9 Mar, 2021 @ 2:14pm
30 Change Notes ( view )

Subscribe to download
Isy's Ship Refueler

In 1 collection by Isy
Isy's Main Scripts
5 items
Description
This script automatically sets batteries of your ship to recharge if you connect to a station. It also sets them back again to normal if you disconnect from the station. Oxygen and hydrogen tanks are also supported and set to stockpile if you are docked. An additional feature is the built in light control that turns your ship's light on or off based on the light level (measured with a solar panel). Lastly, the script activates reactors on your ship as an emergency fallback if you run low on battery charge or overload your batteries.

Current Version:
Version: 1.9.5
Date: 2021-03-09

Main features:
  • automatically set batteries to recharge or in/out on connect/disconnect
  • automatically set tanks to stockpile on connect
  • black/whitelist specific connectors
  • trigger timers at specific events like battery fill level or docking time
  • automatic light control based on the current light level
  • emergency reactor and hydrogen engine support
  • information about the current status is shown in the programmable block, LCDs or text panels
  • statistics in the block's names

Basic Setup:
  • set up a programmable block with the script, check code, remember & exit and you're done!
  • no timer required!
  • Note: Game has to be in experimental mode and ingame scripts have to enabled in world options!

Full Guide:
Click the image or the link below to view the full guide:

https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=1680290293

Tutorial Videos:
How to enable ingame scripts: https://youtu.be/NkhZ7BbYgvc
Script video guide: https://youtu.be/OIpZVgYdk8k (very outdated!)
Excellent tutorial by KnowBotty: https://youtu.be/VrwSARi0ZTo

Note:
  • The ship refuler won't work when connected to a "Trading Mode" connector, because this mode cuts off power, gas and item transfer and only lets items through that are needed for contracts or are bought from a store block.
  • Be sure to always check your ownership! All used blocks should be owned by you (Owner: Me)!

Join my discord:

You need additional help, want to make suggestions or just want be up to date about my scripts? Join my discord server:
https://discord.gg/gY9aUUy

Wanna buy me a beer?

If you like my work, you can buy me a beer via PayPal:
http://paypal.me/derisy/1

Thanks to all my donators so far!
Popular Discussions View All (6)
0
4 Aug, 2024 @ 12:47am
Problem loading mod to client
av.wright
523 Comments
LootGoblin 22 Nov, 2024 @ 4:23pm 
@Isy i do agree to some extend, thats impossible that a script still runs when the PB is offline. Tho, what @Spoonfed mentioned i can confirm this behavior with using this script, swithing the block off. The Engines, which are set to emergency power WILL start occasionally if the OB is swithed off. So i can confirm the strange behavior spoonfed is mentioning. If i grind the PB down, the issues stop.
Katarina [WolfCraft Industries]  [author] 6 Aug, 2024 @ 6:39pm 
@TheVillain same thing like @Graeme asked, this is possible with this script and timer blocks. for that read the guide, section > Timer Trigger On Event
TheVillain 6 Aug, 2024 @ 4:25pm 
Feel rude for asking as this is already an excellent script...

Could it also turn off thruster groups? Be nice to not idle my engines when docked. Doing a hydrogen only play through with no mining allowed - and currently I need a whopping 3 blocks to do all these right now.

I'm also using AwwScrap. I honestly dont know why I do this to myself.
Katarina [WolfCraft Industries]  [author] 4 Aug, 2024 @ 4:17pm 
yes this is possible with this script and timers. for that read the guide, section > Timer Trigger On Event
Graeme 4 Aug, 2024 @ 4:31am 
Would it be possible to add a feature to switch off antennas when docked? Or a custom action to switch a group on/off when docked to allow players to add their own? Thanks
Spoonfed 17 Jul, 2024 @ 12:10pm 
The battery names reset and it defaults back to auto. If I get rid of the PB that was running the script the issue stops. With script running I see it happen as well but the script just renamed them again.
Isy  [author] 29 Jun, 2024 @ 10:37am 
That's impossible.. If the PB is turned off, the script can't run..
Spoonfed 26 Jun, 2024 @ 7:51pm 
Im having an issue where if I turn off the Programming block and try to manage batteries manually. The batterys constantly reset to ON and Auto. Behavior duplicated on a second small grid. Stopped doing it on Grid 2 when PB was ground to non functional.
Malorn 15 Jun, 2024 @ 1:08am 
You mean a timer block on the ship? This is a custom build I made less than two weeks ago. I will certainly check, but I don't think there is a single timer block on the entire thing, it's only a cargo shuttle I use to get things from planet to orbit.

Also I'm using the park command, i.e. the P key. I don't think that can trigger a timer.
Isy  [author] 14 Jun, 2024 @ 10:14am 
Maybe you're docking with an old timer block that sets them to stockpile and the connector to switch lock?