Commit graph

12 commits

Author SHA1 Message Date
Jack Garrard
8acb8700bf
Merge branch 'dev' into udp-client 2023-09-02 13:35:38 -07:00
Robin C. Ladiges
36f9343f83 don't send empty GameInf and CostumeInf packets and resend them on reconnect
Resend because: on server restarts the server will lose the stage and costume information.

If only one client is connected to the server, the packets currently aren't resent, so the server doesn't know in which stage the client is and what
costume it wears
(which I'd like to display on the website).

With more then one client connected it already works, because when another client joins the server, the client will send both packets.
2022-12-16 13:19:54 -06:00
Jack Garrard
04fc8cb309 Increased max packet size again 2022-10-27 03:22:01 -07:00
Jack Garrard
4a5a10f910 Convert receive buffer to be on heap 2022-10-26 03:33:42 -07:00
Jack Garrard
66c8bb9e1b Closer to working 2022-09-05 03:19:33 -07:00
Jack Garrard
19c6d800bd More changes while testing 2022-09-03 01:57:57 -07:00
CraftyBoss
8f4fac417f change recieve logs, update headers, fix bound bowl crash 2022-08-10 14:11:52 -07:00
Nick Renieris
0e9fde9289 packets: Make bools take up 1 byte 2022-06-28 13:26:26 +03:00
Nick Renieris
8f21d43bc3 packets/PlayerConnect: Initialize maxPlayerCount
It was sending bad data since it wasn't getting inited anywhere.
2022-06-23 20:56:05 -04:00
Nick Renieris
7e4a80b934 packet: Add missing packetNames entries 2022-06-23 20:56:05 -04:00
Nick Renieris
9227e37623 packets: Fix struct packing related bugs
- sizeof(bool) is implementation defined. The server assumes it's 4 but for me it was 1 (tested with Release too) which caused some bugs
- Structs aren't guaranteed to be packed. The compiler is free to change the layout, which we wouldn't want to for the Packet structs that we deserialize on the server.
2022-06-23 20:56:05 -04:00
CraftyBoss
381293e2b8 First Commit 2022-06-16 14:33:18 -07:00