Commit graph

21 commits

Author SHA1 Message Date
ChillerDragon aadb67f39c Do not ack msg NULL
For example F-DDrace sends vital chunks with msg id 0
Those are some ddnet uuid extension thingy

But the server does not keep feeding if we ack those
2022-11-24 12:28:42 +01:00
ChillerDragon 0e8310948b Read password from autoexec.cfg 2022-11-24 10:39:30 +01:00
ChillerDragon bddc48ef82 Show disconnect reason from server by default
I was missing it for a 'Wrong password' error
but it is also nice in the non error case
or all other disconnects triggered by the server
like kick etc
2022-11-24 09:54:09 +01:00
ChillerDragon 1e829c0eaf Fix crash on server messages and add tests for it 2022-11-20 10:13:07 +01:00
ChillerDragon 1794051342 Add images to gui client 2022-11-19 13:19:22 +01:00
ChillerDragon 653ee661e9 Fix english cancle -> cancel ty swarfey and rcon 2022-11-16 10:50:54 +01:00
ChillerDragon 4a12262ad3 Move all network payload classes to messages/ 2022-11-16 09:37:47 +01:00
ChillerDragon 3a219f406b Change context api! And add input timing msg
Remove the client attribute from the Context class
The block that exposes a Context class has to be called on a client
anyways so also passing it to the block args is redundant.

Replace it by a parsed version of the chunk which has yet to be properly
named current working title is: todo_rename_this
2022-11-15 10:39:44 +01:00
ChillerDragon fe3e581f86 Make client callbacks arrays
Allows to setup multiple on_* hook blocks as a lib user

closed #10
2022-11-14 10:25:28 +01:00
ChillerDragon 1949e1eb2e Add check script for hook documentation
related to #11
2022-11-13 12:28:38 +01:00
ChillerDragon 3358cc6608 Parse start info on server side 2022-11-13 10:37:46 +01:00
ChillerDragon 263e579661 Create models folder for all the storage classe 2022-11-13 08:58:33 +01:00
ChillerDragon 09bd7bfebb Count ack per client and thus fix reconnect
Sadly reconnecting somehow crashes the client :(

https://github.com/teeworlds/teeworlds/issues/3182
2022-11-13 08:29:21 +01:00
ChillerDragon 44e20583e6 Refactor integration test names 2022-11-12 17:49:50 +01:00
ChillerDragon 11898d0f41 Ensure tokens being in correct format 2022-11-12 12:51:09 +01:00
ChillerDragon e3292deb15 Thoughts about ctrl close 2022-11-12 12:08:25 +01:00
ChillerDragon 83c38c4639 Change chunk header api 2022-11-12 10:17:54 +01:00
ChillerDragon cf57146260 Mess with tokens 2022-11-11 14:48:26 +01:00
ChillerDragon 45d1361408 Server send game and server info 2022-11-11 13:42:11 +01:00
ChillerDragon 1baf3fcad0 Start working on server side map packet 2022-11-11 10:21:48 +01:00
ChillerDragon 6c005497d4 Layout server control msg structure
Thus closed #5
By deciding to support server as well.

This is rebranding from teeworlds-client to teeworlds_network
And thus also including a bunch of file renames
2022-11-09 08:56:18 +01:00
Renamed from lib/teeworlds-client.rb (Browse further)