Rework the galaxy scanner's lists (scanner overhaul, stages 1 to 5) #4

Manually merged
alex19EP merged 25 commits from oasis1701/StellarisAccess:feat/scanner-systems into main 2026-11-27 02:17:16 +03:00
Contributor

The galaxy scanner now lists what a sighted player finds by panning the map, read from game data wherever the camera is, and each category answers one need. I planned it with Claude one decision at a time. docs/plans/scanner-overhaul.md is the design, and scanner-overhaul-stage1.md to scanner-overhaul-stage5.md hold each part's engine facts with their listings, its decisions and its build steps.

Changes for the player

  • Systems has My Systems, Bordering Systems, Unclaimed Systems and All Systems, in that order, and Known Systems is gone. Bordering Systems takes in other empires' systems next to the player's, and the far ends of the player's wormholes and gateways ("Dahlberg, Natural Wormhole from Kappler, not usable").
  • A system entry says the owner as the player knows it, "unsurveyed" and the intel level, then after a full stop what the system's map icon shows. That covers colonizable planets, anomalies, special projects, resources, bypasses, hostile intel, stations, fleets, capitals, claims, FTL inhibitors, logistics hubs, first contacts, contracts and espionage operations. Energy, minerals, food, research, trade and alloys come last, and scanner_common_resources = off in settings.ini leaves them out.
  • My Fleets entries say where the fleet is, what it is doing, the days to arrival and the queued orders. Starbases say their level, and the player's own say "Shipyard" when they have one.
  • My Planets is new and lists the player's colonies with the outliner's words.
  • Fleets at systems is now Other Fleets. It lists other empires' fleets one by one with their power and hull, by relation and by empire. Other Planets is new and lists other countries' colonies.
  • Empires is now Empire Systems and also lists empires the player has seen but not contacted.
  • Home on the galaxy map says only "Cursor placed on Home Guard at Uiafladus system".
  • On the End list a station part says its tooltip's first line alone.
  • A setting missing from an existing settings.ini is added at startup.

docs/testing-guide.md describes the result. The lane dial is unchanged.

Decisions

Every keyboard and speech decision is mine. The plans date each one as "user" and mark the calls Claude made without me as "my call".

One decision reverses an entry of 2026-10-26. Starbases, Observation posts and Other Fleets no longer list only what is on screen, as docs/plans/scanner-pointer.md had it.

Your locked "an All Systems category" is still there, as the last subcategory of Systems. I took it out during the work, because in my save 565 of its 597 entries were systems under the fog, which the game does not draw, and the new lists hold every charted system. I don't find it useful, but I put the same list back in case you want it, with the system entry words every other list now has. The general log tallies the charted systems by the list that holds them, leaving All Systems out. On that save it gave 22 of the player's, 9 unclaimed and 1 of another empire, 32 in all, with none missing.

Building it

Like #3, the branch commits its manifest entries without regenerated tables, so it does not build as committed. It adds 79 [[function]] entries, 9 [[global_slot]] entries and 110 hand constants, and src/engine/deps_generated.{hpp,cpp} are main's. Please run:

just regen-addrs-manual-matches pdb
just regen-addrs
just regen-sigs
just check-locate
just build

The first line puts the three new pairs in manual_pdb_vt_matches.json into the pdb session; without it those three entries come out zero. Our local builds made only the Steam column (generate.py --primary-only, with the three pairs added to a copy of vt_matches_pdb.json), so no GOG address has been looked at. Seven entries carry a gog_override, each the v4.5.2 address of a name the resolver cannot pin, which is an overload, a template or a function in an anonymous namespace.

resolver.py gains one rule. A leading :: in a manifest name matches the global namespace only, which tells the free function ::ShouldShowIconForFleet from a member of the same name. docs/dev/address-tables.md notes it.

llvm-pdbutil was not available on this machine, so gen_calls.py, just regen-offsets and just regen-vtable-slots could not run. New calls go through typed function pointers with the prototype and listing cited. Several hand constants name members the PDB has (_bShouldDisplayShield, _Starbases, _PrecalcFTLMagnetPresence, _PrecalcFTLInhibitorPresence, _Claims) and could be generated instead. CPlanet::HasFTLInhibitor is reached only through its vtable and has no table entry, so its flag is read as a field.

Points to check on v4.6.0

  • 85 of the 88 entries resolve through vt_matches_pdb.json. CFleet_GetFleetIconType, ShouldShowIconForFleetAtIntel and CGalacticObjectMapIconObservationItem_GetToolTip have no exact match, so they are in manual_pdb_vt_matches.json, each with its evidence.
  • 38 hand-declared offsets moved in v4.6.0, and each has its v4.5.2 value as old. kOff_CStrategicResource_Dropped is new in v4.6.0 and has no v4.5.2 witness.
  • Three comments say UNVERIFIED. Two are in map_system_contacts.cpp, one assuming that the tooltips' localiser shows a missing key as the key and one that the null mission category's key is empty. The third, in map_system_items.cpp, is what the byte at +0x71 of a strategic resource means.
  • The entry strides, the mission status range and the stand-in sizes in map_system_contacts are kSize_* and plain constants, which gen_deps.py does not track, as in the sibling units.

Gate reach

core is unchanged at 102 facts, and so is every gate but three. system_scanner grows from 168 to 377 facts, because the eight new engine/map_* units belong to it (gates.toml). hud grows from 332 to 395 and map_pointer from 161 to 224, because Enter, Ctrl+A and Space on the map reach the scanner's lists. Both gain the same 64 facts and lose CStarFleetEntry_OnClick, since no list has made a fleet group click since part 5b. Each plan gives the reach of its parts.

