From 9903508d0bcd19422a72cccd18807b1f781864f8 Mon Sep 17 00:00:00 2001 From: ChillerDragon Date: Sun, 30 Oct 2022 20:07:08 +0100 Subject: [PATCH] Ah no nvm it seems to work I managed to stay on a default config vanilla server until inactive kick --- teeworlds.rb | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/teeworlds.rb b/teeworlds.rb index 3f18532..5dca271 100755 --- a/teeworlds.rb +++ b/teeworlds.rb @@ -57,18 +57,12 @@ class NetBase end puts "header bytes: #{str_hex(header.pack("C*"))}" - # header = [0x00, 0x00, 0x01] + str_bytes(@server_token) header = header + str_bytes(@server_token) data = (header + payload).pack('C*') @s.send(data, 0, @ip, @port) p = Packet.new(data, '>') puts p.to_s - - # if flags[:test] - # puts "arg_flags: #{flags}" - # gets - # end end end @@ -93,7 +87,7 @@ class TwClient end def send_ctrl_keepalive() - @netbase.send_packet([NET_CTRLMSG_KEEPALIVE], 0, control: true, test: true) + @netbase.send_packet([NET_CTRLMSG_KEEPALIVE], 0, control: true) end def send_msg_connect()