Commit graph

116 commits

Author SHA1 Message Date
Robin C. Ladiges
efce9392a1
[debug menu] change: only change the selected page when the debug menu is open 2024-10-07 22:47:26 +02:00
Robin C. Ladiges
b51f49a002
refac: non-whitespace 2024-10-07 22:47:22 +02:00
Robin C. Ladiges
b88b4679cf
refac: whitespace 2024-10-07 22:47:17 +02:00
Robin C. Ladiges
060c3f9def
[mod menu] change: make it obvious that changing the server or port requires a restart
Also: call it `server address` instead of `server IP`, because domains work too.
2024-06-26 09:17:27 +02:00
Robin C. Ladiges
65582aafea
[mod menu] new: option to hide server in debug menu
- Client.hpp: add bool variable and methods
- hooks.cpp: save/load value from common.bin
- main.cpp: change
- StageSceneStateServerConfig: add button to the mod menu to toggle it
2024-06-26 09:17:23 +02:00
Robin C. Ladiges
e1bd6d8785
[debug menu] new/change: show server & port & connected players on first line
The socket needs its own copy of the IP, otherwise it wrongly changes the displayed server after changing it in the mod menu.
2024-06-26 09:11:42 +02:00
Robin C. Ladiges
d107354db9
[debug menu] new: page to show controls 2024-06-26 09:11:42 +02:00
Robin C. Ladiges
326ccb33af
[debug menu] new: title for debug puppet page 2024-06-26 09:11:42 +02:00
Robin C. Ladiges
d8c89abdbb
[debug menu] change: improve animation & cappy page
- title
- code indentation
- X Y Z alignment for position and rotation
2024-06-26 09:11:41 +02:00
Robin C. Ladiges
eb4dcb5c2e
[debug menu] new: show own player info on first players page 2024-06-26 09:11:41 +02:00
Robin C. Ladiges
c0bb939a92
[debug menu] change: simplify player page
- Show `Yes` and `No` instead of `True` and `False`
- Remove `Is in Capture`
- Always show `Capture`
- Combine `Animation Index` and `Packet Animation` into one `Animation` line
- Rename `Puppet0` to `Empty Slot 1`
- Don't mention puppets
2024-06-26 09:11:41 +02:00
Robin C. Ladiges
ec41ee067e
[debug menu] new: show pagination for players 2024-06-26 09:11:41 +02:00
Robin C. Ladiges
7e9e356714
[debug menu] change: show pagination controls and pages amount 2024-06-26 09:11:41 +02:00
Robin C. Ladiges
90a34e8f87
[debug menu] new: show mod version
fallback to git info if not builded for a specific version
2024-06-26 09:11:41 +02:00
Robin C. Ladiges
ef9b629e3a
[debug menu] change: move main status to the top and simplify it 2024-06-26 09:11:40 +02:00
Robin C. Ladiges
7e698838cf
[debug menu] change: send & recv queue on one line 2024-06-26 09:11:40 +02:00
Robin C. Ladiges
43c55f062d
[debug menu] change: client & gamemode heaps on one line
- Show how much is used instead of how much is free.
- Double precision, because of observable inaccuracies otherwise.
- Divide by 1024 instead of by 1000 to display KiB instead of KB.
- Show only one fractional digit.
- (The max is exactly 320 KiB, so need to show a fractional digit for it.)
2024-06-26 09:11:38 +02:00
CraftyBoss
b2d444b2b9
Merge pull request #65 from Istador/pr-gravity-toggle
don't close the H&S menu after toggling the gravity button
2024-06-25 16:15:10 -07:00
Robin C. Ladiges
94c6e74400
[h&s menu] change: don't close after toggling the gravity button 2024-05-29 13:48:33 +02:00
Robin C. Ladiges
6bc98f79ac
[h&s menu] refac: only one buffer 2024-05-29 13:48:28 +02:00
Robin C. Ladiges
59337d6f38
[mod menu] refac: activateInput and deactivateInput 2024-05-29 13:47:30 +02:00
Robin C. Ladiges
1b3d763015
fix: memory leak if send queue is full 2024-05-29 13:35:07 +02:00
Robin C. Ladiges
b4d90d1d85
fix: add auto reconnect again 2023-09-07 19:30:57 +02:00
Jack Garrard
8acb8700bf
Merge branch 'dev' into udp-client 2023-09-02 13:35:38 -07:00
Jack Garrard
7064122902
Merge branch 'dev' into packet-acceptance 2023-09-02 12:58:53 -07:00
Jack Garrard
8d94cf7856
Merge pull request #54 from Istador/resend-packets
fix: `TagInf` and `CaptureInf` synchronization issues
2023-08-25 18:51:28 -07:00
Jack Garrard
9bf07b3e0d
Merge pull request #53 from Istador/isit-with-active
fix: mark player as not a seeker when H&S is disabled
2023-08-24 23:42:13 -07:00
Robin C. Ladiges
45cd4442c8
recycle the reconnect error to warn about the default Ryujinx profile ID 2023-07-08 20:45:53 +02:00
Robin C. Ladiges
c736878df1
Toggle H&S Gravity with real toggle functionality 2023-07-08 04:31:56 +02:00
Robin C. Ladiges
366ad5e888
remove reconnect button 2023-07-07 23:46:11 +02:00
Robin C. Ladiges
f810e8f07d
fix: send empty TagInf and CaptureInf on first connection
Because other players might still have old values saved in their puppet.
2023-06-24 04:09:47 +02:00
Robin C. Ladiges
2bef6f796e
fix: resend CaptureInf packet on reconnect and for new players 2023-06-24 02:42:54 +02:00
Robin C. Ladiges
4835692672
fix: resend TagInf packet on reconnect and for new players 2023-06-24 01:27:14 +02:00
Robin C. Ladiges
27b9a095f7
fix: mark player as not a seeker when H&S is disabled
If a player is a seeker and then disables H&S, they should no longer be considered as a seeker by other players.
(Because staying as a seeker will kill hiders when touching them).
2023-06-23 04:18:41 +02: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
76d61a8067 Success and receive spelling 2022-10-29 18:21:58 -07:00
Jack Garrard
8c992649fd Remove tabs 2022-10-29 18:16:43 -07:00
Jack Garrard
477f1c9e7d Add a poll time to wait properly 2022-10-29 18:12:53 -07:00
Jack Garrard
4ab6b56598 Use valread and check if it returns zero for udp 2022-10-29 17:46:20 -07:00
Jack Garrard
158f782a2a Change socket client recvTcp to use if guards 2022-10-29 17:41:54 -07:00
Jack Garrard
7e128679ab Split apart tcp and udp recv functions 2022-10-29 17:37:30 -07:00
Jack Garrard
1fc3a78943 Shutdown send/recv threads before socket reinit 2022-10-29 17:17:38 -07:00
Jack Garrard
627e07cd65 Fix missing semicolon 2022-10-27 04:54:30 -07:00
Jack Garrard
57333d71e9 Fix recv buf size calculation 2022-10-27 04:52:27 -07:00
Jack Garrard
4171390f42 Allow hole punch packets to get through before udp fully recved 2022-10-27 04:51:36 -07:00
Jack Garrard
5c04bb1006 Use if guard for alloc in udp recv 2022-10-27 04:46:36 -07:00
Jack Garrard
a58471c19f New lines for logger output 2022-10-27 03:21:54 -07:00
Jack Garrard
78b532a316 Prevent udp error from killing tcp connection 2022-10-27 02:10:44 -07:00
Jack Garrard
efef24fbbe Fix variable names again 2022-10-27 02:09:59 -07:00
Jack Garrard
3e5c0c89e5 Merge branch 'packet-acceptance' into udp-client 2022-10-27 01:03:39 -07:00