Skip to content

Add experimental occupied mining-node ship inspection - #382

Open
jynottheguy wants to merge 5 commits into
STFC-Mod:mainfrom
MorbidKittyLabs:feature/occupied-miner-inspection
Open

jynottheguy wants to merge 5 commits into
STFC-Mod:mainfrom
MorbidKittyLabs:feature/occupied-miner-inspection

Conversation

@jynottheguy

Copy link
Copy Markdown

No description provided.

@jynottheguy
jynottheguy deleted the feature/occupied-miner-inspection branch November 16, 2026 09:35
@jynottheguy
jynottheguy restored the feature/occupied-miner-inspection branch November 16, 2026 09:37
@jynottheguy jynottheguy reopened this Nov 16, 2026
@netniV

netniV commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

I feel like this is missing something. There is show_info_pending in your code, but this doesn't even exist?

@netniV

netniV commented Nov 30, 2026

Copy link
Copy Markdown
Collaborator

There should not be a need for the new methods, I'll investigate later whether this can be adjusted to meet the 1.2.x style of coding.

@jynottheguy

Copy link
Copy Markdown
Author

Thanks for taking a look at this.

The working version had already been completed; I just hadn't reposted the finished implementation here yet. The PR's source branch is now updated with the complete cycle:

Mining-node information → occupying ship loot → ship strength → original mining-node information.

The return-to-node step now works by saving the original node's POI ID and navigation address before selecting the occupying ship, then restoring that original node on the third ActionView press.

The original extract was incomplete. The missing navigation bindings and checked invocation support are now included. The earlier GetId64() wrapper is no longer needed and has been removed.

Regarding show_info_pending: it existed in the original main baseline, commit 8b7013e, in mods/src/patches/parts/hotkeys.cc at line 76. In the newer dev implementation, the corresponding cargo-display state is show_cargo_frames. The completed occupied-node handler no longer depends on that old counter.

The complete cycle is working locally, and the Windows build and regression checks passed.

I appreciate the feedback about avoiding unnecessary methods and following the 1.2.x coding style. This update supplies the working implementation against the PR's existing main base; adjustments to fit the 1.2.x conventions are still welcome during review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants