fix(net): conform character entry and session shutdown

This commit is contained in:
Erik 2026-07-21 10:33:03 +02:00
parent bacc7e45a9
commit aea957f845
12 changed files with 1016 additions and 95 deletions

View file

@ -347,7 +347,10 @@ public class LiveHandshakeTests
Assert.NotNull(charList);
Assert.NotEmpty(charList!.Characters);
var chosen = charList.Characters[0];
Assert.True(
CharacterList.TrySelectFirstAvailable(charList, out var selection),
"CharacterList contains no active, non-greyed character");
var chosen = selection.Character;
Console.WriteLine($"[live] choosing character: 0x{chosen.Id:X8} {chosen.Name}");
// ---- Step 5: send CharacterEnterWorldRequest (UIQueue, encrypted checksum) ----
@ -403,7 +406,7 @@ public class LiveHandshakeTests
// ---- Step 7: send CharacterEnterWorld with the chosen GUID. ----
SendGameMessage(
CharacterEnterWorld.BuildEnterWorldBody(chosen.Id, user),
CharacterEnterWorld.BuildEnterWorldBody(chosen.Id, charList.AccountName),
$"CharacterEnterWorld(guid=0x{chosen.Id:X8})");
// ---- Step 8: receive the CreateObject flood + parse bodies. ----