Stormworks: Build and Rescue

Stormworks: Build and Rescue

Fuel Efficiency Computer (FEC)
27 Comments
Razor  [author] Oct 9, 2021 @ 1:29pm 
@KevDawg Sorry you're having difficulty with it. Indeed, in a way I'm not still on this - my life has changed dramatically since I made this, and my skills with lua technicalities have never been to a point that they'd suffice in handling problems like the one you've encountered. I can point you in the right direction though. If you try the subreddit r/Stormworks, and/or direct message a guy u/TheAdester (he's really good at this stuff), there are a lot of people over there that can help you. Also perhaps the Stormworks discord. And finally, there is r/lua. I went to r/lua once long ago for a technical problem in my missile guidance code in from the depths, and they actually spat out a solution for me quickly. Good luck! :steamthumbsup:
KevDawg Oct 6, 2021 @ 3:06pm 
Hey mate, thanks for creating this. Not sure if you're still on this but i tried modifying your controller to have it output to video so I added a LUA block. For some reason though it won't to the screen. I tried to just write some simple text and it still wouldn't work and I can t figure out why. I tried my script on a separate controller and block and it works so I have no idea why it wont work on yours!
Razor  [author] Jul 23, 2020 @ 7:17pm 
@MindSpinster thanks
Jackie Daytona Jul 23, 2020 @ 6:32pm 
found this on reddit, nice job
Razor  [author] Mar 8, 2020 @ 6:27pm 
@squall-leonhart1 You're welcome :steamhappy:
DaMarkiM Mar 8, 2020 @ 7:55am 
you are a boss!
thanks for sharing your work
Razor  [author] Jan 9, 2020 @ 5:51pm 
@sAdPePe yw, glad I could help :steamhappy:
Mao Jan 9, 2020 @ 2:43am 
Hi, thanks for taking your time to reply to my question .
you were absolutely right , the numbers were to small for them to round up at my current settings, i turned my settings down and now everything seems to be working.
Thank you for uploading and beeing so helpfull :)
Razor  [author] Dec 28, 2019 @ 3:12pm 
@sAdPePe Hello, I read your comments and logged into the game to test it out. It appears to be working for my test boat. I tried to think of some tips for you though (regarding no km/l output). Often, the km/l value output might be a relatively small decimal number such as 0.03 or 0.1 for example (often my creations get terrible fuel efficiency, like 100 meters per liter). Therefore, it is possible that if you hook up that output to a display which isn't set to display decimal values, the display value might not be changing since it won't round up to the nearest whole number. That's the only thing I can think of right now, hope that helps.
Mao Dec 28, 2019 @ 1:08pm 
hey im not getting an km/l output any tips?, i connected it to the tank and to the speed , remaining range is working perfectly thought.
Thanks for sharing btw
Mao Dec 28, 2019 @ 11:52am 
my bad , didn´t think it would spawn as microcontroller directly into the inventory.
nice
Mao Dec 28, 2019 @ 11:45am 
somehow its not downloading , anybody occured any problems ?
ecwskier Sep 28, 2019 @ 7:07am 
:D
Razor  [author] Sep 28, 2019 @ 2:22am 
@Big Chungus Neat! I'm glad you're enjoying it brother :steamhappy:
ecwskier Sep 26, 2019 @ 9:08am 
also this thing is pretty cool when i turn on two engines it says i can go 100 KM and when i turn on four then i can go 60 this thing is super cool!
ecwskier Sep 26, 2019 @ 9:07am 
oh ok
Razor  [author] Sep 25, 2019 @ 9:34pm 
@Big Chungus yes any fuel tank size should work just fine, even very large fuel tanks. I just meant to say that a large number of separate fuel tanks may cause issues.
ecwskier Sep 25, 2019 @ 9:45am 
will that work?
ecwskier Sep 25, 2019 @ 9:44am 
my fuel tank size is i little over 5000
Razor  [author] Sep 25, 2019 @ 9:38am 
@Big Chungus yes, in theory it should work for anything, provided that you have one numerical input for your speed (such as a directional linear speed sensor) and one numerical input which represents your fuel quantity in liters.

I have noticed that, in some special cases where you have a very large number of fuel tanks linked together (i.e. 28 large fuel tanks that I was using on a career tug boat), there may be issues (outside of the FEC itself) with the update speed and consistency of the fuel quantity that you derive for the input. In those cases, some careful modification needs to be made so that fuel consumption is calculated over a longer time period than 1 second.
ecwskier Sep 25, 2019 @ 8:17am 
this would still work for a plane right
?
(OTR) 0xferd™ Aug 9, 2019 @ 8:30am 
well then keep up the great work the microcontrollers are great tho.
(OTR) 0xferd™ Aug 9, 2019 @ 8:29am 
ok
Razor  [author] Aug 8, 2019 @ 10:26pm 
@Oxferd_Gaming I actually haven't used monitors yet, as I have only progressed partway into a career currently. Hopefully it would be as simple as connecting the numerical output from the FEC to the monitor, but perhaps it isn't that simple and monitors may require some basic code to properly retrieve and then display the number. If all else fails, you could pose the question to the subreddit at r/stormworks, and someone will probably help you pretty quickly
(OTR) 0xferd™ Aug 8, 2019 @ 7:13pm 
man this is some great work..
say can you make a version of this creation but the display be on a monitor?
Razor  [author] Jul 12, 2019 @ 1:47pm 
@Boecraft You're welcome :steamhappy:
❀ Boe ❀ Jul 12, 2019 @ 10:15am 
saw the reddit post. Thanks man!