Stormworks: Build and Rescue

Stormworks: Build and Rescue

Waypoint controller
68 kommenttia
Jacco  [tekijä] 2.11.2022 klo 13.07 
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.11.2022 klo 15.50 
add a display of the distance to the end of the route
StraikeS Games TV 1.11.2022 klo 15.48 
I use your map in my designs. I really like it
OMFGitsST6 15.12.2020 klo 9.43 
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  [tekijä] 18.11.2020 klo 14.39 
Oh sounds cool dude! Lmk when you're finished
esj94 17.11.2020 klo 13.46 
@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  [tekijä] 17.11.2020 klo 8.21 
Wish I could tell you, last time I looked at this was over a year ago :p
esj94 17.11.2020 klo 4.57 
What is oP1, oP2, and oP3 in your waypoint marker Lua code?
shark_has_crash 21.5.2020 klo 12.52 
thx
Jacco  [tekijä] 21.5.2020 klo 2.07 
Sure dude use whatever
shark_has_crash 20.5.2020 klo 15.20 
Jacco I'm working on a fully automatic plane system can I use your zoom bar?
Jacco  [tekijä] 3.4.2020 klo 3.16 
Also a good one! I'll see what I can do next time I feel like it
Foxlike Creature 2.4.2020 klo 15.06 
Add a function for calculating the length of the shared route
Jacco  [tekijä] 2.4.2020 klo 14.16 
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.4.2020 klo 13.13 
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  [tekijä] 28.9.2019 klo 6.29 
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.9.2019 klo 21.20 
but does this only work on a ship i would like to see this on a plane with build in roll stabilizers
Jacco  [tekijä] 14.8.2019 klo 15.22 
Awesome! Can't wait to try it out
Jacco  [tekijä] 27.7.2019 klo 5.02 
Awesome! Let me know if/when you upload it to the workshop I'd love to see
aralmo 27.7.2019 klo 4.12 
Actually nevermind, i've remodelled my boat cockpit to fit a 5x3 angled screen, now it looks like a tesla :P
Jacco  [tekijä] 26.7.2019 klo 7.16 
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.7.2019 klo 7.14 
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.7.2019 klo 17.02 
Funny how great minds think alike :p
Jacco  [tekijä] 15.7.2019 klo 3.41 
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.7.2019 klo 1.21 
Saw your comment on Tajins controller - this one is much easier to use.
pkempf400 13.7.2019 klo 21.02 
Working great now. I need to check my copy - think one of the GPS X / Y labels has a misprint.
Jacco  [tekijä] 11.7.2019 klo 9.08 
Yeah I tested, and for me it doesn't add a new waypoint when inputting the same coordinates.
Jacco  [tekijä] 11.7.2019 klo 9.05 
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.7.2019 klo 8.57 
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  [tekijä] 11.7.2019 klo 8.48 
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.7.2019 klo 8.41 
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.7.2019 klo 8.30 
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  [tekijä] 10.7.2019 klo 8.47 
Added the ability to add waypoints from a keypad
Jacco  [tekijä] 10.7.2019 klo 7.01 
Found the problem, updated it now (:
Jacco  [tekijä] 10.7.2019 klo 6.59 
Ah yeah I see, that's weird. I'll look into it
Jacco  [tekijä] 10.7.2019 klo 6.06 
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.7.2019 klo 5.37 
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.7.2019 klo 4.58 
Well done - will check it out. I'll try the 0 distance toggle option to keep a waypoint.
Jacco  [tekijä] 9.7.2019 klo 12.46 
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  [tekijä] 9.7.2019 klo 10.59 
Ah! Had some succes! If all goes well I'll have seperated the code into three different LUA-blocks in a bit.
Jacco  [tekijä] 9.7.2019 klo 8.46 
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.7.2019 klo 8.38 
Wow, just looked at the code - you really have compressed the code. Nice use of function substitutions.
Jacco  [tekijä] 9.7.2019 klo 8.37 
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.7.2019 klo 8.34 
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  [tekijä] 9.7.2019 klo 6.50 
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.7.2019 klo 6.44 
Ok, had to quit stormworks and reload. Will take it for a spin an let you know :-)
pkempf400 9.7.2019 klo 6.41 
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.7.2019 klo 6.40 
I would've hoped so, but it's not showing the new input/outputs. I'll figure it out somehow.
Jacco  [tekijä] 9.7.2019 klo 6.38 
When restarting the game steam added something to the downloads about stormworks workshop content