Login Sequence

From Genshin Impact Technical Wiki
Revision as of 15:09, 11 September 2024 by NikunoMenura (talk | contribs) (Update to use new SotW terminology)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This page documents the login sequence of Genshin Impact from a networking/protocol standpoint. The process can be divided into two sections.

This page is nowhere near done.

Authentication and Dispatch

When the game is first launched to the Celestia screen, it follows the HTTP Protocol for account authentication and dispatching.

Security File

Upon launch, the first thing the client does is query the /query_security_file endpoint. Further research on this is needed; very little is currently known about the workings of this system. It is believed to be used to configure the client-side anticheat, and the client will silently accept an empty string, and this seems to disable the anticheat entirely.

Region List

Following this, the client will request the /query_region_list endpoint, gathering a list of applicable regions that the client may play on. A list of regions and information about them is included below:

Regions (CN SotW)
Internal Name Display Name Region UID prefix(es) Dispatch URL
cn_gf01 天空岛 (Celestia) 1, 2, 3 cngfdispatch.yuanshen.com
TODO 世界树 (Irminsul) 5 TODO
Regions (OS SotW)
Internal Name Display Name Region UID prefix(es) Dispatch URL
os_usa America 6 osusadispatch.yuanshen.com
os_euro Europe 7 oseurodispatch.yuanshen.com
os_asia Asia 8, 18 (after version 4.4) osasiadispatch.yuanshen.com
os_cht TW, HK, MO 9 oschtdispatch.yuanshen.com

Overseas clients may play on any overseas region they wish, but CN clients may only play on the region that is applicable to their account type. (TODO: research more, I don't have a CN account). The list of regions seems to be locally cached to some extent, but the exact details of this aren't known.

Game