Testing

I heard stages 2 to 4 and parts 5b and 5d in play on Steam v4.5.4 between 2026-11-18 and 2026-11-22, and each plan records the lines heard. Stage 1 has been part of every session since 2026-11-18, but its own hand test was not written up.

On v4.6.0 the code has had one muted run in a new game over the dev harness. The log showed SteamV460, the locator's self-test agreeing on every table field, no gate off and no FAULT. Every category a new game has read as before ("Sol. capital, Starport, own Military Ship, own Science Ship, own Construction Ship, 23 Energy Credits, 23 Minerals, 8 Engineering Research"). That run caught one inverted check, the byte at +0x71, which was fixed and read again. Saves from v4.5.4 do not load on v4.6.0, and a new game does not reach other empires' fleets, colonies and systems, first contacts, contracts, espionage operations, claims, FTL inhibitors and magnets, archaeological sites, astral rifts, megastructures, wormholes, gateways or special projects. The v4.6.0 offsets behind those were checked in the code only.

Four parts have not been heard at all. Part 5a needs a wormhole or gateway in one of the player's systems, part 5c needs another country's colony in a charted system, the End list's station words have not come up, and All Systems came back on 2026-11-26 and is installed but not yet heard. The Scanner row of NEXT_STEPS.md lists what each stage has not met yet.

Left for later

  • mo::icon_click in engine/map_objects has had no caller since stage 4d.
  • mo::icon_right_click still handles an on-screen fleet group, which no list has made since part 5b.
  • map_stations::frames_of does not compare the fleet's id after the lookup, though the engine does (Steam v4.5.4 0x14162f177). kOff_CFleet_ID already reaches the gates that call it, so the compare would add no fact.
  • The observation post branch of map_stations::station_tooltip returns an empty pair when its tooltip builds nothing, so it does not fall back.
  • Fleets in transit names its owner subcategories through map_modes::country, which does not compare the id after the lookup. Other Fleets uses map_fleets::foreign_fleet_owner_name, which does.
  • Two empires that are both "Unidentified Empire" cannot be told apart.
  • The lane dial's own fixes (its words for a fleet with no communications, for resources and for three station tags) stay outside this PR, as I decided.

🤖 Generated with Claude Code

https://claude.ai/code/session_01EZNZEictKLyw4wZc9sqfRZ

The galaxy scanner now lists what a sighted player finds by panning the map, read from game data wherever the camera is, and each category answers one need. I planned it with Claude one decision at a time. `docs/plans/scanner-overhaul.md` is the design, and `scanner-overhaul-stage1.md` to `scanner-overhaul-stage5.md` hold each part's engine facts with their listings, its decisions and its build steps. ## Changes for the player - Systems has My Systems, Bordering Systems, Unclaimed Systems and All Systems, in that order, and Known Systems is gone. Bordering Systems takes in other empires' systems next to the player's, and the far ends of the player's wormholes and gateways ("Dahlberg, Natural Wormhole from Kappler, not usable"). - A system entry says the owner as the player knows it, "unsurveyed" and the intel level, then after a full stop what the system's map icon shows. That covers colonizable planets, anomalies, special projects, resources, bypasses, hostile intel, stations, fleets, capitals, claims, FTL inhibitors, logistics hubs, first contacts, contracts and espionage operations. Energy, minerals, food, research, trade and alloys come last, and `scanner_common_resources = off` in `settings.ini` leaves them out. - My Fleets entries say where the fleet is, what it is doing, the days to arrival and the queued orders. Starbases say their level, and the player's own say "Shipyard" when they have one. - My Planets is new and lists the player's colonies with the outliner's words. - Fleets at systems is now Other Fleets. It lists other empires' fleets one by one with their power and hull, by relation and by empire. Other Planets is new and lists other countries' colonies. - Empires is now Empire Systems and also lists empires the player has seen but not contacted. - Home on the galaxy map says only "Cursor placed on Home Guard at Uiafladus system". - On the End list a station part says its tooltip's first line alone. - A setting missing from an existing `settings.ini` is added at startup. `docs/testing-guide.md` describes the result. The lane dial is unchanged. ## Decisions Every keyboard and speech decision is mine. The plans date each one as "user" and mark the calls Claude made without me as "my call". One decision reverses an entry of 2026-10-26. Starbases, Observation posts and Other Fleets no longer list only what is on screen, as `docs/plans/scanner-pointer.md` had it. Your locked "an All Systems category" is still there, as the last subcategory of Systems. I took it out during the work, because in my save 565 of its 597 entries were systems under the fog, which the game does not draw, and the new lists hold every charted system. I don't find it useful, but I put the same list back in case you want it, with the system entry words every other list now has. The general log tallies the charted systems by the list that holds them, leaving All Systems out. On that save it gave 22 of the player's, 9 unclaimed and 1 of another empire, 32 in all, with none missing. ## Building it Like #3, the branch commits its manifest entries without regenerated tables, so it does not build as committed. It adds 79 `[[function]]` entries, 9 `[[global_slot]]` entries and 110 hand constants, and `src/engine/deps_generated.{hpp,cpp}` are main's. Please run: ``` just regen-addrs-manual-matches pdb just regen-addrs just regen-sigs just check-locate just build ``` The first line puts the three new pairs in `manual_pdb_vt_matches.json` into the pdb session; without it those three entries come out zero. Our local builds made only the Steam column (`generate.py --primary-only`, with the three pairs added to a copy of `vt_matches_pdb.json`), so no GOG address has been looked at. Seven entries carry a `gog_override`, each the v4.5.2 address of a name the resolver cannot pin, which is an overload, a template or a function in an anonymous namespace. `resolver.py` gains one rule. A leading `::` in a manifest name matches the global namespace only, which tells the free function `::ShouldShowIconForFleet` from a member of the same name. `docs/dev/address-tables.md` notes it. `llvm-pdbutil` was not available on this machine, so `gen_calls.py`, `just regen-offsets` and `just regen-vtable-slots` could not run. New calls go through typed function pointers with the prototype and listing cited. Several hand constants name members the PDB has (`_bShouldDisplayShield`, `_Starbases`, `_PrecalcFTLMagnetPresence`, `_PrecalcFTLInhibitorPresence`, `_Claims`) and could be generated instead. `CPlanet::HasFTLInhibitor` is reached only through its vtable and has no table entry, so its flag is read as a field. ## Points to check on v4.6.0 - 85 of the 88 entries resolve through `vt_matches_pdb.json`. `CFleet_GetFleetIconType`, `ShouldShowIconForFleetAtIntel` and `CGalacticObjectMapIconObservationItem_GetToolTip` have no exact match, so they are in `manual_pdb_vt_matches.json`, each with its evidence. - 38 hand-declared offsets moved in v4.6.0, and each has its v4.5.2 value as `old`. `kOff_CStrategicResource_Dropped` is new in v4.6.0 and has no v4.5.2 witness. - Three comments say UNVERIFIED. Two are in `map_system_contacts.cpp`, one assuming that the tooltips' localiser shows a missing key as the key and one that the null mission category's key is empty. The third, in `map_system_items.cpp`, is what the byte at +0x71 of a strategic resource means. - The entry strides, the mission status range and the stand-in sizes in `map_system_contacts` are `kSize_*` and plain constants, which `gen_deps.py` does not track, as in the sibling units. ## Gate reach `core` is unchanged at 102 facts, and so is every gate but three. `system_scanner` grows from 168 to 377 facts, because the eight new `engine/map_*` units belong to it (`gates.toml`). `hud` grows from 332 to 395 and `map_pointer` from 161 to 224, because Enter, Ctrl+A and Space on the map reach the scanner's lists. Both gain the same 64 facts and lose `CStarFleetEntry_OnClick`, since no list has made a fleet group click since part 5b. Each plan gives the reach of its parts. ## Testing I heard stages 2 to 4 and parts 5b and 5d in play on Steam v4.5.4 between 2026-11-18 and 2026-11-22, and each plan records the lines heard. Stage 1 has been part of every session since 2026-11-18, but its own hand test was not written up. On v4.6.0 the code has had one muted run in a new game over the dev harness. The log showed SteamV460, the locator's self-test agreeing on every table field, no gate off and no `FAULT`. Every category a new game has read as before ("Sol. capital, Starport, own Military Ship, own Science Ship, own Construction Ship, 23 Energy Credits, 23 Minerals, 8 Engineering Research"). That run caught one inverted check, the byte at +0x71, which was fixed and read again. Saves from v4.5.4 do not load on v4.6.0, and a new game does not reach other empires' fleets, colonies and systems, first contacts, contracts, espionage operations, claims, FTL inhibitors and magnets, archaeological sites, astral rifts, megastructures, wormholes, gateways or special projects. The v4.6.0 offsets behind those were checked in the code only. Four parts have not been heard at all. Part 5a needs a wormhole or gateway in one of the player's systems, part 5c needs another country's colony in a charted system, the End list's station words have not come up, and All Systems came back on 2026-11-26 and is installed but not yet heard. The Scanner row of `NEXT_STEPS.md` lists what each stage has not met yet. ## Left for later - `mo::icon_click` in `engine/map_objects` has had no caller since stage 4d. - `mo::icon_right_click` still handles an on-screen fleet group, which no list has made since part 5b. - `map_stations::frames_of` does not compare the fleet's id after the lookup, though the engine does (Steam v4.5.4 0x14162f177). `kOff_CFleet_ID` already reaches the gates that call it, so the compare would add no fact. - The observation post branch of `map_stations::station_tooltip` returns an empty pair when its tooltip builds nothing, so it does not fall back. - Fleets in transit names its owner subcategories through `map_modes::country`, which does not compare the id after the lookup. Other Fleets uses `map_fleets::foreign_fleet_owner_name`, which does. - Two empires that are both "Unidentified Empire" cannot be told apart. - The lane dial's own fixes (its words for a fleet with no communications, for resources and for three station tags) stay outside this PR, as I decided. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01EZNZEictKLyw4wZc9sqfRZ
The user's design for reworking the galaxy scanner so each list answers
one need. It records every decision taken on 2026-11-18 (the Systems
category, fleet and starbase entries, My Planets, Other Planets, Empire
Systems), the engine leads found for each part, still unverified, and the
build order as four stages in one PR.

Local commit to keep the plan safe until the PR. Not pushed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEjGz1oNfyQAMbMTaRP
Systems loses All Systems and Known Systems; in the user's save 565 of
All Systems' 597 entries were systems under the fog. It gains Unclaimed
Systems, every charted system nobody owns, and Bordering Systems, the
charted systems one hyperlane from one of the player's.

A galaxy system entry now says its owner as the player knows it, the map
mode's reading for an owner the player has communications with,
"unsurveyed" and the intel level. My Systems leaves out the owner and the
intel level, and a system under the fog names no owner.

Empires becomes Empire Systems and also lists empires the player has seen
but not contacted. map_modes::reading returns nothing for an owner
without communications, as the game's own hover does
(CInGameIdler::BuildToolTip, Steam v4.5.4 0x140933f30).

