0
0
Fork 0
mirror of https://github.com/Sanae6/SmoOnlineServer.git synced 2024-11-21 18:55:17 +00:00
Commit graph

183 commits

Author SHA1 Message Date
TheUbMunster
d2c8c8d3cd Fixed race condition with restart to make sure it only happens after the listener closes. 2022-07-28 00:11:40 -06:00
TheUbMunster
068cc7c06d Added restart server command 2022-07-27 23:56:50 -06:00
Sanae
66114bdecb
Always update client's name on connect
Since the client variable would be changed in a reconnect, the name is not set on the old client object.
2022-07-27 14:00:58 -06:00
TheUbMunster
db05586dd0 Added quotable arguments, potential fix for ban * not banning anyone. 2022-07-27 12:14:56 -06:00
TheUbMunster
d604c59a77 Added quotable arguments, potential fix for ban * not banning anyone. 2022-07-27 12:14:56 -06:00
TheUbMunster
5ca5b10db8 Fixed backwards ternaries in ban, crash, rejoin, 0 arguments no longer valid. 2022-07-27 12:14:56 -06:00
Jack Baron
f305c3001b save/load moons from file 2022-07-22 18:56:00 -06:00
Jack Baron
8d90f50fa9 add moon persistence settings 2022-07-22 18:56:00 -06:00
CraftyBoss
967a89a55b Merge branch 'master' of https://github.com/Sanae6/SmoOnlineServer 2022-07-08 23:13:44 +00:00
CraftyBoss
11015bd445 only send game packet on join to connected clients 2022-07-08 23:13:35 +00:00
raym55
787491456f Update Program.cs 2022-06-29 06:54:14 +01:00
Sanae
72061215ce Add wildcard to rejoin, crash, ban commands 2022-06-28 14:34:03 -06:00
Sanae
f9c20e73a8 Fix accidental squashed command handler 2022-06-20 13:10:35 -06:00
Sanae
b5825b537f Implements Added Bot Reconnect Command (#1)
Add dscrestart command
Update Program.cs
2022-06-20 12:55:01 -06:00
Sanae
60249feef8 Remove the "Console log:" from discord logs 2022-06-20 12:53:30 -06:00
Sanae
5d78814620 Reformat Program.cs 2022-06-20 12:52:46 -06:00
Sanae
22a8e91f85 Try/catch bot msg sending and add exception handlers 2022-06-19 19:33:45 -06:00
Sanae
e9136704c1 Fix response messages for ban and send commands 2022-06-19 19:33:08 -06:00
Sanae
c4c0616fb7 Make some commands accept ids and partial names 2022-06-18 02:09:40 -06:00
Sanae
dd3f65f5e8 Add README.md 2022-06-17 21:18:57 -06:00
Sanae
1f5ea97272 Finish ban implementation 2022-06-17 21:18:08 -06:00
Sanae
561d633e40 Add a simple discord bot to manage the server 2022-06-12 18:48:24 -06:00
Sanae
774ef20bb4 Multiple users on commands 2022-05-31 16:02:12 -06:00
Sanae
74c00aa0f8 The user management update 2022-05-31 15:48:57 -06:00
Sanae
d898f4754b Add max players command and remove savesettigns 2022-05-31 14:48:48 -06:00
Sanae
99aabeffc9 Add init packet 2022-05-08 16:04:57 -06:00
Sanae
ab318db1b8 Clean up logging from testing 2022-04-27 21:32:52 -06:00
Sanae
605be3947f I'm going to commit war crimes 2022-04-27 14:17:02 -06:00
Sanae
df2e976782 balls 2022-04-27 14:09:50 -06:00
Sanae
a775e593c3 Absurd logging 2022-04-27 14:02:26 -06:00
Sanae
6288f8ae49 Put more logs around send 2022-04-27 13:43:03 -06:00
Sanae
4fb57f9b7e Suffer 2022-04-27 00:43:11 -06:00
Sanae
3cc35f52b8 logstreme 2022-04-27 00:31:48 -06:00
Sanae
bddce48f9d Stop using MemoryMarshal for header serde 2022-04-27 00:24:11 -06:00
Sanae
1bcb15eb54 Read header normally 2022-04-26 23:58:43 -06:00
Sanae
1f57a9fb65 puss 2022-04-26 23:54:05 -06:00
Sanae
5d1b95997c more logs 2 2022-04-26 23:53:03 -06:00
Sanae
497ebcc06b More logs 2022-04-26 23:48:13 -06:00
Sanae
cad2c5b9c8 u wot m8 2022-04-26 23:38:38 -06:00
Sanae
6964c3bbf4 Add max players to connect packet 2022-04-26 23:24:40 -06:00
Sanae
7a088eb314 Fix 2, electric boogaloo 2022-04-26 23:06:27 -06:00
CraftyBoss
3e462ddb64 Merge branch 'master' of https://github.com/Sanae6/SmoOnlineServer 2022-04-27 04:43:48 +00:00
CraftyBoss
ff570a17c7 only show connected players in list command 2022-04-27 04:43:46 +00:00
Sanae
eaadb90ee3 Probably fix scenario merging for real this time 2022-04-26 22:40:02 -06:00
Sanae
aea7d4414f Revert potential scenario merging fix 2022-04-05 14:07:02 -06:00
CraftyBoss
a89471de54 Merge branch 'master' of https://github.com/Sanae6/SmoOnlineServer 2022-04-05 19:35:15 +00:00
CraftyBoss
7eb7c97c43 fix possible typos with send/sendall cmd 2022-04-05 19:35:13 +00:00
Sanae
1a82666d93 Disconnect previous client instead of throwing on new client (rejoins) 2022-04-04 14:43:44 -06:00
Sanae
534a6c9655 Make packet transformation work in Send(Memory)
speedrun flag
2022-04-03 22:29:34 -06:00
Sanae
a0a53ff7bf ReuseAddress requires Socket level 2022-04-02 20:58:57 -06:00
Sanae
cc5c86091e Try using tcp to not require sudo? 2022-04-02 20:14:35 -06:00
Sanae
886b57f16a Actually broadcast instead of sending to only one person 2022-03-31 16:21:20 -06:00
Sanae
6224234272 Clear global shine bag on new speedrun 2022-03-31 15:34:08 -06:00
Sanae
b3686e8197 Delay fm sync by 15s 2022-03-31 13:56:48 -06:00
Sanae
4dee13a9d7 Potentially fix scenario shine sync for first moon 2022-03-31 13:48:42 -06:00
CraftyBoss
46bae93502 add shine send command 2022-03-31 00:34:47 +00:00
CraftyBoss
4e05fe9e3f add short-names for kingdoms, sendall cmd 2022-03-28 06:05:32 +00:00
Sanae
661763b23f Add untested stage change command 2022-03-24 22:53:00 -06:00
Sanae
50adf23be3 Use correct maxplayers field 2022-03-22 03:20:49 -06:00
Sanae
8645db12fa Improving rejoins and other changes 2022-03-22 03:19:06 -06:00
Sanae
27d2d9acd9 Bye send buffer stuff 2022-03-15 20:25:36 -06:00
Sanae
709af8d3ec Send buffer 1 on another oscket 2022-03-15 17:28:15 -06:00
Sanae
206bbd5d4c Set send buffer to 1 2022-03-15 17:23:53 -06:00
Sanae
a288e5b7a8 Rejoyne 2022-03-15 15:37:23 -06:00
Sanae
2a8e1696ab Remove another useless log 2022-03-15 15:02:27 -06:00
Sanae
8d11623ada Various useful changes 2022-03-15 14:44:46 -06:00
Sanae
cc67ac9ced Waaaa copium seethe 2022-03-15 02:08:52 -06:00
Sanae
3a8b38142e Lol 2022-03-15 01:31:24 -06:00
Sanae
e64c922966 ContainsKey is a method 2022-03-15 01:26:28 -06:00
Sanae
4dcfa2f4e6 Waities 2022-03-15 01:25:09 -06:00
Sanae
09ff142a39 Also sync game packets 2022-03-15 01:23:37 -06:00
Sanae
e917010e08 So true 2022-03-15 01:01:37 -06:00
Sanae
7039e760db Shine sync don't sfx me every two minutes challenge 2022-03-15 00:47:51 -06:00
Sanae
ad0a40878d Add tag commands and improve command handling 2022-03-14 23:59:23 -06:00
Sanae
217dc2765e Remove test exception when disconnecting 2022-03-13 15:27:53 -06:00
Sanae
c778d15644 Packet cleanup and refactoring 2022-03-13 05:14:01 -06:00
Sanae
3b13e1f86d Fixing variable packet sizes once and for all 2022-03-11 23:42:51 -06:00
Sanae
93143a80ef Another log 2022-03-11 20:56:58 -06:00
Sanae
cf5ba12861 One more log 2022-03-11 20:29:17 -06:00
Sanae
ebf5080a00 More log changes 2022-03-11 20:16:10 -06:00
Sanae
4c5682e59b Read better 2022-03-11 20:06:47 -06:00
Sanae
89dcb7f6c9 More changes to reading varsize packets 2022-03-11 19:08:50 -06:00
Sanae
8c5cd0ced2 Untested conversion to variable size packets 2022-03-10 23:59:02 -06:00
Sanae
f41eee95d6 Remove ad-hoc logging code 2022-03-08 17:09:32 -06:00
Sanae
09fb2af344 ! 2022-03-08 17:05:57 -06:00
Sanae
c92f4ba60c Log captures again 2022-03-08 17:03:16 -06:00
Sanae
f47ab01d4c Make flipping a permanent setting like the others 2022-03-06 17:32:49 -06:00
Sanae
134437eec9 Set client name regardless of connection type 2022-03-06 17:19:49 -06:00
Sanae
9e1a53a231 Code (style) fixes 2022-03-03 22:24:33 -06:00
Sanae
f6df86f927 Make connect packet parameter _ in ClientJoined handler 2022-03-03 21:06:27 -06:00
Sanae
412607c0c9 Fix another shine sync crash 2022-03-01 19:42:14 -06:00
Sanae
00626ab12f Add scenario merging and run reformatting on solution 2022-03-01 15:08:53 -06:00
Sanae
3d4356ccfc Shine sync sending might crash the game, try catch it lol 2022-02-22 20:51:48 -06:00
Sanae
d074f8a5d6 List command implementation 2022-02-22 15:28:51 -06:00
Sanae
557a926a68 Handle max player count correctly 2022-02-22 14:33:59 -06:00
Sanae
a554af2a44 Hack fixed 2022-02-22 14:11:06 -06:00
Sanae
954f9db537 Hack log 2022-02-22 14:06:14 -06:00
Sanae
31e70a08b9 Add proper exit handling 2022-02-21 22:05:13 -06:00
Sanae
bf15f51eb3 Use Json.NET instead of Tomlyn for settings file
Tomlyn can't cope with Guids, so moving to Json.NET
2022-02-17 20:39:48 -06:00
Sanae
821301e756 Implement console commands and settings (flip list broken) 2022-02-17 19:56:12 -06:00