Stormworks: Build and Rescue

Stormworks: Build and Rescue

200 ratings
DAIM-BalComp v2.7
10
3
2
3
2
3
3
3
3
2
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Air, Sea, Land
Tags: v1.5.16
File Size
Posted
Updated
203.435 KB
18 Sep, 2022 @ 6:45am
27 Sep, 2022 @ 9:06am
6 Change Notes ( view )

Subscribe to download
DAIM-BalComp v2.7

Description
DAIM's Ultimate Ballistics Computer!
(Please leave an upvote, it means the world to me ' ^')
Example: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2867151735
Guide: https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=2868353878
Check the changelog today, I genuinely use it :D


This little beauty is one of the most accurate ballistic computers in Stormworks, able to do all calculations regarding Motion-, Gravity-, Drag- and Wind-Compensation in a singular logic tick! I have included a bunch of settings for customization to make it fit with just about any turret, but keep in mind.

THIS IS AN EXPERIMENTAL VERSION, IT IS PRONE TO STILL HAVING BUGS IN IT AND SHOWING UNPREDICTABLE BEHAVIOUR. IF YOU NEED HELP WITH IT, DM ME ON DISCORD THROUGH MY NAME Daimonfire#9699 AND DON'T JUST LEAVE A BAD REVIEW
Thank you.

Information to the input nodes, output nodes and tooltips can be found in the guide I made

The Custom-Angle Limiter
Inside the microcontrollers LUA-Script, you will find a table at the very top of the script, with an example value inside which has no effect however. This table allows you to create zones at where the maximum elevation and depression angles of the gun should be different, or where the boolean channel 2 (inside No-Firing Zone) output of the debug node should be set to true.
The amount of these zones is infinite, or at least until your space for code runs out, Lol.
One Zone Definition looks like this:
Lower Azimuth Bound, Upper Azimuth Bound, New Minimum Elevation Angle, New Maximum Elevation Angle, No-Firing Zone output set to true?
{-10,10,25,80,false}
In this example, the guns elevation angle would be limited between 25 and 80 degrees if its rotation is between -10 and 10 degrees from its initial rotation.
However, something like
{10,-10,25,80,false}
would also be possible, where you put the upper bound at first instead of the lower bound. This results in everything but the specified zone becoming limited to the given value, in my example, the elevation angle would be limited between 25 and 80 degrees if its rotation is not between -10 and 10 degrees from its initial rotation.

For any further questions, DM me over Discord via Daimonfire#9699

DISCLAIMER
THIS BALLISTICS COMPUTER IS MADE ENTIRELY BY ME, DAIMONFIRE AND IS NOT TO BE REUPLOADED WITHOUT MY EXPLICIT PERMISSION. IF YOU UPLOAD A VEHICLE WITH THIS MICROCONTROLLER IN IT, YOU ARE FREE TO UPLOAD SAID VEHICLE AS LONG AS YOU GIVE ME CREDIT

Shout-out to MH aka Masshole#8495 for designing the logo of the BalComp
70 Comments
Orbital775 22 Jul @ 9:28am 
is it one computer per gun or one computer for all guns?
Nick Name 22 Dec, 2024 @ 9:14pm 
Ah i see, didn't know that, nvm then
Daimonfire  [author] 22 Dec, 2024 @ 6:26am 
It's been a looong time since I've worked on it. It's pretty old and was made when the physics sensor wasn't even a thing. I do have a better one in work, but I am kind of on a hiatus
Nick Name 14 Dec, 2024 @ 3:45pm 
it's bulky, most sensors could fit inside the physic sensor, and the leading is just not working? i'm using the example. definitely not the best computer.
trucksarenoisy 29 Apr, 2023 @ 10:46am 
the controller will correct lead but if it overshoots the leading it doesn't fix it's mistake, it just sits there for the target to come closer...
trucksarenoisy 29 Apr, 2023 @ 10:44am 
yeah this controller loves to overshoot target leading
trucksarenoisy 29 Apr, 2023 @ 10:25am 
this just flat out refuses to function no matter what i try, flipping Y and Z channels does nothing
trucksarenoisy 29 Apr, 2023 @ 10:15am 
what kind of positioning does this MC need? the tracking camera outputs target's map X on channel 1, target altitude at channel 2, and target map Y on channel 3, your computer seems to hate this input
trucksarenoisy 23 Feb, 2023 @ 2:28pm 
oh ok
Daimonfire  [author] 19 Feb, 2023 @ 5:42am 
the stabilized camera outputs the coordinates in XZY, the balcomp takes them in in XYZ