Fleets at systems becomes Other Fleets. The player's own groups are left
out, and each relation on screen gets a subcategory under the game's
heading. My Fleets entries say where the fleet is, and Starbases entries
say the starbase's level.

The general log gets a tally of the charted systems by the list that
holds them.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
A My Fleets entry now ends with the fleet view's own order lines, worded
as the design decided: "CNS Ambassador, Lane, west, 48, 2 jumps. Moving
to the Altair System, 205 days, +2 Orders". The text comes from
NGuiUtil::BuildOrderStrings, the function the fleet view calls; the days
and the order count are cut out with the game's ETA and
FLEETORDER_TOP_LEVEL_TEXT templates, and a line they do not fit is said
whole.

A starbase of the player's that can build ships says "Shipyard" after its
level, from CStarbase::CanBuildShips on the starbase the system icon
reads.

The manifest also gains the entries stage 2b needs to list starbases and
observation posts without the camera. The address resolver learns a
leading "::" for a name in the global namespace only, because the free
ShouldShowIconForFleet shares its name with a CFleetMapIcon member. The
generated tables are left for the owner to regenerate, since only the
Steam column was produced here.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
The Starbases and Observation posts categories read the map's system icons,
which the engine builds only for the camera view, so in the user's save
Starbases found 2 of their starbases. engine/map_stations now works the
same lists out from game data with the icon's own rules (UpdateStations,
StarbaseItem::UpdateWithData): a fleet whose icon frame is 8 or 0xd that
ShouldShowIconForFleet passes at the player's intel, and for a starbase,
its level drawn on the map or its owner's colony in the system.

Enter, Backspace and Space run the items' own OnClick, OnRightClick and
GetToolTip on a stand-in item, since the listings show they read only the
starbase id or the observation post's system from it. Every starbase read
checks the rule again first, because GetValidPrimaryOrControlledStarbase
reads the system's first starbase without a size check. The Shipyard test
moves into the same unit, and the on-screen lists in map_objects and the
icon-based level in map_parts go.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
A foreign starbase or observation post that the scanner lists but the map
does not draw cannot be told by ear. map_stations::log_station_check
compares both lists with the station items the system icons on screen
actually show (map_objects::shown_station_items, icons whose stations box
is shown) and logs when the result changes, alongside the scanner's
coverage line.

The stage 2 plan records the hand test: fleet order words, Deneb's
Shipyard, five starbases wherever the camera is, and Enter on an
off-screen starbase opening it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
A new galaxy category, My Planets, after My Fleets, lists the colonies the
outliner's Planets group lists, nearest first and grouped by the player's
sectors. An entry gives the name and system, the place from the map cursor,
then after a full stop what the colony's outliner row shows, for example
"Unity, Deneb, west, 103, 5 jumps. Sector Capital, Empire Capital,
Continental World, Building Slots Available, Excess Denizens, Governor
level 4". Space reads the colony's tooltip and Enter selects the planet, as a
click on the row does.

The outliner builds a row only while it is open and on screen, so the new
engine/map_colonies unit calls the engine functions the row calls for the
warnings, the status strip (the row's own status check and status tooltip),
the designation, the governor's level, the habitat level and the founding
progress. It is in the system_scanner gate; core is unchanged.

A review also found that engine_fn turned a zero table entry into a garbage
pointer (resolve(0) is not null). It now gives nullptr in map_colonies,
map_stations and the scanner, and the ship and colony databases are checked
before resolve_ref.

The manifest entries come without generated tables, as in PR #3. Engine
facts and listings are in docs/plans/scanner-overhaul-stage3.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Every system entry on the galaxy map now ends, after a full stop, with what
the system's map icon would show, in the lane dial's order and words. Part
4a covers colonizable planets, anomalies and special projects, for example
"Zimtauri, unsurveyed, Intel High, north-west, 71, 4 jumps. 3 colonizable
planets, Anomalies".

The engine builds map icons only for systems in the camera view, so the new
engine/map_system_items unit asks the icon's own parts about any system. It
runs the colonizable planets worker on a stand-in icon that is told the
system is hovered, so it counts every planet the icon marks on hover. It
asks CPlanet::HasAnomaly of each body, as the anomalies icon does. It
collects the system's special projects with the icon's own function and
tests, and takes their words from the icon's tooltip on a stand-in. The
engine fills two arrays for these calls. Each is sized first so that the
engine never grows it, and its vtable slots do nothing, so the engine never
frees a buffer of ours.

A log line compares the items with the system icons on screen when an entry
is spoken. The unit is in the system_scanner gate; core, hud and
map_pointer are unchanged.

The manifest entries come without generated tables, as in PR #3. Engine
facts and listings are in docs/plans/scanner-overhaul-stage4.md, and
docs/dev/engine/map.md has the icon facts. The stage 3 hand test results
and its unheard items are in this commit too.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
System entries now also say, after part 4a's items and in the lane dial's
order, the system's wormholes, gateways and other bypasses, its resources,
and "Hostile Intel", wherever the camera is. For example "Zimtauri,
unsurveyed, Intel High, north-west, 71, 4 jumps. 1 colonizable planet,
Wormhole, 4 Rare Crystals, Hostile Intel".

Bypasses follow the bypass box's rules (the nameplate, intel Medium, a
relay with an active connection left out, a dimensional lock entry for a
locked bypass) and take their words from each entry's own tooltip, run on a
stand-in. Resources come from CGalacticObject::ListResourcesForMapmode into
three tables sized to the resource database, every deposit counted as on
hover, energy, minerals, food and the three research kinds left out; the
line is the game's UNCLAIMED_RESOURCES with the system's total, cut as the
dial cuts it. Hostile intel follows UpdateIntel's three tests.

