Stationeers

Stationeers

评价数不足
Medium Satellite Correction
   
奖励
收藏
已收藏
取消收藏
文件大小
发表于
1.032 MB
8 月 2 日 下午 1:22
1 项改动说明 ( 查看 )

订阅以下载
Medium Satellite Correction

描述
This is a Plugin Mod.
It requires Bepinex to be installed with the StationeersLaunchPad plugin.
See: https://github.com/StationeersLaunchPad/StationeersLaunchPad

TL;DR
  1. Fixes medium dish not using the correct vertical angle
  2. Fixes wrong dish angle being used when checking angle to trader on game load.

This mod fixes the medium satellite dish vertical angle which as of 8/1/2025 has an offset between the dish's vertical setting and the resulting dish's vertical angle.
This error is negligable when at a vertical angle of 0, 45 and 90 degrees but is a lot more pronounced around 22.5 and 67.5 degrees where you have around 6-7 degrees of difference between the expected angle and the true angle of your dish!
While there is very little impact for the users using the computer to locate traders, if you want to automate it by triangulating the location of the ship then the difference in dish angle can throw your calculations off unless you compensate for it.
If you want to stay vanilla, you can always just figure out the difference for each angle and make two look up tables using the stack to convert both ways, but as someone who succeeded in doing that, it's a pain and I'd rather just scrap that part of my code and have this mod.

The mod fixes this in the Vertical and Horizontal setters of the dish by reading the angle of the resulting transform and rotating the DishTransform.up vector towards or away from the up axis by the difference between the wanted vertical angle and the resulting vertical angle.

The mod also attempts to fix the dish vector not reflecting the saved settings when the game loads. You can notice this bug in vanilla when you point the dish on a trader, save, reload.
Upon reload, the angle error reported will be calculated as if the dish is point directly upwards, if you move the dish by 1 degree, the game updates the dish vector to the new settings and fixes this.
The fix applied in this mod attaches itself to the function that derializes the save data and attempts to reconstruct the correct dish vector so it points towards the saved settings instead of upwards.

Repo: https://github.com/Vespinian/stationeers-mdc