Stormworks: Build and Rescue

Stormworks: Build and Rescue

LUA Sonar Display
47 Comments
Maia  [author] 11 May @ 1:21pm 
tysm
Just Kenji 11 May @ 1:19pm 
thats true lol, thanks great controller btw
Maia  [author] 11 May @ 1:12pm 
metres; you wont be needing anywhere near the maximum range of any sonars
Just Kenji 11 May @ 1:03pm 
yes but whats 5000? im assuming meters but even the smallest sonar in the game, already has a range of 60000 Meters. with my large sonar having 200000
Maia  [author] 11 May @ 12:47pm 
I'm pretty sure you can adjust the maximum range in the properties?
Just Kenji 11 May @ 12:31pm 
i use the largest sonar available, but what do u mean with "5000", my sonar has a range of 200KM and i wanna use every single meter
Maia  [author] 22 Mar @ 6:27am 
Did you place the sonar in the correct orientation?
The L.A. rose 21 Mar @ 8:33pm 
Uh... the entire display is reversed I think?
Virginia 21 Dec, 2024 @ 6:16am 
i tried it but just replacing didn’t work,
Maia  [author] 12 Dec, 2024 @ 11:50am 
tbh i'm working off of the same information as you since i've entirely forgotten how this controller works; the lua script(s) use the property.getNumber method to obtain the value from the max distance property, so to connect a keypad you'd need to write the value into the script(s) that use that property, and replace the property.getNumber with an input.getNumber. Might be difficult as i believe the code is minified
Virginia 10 Dec, 2024 @ 12:55am 
can i connect small keypad with max distance? if yes, how can i do it? property number for max distance value doesen`t connect with anything
Captain 3 Sep, 2024 @ 1:43pm 
Toggle button screen on, add video input, add electricity. @BomberEx
BomberEx 8 Apr, 2024 @ 3:02pm 
For some reason the screen doesnt show anything
Maia  [author] 21 Jul, 2023 @ 2:12pm 
active sonar can ping the fish, sw devs haven't really given us a way to filter them out. if you wanna fix it you gotta disable wildlife
ssfar 19 Jul, 2023 @ 12:00am 
nvm does it also ping the ground i bee geting mutiple pings during chilling nothin around me (i have no fucking clue how sonars work)
ssfar 18 Jul, 2023 @ 11:58pm 
Why is the ping always one one side of the moniter?
ssfar 18 Jul, 2023 @ 11:54pm 
nvm i saw the instructions anyways W sonar :steamthumbsup:
ssfar 18 Jul, 2023 @ 11:52pm 
Where does the toggle active sonnar goes?
Maia  [author] 1 Jul, 2023 @ 11:04am 
yessir
meloeh 1 Jul, 2023 @ 8:29am 
is this with the new sonars
Boeroeng 29 Mar, 2023 @ 1:25pm 
T H X !!!!!:steamhappy:
jpjw001 21 Aug, 2022 @ 6:00pm 
could you make there an option so that a map can be seen at the same time as the sonar?
Captain Robertson 30 Jul, 2022 @ 7:58am 
Great work!

This is one of the two sonars that I always use on my creations in career mode and it even featured on today's video where I highlighted the bug where - if you have the wildlife switched ON in the options - the active sonar keeps detecting all the fish around you.

https://www.youtube.com/watch?v=GparnKEUi4o&ab_channel=CaptainRobertson

Hopefully the devs will be able to patch it out, or at the very least give content creators the ability to filter out smaller objects via the lua script.
Maia  [author] 5 Jul, 2022 @ 11:01am 
no problem
Foxlike Creature 5 Jul, 2022 @ 10:06am 
oh, sorry, it was a typo.
I meant, "can't refuse. I'm very embarrassed, I'm sorry.

And in fact, I have now understood the mechanics of radar operation and realized that it's not your controller's fault, but the developers' awful implementation of the system. Sorry for the false criticism.
Maia  [author] 5 Jul, 2022 @ 9:48am 
what do you mean by 'not able to update'?
Foxlike Creature 5 Jul, 2022 @ 4:40am 
As for me, the distance filter work very bad. I use sonar to find boxes with loot playing career, and this sonar for some reason not able to update them (they float on the surface), unlike the other sonar from the workshop. But the other sonar, unlike yours, is too bad in terms of code and doesn't work only on the 2/2 monitor. That's why I am writing to you - if you have free time, please add possibility of more fine tuning ^-^

Sorry for my bad English, I hope this is not a problem.
Maia  [author] 25 Jun, 2022 @ 5:37am 
it's a known issue
Jupiter Icy Moons Explorer 24 Jun, 2022 @ 6:15pm 
Reply 2: Ping still appears to the right no matter what. distance varies from 1k to 5k
Jupiter Icy Moons Explorer 24 Jun, 2022 @ 6:14pm 
Reply: had my sonar upsidedown its fixed now
Jupiter Icy Moons Explorer 24 Jun, 2022 @ 5:47pm 
Im having a problem where there is always a ping to my right at varying distances, and when something that should send a ping is in FRONT of it it doesnt pick it up at all. do you know how to fix this?
Maia  [author] 17 Jun, 2022 @ 1:57pm 
'Toggle active sonar' will begin a blinker that is outputted on the 'ping' node (the rate of the blinker is proportional to the range set)

The max distance is in metres

The lines appearing from the sonar while your engines are running is due to the noise they produce being picked up by the sonar (it's called 'baffles' IRL)

'deadzone' refers to the several tick period following a ping where the sonar can only hear itself, the filtering is basically just ignoring any input during this time
French Fry 17 Jun, 2022 @ 11:17am 
Con:
I have turned on my ships engines and now there seems to be lines on the monitor, maybe from the engines...? What exactly did you mean by "Filters out deadzone noises"?

Pro:
I placed a small ship nearby and it HAS picked the engines sound, shown on the sonar. It does work Id give you that.

Nothing much. You did an ok job on this. I have to say that this sonar I do not understand to the max it seems. I would give a 2.5 star rating BUT I might not know everything about this system, so I wont give any rating what so ever.
French Fry 17 Jun, 2022 @ 11:03am 
Also, It is not clear on the range settings.... What does 5000 mean? 5km? Or 50km?
French Fry 17 Jun, 2022 @ 10:59am 
What does "Toggle Active Sonar" do?
French Fry 17 Jun, 2022 @ 10:35am 
I'ma give this a shot. I will give full feedback.
KwentiN 12 Jun, 2022 @ 5:36am 
It would be awesome if you could share the speed of the sonar pings soundwave. I got very mixed results in my own experiments :HeartPix:
Maia  [author] 11 Jun, 2022 @ 10:47pm 
Yes, the sonar will not output anything if it is above sea level
Brygun 11 Jun, 2022 @ 2:41pm 
Question: Its not actually said anywhere in SW that I can see. Does the sonar unit need to be in the water? Kinda wierd to have it on a boat's roof or on a flying helicopter.
Maia  [author] 8 Jun, 2022 @ 8:50am 
I've been considering it, maybe in my next sonar controller i'll implement it
TheChrisBrown 7 Jun, 2022 @ 3:32pm 
Hey man, this is the best MC for the new sonar yet, good work! I'm planning on updating my sub with this and will give credit.

Is it possible to add a composite touch ability to the screen so if I click on a bearing line, it will give me the bearing and maybe even distance? If not, it's really good as is!
silo8811 5 Jun, 2022 @ 5:35pm 
do you still have the script that was before you minified it?
Maia  [author] 5 Jun, 2022 @ 1:25pm 
Go for it
MHick 5 Jun, 2022 @ 1:16pm 
Can we use this on our own creations with credit?
hbubli 5 Jun, 2022 @ 7:14am 
Ok, thanks.
Maia  [author] 5 Jun, 2022 @ 7:06am 
This sonar doesn't support baffles filtering, your best bet is to just ignore them
hbubli 5 Jun, 2022 @ 6:58am 
How do i filter out my own vehicles noise?