Stormworks: Build and Rescue

Stormworks: Build and Rescue

评价数不足
Refuelling and recharging interface
   
奖励
收藏
已收藏
取消收藏
Vehicles: Creative, Mechanical
标签: v1.2.24
文件大小
发表于
更新日期
242.938 KB
2021 年 4 月 22 日 上午 3:23
2021 年 9 月 3 日 上午 2:17
6 项改动说明 ( 查看 )

订阅以下载
Refuelling and recharging interface

描述
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 条留言
Lightning 2024 年 12 月 14 日 下午 2:25 
what is this called in the inventory, I cannot find this in the workbench
Pika  [作者] 2021 年 9 月 3 日 上午 2:04 
Apologies for the long wait, but the bug has been fixed
Pika  [作者] 2021 年 7 月 21 日 上午 7:24 
Yeah I realised I never defined all my variables but I have been forgetting to fix it sorry!
Bastard Zane 2021 年 6 月 28 日 下午 3:36 
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 2021 年 6 月 9 日 下午 2:21 
when is it fixed?
Pika  [作者] 2021 年 6 月 8 日 上午 6:21 
Lua is pretty buggy in multi-player, guess I'll just fix the code by (hopefully) defining all the numbers and boolean.
MarshallSantini 2021 年 6 月 7 日 下午 5:17 
Yes, I play single player with the tick issue
Merlin 2021 年 6 月 7 日 下午 12:31 
Nope. I always play multiplayer so friends are able to join. Is multiplayer the issue?
Pika  [作者] 2021 年 6 月 7 日 上午 6:48 
No problems for me and a couple of friends, just to confirm, you guys are playing in single player?
Merlin 2021 年 6 月 6 日 下午 1:02 
I believe I am running the 64 bit version