Stormworks: Build and Rescue

Stormworks: Build and Rescue

GR-30 Diesel Generator
17 Comments
BigBoyTrip 24 Jun, 2024 @ 11:22am 
instructions unclear. i made something like this but it decided to explode. and proceed to crash a very high end pc.
sprk  [author] 24 Jun, 2024 @ 8:35am 
@piper7286 The outputs, generator and buffer battery are on an isolated circuit, so when an external device uses energy, the buffer battery drains. The MC attempts to keep that battery as full as possible.

In the 'Generator engine subsystem' MC you'll see a 'Power load' input node which is connected to a formula block. This is the main part that's responsible for managing the throttle.

The formula is clamp(1-(x^z),y,1), where x is the battery value, z is a multiplier value (64 in this case) and y is the minimum throttle (0.11 in this case). For example, a battery value of 0.99, clamp(1-(0.99^64),0.11,1), gives a throttle of about 0.47, while a battery value of 0.9999, clamp(1-(0.9999^64),0.11,1), gives a throttle of about 0.006.

This formula results in a smooth but aggressive throttle curve, which makes the generator respond quickly to power load changes, and to give just enough throttle to provide the requested power.

I hope that clarifies things a bit!
BigBoyTrip 24 Jun, 2024 @ 1:26am 
can you tell me how you made it do the load thingy from where if you put something that needs eletricity it throttles up and powers it?
Vali_gaming15 6 Jun, 2024 @ 6:58am 
since this generator only makes 44 stormwork watts
Vali_gaming15 6 Jun, 2024 @ 6:57am 
i am not sure if stormwork watts are = to irl kw but if they are then my generator has the output of 330KW
NeptunetheBetta 2 Jun, 2024 @ 9:16am 
Thank you!
sprk  [author] 2 Jun, 2024 @ 9:14am 
@NeptunetheBetta - yep, feel free to use it in your own creations
NeptunetheBetta 31 May, 2024 @ 7:37pm 
@sprk Could i use the generator in an office building with credit?
zeckmon3 9 May, 2024 @ 2:23am 
Amazing generator. heads up. im personally using this to power my portable amusement rides if you don't mind
But Hull 21 Feb, 2023 @ 8:31am 
Hey man used your LUA for another gen i built. gave you credit for it hope you dont mind its just a super good LUA. https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2936727207
But Hull 10 Feb, 2023 @ 8:12am 
Thank you very much . here is the one i made not as good as yours but can produce electricity https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2931204664
sprk  [author] 10 Feb, 2023 @ 8:04am 
@But Hull - of course, go ahead!
But Hull 8 Feb, 2023 @ 12:09pm 
Hello amazing generator. can i use the monitor for my generetor i will give you credit for it
MarcusTheGamer 10 Jan, 2023 @ 11:55am 
How did you make the circuit breaker and monitor look like it's 2/10 of a block smaller in depth? This is so cool btw! Hope you continue to make more :)
thatcoolcat1 12 Dec, 2022 @ 10:30pm 
one button generator that looks good and has top center rope attach point?

hot
Nijntje 10 Dec, 2022 @ 7:09am 
super nice :D
CrazyEyedApollo 9 Dec, 2022 @ 7:44pm 
sexy
:steamthumbsup::steamthumbsup: