Stormworks: Build and Rescue

Stormworks: Build and Rescue

ZE Artillery Ballistic Calculator
179 Comments
Uran_Wind  [author] 24 Jul @ 11:35am 
These are the world coordinates of the target, same as GPS coordinates.
j4yd3n201 23 Jul @ 9:19am 
how does the X and Y work on the controller i dont understand it
Jaidy!! 20 Jul @ 3:13pm 
Thank you !!
Uran_Wind  [author] 20 Jul @ 10:09am 
Hi, thanks for the analysis. Updated the controller with your value.
Jaidy!! 19 Jul @ 4:45pm 
hello, little follow up

Was able to fix the issue by setting the drag coefficient in the array to 0.00098 as opposed to 0.0001. Not sure if the number was always wrong, or if the changed it, but it seems to work accurately now
Jaidy!! 18 Jul @ 11:38pm 
hello, banger controller as always

although unfortunately it seems to be inaccurate for Artillery cannons, as in direct it tends to fall short and in indirect it overshoots by around 100 metres. I’m unable to figure out what’s going wrong, but I recreated the issue on the demo vehicle to make sure it wasn’t me failing to hook up the logic correctly. and this also happens on all physics types

do you happen to have any ideas on what might be happening?
Uran_Wind  [author] 3 Jun @ 8:42pm 
No, barrel extensions do not affect the cannon range.
Talos 3 Jun @ 3:05pm 
can it account for barrel extensions?
Nick Name 27 Jan @ 4:19am 
Ah, thats a shame.
Uran_Wind  [author] 27 Jan @ 3:46am 
Hi, im too done with this game and dont want to make any fixes and add new features, probably another controller capable of indirect fire would be more accurate.
Nick Name 27 Jan @ 2:03am 
hello ?
Nick Name 7 Jan @ 7:04am 
and nearly at the same spots, nearly no spread
Nick Name 7 Jan @ 7:03am 
The issue is, i've fired a large group, and it consistently overshoots, it doesn't undershoot, or go left nor right
Uran_Wind  [author] 7 Jan @ 12:22am 
Indirect fire mode has a very large imminent spread, with projectile flight times about 30 seconds.
Nick Name 6 Jan @ 5:36pm 
using the demo btw
Nick Name 6 Jan @ 5:35pm 
in indirect fire it seems to tend to overshoot or undershoot by a bit, shooting a fairly large group to take spread out of the equation
Secret176 4 Jan @ 10:35am 
Yeah well it handles the same I managed to somehow fix that using function -0.04 and -0.02 depending on distance
Uran_Wind  [author] 4 Jan @ 9:40am 
Make sure your GPS sensor is placed at the same altitude as the cannons. Also if target altitude is set to 0 or its node is not connected, it is counted the same altitude as vehicle GPS sensor.
Secret176 4 Jan @ 7:00am 
For curiosity if I am using it on naval targets and their altitude is 0 why do I have to put like altitude -20 or -70 so i can direct hit it when in about 1.5km distance
Uran_Wind  [author] 7 Dec, 2024 @ 9:25pm 
You can set the target altitude to 0 or make it the same as your altitude.
Just Kenji 7 Dec, 2024 @ 1:33pm 
wait what am i yapping about its all about the instincts
Just Kenji 7 Dec, 2024 @ 1:16pm 
its not like i walk up to my enemy and calmly say "wassup i need to know what altidute your vehicle of destruction is so i can accurately and cutely launch a Artillery Cannon in your direction and destroy everything"
Just Kenji 7 Dec, 2024 @ 1:15pm 
target altidute? how tf am i supposed to know
Спартан | Fill 7 Dec, 2024 @ 11:13am 
is it possible to up the max distation,cause 7 KM is very low for me
Uran_Wind  [author] 2 Dec, 2024 @ 10:28am 
The controller is designed to hit only stationary targets, when not your vehicle nor the target itself is not moving. It does not have any tracking and prediction logic.
HonzaVinCZ 2 Dec, 2024 @ 1:21am 
Yeah, I checked everything, tried different settings, placed wind sensor both on vehicle base and gun, tried different gear ratios on pivots, different speed setting in microcontroller, nothing seem to make a difference. The canon aim where it is supposed to, no errors on instrument panel but it looks like it compensates for speed way too much and sometimes shoots too short of target. I might use different microcontroller but if you think you may improve the performance while shooting from moving vehicle, it would be very appreciated. I already built other vehicles with your microcontroller, both tanks and artillery and they work really well when stationary. Great microcontroller though!
Uran_Wind  [author] 1 Dec, 2024 @ 1:48pm 
Also, it is designed to hit only stationary targets from stationary positions.
Uran_Wind  [author] 1 Dec, 2024 @ 1:43pm 
The controller works fine, make sure if you connected all the nodes and installed all sensors correctly. The LUA code has no actual errors, and the built-in checker gives false positive result, related to the issue it cant call functions property.getNumber() before the vehicle is spawned. Check the demo page , it will show the same error message, although everything works as intended.
HonzaVinCZ 1 Dec, 2024 @ 11:49am 
Shows error in LUA block when you run Check Errors. Trying to make it work at my gunship aircraft while travelling at 200kmh with artillery canon. It's very incacurate (spread around 100m at 2km) and can't find a fix for it
Uran_Wind  [author] 27 Nov, 2024 @ 8:44am 
The controller works fine, make sure if you connected all the nodes and installed all sensors correctly. The LUA code has no actual errors, and the built-in checker gives false positive result, related to the issue it cant call functions property.getNumber() before the vehicle is spawned. Check the demo page , it will show the same error message, although everything works as intended.
OMFGitsST6 27 Nov, 2024 @ 7:05am 
While in indirect mode, the controller outputs Target Out of Limits regardless of input or angle limitations.

