Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
Refuelling and recharging interface
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative, Mechanical
Tags: v1.2.24
File Size
Posted
Updated
242.938 KB
22 Apr, 2021 @ 3:23am
3 Sep, 2021 @ 2:17am
6 Change Notes ( view )

Subscribe to download
Refuelling and recharging interface

Description
This microcontroller controls all your recharging and refueling needs. Simply connect up the needed connections and you're ready to go!
(works for 1×2/1x3 screens only)

Microcontroller size: 2×4

Features
- charging indicator
- refueling indicator (both in and out)
- dynamic battery indicator

Thanks to Struner for helping me with the dynamic battery indicator formulae.

Update:
V 2.0
-Compatible with 1x2 screens automatically
V 1.1
- Option to select dynamic battery indicator
- Option to have custom text instead of fixed "fuel"

Do feel free to use on your own creations, credit isn't compulsory, but is much appreciated

Note: generator in picture is not owned by me
21 Comments
Lightning 14 Dec, 2024 @ 2:25pm 
what is this called in the inventory, I cannot find this in the workbench
Pika  [author] 3 Sep, 2021 @ 2:04am 
Apologies for the long wait, but the bug has been fixed
Pika  [author] 21 Jul, 2021 @ 7:24am 
Yeah I realised I never defined all my variables but I have been forgetting to fix it sorry!
Bastard Zane 28 Jun, 2021 @ 3:36pm 
I have discovered the 'attempt to compare nil to a number' issue and fixed it! :EmergencyCall:

To my understanding, the problem is that if the screen is started off, I believe the screen size is reported as nil, thereby breaking the value called 'W' in the script.

Make your script that starts with 'BaT=0' look like this (if you're using a 1x3), starting at the 'if eorg and W<70 then' line, and ending at the second 'end' a couple of lines later:

if eorg and W==nil then
W=100
if W<70 then
S1=38
S2=35
else
S1=0
S2=0
end
end
end

It makes the comparison kind of pointless, but it works, so it's not stupid. :steamthumbsup:

This will make the screen work for a 1x3 monitor flawlessly. I have yet to test it in the dedicated server (where I first observed the problem), but I can now attach this to a screen that is spawned off and turn it on with it working.

Hope this helps! :RepairKit:
ChewyCD 9 Jun, 2021 @ 2:21pm 
when is it fixed?
Pika  [author] 8 Jun, 2021 @ 6:21am 
Lua is pretty buggy in multi-player, guess I'll just fix the code by (hopefully) defining all the numbers and boolean.
MarshallSantini 7 Jun, 2021 @ 5:17pm 
Yes, I play single player with the tick issue
Merlin 7 Jun, 2021 @ 12:31pm 
Nope. I always play multiplayer so friends are able to join. Is multiplayer the issue?
Pika  [author] 7 Jun, 2021 @ 6:48am 
No problems for me and a couple of friends, just to confirm, you guys are playing in single player?
Merlin 6 Jun, 2021 @ 1:02pm 
I believe I am running the 64 bit version