5253 Commits

Author SHA1 Message Date
UnknownShadow200
29a1b06301 Fix old database migration bugs
In detail:
1) BlockDB upgrader didn't convert time from local to UTC, which meant that times in /b were e.g. 10 hours off
2) Zone migrator accidentally set minX/maxX to imported minZ/maxZ and left minZ/maxZ as 0. Bug introduced four years ago in f1a8544308094586a3a1b5d61cd96d03391ad448
2022-08-06 15:36:21 +10:00
UnknownShadow200
b776d685a6 Fix errors 2022-08-06 15:02:45 +10:00
UnknownShadow200
b53f02a1d9 minorly tidy up upnp code 2022-08-05 22:34:20 +10:00
UnknownShadow200
31716601fb Fix with server backup .zips, can't add/edit files using Windows built in zip archiver later 2022-08-05 08:04:02 +10:00
UnknownShadow200
559a244b9f Fix wrong license in LICENSE file (it's GPL3 not LGPL3) 2022-08-04 23:28:11 +10:00
UnknownShadow200
63ab7204b2 Try to preserve original file modification date in /server backup ZIPs, fixes #716 2022-08-03 20:08:52 +10:00
UnknownShadow200
52c1b89767 Support custom command categories in /help and /commands, also improve help of /commands (Thanks PlayerZ) 2022-08-02 22:15:05 +10:00
UnknownShadow200
9d50984215 Drop support for old password format, resolves #711
Note: The old password format was deprecated 18 months ago. Also, even if there are still some users/servers that haven't updated, all this will mean is that they have to set a password again, they won't be prevented from being able to verify their password
2022-08-01 22:55:56 +10:00
UnknownShadow200
c463e6751d Fix some https:// heartbeat URLs not working with ProtocolError 2022-07-30 10:36:56 +10:00
UnknownShadow200
21eb0800b8 ZS: Change infect messages to use <zombie>/<human> instead of {0}/{1}, and document that in /store for buying an infect message 2022-07-29 11:59:29 +10:00
UnknownShadow200
676144efc8 Simplify database iteration API to avoid object arg/return value 2022-07-26 12:02:47 +10:00
UnknownShadow200
84958c1563 Allow changing perbuild/pervisit of multiple levels at once by comma separating map names 2022-07-25 22:26:52 +10:00
UnknownShadow200
b8329b04b8 Don't show 'on line 0' in compiler error messages for compiler errors that don't relate to a line in the source code
E.g. trying to //reference a non-existent assembly dll
2022-07-23 17:26:18 +10:00
UnknownShadow200
eecb2d47f2 .NET core build no longer depends on CodeDom at all for compiling 2022-07-23 17:14:41 +10:00
UnknownShadow200
cadde3b0c4 Improve /pcreate C# example, and simplify ICompiler slightly since a full CompilerResults instance is not required 2022-07-23 13:57:07 +10:00
UnknownShadow200
de386a39c5 Simplify Roslyn C# compiler backend 2022-07-23 10:24:17 +10:00
UnknownShadow200
5d8289dd3f Custom commands GUI compiling now generates temp .dll path itself, instead of relying on CodeDomCompiler to generate it through 'GenerateInMemory' 2022-07-23 09:01:45 +10:00
UnknownShadow200
d182a3c496 Show 'Only IRC/Discord controllers are allowed to use in-game commands from IRC/Discord' when a non controller user attempts to run an in-game commands from IRC/Discord
Only shown at most once every minute to avoid spam
2022-07-22 19:46:37 +10:00
UnknownShadow200
b94b0eeace Release 1.9.4.2 1.9.4.2 2022-07-22 08:20:22 +10:00
UnknownShadow200
3cd44c8175 Change custom commands GUI and /compile help to use actual list of ICompilers instead of hardcoding for C#/VB 2022-07-21 23:17:59 +10:00
UnknownShadow200
71f21ef010 Add event for reporting a player (Thanks SpicyCombo) 2022-07-21 19:13:31 +10:00
UnknownShadow200
799cb97b47 Stop using cmdautoload.txt and just autoload all commands in extra/commands/dll folder 2022-07-20 22:25:08 +10:00
UnknownShadow200
15755bf646 Allow /punload ing plugins with spaces in their names 2022-07-20 22:13:39 +10:00
UnknownShadow200
1ba59f88f0 Move /pcreate into /cmdcreate to simplify implementation 2022-07-20 20:54:26 +10:00
UnknownShadow200
38aed212f7 Add a bit more documentation for physics, and use more appropriate access modifiers 2022-07-19 22:55:59 +10:00
UnknownShadow200
f571c82eb1 Move Heartbeats to separate scheduler (Thanks 123DMWM) 2022-07-18 21:06:31 +10:00
UnknownShadow200
c37ee13926 Make /restart work with .NET core on Linux 2022-07-17 13:16:29 +10:00
UnknownShadow200
0f2c0c0af4 Make listen-ip server option harder to find by moving it from Server to Other group
Multiple occasions where this option has been changed by users to e.g. server's IP, even though this is usually unnecessary because 0.0.0.0 already specifies to listen on all network interfaces - although this wasn't explained to the end user
2022-07-16 13:33:54 +10:00
UnknownShadow200
c75a9a92fc Make /sinfo all processes CPU usage work on macOS, fixes #712 2022-07-16 12:25:35 +10:00
UnknownShadow200
02509ef3b9 Rewrite 'all processes CPU usage' in /sinfo to not use performance counters, addresses #712
Fixes /sinfo not working on Linux when using .NET core
2022-07-16 11:13:10 +10:00
UnknownShadow200
d8da8b6d13 Make /compload work with plugins too 2022-07-14 21:42:35 +10:00
UnknownShadow200
702520d354 Allow authentication service verified users to kick existing connected user even when name verification mode is off 2022-07-13 19:06:23 +10:00
UnknownShadow200
0b7df6c506 Disconnect unsupported Classic+ client mod with better message 2022-07-12 19:39:46 +10:00
UnknownShadow200
7453633525 Mppass can be used for /pass at login when it isn't used for username authentication 2022-07-11 20:46:13 +10:00
UnknownShadow200
a314ab0be0 Fix train gradual movement bias towards 0,0 (Fixes #709, thanks rdebath) 2022-07-10 21:23:56 +10:00
UnknownShadow200
c5f077c274 Database.DeleteTable should do nothing if table doesn't exist instead of throwing an error 2022-07-09 08:37:13 +10:00
UnknownShadow200
5a6d3b690a Truncate long errors returned by Discord (Thanks 123DMWM)
This sometimes happens when Discord returns a full <html> response instead of usual error JSON in the event of an internal server error
2022-07-08 17:20:26 +10:00
UnknownShadow200
2477ed74c3 Fix /whitelist disable enabling whitelist instead (Thanks SpicyCombo) 2022-06-27 18:07:56 +10:00
UnknownShadow200
975bcb835a ZS: Allow setting custom round/infection start countdown time
Also enable /baninfo and /rankinfo (and theroetically any custom mod commands that choose to do so) to be used in MBs, without the additional restriction that moderation commands previously always required
2022-06-25 20:31:54 +10:00
UnknownShadow200
ec2b9b2024 Release 1.9.4.1 1.9.4.1 2022-06-24 07:57:13 +10:00
UnknownShadow200
6dba848a7a Attempt to authenticate via mppass first even when name verification is disabled 2022-06-23 21:38:29 +10:00
UnknownShadow200
454c8c8d45 Fix bots with ridiculously extremely large model scales (e.g. 3.3 x 10^38) failing to load (Thanks 123DMWM)
Unfortunately, this also tended to results in the bots list being wiped/cleared when it was subsequently saved

This was caused by the JSON parser not properly handling numbers in exponential notation, that has been fixed now
2022-06-22 23:11:34 +10:00
UnknownShadow200
5477be732e Minorly optimise packet handling 2022-06-22 19:19:25 +10:00
UnknownShadow200
a1a7704d06 Fix issues where /sinfo CPU usage either showed misleading values or didn't work at all
Windows: It didn't divide by core count, so displayed value was typically 2x - 4x value in task manager
mono: Always returned 0.00%
.NET core: Not implemented on Linux and would throw PlatformNotSupportedException there

Now uses GetCurrentProcess().TotalProcessor instead to show CPU usage measured over last second, and also average since /sinfo was first run
2022-06-18 16:13:52 +10:00
UnknownShadow200
28dec59bba Simplify /sinfo slightly and make its appearance more like /info
Removed console state and changed position update from 'X every millisecond to X times/second'
2022-06-17 08:28:01 +10:00
UnknownShadow200
683887978e Discord: Limit status updates to at most once every 0.5 seconds 2022-06-15 20:06:47 +10:00
UnknownShadow200
56f5eb5e24 Fix very rare case where Zones would disappear when level was saved (Thanks 123DMWM) 2022-06-13 09:29:39 +10:00
UnknownShadow200
c605027f66 Make discord bot player count in status message always equal number of players that will appear in .who
Previously status message player count just counted number of non-hidden players. However it's possible for a player to be hidden, yet still be visible to guest ranked players - e.g. with /ohide
2022-06-11 22:39:44 +10:00
UnknownShadow200
4ea13c2146 Move Ping field to IGameSession 2022-06-11 22:10:47 +10:00
UnknownShadow200
ad68660649 Make //reference work most of the time when compiling with .NET core 2022-06-11 16:42:21 +10:00