feat(server): handle matching login and decorative content manifests
Add matching frame and message handling, per-connection session encryption, and loopback traffic dispatch. Serve the decorative content manifest and empty indices to remove startup download waits. Resolve character requests to their explicit account ID, include the nickname in profile replies, and redact matching traffic logs.
This commit is contained in:
1 parent
7f482ae530
commit
27754122fc
24 files changed
+857
-37
No files matched your search
@@ -0,0 +1,18 @@
|
||||
/**
|
||||
* The profile as the char service hands it to the client: the saved profile plus the
|
||||
* account data the char server keeps outside the profile.
|
||||
*
|
||||
* charDrivenNick: the client reads the player's nick from this top-level string when it
|
||||
* loads a profile (name looked up at aces.exe 2.61.0.37 0x8fe0aa, value stored at 0x91874d).
|
||||
* A profile without it clears the nick, and the online initialisation then fails with
|
||||
* "[CONNECT] nick is empty" and error 0x81110017 (0x164e5cf), as seen in the lab runs.
|
||||
* The nick belongs to the account, so it is added here rather than kept in the save.
|
||||
*/
|
||||
import { setParam, type BlkBlock } from '@wto/blk';
|
||||
import type { Account } from '../accounts/account-store.ts';
|
||||
|
||||
export function clientProfile(saved: BlkBlock, account: Account): BlkBlock {
|
||||
const profile = structuredClone(saved);
|
||||
setParam(profile, 'charDrivenNick', { type: 'string', value: account.nick });
|
||||
return profile;
|
||||
}
|
||||
Reference in new issue
Block a user