From ac23f5911f4f58bcc07a170aa00a801358ed65e9 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Thu, 17 Nov 2022 11:05:43 +0100 Subject: [PATCH] There is more header in the payload, not that it helps --- lib/game_client.rb | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/lib/game_client.rb b/lib/game_client.rb index 377d662..25ce552 100644 --- a/lib/game_client.rb +++ b/lib/game_client.rb @@ -281,8 +281,14 @@ class GameClient { name: 'event_damage', size: 5 } ] + u = Unpacker.new(data) + removed_items = u.get_int + notes.push([:red, 0, 4, "removed_items=#{removed_items}"]) + notes.push([:green, 4, 4, 'num_items']) + notes.push([:yellow, 8, 4, 'zero?']) + skip = 0 - (0...data.size).each do |i| + ((3 * 4)...data.size).each do |i| skip -= 1 unless skip.negative? # puts "skipped i=#{i} hex=#{str_hex([data[i]].pack('C*'))} skips_left=#{skip}"