The starbase and observation post lists now ask
ShouldDisplayNameForCountry, the name plate's last condition, which was
UNVERIFIED there. That one function reaches the hud and map_pointer gates;
everything else stays in system_scanner, and core is unchanged.

The manifest entries come without generated tables, as in PR #3. Engine
facts and listings are in docs/plans/scanner-overhaul-stage4.md and
docs/dev/engine/map.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
System entries now also say what the stations box of the system's map icon
would show, between special projects and bypasses, wherever the camera is.
That is the starbase ("Starport", "colony"), observation posts, other
empires' stations ("Military Station"), enclave stations, megastructures
and the Shroud Seal, pre-FTL civilizations, waystations, dig sites, and
astral and crystal rifts, in the game's build order for a fresh box. For
example "Rigel. Citadel, Observation Post, Military Station, Archaeological
Site, finished".

The items follow UpdateStations' rules, ported from the listing. The
Details filter counts as on, so a finished dig site and a finished or
aborted rift are said too, with "finished" or "aborted" after them. A rift
item is said when the map would show it with Details either off or on,
because with Details on the map hides an open astral rift once a finished
crystal rift is marked. The generic items take their words from
GetStationIconTooltip run on a stand-in icon and widget, the waystation
from its item's own tooltip, and the starbase from the dial's rule, now
shared as map_parts::starbase_item_words. The log check also compares the
station tags of the icons on screen.

Only the system_scanner gate grows; core, hud and map_pointer are
unchanged.

The manifest entries come without generated tables, as in PR #3. Engine
facts and listings are in docs/plans/scanner-overhaul-stage4.md and
docs/dev/engine/map.md. The plan also carries the part 4b hand-test notes
and the decision to keep "0" for a resource total under one.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Other Fleets no longer lists only the fleet groups of the icons in the
camera view. It works them out for every charted system with the rule of
the map's fleets box (UpdateSystemFleets), so a group is listed wherever
the camera is, and only when the map would draw it. Enter, the Application
key and Space run the group's own click, right click and tooltip on a
stand-in entry, so they work off screen too. An empty list says "No Other
Fleets known."

System entries also say their fleet icons, between bypasses and resources,
in the dial's words and the box's order, the player's own included and one
word per icon (user, 2026-11-20). For example "Rigel. own Science Ship,
hostile Military Ship, 2 Zro".

The rule is ported from the listing and calls the engine's own tests
(CCountry::CanSee, CFleet::CanHideFrom, NIntelUtil::IsIntelAvailable,
CGameRules::CanForceSeeFleetsInSystem); the zoom test is left out. Groups
follow the box's key, which is relation and icon type, each named by its
last fleet's ship class, so an empire without communications shows one
group per relation. The log check also compares the fleet groups of the
icons on screen, and now logs a mismatch only when two checks in a row
see it.

core is unchanged. hud and map_pointer gain 16 facts each, because Enter
and Ctrl+A on the map rebuild the lists and run the clicks; system_scanner
gains 14.

The manifest entries come without generated tables, as in PR #3. Engine
facts and listings are in docs/plans/scanner-overhaul-stage4.md and
docs/dev/engine/map.md. The commit also carries the part 4c hand-test
notes and the decision on the End list's station words.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
System entries now also say the owner shield's form, every empire's claims,
the FTL inhibitor and the logistics hub. They are worked out from game data
with the rules of the map icon (CGalacticObjectMapIcon::SetUpData,
UpdateOwner, UpdateMagnet, UpdateInhibitor, and the hub inline in Update)
and of the claims editor's hover (BuildClaimsToolTip). Map mode, filters and
zoom are left out, as in the earlier parts (user, 2026-11-20).

In the dial's order (user, 2026-11-20), the entry first says "capital",
"sector capital", "occupied", "occupied capital" or "occupied sector
capital". After hostile intel it says "claimed by you, Kel-Azaan Republic"
(every claimant, strongest first, no counts), then "hostile FTL Inhibitor",
"friendly FTL Inhibitor" or "FTL Inhibitor" from the icon's frame, then
"Logistics Hub". For example "Sol, Intel Full, north, 35, 2 jumps. Capital,
2 colonizable planets, Citadel, claimed by Tzynn Empire, Logistics Hub".

A system at intel NONE now says no item at all, because the game draws no
icon for it (ShouldShowIconForGalacticObject). Before, only the fleets had
that test.

The code is a new unit, engine/map_system_marks, in the system_scanner
gate. It calls the engine's own tests (ShouldDisplayOccupation, the icon's
IsCapital and IsSectorCapital on a stand-in update data,
HasPlayerCommunicationsWith, IsHostile, IsHostileCached, IsAllied,
FindWaystation, RemoteNetworkResourceCollection). A planet's FTL inhibitor
flag is read as a field, because CPlanet::HasFTLInhibitor is reached only
through the vtable and has no table entry; adding a slot for it needs
llvm-pdbutil. The log check also compares the capital, occupied, FTL and
logistics hub icons on screen.

core, hud and map_pointer are unchanged. system_scanner gains 24 facts
(10 table entries, 14 hand constants).

The manifest entries come without generated tables, as in PR #3. Engine
facts, listings, decisions and the review are in
docs/plans/scanner-overhaul-stage4.md. The commit also carries the part 4d
hand-test notes and the part 4e survey and decisions.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
System entries now also say what the map icon's contacts and operations
boxes would show. After the logistics hub come the first contacts
("First contact with Unidentified Signal"), the nomad contracts by kind
("Military Contract") and the espionage operations with their category in
front ("Subterfuge Espionage Operation Gather Information"). There is one
item per icon, each the first line of the game's hover text. The category
is what the operation's icon shows (user, 2026-11-20). As in the earlier
parts they are said whatever the map mode, though the game draws
operations only in the intel map mode.

