Stormworks: Build and Rescue

Stormworks: Build and Rescue

72 个评价
Zizo Autopilot System
2
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
更新日期
126.459 KB
2021 年 1 月 17 日 下午 3:42
2024 年 11 月 21 日 下午 1:02
26 项改动说明 ( 查看 )

订阅以下载
Zizo Autopilot System

描述
Map & Integrated Autopilot System for any type of vehicle with true vector following.

Features:
  • Autopilot follows the course rather than just heading to the next waypoint.
  • Circle path mode to navigate around fish hotspots or to use as search patterns.
  • No waypoints limit.
  • Pulse on/off output at arrival for your propulsion systems to stop.
  • Automatic zoom & movements.
  • ETA Display.
  • All monitor sizes compatible.
  • Multiple map designs.
  • Draws the trace you travelled.


Installation
Just save the microprocessor and install in your vehicles. Make sure the physics sensor is facing the correct way.

Setup
The microprocessor offers various customisations:
  • Manual steering: select the way your vehicle steers.
  • Default zoom: sets the map zoom when the autopilot is inactive.
  • Sensibility: decrease this value if the autopilot is steering too sharply.
  • Arrival distance: the distance in meters to the waypoint to consider reached. (50)
  • Tracing definition: meters interval for the tracing red dots. (100)
  • Tracing length: meters after which the tracing is being deleted (30000)

Usage
  • Switch on the display with your custom switch.
  • Onscreen controls:
    A: Toggle autopilot mode (at least one waypoint set).
    W: Sets the final waypoint, input by keyboard coordinates.
    • To add a waypoint, click on the line between two waypoints.
    • To remove a waypoint, first select it and then click on it again.
    • To move a waypoint, fist select it and then select where else it should be.
    • Use < and > buttons to move between waypoints.
    • Use "X" to delete currently selected waypoint.
    C: To enable before pressing "W". This turns the autopilot in circle mode, press "W" in circle mode to draw a circle around your waypoint the autopilot will follow endlessly. Circle mode can only be disabled after disengaging "W".
    • Use < and > buttons to increase or decrease the circle radius.
    M: Change the map coloration
  • Zoom is handled automatically

Credits:
Thanks to cjb for suggesting a fix to an issue.
63 条留言
Nabitz 9 月 1 日 上午 4:11 
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 7 月 11 日 上午 4:09 
@kingdomain you can try my fix below from nov 16, it seems to work for me to at least stop the unrecoverable error.
Kingdominian 7 月 10 日 上午 11:08 
so i am running into the screen and code crashing on reload. Is there a settings or known fix or?
The Duke of Piperton 2024 年 11 月 26 日 下午 9:52 
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 2024 年 11 月 18 日 上午 7:35 
@cjb omg... yea...i'm such a dumbass...that was it for me xDD
cjb 2024 年 11 月 18 日 上午 6:55 
@Talvkes did you hook the physics sensor to power?
[GER] Talvkes 2024 年 11 月 18 日 上午 2:05 
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 2024 年 11 月 17 日 下午 7:44 
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 2024 年 11 月 16 日 下午 5:50 
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 2024 年 11 月 16 日 下午 12:28 
@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.