Cosmoteer: Starship Architect & Commander

Cosmoteer: Starship Architect & Commander

53 ratings
Mining Autopilot
3
2
2
2
3
2
2
2
2
2
2
2
2
2
   
Award
Favorite
Favorited
Unfavorite
Tags: Mods
File Size
Posted
Updated
1.921 MB
17 Sep @ 9:16pm
18 Sep @ 3:47pm
3 Change Notes ( view )

Subscribe to download
Mining Autopilot

Description
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://gtm.steamproxy.vip/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
46 Comments
blackknight24 10 Oct @ 12:35pm 
that makes more sense. thanks for keepin up with it!
xceled  [author] 9 Oct @ 8:05pm 
@blackknight24 known bug, its actually not time-based, an issue with salvage command completion detection. Already on the fix-list.
blackknight24 8 Oct @ 5:04am 
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  [author] 6 Oct @ 8:18pm 
@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.
Cantusavem 5 Oct @ 9:35am 
idk if my ko fi thing went through since i used a gift card any who thanks for the work its been easier just letting my mine ship do its thing
Schira 5 Oct @ 7:33am 
Hab es getestet, aber irgend wie visirt er nur Asteroiden an fliegt ein wenig hin und visirt dann ein anderen an. Hab kleines Schif gemacht mit 16 Mann. Sollte nur Hyperion abbauen. Aber ausser einer Verwirten desorientirten KI gab es nichts Spektakuleres zu Sehen.
Ansonsten Coole Idee :) Hoffe auf Besserung

I tested it, but somehow it only targets asteroids. It flies there for a bit, then targets another one. I made a small ship with 16 crew members. It was only supposed to mine Hyperion. But other than a confused, disoriented AI, there was nothing spectacular to see.
Otherwise, cool idea :) Hope for improvement.
xceled  [author] 2 Oct @ 2:55am 
@jsdnewberry, probably in a few days to a week the next update should be out. I switched to an agentic swarm of AI agents that work together on solving problems so dev work is speeding up but had some growing pains to switch over to it.
jsdnewberry 1 Oct @ 7:27pm 
noticed the changes to the description. eagerly awaiting the next update! cant wait!
Funky 30 Sep @ 7:35pm 
@xceled thanks =)
xceled  [author] 29 Sep @ 10:58pm 
@Funky Thanks for the bug report, look for the next version release to see if your issue continues after that. if it does by that time there will be an external mod page where you can submit bug logs to help me triage your issue.