From cb219d807d46d4ccb5c882501c9863ef7b615107 Mon Sep 17 00:00:00 2001 From: andy Date: Sun, 23 May 2021 20:54:35 +0000 Subject: [PATCH] fix tech packet lengths. now everyone can get s/d yay --- src/packet/messages.rs | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/packet/messages.rs b/src/packet/messages.rs index 07273b5..1a27e7f 100644 --- a/src/packet/messages.rs +++ b/src/packet/messages.rs @@ -333,7 +333,10 @@ pub struct ComboStep3 { #[pso_message(0x46)] pub struct TargetsHit { - targets: u32, // thats a lot of targets! + num_of_targets: [u8; 4], // thats a lot of targets? + client2: u8, + target2: u8, + unknown2: [u8; 2], } #[pso_message(0x47)] @@ -341,14 +344,17 @@ pub struct PlayerTechCast { // this packet and packet 0x8D (PlayerTechStart) are technique: u8, unknown1: u8, tech_level: u8, + #[length_of(targets)] num_of_targets: u8, + #[length_is(num_of_targets)] + targets: Vec, } #[pso_message(0x48)] pub struct PlayerTechDone { // this packet gets sent once the tech is actually casted (ie: barta actually shoots out from your feet) technique: u8, unknown1: u8, - tech_level: u8, // tech level in packets is 0-based + tech_level: u8, // level - 1 unknown2: u8, }