1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-04-22 23:27:46 +00:00

Extract sequence number from the lobby character action packet

This commit is contained in:
Joshua Goins 2025-03-16 18:18:49 -04:00
parent 7315ece194
commit ff9bcb255d
2 changed files with 4 additions and 4 deletions

View file

@ -71,6 +71,7 @@ async fn main() {
connection.send_lobby_info(*sequence).await;
}
ClientLobbyIpcData::LobbyCharacterAction {
sequence,
action,
name,
json,
@ -120,7 +121,7 @@ async fn main() {
server_id: 0,
timestamp: 0,
data: ServerLobbyIpcData::CharacterCreated {
sequence: 0x4, // TODO: haha no
sequence: *sequence + 1,
unk: 0x00010101,
details: CharacterDetails {
content_id: CONTENT_ID,
@ -160,7 +161,7 @@ async fn main() {
server_id: 0,
timestamp: 0,
data: ServerLobbyIpcData::CharacterCreated {
sequence: 0x5,
sequence: *sequence + 1,
unk: 0x00020101,
details: CharacterDetails {
id: 0x07369f3a, // notice that we give them an id now

View file

@ -147,8 +147,7 @@ pub enum ClientLobbyIpcData {
},
#[br(pre_assert(*magic == ClientLobbyIpcType::LobbyCharacterAction))]
LobbyCharacterAction {
request_number: u32,
unk1: u32,
sequence: u64,
character_id: u64,
#[br(pad_before = 8)]
character_index: u8,