Net: handle in-game GC_PHASE like the Windows client
PHASE_SELECT returns the connection to LoginSession (cached roster, SelectReady, later LOGIN_SUCCESS refreshes), PHASE_CLOSE goes to the login phase, LOADING clears the player, GAME refreshes the status and DEAD no longer leaves the game phase. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
189da4c269
commit
40cac5cf52
@@ -70,5 +70,14 @@ int main() {
|
||||
valid.select(0);valid.take_output();
|
||||
ava2::wire::Bytes warped{253,5};valid.feed(ava2::wire::encrypt(warped,rx));
|
||||
if(valid.state()!=ava2::LoginSession::State::Loading) return 16;
|
||||
// GC_PHASE(SELECT) in game (/phase_select): the cached roster is selectable at once and a later
|
||||
// LOGIN_SUCCESS refreshes it (SelectPhase accepts LOGIN_SUCCESS4).
|
||||
auto version=valid.roster_version();
|
||||
valid.return_to_select({});
|
||||
if(valid.state()!=ava2::LoginSession::State::Selecting || valid.characters()[0].id!=11) return 17;
|
||||
valid.feed(ava2::wire::encrypt(ava2::wire::Bytes(payload.begin()+2,payload.end()),rx));
|
||||
if(valid.state()!=ava2::LoginSession::State::Selecting || valid.roster_version()!=version+1) return 18;
|
||||
valid.select(0);
|
||||
if(valid.state()!=ava2::LoginSession::State::Entering) return 19;
|
||||
std::cout<<"Original AVA2 client/server layout, cipher and character selection oracle passed\n";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user