The code is a new unit, engine/map_system_contacts, in the system_scanner
gate. It calls the engine's own builders,
CFirstContactsData::GetMapIconsDataAt and
CCountryEspionageManager::GetMapIconsDataAt, and frees what they build the
way CGalacticObjectMapIcon::SetUpData does (BasicString_Dtor on each name,
then the arrays' DeleteDataPtr). Contracts come from SetUpMissionsData on
a stand-in icon and update data, with the contract array guarded as in
part 4a, and then UpdateContractIcons' tests. The log check also compares
the item counts of both boxes on screen.

A charted system at intel NONE now has items when the game would draw its
icon for a contract there (ShouldShowIconForGalacticObject). Claims are
not said at intel NONE, since the claim icon never shows there. A contract
in an uncharted system is on no entry, because the game has a window of
its own for contracts (user, 2026-11-20).

Calls made without the user, listed for the owner:
- Two icons of the same kind are said one by one, as the fleets are.
- A contract whose mission lookup fails is skipped.
- A category or operation name with no text is said as its key, and a
  contract with no category says "Contract" (both UNVERIFIED against the
  game's localiser and null objects).
- The fleets keep their intel NONE cut, because UpdateSystemFleets at
  intel NONE was not read.

core, hud and map_pointer are unchanged. system_scanner gains 31 facts
(9 table entries, 22 hand constants).

The manifest entries come without generated tables, as in PR #3. Engine
facts, listings, decisions and the review are in
docs/plans/scanner-overhaul-stage4.md. The commit also carries the part
4e-1 hand-test notes and corrects the notes that counted the idler's
editor mode byte +0xe88 among the map filters.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Bordering Systems now also lists the systems at the far end of a wormhole,
gateway or other bypass in one of the player's systems. Every system entry
of the galaxy scanner says how the player's bypasses reach it, right after
the name, as in "Dahlberg, Natural Wormhole from Kappler, not usable,
Intel High, north, 80, 4 jumps" (user, 2026-11-20). With several of the
player's systems leading there, each is named once ("Gateway from Deneb
and Lane"). A system that is also one lane away says it too.

A bypass leads to the systems of its active connections, read the way
CGalacticObject::ForEachConnectedSystem reads them. Relays (they join lane
neighbours only), inactive bypasses such as a ruined gateway and wormholes
the player has not explored lead nowhere. Only far ends a sighted player
can find are listed (user, 2026-11-20). Those are the ones the game names,
which means an explored wormhole's far end or any destination of a bypass
the player's ships can use, and the ones whose own map icon shows the
bypass (intel Medium or above and the nameplate). "Not usable" follows the
game's pathfinding test, CBypass::CanBeUsedInPathfind, at both ends, so
locks, closed borders and a type's country_can_use count (user,
2026-11-20). Jumps are still counted over hyperlanes (user, 2026-11-20).

The code is a new unit, engine/map_bypass_links, in the system_scanner
gate, with the new manifest entry CBypass::NeedsExploration. The kind of
connection is the first line of the bypass entry's tooltip, the words the
system entries already say for it (map_system_items::bypass_entry_words).
The connection ids are copied under an SEH guard, because the daily update
refills them on worker threads while the main thread can handle input in
the middle of that loop (found by the review).

Calls made without the user, listed for the owner:
- Relays are skipped by connection type, as the bypass box skips them,
  instead of by the relay type ForEachConnectedSystem compares.
- An inactive bypass in the player's system is skipped, although the
  engine keeps its connections.
- "Not usable" is said for a kind only when none of the player's bypasses
  of that kind leading there is usable.
- The words appear in My Systems too, for a wormhole between two of the
  player's systems.
- A far end counts as named when the player's bypass passes
  CanBeUsedInPathfind, where the Use order asks CBypass::CanBeUsed. The
  Use order's label also names a single destination the player cannot use
  yet; such a far end is left out unless its icon shows. Nothing the game
  does not show is listed.
- gateway_ness, one-to-one but with no destination in its tooltip, counts
  as named.
- The connection-type and intel values and the size bound are plain
  constants gen_deps.py does not track, as in map_system_items.

core is unchanged. hud and map_pointer each gain 11 facts, the bypass
reads the list needs, since Enter and Ctrl+A on the map reach the
scanner's lists; on an unknown build missing one of them the HUD screen
switches off. system_scanner gains 5.

The manifest entry comes without generated tables, as in PR #3. Engine
facts, listings, decisions and the review are in
docs/plans/scanner-overhaul-stage5.md, with a summary in
docs/dev/engine/map.md. Nothing of this was heard yet, because the user's
save has no bypass in the player's systems and no explored wormhole. The
commit also carries the stage 4e-2 hand-test notes and the stage 5
decision.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Other Fleets listed one entry per map-icon group, such as "Hostile
Military Ship, Zimtauri". It now lists every fleet a charted system's
fleets box counts, except the player's own, each fleet its own Page Down
stop, nearest first (user, 2026-11-21). The subcategories are All,
Hostile Fleets, Neutral Fleets and Friendly Fleets, then one per empire
named as the player knows it.

An entry reads "Home Guard, hostile Military Ship, League of Immuthor,
Kappler, north, 30, 5 jumps. Power 850, hull 80%" (user, 2026-11-21).
Without communications the kind is left out, as the game shows none:
"Alien Menace, hostile, Kilo Bogeys, Zimtauri, north, 19, 4 jumps. Power
1200, hull 100%". The power follows the fleet's own icon in the system
view, which shows it whatever the communications: "Army power 300" for a
transport, "Boss" or "Ultra boss" for a boss, and the hull alone for a
fleet with no power. A cloaked fleet says "cloaked" after its kind. Space
reads the fleet's own tooltip, CFleet::GetToolTip, wherever the camera
is. Enter and the Application key work as on any single fleet.

The list reuses the fleets box's rule from 4d (engine/map_fleets), so it
adds nothing to the hud and map_pointer gates. The new manifest entries
are CFleet::GetToolTip, CFleet::CalcMilitaryPower and
CFleet::CalcHitPointsPercent, with the hand constant
kOff_CFleet_Settings for the boss bits. The review found that the system
view shows power the galaxy hover hides, and the user chose the system
view's rule. Since no list gives fleet groups any more, their stand-in
click, right click and tooltip went, with the CStarFleetEntry_GetToolTip
manifest entry. In the gates, system_scanner gains the four new facts and
loses two, hud and map_pointer each lose two, and core is unchanged.

Calls made without the user, listed for the owner:
- The list follows the box, not the group hover's filters. A fleet of an
  empire without communications whose class is not its icon's is listed,
  though no galaxy hover names it; the system view shows its icon.
- The power is the system view icon's (each ship's cached power), said
  as a whole number.
