Cosmoteer: 星舰设计师

Cosmoteer: 星舰设计师

67 个评价
Mining Autopilot
4
3
2
4
2
2
2
2
2
2
2
2
2
2
2
2
   
奖励
收藏
已收藏
取消收藏
标签: Mods
文件大小
发表于
更新日期
1.921 MB
9 月 17 日 下午 9:16
9 月 18 日 下午 3:47
3 项改动说明 ( 查看 )

订阅以下载
Mining Autopilot

描述
Mining Autopilot adds an in-game controller that lets you set up your ships to automatically mine nearby asteroids inside a circle you define. It integrates with Cosmoteer’s own Salvage/crew systems and stays out of your way.

Requirements
- Enhanced Mod Loader (EML): https://psteamcommunity.yuanyoumao.com/sharedfiles/filedetails/?id=3453984043
- Cosmoteer .NET 9 builds (tested working on v0.30.1b)

How To Use
1) Open the Mining Autopilot window (HUD): press Ctrl+Shift+M (toggle).
2) Select a ship (ideally with mining lasers, haven't tested other scenarios as much), toggle “Auto-Mine” on.
3) Click “Set Area” to place the center at the mouse; adjust the radius with the slider. If Auto-Mine is turned on and ship is inside the set area it will start mining.
4) Optional: configure asteroid types to mine (e.g., Iron, Copper) and pick an Offload target ship. The offload ship is used to auto-dump mining resources when the miner is full. Use “Offload Now” to transfer immediately. The offload ship must be in the green circle mining area.

Installation
- If you don't see the green miner button or the CTRL - SHIFT - M hotkey doesn't work, you likely didn't follow the EML mod loader installation instructions properly.

What It Does
- Picks targets automatically and moves to mine it, trying to avoid getting stuck in obstacles by changing the target if needed due to in-game pathing issues.
- Capacity-aware: if your ship has no capacity for the nearby asteroid mix, it keeps scanning/retargeting. Absolute full cancels mining and (if set) offloads.
- Area gating: new scans/targets only start when the miner is inside its configured circle.
- Approach unscanned: if valid targets are out of radar range but exist in the circle, it queues a short move toward the nearest unscanned rock to warm the cache.

Controls & UI
- Window: Ctrl+Shift+M toggles the Mining Autopilot window.
- Area: “Set Area” at cursor, radius slider 250–20000.
- Filters: pick asteroid resource types, per ship.
- Offload: select target ship, “Offload Now” to transfer immediately.
- Debug: Mainly for me to debug issues, which there are likely a bunch still.

Known issues
- Set Area & Radius controls don't seem to show the mining area overlay until you've used the mod once, saved, and (full) restarted the game. [Pending Investigation]
- Reports of multiplayer desync issues, not confirmed but current code rewrite in progress will ensure all commands are routing through only multi-player compatible commands to ensure there are no lingering issues here [In Progress]
- Performance issues, some users report lag spikes. Current code rewrite will focus heavily on performance pathways for high use code paths to ensure maximum performance, additional performance tuning settings will be exposed in settings so users can tweak the addon to use less processing per frame in exchange for slower miner reactivity [In Progress]

In Development
- Enemy awareness and engagement reaction modes: Flee (hyperjump), Ignore, Attack, Auto-Pause
- Asteroid Selection strategies, closest first, biggest first
- Range slider, improve granularity for smaller radius, easier to select reasonable size areas
- Open source, code is published and fully open source and instructions on open source page for how to submit bug reports with logs is added
- Logging improvement, log system gets a deep overhaul for rich insights into internal logic to improve bug report analysis and highlight performance issues with more accuracy
- Additional salvage modes, so that ship graveyard fields can be targeted by the miner. Collect free floating resources in radius if matching resource filters.
- Deeper testing of edge case bugs and non-fatal issues to polish mod further.

Notes
- Auto-miners have ZERO awareness of enemies, there is no logic to handle what happens if attacked by an enemy. Watch out! :D
- I generally use this in small areas or asteroid fields, I haven't tested how well it works if you make a giant mining area.
- Active development: this mod is under very active development, large codebase changes, and bug squashing. Expect bugs and occasional breaking changes while it gets stabilized; feedback welcome but support bandwidth is limited or in some cases non-existant. Feel free to report bugs but without reproducible steps or logs I probably won't be able to do much.
- Due to the nature of how this mod works, it is very likely updates will break this mod. Update the game at your own risk.
- Due to how this mod works, it can be added or removed from a game at any time and should have zero risk from doing so as it stores no state, adds no custom ship parts.
- Minimal testing has been done regarding interactions with other mods, it may not work properly with mods that add new resources.

Buy Me a Coffee: https://ko-fi.com/xceled
52 条留言
Drakengard2099 11 月 1 日 下午 2:30 
Please update this mod for the current version of the game.
Funky 10 月 30 日 下午 3:33 
Has this been updated?
Stormbox 10 月 26 日 上午 7:23 
I agree with @relliken. :lunar2024dragoninablanket:
A very good foundation for an automatic mod, especially for mining.
Just requires lots of fine tuning, especially on how it handles the logic to whereas it will not interrupt normal gameplay due to "stutters/lag". Alongside a few QoL changes.

Only used this mod briefly, it was worked as intended. But as mentioned earlier, the stutter/lag just ruins it for me. :scWitch:
relliken 10 月 20 日 下午 10:27 
if you fix these, this mod will easly become a massive QOL and a must have for any playthru

PS: i love the idea of this mod and look forward to seeing it and using it when its 100% working
relliken 10 月 20 日 下午 10:27 
i got the mod to work BUT
this leaves alot of minerals left behind and lags the **** out of the game during scan and is hyper aggressive with its order updates during mining.

problem details-
1: it will re-select a asteroid for mining thats already being mind deselecting minerals marked for collection in the process. This leaves piles of minerals behind.....
2: when it scans and relocates to another asteroid it scans mid flight and relocates again

potential solutions-
for 1 i suggest have it check if crew are absent from the ship and have it not update orders if so
that way it doesn't scan again and leave a field that its still collecting from.
this would also reduce the number of load spikes the mod has from having 10 - 200+ order updates per asteroid (depending on size and/or mining speed)

for 2 increase its wait time between order updates to reduce re-scanning when its already heading to another asteroid
^
you could also make this a setting in your UI
[insert name here] 10 月 19 日 上午 8:59 
for some reasion it won't work, the menu dose not pop up
blackknight24 10 月 10 日 下午 12:35 
that makes more sense. thanks for keepin up with it!
xceled  [作者] 10 月 9 日 下午 8:05 
@blackknight24 known bug, its actually not time-based, an issue with salvage command completion detection. Already on the fix-list.
blackknight24 10 月 8 日 上午 5:04 
The time between switching targets needs to be increased, my ships dont get the chance to load all the minerals before they're off to the next asteroid.
xceled  [作者] 10 月 6 日 下午 8:18 
@Schira Thanks for the feedback, lookout for a new version soon and if you are still running into issues then it will have built-in support for extracting logs to share with me for bug-fixing.