Commit graph

147 commits

Author SHA1 Message Date
ChillerDragon 42ab29bbfe Release v0.0.2 2023-09-17 17:35:22 +02:00
ChillerDragon 5fdd4ffd15 Fix rcon authed example 2023-09-17 16:36:57 +02:00
ChillerDragon e05523f104 Make 3 client methods private that should not be called
Makes the user api cleaner
2023-09-17 14:49:19 +02:00
ChillerDragon 32c3eb4919 Document on_snapshot 2023-09-17 12:59:38 +02:00
ChillerDragon c185d1a6b2 A bit of rdoc documentation comments 2023-09-17 12:15:31 +02:00
ChillerDragon 49b2806966 Use rconline class 2023-09-17 11:51:09 +02:00
ChillerDragon 6cad2f6bbc Call chunks messages (closed #6) 2022-11-26 11:25:23 +01:00
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 06328cf838 Support snap items with unknown size 2022-11-23 11:07:06 +01:00
ChillerDragon 69019c9578 Register and then properly read ddnet items 2022-11-23 10:56:36 +01:00
ChillerDragon 353059a47a Start working on ddnet snap items 2022-11-20 11:25:02 +01:00
ChillerDragon d4332ce6b0 Disconnect on invalid snap item
Do not leave a timeouted tee on the server if the snap is
parsed wrong
2022-11-20 10:24:56 +01:00
ChillerDragon c28bcd15e8 Never silently crash on invalid snap item 2022-11-20 10:22:39 +01:00
ChillerDragon 1e829c0eaf Fix crash on server messages and add tests for it 2022-11-20 10:13:07 +01:00
ChillerDragon ec92b073e8 Added tune params but wasn't able to test it yet
So this code does not work 100% but I will continue
when i figure out how to make the server actually send it
2022-11-20 09:44:42 +01:00
ChillerDragon 1794051342 Add images to gui client 2022-11-19 13:19:22 +01:00
ChillerDragon dc72204140 Add simple gui client to examples 2022-11-19 12:39:58 +01:00
ChillerDragon ad7ef13926 More snap item support 2022-11-19 11:28:45 +01:00
ChillerDragon dd714e51aa Add first snap event sound world 2022-11-19 10:39:29 +01:00
ChillerDragon e203f09fe4 Add projectile snap item 2022-11-19 10:25:31 +01:00
ChillerDragon 738e9effda Cleaner snap item annotations 2022-11-19 10:17:37 +01:00
ChillerDragon 0bcd7bb960 Add player info snap obj 2022-11-19 10:16:00 +01:00
ChillerDragon d4ccfc24e1 Inherit from snap item base class 2022-11-19 10:09:45 +01:00
ChillerDragon 3c42b64a7b Move all snap stuff to snapshot folder 2022-11-19 09:59:00 +01:00
ChillerDragon 6fdaf3be90 I think this snap item format is okayish 2022-11-18 10:59:59 +01:00
ChillerDragon 2da6b01738 Start snap item refactor (break everything) 2022-11-18 10:34:47 +01:00
ChillerDragon 396b539cca Overengineer snap items (but not in a good way) 2022-11-18 09:57:43 +01:00
ChillerDragon cb48c1028d First draft of snap obj class 2022-11-18 09:25:08 +01:00
ChillerDragon 34ebe75d54 Move snapshot to new file (still not cleaned up) 2022-11-17 16:11:34 +01:00
ChillerDragon 948aafb749 First workin snap item parser
Thanks a lot to @Learath2 for explaining in irc
And for the awesome libtw2 docs by @heinrich5991

48a2573af6/doc/snapshot.md
2022-11-17 15:43:27 +01:00
ChillerDragon f98ad6ae30 Try hard to parse the first snap item 2022-11-17 14:57:39 +01:00
ChillerDragon 45189d0217 part size = chunk num 2022-11-17 11:19:31 +01:00
ChillerDragon ac23f5911f There is more header in the payload, not that it helps 2022-11-17 11:14:47 +01:00
ChillerDragon 5971704b44 Its not like more annotations could save me now 2022-11-17 10:39:54 +01:00
ChillerDragon e477b19e9c I am about to mental breakdown 2022-11-17 10:28:04 +01:00
ChillerDragon 9b24347533 Got correct game start tick 2022-11-17 09:56:10 +01:00
ChillerDragon 2da59a6406 Still wrong but different 2022-11-17 08:39:18 +01:00
ChillerDragon 544396ca40 Some random snap item prints 2022-11-16 18:15:57 +01:00
ChillerDragon b118d37ebe Forgot chunk num in snap header 2022-11-16 17:33:35 +01:00
ChillerDragon d4fbc12b49 Who does not understand snap header with this output
can not be saved
2022-11-16 15:55:25 +01:00
ChillerDragon c119d393fc Go crazy with colored hexdump 2022-11-16 15:45:04 +01:00
ChillerDragon 2d4dc6dc65 Print fixed snap fields 2022-11-16 14:27:14 +01:00
ChillerDragon 3c53e66fdf One int per line in snap dump 2022-11-16 14:15:34 +01:00
ChillerDragon 804b3c87a2 Fix hexdump color crash 2022-11-16 14:13:29 +01:00
ChillerDragon 7697e5f451 color annotate hexdumps
Thanks to the legend @Learath2
2022-11-16 12:40:52 +01:00
ChillerDragon 59c2886046 hexdump snaps 2022-11-16 11:30:13 +01:00
ChillerDragon 616e14be1f Verbose snap data printing on client side 2022-11-16 10:57:49 +01:00
ChillerDragon 653ee661e9 Fix english cancle -> cancel ty swarfey and rcon 2022-11-16 10:50:54 +01:00