- Space falls back to CFleet::GetToolTip for any fleet in the galaxy
  scanner where it said "not on screen", so My Fleets and Fleets in
  transit get it too.
- Empire subcategories come in the order their first fleet appears.
- Left for the owner: subcategories are kept by index, so when one drops
  out the focus can move to the next without a word; My Fleets goes by
  owner and Other Fleets by controller, so a lent fleet is in both and a
  borrowed one in neither.

The facts, decisions, listings and review are in
docs/plans/scanner-overhaul-stage5.md, part 5b.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
A system entry named each fleet icon by the class of whichever fleet the
box took last, "hostile Military Ship", also for an empire the player has
no communications with. The game draws that icon with its default symbol
whatever the fleets are: CFleet::GetFleetIconType gives FLEET_TYPE_DEFAULT
before it looks at the class, and the sprite ignores the class. So the
word told the player more than the screen shows. Such an icon now says
"hostile unknown fleet" (user, 2026-11-21), which agrees with Other Fleets
leaving the kind out for those fleets.

The test keys on the icon type the symbol is drawn from, so a contacted
fleet of a class with no symbol of its own says "unknown fleet" too (my
call). The lane dial still says the old words and is noted for the user.
No new engine facts; the gates are unchanged.

The plan also records the harness run of 2026-11-21 and the 5b install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Other Planets is a new galaxy scanner category after Other Fleets. It lists
every colony of another country that the system view's planet icon marks,
wherever the camera is, one stop per colony, nearest first. All comes first,
then one subcategory per owner, ordinary empires, fallen empires and pre-FTL
civilisations alike.

An entry reads "Earth, United Nations of Earth, Sol, north, 80, 4 jumps.
Capital, Continental World, occupied by League of Immuthor, Devastation 20%,
hostile FTL Inhibitor". An unsurveyed planet says "unsurveyed" after its name,
an owner the icon hides is "Unidentified Empire", and a colony being founded
says "Colonizing Planet, 45%". Space reads the planet's own tooltip, as
hovering it in the system view does.

The rule is the planet icon's (CPlanetMapIcon::ShouldShowIconForPlanet and
Update). A colony is listed when its system is charted with intel above None,
CPlanet::ShouldDisplayPlanetInfo holds, and the icon marks it, which means the
planet is surveyed, the player has contact with the owner, or the icon shows
an occupier or an FTL inhibitor.

It adds five manifest entries, CPlanet_ShouldDisplayPlanetInfo,
CPlanet_GetToolTip, CColony_IsCapital, CColonyCarrier_CalcDevastationScale and
CCountry_AccessRelation, without generated tables, as in PR #3, and two hand
constants, kOff_CPlanet_Colony and kOff_CRelation_Flags. The core gate is
unchanged. hud and map_pointer gain the 12 facts the list reads, and
system_scanner gains 7.

It also corrects map.md and the CPlanet_GetLocalName note. GetLocalName says
"Alien Colony" only for a country type that turns
hide_names_if_no_communication off, which the game files do only for primitive
and mirrored_country. Every other colony keeps its own name.

Not heard yet, since the user's game has no other country's colony in a
charted system.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
A scanner system entry left out energy, minerals, food and the three
research kinds (user, 2026-11-18) and said trade and alloys among the other
resources, right after the fleets. All eight now come at the very end of
the entry, after the espionage operations, in the game's resource order and
worded like the others, as in "..., First contact with Kilo Bogeys,
5 Energy Credits, 3 Minerals, 2 Alloys". Every other resource keeps its
place.

A new line in settings.ini, scanner_common_resources = on, switches all
eight. It is on by default (user, 2026-11-21); with it off the entry says
none of them.

The mod wrote settings.ini only when it was missing, so an older file never
showed a new setting. At startup it now adds every setting that no line
names to the end of the file, with its comment. A commented-out line counts
as named, so a player who comments one out does not get it back (my call).
A file saved as UTF-16 is left alone with a warning, an empty one gets the
header, and a UTF-8 byte order mark is skipped.

The settings log lines named the file through path::string(), which throws
on a character the ANSI code page cannot map, such as a Cyrillic user name
on an English system. Nothing catches it, so such a player's game would
crash on the first start. The path is now logged as UTF-8.

No engine facts are read and the gates are unchanged. The commit also
carries the 5c commit-and-install tick in the stage 5 plan and a paragraph
in map.md on the system view's planet icon, both left over from 5c.

