AVA2 client Windows parity passes (gr2 BitKnit2/64-bit, GamePhase handlers, python modules)
- gr2: BitKnit2 decompression, 64-bit LE files, compressed curves - net: remaining GamePhase handlers, generated GC packet table - python: event/chat/chr/minimap/guild/quest/messenger/shop-search and other native modules ported against the AVA2 Windows client - render: D3D8 fixed-function lighting in Gr2ModelRenderer, terrain without baked shade; cape/NPC equipment attachment - tests + audits updated; docs/PORT-PLAN.md and WINDOWS-PARITY.md Batch 4 (render pipeline: background.*, app.RenderGame/UpdateGame, camera bindings, main.cpp fake-content removal) is still in progress. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9f748eb05a
commit
9077aa389a
@@ -39,7 +39,7 @@ void LoginSession::emit(Bytes bytes,bool sequence) {
|
||||
std::vector<Bytes> LoginSession::take_output() { auto out=std::move(output_); output_.clear(); return out; }
|
||||
void LoginSession::feed(std::span<const std::uint8_t> input) {
|
||||
if(state_==State::Failed) return;
|
||||
if(input.size()>128*1024 || raw_.size()+plain_.size()+input.size()>128*1024) { fail("receive buffer limit exceeded"); return; }
|
||||
if(input.size()>receive_space()) { fail("receive buffer limit exceeded"); return; }
|
||||
raw_.insert(raw_.end(),input.begin(),input.end());
|
||||
while(!raw_.empty() && state_!=State::Failed) {
|
||||
std::size_t n=encrypted_?8:1;
|
||||
@@ -120,14 +120,15 @@ bool LoginSession::process_packet() {
|
||||
}
|
||||
return true;
|
||||
}
|
||||
wire::Bytes LoginSession::take_game_input() {
|
||||
if(state_!=State::Loading) return {};
|
||||
auto bytes=std::move(plain_);plain_.clear();return bytes;
|
||||
wire::Bytes LoginSession::take_game_input(std::size_t max) {
|
||||
if(state_!=State::Loading || max==0) return {};
|
||||
if(plain_.size()<=max) { auto bytes=std::move(plain_);plain_.clear();return bytes; }
|
||||
Bytes bytes(plain_.begin(),plain_.begin()+max);plain_.erase(plain_.begin(),plain_.begin()+max);return bytes;
|
||||
}
|
||||
void LoginSession::send_game_packet(wire::Bytes packet) {
|
||||
void LoginSession::send_game_packet(wire::Bytes packet,bool sequence) {
|
||||
if(state_!=State::Loading) throw std::logic_error("game packet before loading handoff");
|
||||
if(packet.empty() || packet.size()>65535) throw std::invalid_argument("invalid game packet size");
|
||||
emit(std::move(packet),true);
|
||||
emit(std::move(packet),sequence);
|
||||
}
|
||||
void LoginSession::select(std::uint8_t slot) {
|
||||
if(state_!=State::Selecting) throw std::logic_error("selection requires character roster and select phase");
|
||||
|
||||
Reference in New Issue
Block a user