Integrate #3 with its generated edge-scrolling tables #5

Merged
alex19EP merged 2 commits from integration/pr-3-edge-scroll-tables into main 2026-11-27 01:33:34 +03:00
Owner

Integrates oasis1701's edge-scrolling change from #3 with the generated address, dependency and signature tables required by the current forge main. The archived reference table includes the new camera define.

The Release build passed all 184 offline tests. The locator recovered all 216 shipped addresses on both Windows Steam and GOG with zero wrong addresses. In-game behavior was not retested during integration.

AI Usage Disclosure

This change was developed with assistance from Codex (OpenAI).

Integrates oasis1701's edge-scrolling change from #3 with the generated address, dependency and signature tables required by the current forge main. The archived reference table includes the new camera define. The Release build passed all 184 offline tests. The locator recovered all 216 shipped addresses on both Windows Steam and GOG with zero wrong addresses. In-game behavior was not retested during integration. ## AI Usage Disclosure This change was developed with assistance from Codex (OpenAI).
A mouse pointer resting near a window edge scrolls the game's camera, and
the same check drops whatever the camera is following. A blind player
cannot tell where the pointer is. On 2026-11-17 one left in the top-right
corner held the galaxy camera at the map's north-east limit, the camera
did not follow the map cursor's Ctrl+Up moves, and the lane dial said
"Icons off screen" for every neighbour.

The edge test is in CGameCamera::UpdateScrollingMovement (Steam v4.6.0
0x141060910). It compares the pointer's distance from the nearest window
side with the NCamera define EDGE_SCROLLING_PIXELS (3). The game's Screen
Edge Panning setting gates only the scroll. AbortObjectFocus runs on an
edge either way, so by the listing turning the setting off would still
cancel the cursor's camera moves (FocusOn only sets the focus object, and
UpdateFollowBehavior moves the camera while one is set). That case was
not tested in game.

The new edge_scroll module sets that define to INT32_MIN from an
input-pump tick, so no pointer position counts as an edge. On unload
hooks::uninstall puts the game's value back (not yet exercised). It
writes one engine global and installs no hook. While the mod runs, the
game's Screen Edge Panning setting does nothing.

The define's address is a new [[global_slot]] (anchor
CGameCamera::UpdateScrollingMovement, load_index 3, expect_symbol
NDefines::NCamera::EDGE_SCROLLING_PIXELS). The regenerated address,
signature and gate tables are not in this commit, because the GOG column
needs the GOG v4.6.0 program. A missing address makes install() log an
error and leave edge scrolling on. New gate edge_scroll, label "the block
on mouse edge scrolling".

Verified in game on Steam v4.5.4 with a local Steam-only regeneration
(all 215 existing Steam addresses unchanged, the new one 0x14311c900).
With the pointer in the top-right corner and then moved along the
edges, 37 dial lines came without "Icons off screen", and the
camera stayed on the cursor's system with Screen Edge Panning still on.

Rebased onto the v4.6.0 port, with the citations moved to Steam v4.6.0.
UpdateScrollingMovement has the same 433 instructions and constants
there, and the define is still its fourth writable-data read, so
load_index 3 holds. A local Steam-only regeneration resolves it to
0x143341b18. A v4.6.0 launch of a local build with this change logged
"edge_scroll: EDGE_SCROLLING_PIXELS 3 -> off" and no FAULT. The pointer
test was not repeated on v4.6.0.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01EZNZEiCiFiHusWHbDPjYoQ
Include regenerated address, dependency and signature tables for the forge target.

Co-authored-by: Codex <noreply@openai.com>
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!5
No description provided.