Commit graph

55 commits

Author SHA1 Message Date
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
64b56c32da Add race protection to message queues 2022-10-27 01:02:32 -07:00
Jack Garrard
89415e6f96 Hopefully prevent close socket race condition 2022-10-27 01:00:58 -07:00
Jack Garrard
7c17db2d93 Fix free issue from wrong heap if unknown packet 2022-10-23 14:41:16 -07:00
Jack Garrard
f6408e2b1e Merge branch 'dev' into packet-acceptance 2022-10-15 00:18:57 -07:00
CraftyBoss
d4eabffff1 executor table re-impl, shine sync changes, send/recv netcode refactored 2022-09-04 02:23:02 -07:00
Jack Garrard
b18671f113 Move packet type check to after packet data recv 2022-08-27 01:56:20 -07:00
Sanae
b3a30b09f7 Remove a check which blocks players from being updated
Oops! teehee SmileW
2022-08-10 16:10:16 -06:00
CraftyBoss
d3b1935899
Merge pull request #20 from Istador/dns
on invalid IPv4 addresses, assume it's a hostname and do a DNS lookup
2022-08-10 15:00:35 -07:00
CraftyBoss
550b82fc1f Merge branch 'main' of https://github.com/Sanae6/SuperMarioOdysseyOnline into Sanae6-main 2022-08-10 14:40:16 -07:00
CraftyBoss
dc0930063d Merge branch 'dev' of https://github.com/CraftyBoss/SuperMarioOdysseyOnline into dev 2022-08-10 14:12:00 -07:00
CraftyBoss
8f4fac417f change recieve logs, update headers, fix bound bowl crash 2022-08-10 14:11:52 -07:00
Sanae
d18276d255 Fix switching modes between scenes 2022-08-10 15:10:28 -06:00
Sanae
34691affb0 Overhaul gamemode management 2022-08-07 15:57:18 -06:00
Sanae
5f1a91161f
Merge pull request #23 from Link4565/dev 2022-07-24 16:42:07 -06:00
Robin C. Ladiges
ce5b799593
change KeyboardMode from Numeric to ASCII 2022-07-18 03:49:42 +02:00
Robin C. Ladiges
dd4f3202ae
change default IP
This might otherwise cause confusion with the server.json setting, which should stay at 0.0.0.0.

127.0.0.1 might at least work with emulators running on the same PC out of the box. Whereas 0.0.0.0 should be invalid (except on some systems that map
it to localhost).
2022-07-18 03:48:53 +02:00
Robin C. Ladiges
b3b49bd547
on invalid IPv4 addresses, assume it's a hostname and do a DNS lookup
Enable the full keyboard to enter non-numbers and increase max length from 15 to 50 for longer hostnames.

I know FQDNs can be longer than 50 characters, but that's less common (and painful to type on the Switch).
2022-07-10 08:13:28 +02:00
CraftyBoss
3c4a20a6d4 only save ip/port changes if actually changed, reconnect fixes 2022-07-09 18:24:00 -07:00
CraftyBoss
4f2bb984f2 begin work on join/disconnect particle effect, fix index oob error 2022-07-08 15:09:04 -07:00
CraftyBoss
88de1dcecf shift to sead singleton for Client, new custom heap for Client usage 2022-07-08 01:02:28 -07:00
CraftyBoss
1df21b2a3e added new headers, puppet actor archive, basic player interaction impl 2022-07-07 22:36:29 -07:00
Link4565
c9b1dfa911 Disable blocking on Recv calls
Adding non-blocking support to emulators prevents them from stalling with this change
2022-07-06 22:42:41 +01:00
CraftyBoss
3ce0f03650 Merge branch 'dev' of https://github.com/CraftyBoss/SuperMarioOdysseyOnline into dev 2022-07-05 19:34:48 -07:00
CraftyBoss
b00540b1d9 impl saving after ip/port change, add sceneobj headers, rework puppet info system a bit 2022-07-05 12:45:22 -07:00
Nick Renieris
951844e428 main: Fix debug puppet index incrementing
The last one was empty.
2022-06-26 10:42:28 +03:00
Nick Renieris
740f562906 server/logger: Support trying additional ports 2022-06-26 10:42:28 +03:00
Nick Renieris
62cc2a5102 SocketClient: Log packets by default (also recv), excluding Player and Cap
They're too spammy.
2022-06-26 10:42:28 +03:00
Nick Renieris
86de220619 Client: Sync Player & Costume info on connect 2022-06-26 06:11:06 +03:00
Nick Renieris
71b4237d84 Client: Don't erroneously log some errors 2022-06-26 00:55:14 +03:00
Nick Renieris
90f09a8340 states: Fix "Change Server Port" dialog 2022-06-26 00:55:14 +03:00
Nick Renieris
0bfd7a70b2 main: Log puppet costume 2022-06-25 03:59:25 +03:00
Nick Renieris
23cdf1442d Make "Reconnect to Server" option work if initial socket conn failed 2022-06-25 03:59:25 +03:00
Nick Renieris
60a5179e4b Anims/Types: Handle out of bounds FindStr accesses without throwing
Throwing tries to call `std::__throw_out_of_range_fmt` which results in a crash.
The cause of the out of bounds accesses needs to be investigated.
2022-06-23 20:56:05 -04:00
CraftyBoss
cbadd82b21
Revert "remove fixed buffer size from logger (+ run clang-format)" 2022-06-19 23:56:37 -07:00
fruityloops1
3b3c5584d9 remove fixed buffer size from runner (+ run clang-format) 2022-06-19 16:10:20 +02:00
Somebody Whoisbored
9b275da22b Implement Client::setLastUsedPort 2022-06-18 21:42:59 -07:00
Somebody Whoisbored
f8b4bd690d Enable music by default 2022-06-18 18:38:46 -07:00
Somebody Whoisbored
a7715c15da Correct socket option/levels 2022-06-18 18:37:46 -07:00
Somebody Whoisbored
0657047d9c Fix DEBUGLOG check 2022-06-18 18:36:46 -07:00