59 files, from working commit b1a079a. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
55 lines
2.9 KiB
Markdown
55 lines
2.9 KiB
Markdown
# Native realm-selection integration
|
|
|
|
Forever 70334 already contains the styled realm-selection UI; replacing its
|
|
visual frame is not the first requirement. The native Turtle authentication
|
|
adapter currently parses the real auth-server realm list and selects the
|
|
advertised local realm before it opens the engine-owned world connection. It
|
|
does not yet publish that list into Forever's realm-list model or prove the
|
|
corresponding `C_Login` state transition.
|
|
|
|
## Verified UI contract
|
|
|
|
The extracted Forever Glue sources are under
|
|
`runtime/native-login-ui/interface/addons`:
|
|
|
|
- `blizzard_glueparent/mainline/glueparent.lua::GlueParent_GetBestScreen`
|
|
chooses `realmlist` when `C_Login.GetState().hasRealmList` is true. The
|
|
`realmlist` screen is valid only with that state flag and no pending
|
|
super-district selection.
|
|
- `blizzard_gluexml/mainline/realmlist.lua::RealmList_Update` gets categories
|
|
and realm addresses from `C_RealmList.GetAvailableCategories` and
|
|
`GetRealmsInCategory`. `RealmList_InitButton` reads each realm with
|
|
`GetRealmInfo` and renders the server-provided name, version, PvP/RP type,
|
|
character count, compatibility state, and population state.
|
|
- `RealmList_OnOk` calls `C_RealmList.ConnectToRealm` for the selected online
|
|
realm. Offline entries are disabled; a full realm with no characters gets
|
|
the existing confirmation popup.
|
|
- `blizzard_gluexml/mainline/characterselect/characterselectutil.lua::ChangeRealm`
|
|
requests the built-in realm list through
|
|
`C_RealmList.RequestChangeRealmList`. The character-select nav bar can hide
|
|
this control when the active Forever game rule `DisableRealmSelection` is
|
|
set.
|
|
|
|
These are direct source findings. They establish a reusable, visually
|
|
integrated UI and its API boundary; they do not establish that native Turtle
|
|
realm metadata currently reaches those APIs.
|
|
|
|
## Remaining native backend work
|
|
|
|
The native auth worker currently chooses a genuine advertised realm before
|
|
calling the verified Forever realm-open path. The active test deployment
|
|
advertises one local realm. Multi-realm selection must move that choice to the
|
|
user-facing UI and pass the chosen advertised realm back through the same
|
|
validated native world-auth/transport lifecycle. It must preserve server name,
|
|
address, type, population and online status from the parsed realm list. The
|
|
current implementation has not demonstrated `hasRealmList`, populated
|
|
`C_RealmList` records, the remembered-realm behavior, or a change-realm cycle
|
|
in the actual client.
|
|
|
|
Do not change `hasRealmList`, call `ConnectToRealm` with guessed metadata, or
|
|
invent fallback realm values. The next step is to trace the native API/model
|
|
provider that owns `C_RealmList` and the corresponding `C_Login` state events,
|
|
then feed it the already-authenticated real realm-list records. The default
|
|
Forever screens can then provide manual selection and the existing character
|
|
screen's Change Realm action without a separate visual replacement.
|