Stormworks: Build and Rescue

Stormworks: Build and Rescue

Zizo Autopilot System
63 Comments
Nabitz Sep 1 @ 4:11am 
put this is my race yacht and it performs great, holding its course very well in up to 100% wind (at 40-50 knots of boat speed) even if it was designed for cars lol
cjb Jul 11 @ 4:09am 
@kingdomain you can try my fix below from nov 16, it seems to work for me to at least stop the unrecoverable error.
Kingdominian Jul 10 @ 11:08am 
so i am running into the screen and code crashing on reload. Is there a settings or known fix or?
The Duke of Piperton Nov 26, 2024 @ 9:52pm 
i'm having the same issue as nfsplatinum - my craft drifts back and forth widely when on autopilot. turning the sensibility down fixes the issue somewhat, but tuning it low enough to do so makes the craft unable to turn sharply enough to follow waypoints or circles.
[GER] Talvkes Nov 18, 2024 @ 7:35am 
@cjb omg... yea...i'm such a dumbass...that was it for me xDD
cjb Nov 18, 2024 @ 6:55am 
@Talvkes did you hook the physics sensor to power?
[GER] Talvkes Nov 18, 2024 @ 2:05am 
I might be to dumb to set it up correctly...
The map shows that I'm just north of Sawyer Island, and I can't figure out what I've done wrong.
All logic seems to be connected right, and the sensor is pointing in the right direction too...

Any suggestions on what I've done wrong? :c
cjb Nov 17, 2024 @ 7:44pm 
It does seem like the 2nd fix is more reliable. If you had a waypoint active on save, then on load they're still cleared and the Stop Pulse is triggered. That could be bad for some craft, but probably better than the script being dead until the vehicle is respawned.

I haven't tested it with the circle waypoint, but I don't think it would cause any problems.
cjb Nov 16, 2024 @ 5:50pm 
Having only 4096 characters makes this exceptionally hard to debug.

I'm testing out a kind of brute force "fix"; on line 25 of the 2nd lua block, I just exit onTick if somehow the Waypoint list does not contain an entry for sl

if W[sl]== nil then return end

This seems like it _should_ be fine; or at least I can't think of any valid state that this would cause to break. It _just_ fits in the remaining space.
cjb Nov 16, 2024 @ 12:28pm 
@zizo No problem! Unfortunately it seems like it might not solve all the ways for it to happen.

As luck would have it, in all my tests, the change was effective but now I just loaded a save and hit the bug again. So there's probably some race conditions still. Maybe the fix just makes it less likely. If I find any other potential fixes, I'll pass them along.
Zizo  [author] Nov 16, 2024 @ 10:40am 
Hello @cjb, thanks for taking your time and suggesting that fix. I tested it and implemented it now.

@nfsplatinum, thanks for reporting the issue, I will look into it to provide a more effective sensibility setting.
cjb Nov 16, 2024 @ 9:16am 
Meant to add that it's around line 31 that the change is needed
cjb Nov 16, 2024 @ 9:15am 
@Youngnewf96 I've been running into that and today decided I was going to figure it out.

In the MC, on the bottom-most LUA script, it needs this line instead

if wcount == nil or wcount<2 and not pt then B[1].t=false B[2].t=false end

It means your waypoints are cleared after a save and load, but at least it doesn't break and you can set new waypoints.

