mirror of
https://github.com/redstrate/Kawari.git
synced 2025-04-23 07:37:46 +00:00
Extract sequence number from the lobby character action packet
This commit is contained in:
parent
7315ece194
commit
ff9bcb255d
2 changed files with 4 additions and 4 deletions
|
@ -71,6 +71,7 @@ async fn main() {
|
||||||
connection.send_lobby_info(*sequence).await;
|
connection.send_lobby_info(*sequence).await;
|
||||||
}
|
}
|
||||||
ClientLobbyIpcData::LobbyCharacterAction {
|
ClientLobbyIpcData::LobbyCharacterAction {
|
||||||
|
sequence,
|
||||||
action,
|
action,
|
||||||
name,
|
name,
|
||||||
json,
|
json,
|
||||||
|
@ -120,7 +121,7 @@ async fn main() {
|
||||||
server_id: 0,
|
server_id: 0,
|
||||||
timestamp: 0,
|
timestamp: 0,
|
||||||
data: ServerLobbyIpcData::CharacterCreated {
|
data: ServerLobbyIpcData::CharacterCreated {
|
||||||
sequence: 0x4, // TODO: haha no
|
sequence: *sequence + 1,
|
||||||
unk: 0x00010101,
|
unk: 0x00010101,
|
||||||
details: CharacterDetails {
|
details: CharacterDetails {
|
||||||
content_id: CONTENT_ID,
|
content_id: CONTENT_ID,
|
||||||
|
@ -160,7 +161,7 @@ async fn main() {
|
||||||
server_id: 0,
|
server_id: 0,
|
||||||
timestamp: 0,
|
timestamp: 0,
|
||||||
data: ServerLobbyIpcData::CharacterCreated {
|
data: ServerLobbyIpcData::CharacterCreated {
|
||||||
sequence: 0x5,
|
sequence: *sequence + 1,
|
||||||
unk: 0x00020101,
|
unk: 0x00020101,
|
||||||
details: CharacterDetails {
|
details: CharacterDetails {
|
||||||
id: 0x07369f3a, // notice that we give them an id now
|
id: 0x07369f3a, // notice that we give them an id now
|
||||||
|
|
|
@ -147,8 +147,7 @@ pub enum ClientLobbyIpcData {
|
||||||
},
|
},
|
||||||
#[br(pre_assert(*magic == ClientLobbyIpcType::LobbyCharacterAction))]
|
#[br(pre_assert(*magic == ClientLobbyIpcType::LobbyCharacterAction))]
|
||||||
LobbyCharacterAction {
|
LobbyCharacterAction {
|
||||||
request_number: u32,
|
sequence: u64,
|
||||||
unk1: u32,
|
|
||||||
character_id: u64,
|
character_id: u64,
|
||||||
#[br(pad_before = 8)]
|
#[br(pad_before = 8)]
|
||||||
character_index: u8,
|
character_index: u8,
|
||||||
|
|
Loading…
Add table
Reference in a new issue