When I looked into the LUA, I found a syntax error on Line 64 attempting to index a Nil value but I didn't have time to debug the minified code.
killswitch5427 23 Oct, 2024 @ 1:29pm 
https://steamhost.cn/steamcommunity_com/sharedfiles/filedetails/?id=3353678064 . Not sure if you can help or if this is helpful but this is the build.
killswitch5427 23 Oct, 2024 @ 1:24pm 
I'm pretty bad with logic and I managed to get everything but rotation working on my WIP vehicle. Im using a robotic pivot for rotation it keeps going back and forth to the target and then to the same area in the opposite direction I have no idea how to fix this.
Gathur_Armys 13 Oct, 2024 @ 10:11am 
thanks
Uran_Wind  [author] 13 Oct, 2024 @ 9:12am 
No.
Gathur_Armys 13 Oct, 2024 @ 9:11am 
"Cannon orientation on vehicle spawn can be any, like forward, backward, left or right." what about up and down? it are capable of low orbital striking?
thexboxpc1 11 Oct, 2024 @ 11:01pm 
thank you
Uran_Wind  [author] 11 Oct, 2024 @ 5:25pm 
Fixed the unwanted gun depression and the potential division by zero.
thexboxpc1 9 Oct, 2024 @ 1:17am 
seems to be an issue i have a bunch of battle cannon turrets on their own version of this but the same base physics sensor and wind sensor but i have wind off both elevator and traverse pivots are velocity and are set accordingly and elevation angle set to 90 and max depreciation angle to 0 but after so long they say they tried to divide by 0 and slowly lower one by one
AMERICA 31 Aug, 2024 @ 2:43am 
Now it work. The problom was in Physic sensor or more precisely in their location. I installed them incorrectly :)
Uran_Wind  [author] 30 Aug, 2024 @ 8:23am 
Yes, vehicle movement is not implemented. Vehicle tilt is counted for all cannons and rockets.
Richman 30 Aug, 2024 @ 8:01am 
Check that your physics sensor gets power, or it wont work.

I ran into the issue, that the calculator seems to ignore vehicle speed. When moving and firing, it won't hit it's target. I guess vehicle movement hasn't been implemented, right?

And is it maybe possible, that the calculation for rockets lacks the tilt of the vehicle? I seem to be only able to hit a target with rockets, when the platform is level.
AMERICA 29 Aug, 2024 @ 11:45am 
Limits are set, but maybe the problem is in the Physical Sensors, I'm using them for the first time. Or maybe an old version of the game
Uran_Wind  [author] 29 Aug, 2024 @ 11:24am 
Check if all sensors are installed correctly, or increase the angle limits.
AMERICA 29 Aug, 2024 @ 11:17am 
Why calculator allways writing "Target out of angle limit", if the target is in front of the gun
Uran_Wind  [author] 7 Aug, 2024 @ 1:58pm 
Ok, send me the xml or the workshop link.
Shaquille Oatmeal 7 Aug, 2024 @ 1:45pm 
i have the sensors set correctly and the pivots set to robotic pivots (which is what i have on my build)
Uran_Wind  [author] 4 Aug, 2024 @ 10:54am 
Should work fine, check the pivots type and sensors orientation, as in demo .
Shaquille Oatmeal 4 Aug, 2024 @ 12:32am 
i connect everything correctly and when i input coordinates it gives me an output elevation of 0.03 no matter what. changing the coordinates, altitude or firing mode doesnt change anything. i have the physics sensors, i have the compite connected, keypads connected.. etc....