Not heard yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
End and Shift+End on the galaxy map said a station item on a system's icon
as our kind word and then the first line of its tooltip. Three kind words
were wrong, so a Shroud Seal said "Megastructure, Shroud Seal", pre-FTL
civilizations "Station, Pre-FTL Civilizations" and any enclave "Curator
station, Station". A station part now says only the game's line, cut of the
system's name in front as the lane dial cuts it (user, 2026-11-20). A Shroud
Seal says "Shroud Seal", a military station "Military Station", and a
waystation "Waystation" for "Qel-Zain Waystation".

A clickable station part whose tooltip is empty says the game's word for its
kind, the key its tooltip line comes from, such as SHROUD_SEAL or
ARCHAEOLOGICAL_SITE, and "Station" when that key has no text (user,
2026-11-22). The game builds a line for every station kind, so this is a
safety net. A first tooltip line is now trimmed, so an icon-only line counts
as empty there and a tooltip-only part with nothing to say is still left out.

The lane dial is unchanged; its fallback words are among the dial fixes left
for later. No engine facts are added and the gates are unchanged.

The plans and NEXT_STEPS also record the 2026-11-22 session, which heard
stage 5d (the common resources at the end of a system entry) and stage 5b's
"hostile unknown fleet".

Not heard yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
The galaxy scanner's Systems category now goes My Systems, Bordering
Systems, Unclaimed Systems (user, 2026-11-22); Unclaimed came second
before. Only the order changes. The design doc and the header's summary
follow, and the stage 4 plan records the End list fix's install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Home moves the map cursor and the camera to the galaxy scanner's focused
item. It used to say the system's arrival line, with its owner and lanes.
It now says only "Cursor placed on Home Guard at Uiafladus system", with
the name the scanner spoke for its focus (user, 2026-11-22). A system
itself is named once, "Cursor placed on Deneb system". A group says its
own name, "Cursor placed on Sector Unity at Deneb system". The system is
dropped from the front of a station's name, so the scanner's "Deneb,
Observation Post" becomes "Cursor placed on Observation Post at Deneb
system". An empire is named without the map mode's word. Space still reads
the cursor's hover text.

The scanner keeps the name it last spoke for its focus
(focused_entry_name), so Home reads no game state of its own. The cursor
remembers the new system's overlays, so the next arrow move says what
changed from there. Arrow moves, Ctrl+Up, Ctrl+Down and Home inside a
system view are unchanged. No engine facts are added and the gates are
unchanged.

Not heard yet.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEi63RK7vsu2313jYNJ
Brings in the owner's v4.6.0 migration (e3e5a90). Conflicts: vocab.hpp
keeps both the scanner's PartFinished / PartAborted and the owner's
PartDefensePlatforms; the deps tables are regenerated (again after the
branch's own manifest entries get v4.6.0 addresses).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEjMQRip5Sc2TeUyhkg
What the user heard on 2026-11-22: Home's "Cursor placed on" words, the
Alien Menace fleet in Other Fleets, the empty Other Planets list, and
Bordering Systems before Unclaimed Systems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEjMQRip5Sc2TeUyhkg
Carries the branch's own engine facts over to Corona Borealis v4.6.0
(3d1a), on top of the owner's port (merged in e513e37).

- 38 hand-declared offsets moved. Each cites the v4.6.0 instruction it
  was read from and has its v4.5.2 value as `old` in
  hand_constants.toml. The other 70 are unchanged where they are read.
- The strategic resource database holds its resources at +0x50 and
  marks dropped ones with a byte at +0x71. The observation post's map
  item keeps its system as a 4-byte id at +0x140.
- Six station icon frames, a fifteenth ship class and fleet icon type
  0x10 are new, so the counts are 0x47 tags, class 0xe and 17 types.
- Three functions have no exact match, so their pairs and evidence are
  in manual_pdb_vt_matches.json.
- docs/plans/scanner-overhaul.md records the port and what has static
  evidence only.

Tested muted in a fresh v4.6.0 game over the harness: every list a new
game has, no FAULT, no gate off, no map_system_items MISMATCH.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEjMQRip5Sc2TeUyhkg
All Systems lists every system the game lets the player select, fog
included, grouped by the player's sectors, as it did before stage 1 took
it out. It now comes after Unclaimed Systems. A system under the fog names
no owner, intel level or items, because those words already need the
system to be charted.

Known Systems stays out. The coverage line in the general log does not
count All Systems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEictKLyw4wZc9sqfRZ
The testing guide's scanner section still described Systems as My, Known
and All. It now gives the categories in their order, the system entry
words, Home's words and the scanner_common_resources setting.

The status lines of the design and the stage plans say what was heard on
Steam v4.5.4 and that nothing was heard on v4.6.0, and the Scanner row of
NEXT_STEPS.md says the same. Its 5b part no longer lists the Alien Menace
entry as unheard. The stage 2 plan no longer calls ShouldDisplayNameForCountry
unasked, since map_stations has asked it since stage 4b, and the design
names the one fleet text call stage 2a made.

src/engine/deps_generated.{hpp,cpp} go back to main's. The branch commits
its manifest entries without their tables, so the gate lists are
regenerated along with them.

The design, the stage 1 plan, scanner-pointer.md, map-cursor.md, the
testing guide and the Scanner row of NEXT_STEPS.md also say that All
Systems is back as the last subcategory of Systems.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEictKLyw4wZc9sqfRZ
alex19EP manually merged commit 2ba026b6cd into main 2026-11-27 02:17:16 +03:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
alex19EP/StellarisAccess!4
No description provided.