Stormworks: Build and Rescue

Stormworks: Build and Rescue

Tchey Feb 12, 2020 @ 12:52pm
Several fuel tanks, one dial. Possible ?
Hello,

I have several tanks with fuel. I can fill them all together, no issue or i didn't notice one.

However, i'd like to read the total amount of fuel.

It seems i cannot, and i need one dial per tank. If i try connecting stuff, it removes the previous one.

Is it possible ?

Thanks
< >
Showing 1-8 of 8 comments
Nhalok Feb 12, 2020 @ 1:46pm 
You can use an add block for this, it has 2 green in and 1 green out nodes. For more tanks simply use more add blocks, although if you are using more than a couple then a microcontroller version is much cleaner. I hope this helps!
Last edited by Nhalok; Feb 12, 2020 @ 2:32pm
Tchey Feb 12, 2020 @ 2:35pm 
Ah, i guess i don't have unlocked that yet, thanks
Anwaan Feb 12, 2020 @ 3:34pm 
And if you know their max capacities, you can build a microcontroller that divides the remaining amount by the max amount to get a percentage output :KSmiley:
Ra-Ra-Rasputin Feb 12, 2020 @ 11:11pm 
Hello there, you don't need to unlock it.

If you understand basic electronics and logic blocks (and/or math) this is easy to make.
On the top bar you'll find a button for microcontrollers, clicking it brings you to another creation utility.

In here, specify as many number inputs as you have tanks, and then one output. You may have to adjust the size of the microcontroller to do this.

The "simple" way to do this is to have a lot of addition (+) blocks, but it's also a little bit silly. You can use the f(x) style block with many inputs for a much better version. The f(x) style block basically can perform relatively simple math on its inputs. Your inputs only need to be along the lines of : x+y+z+w..... and continue for as many inputs as you have, then route that to the output.

If you're confused, i can make a quick example.
ywyattwhy Nov 4, 2022 @ 10:12am 
I have 12 batteries in a ship, and I need to connect all of them to 1 dial. What do I do?
Sampak Nov 4, 2022 @ 10:46am 
Originally posted by ywyattwhy:
I have 12 batteries in a ship, and I need to connect all of them to 1 dial. What do I do?
Use the same method as RaRa suggested for fuel tanks.

However, if your batteries are all connected together (the ones you want to combine the readout for) then as far as I understand they should all drain evenly, so you only need to read one to get the charge level remaining.
Last edited by Sampak; Nov 4, 2022 @ 3:15pm
Ra-Ra-Rasputin Nov 4, 2022 @ 1:24pm 
Originally posted by ywyattwhy:
I have 12 batteries in a ship, and I need to connect all of them to 1 dial. What do I do?

You don't count batteries in the same circuit together.
Lystent Nov 4, 2022 @ 10:49pm 
If for whatever reason your batts don't drain evenly, then you may prefer using a calculation to find the average, as batts output their data in percent, rather than stuff like megawatt hours.

Edit: would be different story if your batts are of different capacities though.

Edit#2: for varied batt sizes, you may want to convert the percent value given (it is more like a fraction, really) into a charge amount:

(power cap in units*battery data).

You can then make a "percent" value (something resembling the average mentioned earlier) if you add all the capacities of the batteries, and then divide the combined charge amounts by that:

((Power cap A*Batt Data A)+(Cap B*Data B)+O(Cap C*Data C))/(Cap A+Cap B+Cap C)=Somewhere from 1 to 0 that can be multiplied by 100 to make an actual percent.


I'm assuming there is a tooltip for the battery capacities in the builder, but I could be wrong.
Last edited by Lystent; Nov 5, 2022 @ 12:05am
< >
Showing 1-8 of 8 comments
Per page: 1530 50

Date Posted: Feb 12, 2020 @ 12:52pm
Posts: 8