Stormworks: Build and Rescue

Stormworks: Build and Rescue

Waypoint controller
68 Comments
Jacco  [author] 2 Nov, 2022 @ 1:07pm 
Cool! I don't think I'll work on this any more, cause I haven't looked at it in years now, sorry!
StraikeS Games TV 1 Nov, 2022 @ 3:50pm 
add a display of the distance to the end of the route
StraikeS Games TV 1 Nov, 2022 @ 3:48pm 
I use your map in my designs. I really like it
OMFGitsST6 15 Dec, 2020 @ 9:43am 
Howdy, I really like this design, but I'm having some issues.

On a 2x2, it doesn't seem to read my touch coordinates correctly. The red/orange/blue "traffic light" buttons work, but the other controls do not and waypoints are placed at the wrong locations.

On a 5x3, the opposite is true. Waypoints are correct and map controls work, but the traffic light buttons don't do anything.
Jacco  [author] 18 Nov, 2020 @ 2:39pm 
Oh sounds cool dude! Lmk when you're finished
esj94 17 Nov, 2020 @ 1:46pm 
@JACCO no problem, I guess I solved it. Just to let you know, I took part of your code to make a huge MC with GPS, AP, anti colision system, Radar and Compass all in one. I'll credit you in the WS page, when it is finished. btw. nice Controller
Jacco  [author] 17 Nov, 2020 @ 8:21am 
Wish I could tell you, last time I looked at this was over a year ago :p
esj94 17 Nov, 2020 @ 4:57am 
What is oP1, oP2, and oP3 in your waypoint marker Lua code?
shark_has_crash 21 May, 2020 @ 12:52pm 
thx
Jacco  [author] 21 May, 2020 @ 2:07am 
Sure dude use whatever
shark_has_crash 20 May, 2020 @ 3:20pm 
Jacco I'm working on a fully automatic plane system can I use your zoom bar?
Jacco  [author] 3 Apr, 2020 @ 3:16am 
Also a good one! I'll see what I can do next time I feel like it
Foxlike Creature 2 Apr, 2020 @ 3:06pm 
Add a function for calculating the length of the shared route
Jacco  [author] 2 Apr, 2020 @ 2:16pm 
That's a cool one! I haven't been in stormworks for a bit so I might not get to it but you never know :p
buildalot 2 Apr, 2020 @ 1:13pm 
Jacco u should add the ability to loop waypoints so you can make stuff like cars just drive around for looks. Would be kinda cool for like traffic and stuff. Imagine ur on a tanker and a cessna is just flying by. Just think it would be kinda cool.
Jacco  [author] 28 Sep, 2019 @ 6:29am 
I think you can make it work for planes, you'd just have to translate the X and Y to whatever input the control surfaces of your plane need. I'm not that good at all that so I'm not sure I could make it x)
ecwskier 26 Sep, 2019 @ 9:20pm 
but does this only work on a ship i would like to see this on a plane with build in roll stabilizers
Jacco  [author] 14 Aug, 2019 @ 3:22pm 
Awesome! Can't wait to try it out
Jacco  [author] 27 Jul, 2019 @ 5:02am 
Awesome! Let me know if/when you upload it to the workshop I'd love to see
aralmo 27 Jul, 2019 @ 4:12am 
Actually nevermind, i've remodelled my boat cockpit to fit a 5x3 angled screen, now it looks like a tesla :P
Jacco  [author] 26 Jul, 2019 @ 7:16am 
I could look into having external inputs for the buttons (meaning you could do whatever you want, including 1x1 panels as inputs for them)
aralmo 26 Jul, 2019 @ 7:14am 
Also funny I started doing this and then tough that someone may have done it already :P
Nice one! thanks for sharing, the only thing I miss from my original idea is to use 1x1 panels as button panel for adding and deleting waypoints.
pkempf400 15 Jul, 2019 @ 5:02pm 
Funny how great minds think alike :p
Jacco  [author] 15 Jul, 2019 @ 3:41am 
Haha I just noticed I also made something like it, they seem different enough :p I found it funny cause Taj is an old friend :p
pkempf400 15 Jul, 2019 @ 1:21am 
Saw your comment on Tajins controller - this one is much easier to use.
pkempf400 13 Jul, 2019 @ 9:02pm 
Working great now. I need to check my copy - think one of the GPS X / Y labels has a misprint.
Jacco  [author] 11 Jul, 2019 @ 9:08am 
Yeah I tested, and for me it doesn't add a new waypoint when inputting the same coordinates.
Jacco  [author] 11 Jul, 2019 @ 9:05am 
I fixed the input via keypad doing the wrong thing. It should already filter out any coordinates within 10 m of the last coordinate, does that not work?
pkempf400 11 Jul, 2019 @ 8:57am 
Up to you :-) I have an outside button at moment, but no harm in two.
Yeah, pulse button is a weird one. When I use a regular push button on my helicopter, all works well. When I use the pulse option, it drives weird. Maybe a bug with the keyboard, or maybe pulse doesn't work like push.
Also, if there's room, block the same coordinates being added twice in a row (allowable via keyboard option). Fine if another point added in between.
Jacco  [author] 11 Jul, 2019 @ 8:48am 
Yeah I noticed that with the keypad, a bit weird. I'll try some fixes in a bit. It seems to add the previous value, so delaying the pulse should probably work.
You'd want an autopilot button on the screen? That should be fairly easy to do, I just imagined it'd be okay to have that as a regular button too :p
pkempf400 11 Jul, 2019 @ 8:41am 
Ok, the keypad option seems to have issues. First time I add a waypoint, it goes north east of where I started. Second "pulse" adds it.
Looking at the controller, the first pulse shows 1 waypoint, but 0/0 co-ordinates.
pkempf400 11 Jul, 2019 @ 8:30am 
Cool - will wire it up now.
Another idea I've seen on a few controllers is AP toggle button for Autopilot - can send signal to another autopilot.
Jacco  [author] 10 Jul, 2019 @ 8:47am 
Added the ability to add waypoints from a keypad
Jacco  [author] 10 Jul, 2019 @ 7:01am 
Found the problem, updated it now (:
Jacco  [author] 10 Jul, 2019 @ 6:59am 
Ah yeah I see, that's weird. I'll look into it
Jacco  [author] 10 Jul, 2019 @ 6:06am 
I haven't tested but that makes some sense, with deleting the waypoint it won't change the x and y, since there's nothing to update to. Does it output 0 waypoints? I'll test in a bit if you haven't responded by the time I can
pkempf400 10 Jul, 2019 @ 5:37am 
Ok, had to play with settings to get Tajins autopilot to switch off when close to waypoint.
Have found I can't delete the last waypoint. It disappears from map, but still registers as one there.
pkempf400 10 Jul, 2019 @ 4:58am 
Well done - will check it out. I'll try the 0 distance toggle option to keep a waypoint.
Jacco  [author] 9 Jul, 2019 @ 12:46pm 
I did it! Updated it to have seperate Lua-blocks for waypoints, zoom and the buttons on the side. It introduces a very tiny bit of lag between button presses and something actually happening, but I reckon that'll be worth the tiny bit of extra space.
I went from 4068/4096 to 3240, 1217 and 1280 characters :p
Jacco  [author] 9 Jul, 2019 @ 10:59am 
Ah! Had some succes! If all goes well I'll have seperated the code into three different LUA-blocks in a bit.
Jacco  [author] 9 Jul, 2019 @ 8:46am 
Oh yeah I'm definitely getting to the edge of what's possible within one block. The code looks like garbage but I guess it works :p
pkempf400 9 Jul, 2019 @ 8:38am 
Wow, just looked at the code - you really have compressed the code. Nice use of function substitutions.
Jacco  [author] 9 Jul, 2019 @ 8:37am 
I've been trying to get multiple blocks working for the past two hours ish :p It's mostly doable, but I can't seem to have one block output three booleans for the other block to use (for the three buttons). Moving the zoom control to a second block works fine. Having a block for just the buttons works too, but not in combination with the rest. Very confusing.
pkempf400 9 Jul, 2019 @ 8:34am 
It's working great. If you can't use 2, maybe smaller variables ie scrW instead of screenW. I know it's not much. Will see if any other ideas on saving characters.
Jacco  [author] 9 Jul, 2019 @ 6:50am 
I've been trying to figure out a way to use two lua blocks yeah, I have some ideas but I'm lazy and have to do some other stuff at the moment :p
I have an idea about how I want to implement it, which should move about a third of the code to a seperate block. That would clear up enough to add some more features for sure, so I'll take a look at that next time.
pkempf400 9 Jul, 2019 @ 6:44am 
Ok, had to quit stormworks and reload. Will take it for a spin an let you know :-)
pkempf400 9 Jul, 2019 @ 6:41am 
Also just an idea - if there is a lua script limit... does it apply to multiple lua scripts? Maybe use 2 lua scripts to increase the limit?
pkempf400 9 Jul, 2019 @ 6:40am 
I would've hoped so, but it's not showing the new input/outputs. I'll figure it out somehow.
Jacco  [author] 9 Jul, 2019 @ 6:38am 
When restarting the game steam added something to the downloads about stormworks workshop content