@crazywoj it works fine for me
crazywoj Nov 6, 2024 @ 2:42pm 
i think the new update might have broken this :(
nfsplatinum Oct 24, 2024 @ 7:04pm 
This has been working great on just about every boat I've installed it on, however- there seems to be an issue, particularly with faster vessels where the autopilot seems to oscillate while trying to follow the path. No matter what value sensibility is set to it seems that it is overshooting the line it is set to follow when making corrections, again, no matter how low the setting is.
Youngnewf96 Aug 31, 2024 @ 3:44pm 
After loading save game I have blue screen on autopilot monitor.
Tick_Failure
26: attempt to index a nil value (Field '?' )
How can i fix it
Frank Aug 7, 2024 @ 1:27pm 
Anyway to combine this with your radar/sonar system? It would be sick to have an all in one screen
Keram Jul 15, 2024 @ 3:07am 
the car demonstration works but when i transfered all the tech on my ship, it thinks im in a conpletly different place
Keram Jul 15, 2024 @ 3:00am 
hey, the autopilot is confused where it is, it constantly says its at the career island even tho im far out in sea, does anyone know how to fix that?
9Three Jul 8, 2024 @ 1:58pm 
hello! nice autopilot... how can i adjust the radius? id like a smaller radius. thanks !
bartoszjankiewicz1987 May 30, 2024 @ 2:46am 
After loading save game I have blue screen on autopilot monitor.
Tick_Failure
26: attempt to index a nil value (Field '?' )
Jay May 28, 2024 @ 3:46pm 
i wish it could do auto throt so it can slow down for turns
Eira Fader May 22, 2024 @ 11:44am 
so out of curiosity what got updated
Tigerfish May 14, 2024 @ 7:22pm 
Ahhh, that's truly excellent work, Zizo. Thank you. Got it working perfectly. Love being able to navigate around rocks/islands etc when setting an autopilot.
Zizo  [author] May 14, 2024 @ 1:53pm 
Hello @Tigerfish, this comes as a vehicle, check in your workshop vehicles.
Tigerfish May 14, 2024 @ 1:52pm 
Hi Zizo. Just subscribed and restarted the game client (a couple of times) and I can't see the micro-controller listed within my game client. As it's just been updated, I thought I'd check there's no issues with it. Love your Fishfinder btw!
Zizo  [author] May 14, 2024 @ 9:47am 
Hello everyone, this microcontroller has been updated in favor of a more advanced guidance system. It nows follows the vector from the start position to the next waypoint rather than just following the next waypoint.
This allows for automatic leeway correction and more precise navigation in general.
byarmin Dec 27, 2023 @ 7:49am 
Hi Great controller. I put it in a small boat and was wondering where the default zoom is. The waypoint one works great but on a 1x1 monitor i can't see the starter island. Is there a chance you could put a property slider. I couldn't find the one in setup
TobaTronic Oct 24, 2023 @ 7:18am 
Really need a version to get to the moon and land at moon base.
__Timeskio :D Oct 8, 2023 @ 4:00am 
Jo Nice:steamhappy: Autopilot
Elite watermelon Sep 10, 2023 @ 12:17am 
Love you creations keep up the good work Has to be extremely complicated to do all that coding especially in storm works Respect
JackReaper290 Jun 4, 2023 @ 3:59pm 
Works good it is a little difficult to use when on the water due to the rocking but I don't mind considering how well this works. Only thing I would add is a manual zoom button.
SevenVII Mar 16, 2023 @ 12:56pm 
Can I use I for my Workshop creation? I give Credit an a link to this workshop Page
Zizo  [author] Dec 4, 2022 @ 8:23am 
Hello timtkdb, there is a sensibility setting for it in the microprocessor's properties. Hopefully with a little testing you can figure out the best setting for you.
timtkdb Dec 3, 2022 @ 8:47am 
when adding it to a car the wheels turn left and right vary fast
draconickingdom Oct 8, 2022 @ 9:57pm 
does this work for planes
Zizo  [author] Sep 22, 2022 @ 8:01am 
Hey ZX SNIPERZ13, the system has been updated several times since I took those screenshots. W is not to insert the final waypoint. Sorry about that.
ZX SNIPERZ13 Sep 21, 2022 @ 3:15pm 
how come i see no "T" just an M, W and A with arrows
Elite Hazard09 Sep 16, 2022 @ 7:10pm 
Ok, Thank you for the timely response!
Zizo  [author] Sep 16, 2022 @ 5:05am 
Hello Elite Hazard09, I don't think I ever will, the AIS is just a test for what could be done but has actually no useful purpose in stormworks, sorry.
Elite Hazard09 Sep 15, 2022 @ 9:02pm 
Hello Zizo, I was wondering if it was possible to combine the autopilot system and the Automated Identification System into one screen? If so then how would it be done?
Jalousimon Jul 25, 2022 @ 7:49am 
okay, thank you for your fast reply! I was just a bit confused... ^^
Zizo  [author] Jul 25, 2022 @ 7:46am 
Trim is not there anymore as the autopilot algorithm is better now, all the rest is the same, just updated ui to fit on smaller monitors.
Jalousimon Jul 25, 2022 @ 7:34am 
It looks like the one in your sea lizard.
Jalousimon Jul 25, 2022 @ 7:33am 
I don't get it. Why does my version of your autopilot look like the lite version? The trim option for example is missing nad the "auto" on the top right...
Mercenary Jul 23, 2022 @ 1:40pm 
Amazing Autopilot!!!!

Only.... How to change the speed of the rudder?! its.. yeah quick
Thank you in advance!
Mal Reynolds Apr 18, 2022 @ 7:10am 
Love the creation! currently using a vessel that has your script installed but everytime i relog or reload the save i come up to a error tick 41. how do i fix that?
Kronus Jan 23, 2022 @ 5:08am 
also, if the background (or the typos) of the word "auto" would change to green when the autopilot is engaged would give a better clue of when it is on or off.
Zizo  [author] Jan 23, 2022 @ 2:04am 
Hey Kronus, thanks for your feedback, I think the auto zoom does a pretty good job already, but I can add this option to further control the zoom.
Kronus Jan 22, 2022 @ 9:43am 
A pair of small + - buttons for zoom on the top bar would make it close to perfect.