Stormworks: Build and Rescue

Stormworks: Build and Rescue

Waypoint controller
68 条留言
Jacco  [作者] 2022 年 11 月 2 日 下午 1: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 2022 年 11 月 1 日 下午 3:50 
add a display of the distance to the end of the route
StraikeS Games TV 2022 年 11 月 1 日 下午 3:48 
I use your map in my designs. I really like it
OMFGitsST6 2020 年 12 月 15 日 上午 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  [作者] 2020 年 11 月 18 日 下午 2:39 
Oh sounds cool dude! Lmk when you're finished
esj94 2020 年 11 月 17 日 下午 1: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  [作者] 2020 年 11 月 17 日 上午 8:21 
Wish I could tell you, last time I looked at this was over a year ago :p
esj94 2020 年 11 月 17 日 上午 4:57 
What is oP1, oP2, and oP3 in your waypoint marker Lua code?
shark_has_crash 2020 年 5 月 21 日 下午 12:52 
thx
Jacco  [作者] 2020 年 5 月 21 日 上午 2:07 
Sure dude use whatever
shark_has_crash 2020 年 5 月 20 日 下午 3:20 
Jacco I'm working on a fully automatic plane system can I use your zoom bar?
Jacco  [作者] 2020 年 4 月 3 日 上午 3:16 
Also a good one! I'll see what I can do next time I feel like it
Foxlike Creature 2020 年 4 月 2 日 下午 3:06 
Add a function for calculating the length of the shared route
Jacco  [作者] 2020 年 4 月 2 日 下午 2: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 2020 年 4 月 2 日 下午 1: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  [作者] 2019 年 9 月 28 日 上午 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 2019 年 9 月 26 日 下午 9:20 
but does this only work on a ship i would like to see this on a plane with build in roll stabilizers
Jacco  [作者] 2019 年 8 月 14 日 下午 3:22 
Awesome! Can't wait to try it out
Jacco  [作者] 2019 年 7 月 27 日 上午 5:02 
Awesome! Let me know if/when you upload it to the workshop I'd love to see
aralmo 2019 年 7 月 27 日 上午 4:12 
Actually nevermind, i've remodelled my boat cockpit to fit a 5x3 angled screen, now it looks like a tesla :P
Jacco  [作者] 2019 年 7 月 26 日 上午 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 2019 年 7 月 26 日 上午 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 2019 年 7 月 15 日 下午 5:02 
Funny how great minds think alike :p
Jacco  [作者] 2019 年 7 月 15 日 上午 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 2019 年 7 月 15 日 上午 1:21 
Saw your comment on Tajins controller - this one is much easier to use.
pkempf400 2019 年 7 月 13 日 下午 9:02 
Working great now. I need to check my copy - think one of the GPS X / Y labels has a misprint.
Jacco  [作者] 2019 年 7 月 11 日 上午 9:08 
Yeah I tested, and for me it doesn't add a new waypoint when inputting the same coordinates.
Jacco  [作者] 2019 年 7 月 11 日 上午 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 2019 年 7 月 11 日 上午 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  [作者] 2019 年 7 月 11 日 上午 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 2019 年 7 月 11 日 上午 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 2019 年 7 月 11 日 上午 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  [作者] 2019 年 7 月 10 日 上午 8:47 
Added the ability to add waypoints from a keypad
Jacco  [作者] 2019 年 7 月 10 日 上午 7:01 
Found the problem, updated it now (:
Jacco  [作者] 2019 年 7 月 10 日 上午 6:59 
Ah yeah I see, that's weird. I'll look into it
Jacco  [作者] 2019 年 7 月 10 日 上午 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 2019 年 7 月 10 日 上午 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 2019 年 7 月 10 日 上午 4:58 
Well done - will check it out. I'll try the 0 distance toggle option to keep a waypoint.
Jacco  [作者] 2019 年 7 月 9 日 下午 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  [作者] 2019 年 7 月 9 日 上午 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  [作者] 2019 年 7 月 9 日 上午 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 2019 年 7 月 9 日 上午 8:38 
Wow, just looked at the code - you really have compressed the code. Nice use of function substitutions.
Jacco  [作者] 2019 年 7 月 9 日 上午 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 2019 年 7 月 9 日 上午 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  [作者] 2019 年 7 月 9 日 上午 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 2019 年 7 月 9 日 上午 6:44 
Ok, had to quit stormworks and reload. Will take it for a spin an let you know :-)
pkempf400 2019 年 7 月 9 日 上午 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 2019 年 7 月 9 日 上午 6:40 
I would've hoped so, but it's not showing the new input/outputs. I'll figure it out somehow.
Jacco  [作者] 2019 年 7 月 9 日 上午 6:38 
When restarting the game steam added something to the downloads about stormworks workshop content