mirror of
https://github.com/soarqin/DSP_Mods.git
synced 2026-11-19 17:05:20 +08:00
visual_uvel subtracted the unblended planet velocity. PlayerMove_Sail and PlayerNavigation.DetermineSailVelocity both fade that reference frame out with altitude and drop it entirely above 600 m, and PlayerController.UpdateRotation runs after the whole action loop and turns visual_uvel into the mecha heading and the speed readout, so the mecha visibly misaimed while sailing near a planet. Apply the same blend, and stop writing uRotation from the sail postfix, which the game recomputes immediately afterwards anyway. Fixed targets had no approach deceleration: the cruise always aimed at maxSailSpeed and simply stopped at the arrival radius. PlayerMove_Sail only hands over to PlayerMove_Fly below 75 m/s of planet-relative speed, so the mecha could never land. Cap the speed from the remaining distance, apply the brake directly as the original does instead of folding it into the turn interpolation (which weakened it by up to 1/t), and release warp early enough for that brake to settle, since the game's own warp guard only covers planets and never stars. Yield to the game's own autopilot: PlayerNavigation zeroes the movement input inside PlayerMove_Sail and PlayerMove_Fly and drives uVelocity itself, so both were fighting over the same state. AutoConstructPatch already did this. Guard SpaceSector.dfHives, which Init never allocates and Import only allocates when the save carries hive data; the game null-checks it everywhere for that reason and this ran on every sailing tick. Follow AutoCruiseEnabled with the Harmony patches so disabling the feature no longer leaves a transpiler on the hot PlayerController.GameTick installed, and require a resolvable target before starting so the feature cannot emit a started and a stopped popup in the same frame. Refresh the toggle button label wherever Checked is set directly, since MyCheckButton.Checked only updates the colours and the label lives on the OnChecked handlers; toggling by shortcut left it stale. Rename the user-facing strings to auto-cruise so they stop colliding with the game's own navigation feature, and clean up the region: fix the misspelled safety-radius constants, invert and rename the precondition helper, drop the unused Obstacle.Radius, raise the degenerate-vector epsilon, and convert the file's mixed tab indentation to spaces.