5429 Commits

Author SHA1 Message Date
UnknownShadow200
877db69c8b
Merge pull request #695 from UnknownShadow200/DrawopFixup5
Improvements to spheroid draw ops
2022-03-18 07:32:39 +11:00
UnknownShadow200
76a5099f9d Check for null thread in level.Cleanup
Although the NullReferenceException would always be caught, it would still trigger debugger break in visual studio by default which was a bit annoying
2022-03-17 23:55:37 +11:00
UnknownShadow200
b639f4d482 /mark: Allow using relative to last marked coordinate too (e.g. /m x~3 y~4 z~-2) 2022-03-16 23:33:26 +11:00
UnknownShadow200
25bc759161 Default to flatgrass theme in /gen instead of always requiring a theme 2022-03-15 23:27:06 +11:00
UnknownShadow200
8a3da98a3a More accurate 'blocks affected' calculation for /eh and /cylinder 2022-03-14 21:18:03 +11:00
UnknownShadow200
7323daa4b8 use clearer variables/code for hollow spheroid draw ops 2022-03-14 19:26:03 +11:00
UnknownShadow200
c3d99baa19 Add cylinder to /draw and fix height differences between draw vs regular command 2022-03-14 16:31:06 +11:00
UnknownShadow200
f085a235e7 Add cone mode for /spheroid
Also change /spheroid vertical to /spheroid cylinder
2022-03-14 14:48:55 +11:00
UnknownShadow200
ab500c9715 Create generic ShapedDrawOp to form base class for spheroid, cylinder, torus draw operations etc 2022-03-14 14:16:03 +11:00
UnknownShadow200
176294f87b Improve /draw cone look (Thanks Goodly) 2022-03-14 13:12:03 +11:00
UnknownShadow200
bbe5016ef0 Change classicgen to use still lava/water instead of active lava/water, to match original classic
Also when executing commands from discord/IRC, add a space between service type and username for 'fake player' database ID

i.e. fixes when doing /up from Discord/IRC, that /b in-game doesn't show a space between 'Discord/IRC' and username
2022-03-12 23:09:40 +11:00
UnknownShadow200
262cef5d1f Fix some colored multiline messages having redundant 'two color codes in a row' at start of lines after first line, fixes #579
The 'two color codes in a row' also did not display properly in original minecraft classic client

Test case: /help shortcuts
2022-03-11 17:47:49 +11:00
UnknownShadow200
4099595e78 Remove trailing color codes/whitespace from individual lines when sending chat that spans multiple lines, fixes #688
Fixes original minecraft classic client crashing when receiving a chat message packet that ended with a color code

Test case: In console type '/say AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA&a   AAA'
2022-03-11 08:07:54 +11:00
UnknownShadow200
2316bf991d Linewrapper now prepends &f when message starts with space and client doesn't support emotes, fixes #656
This avoids the issue where messages with leading whitespace have that whitespace trimmed by original minecraft classic client

For an example of when such message(s) could occur:
1) Change default system color to white
2) Do /info
2022-03-10 23:16:25 +11:00
UnknownShadow200
3aad4e5396 IRC: Default to using port 6697. Also always use SSL/TLS when connecting on port 6697 2022-03-09 21:29:54 +11:00
UnknownShadow200
23e535db91 Adjust LineWrapper.CleanupColors to avoid leading whitespace, addresses #656 2022-03-08 22:29:13 +11:00
UnknownShadow200
e4cc75699e Doing /map should print info of current level, but would wrongly try to set a map option when executed on a level whose name matched one of the map options (Addresses #690, thanks rdebath) 2022-03-07 20:54:37 +11:00
UnknownShadow200
c4d9da0f4e Fix kick messages with system color codes in them not being escaped 2022-03-07 20:08:07 +11:00
UnknownShadow200
bf1e4794de Better constant naming in Block class, addresses #689 (Thanks rdebath) 2022-03-06 23:57:50 +11:00
UnknownShadow200
f1dad2a3e4
Merge pull request #692 from UnknownShadow200/ProtocolRewrite3
Make network code more modular
2022-03-06 16:30:41 +11:00
UnknownShadow200
fd0113e4c6 Fix TEN_BIT_BLOCKS and a few minor code cleanup changes 2022-03-06 14:45:40 +11:00
UnknownShadow200
16bb834a9a Fix last commit whoops 2022-03-06 10:10:50 +11:00
UnknownShadow200
984301ada0 Embed and load GUI icon from source code directly instead of through Window.resx
Avoids a 'Couldn't process file Window\Window.resx due to its being in the Internet or Restricted zone or having the mark of the web on the file. Remove the mark of the web if you want to process these files' error that happens for some people when trying to compile the GUI
2022-03-06 09:47:26 +11:00
UnknownShadow200
9c8c7689dc Move Player CPE stuff into ClassicProtocol and Player.Networking.cs 2022-03-04 21:19:41 +11:00
UnknownShadow200
279f1dcf58 Move even more to session class 2022-03-04 11:56:00 +11:00
UnknownShadow200
4f11ee20bb Move more sending things to session
Setting spawnpoint done by /checkpoint, fallback for bufferedblocksender, updating entity positions
2022-03-04 08:17:00 +11:00
UnknownShadow200
70058489ee Allow # for ~ alternative for relative coords, as ~ can't be entered in original classic
Also fix can't rank to nobody in Players tab in GUI
Also add method for parsing relative floating point input (Thanks Goodly)
2022-03-03 19:12:32 +11:00
UnknownShadow200
d95ccaad1a Change superop->admin and nobody->owner rank, and make some other changes to default ranks
Can now /promote to 'nobody' rank, and /help ranks now shows 'nobody' rank

Changes to rank default:
  Banned: max /undo time reduced to 0m, /realm maps reduced to 0
  Guest: no changes
  Builder: no changes
  AdvBuilder: /realms maps increased to 5
  Operator: /realm maps increased to 8, AFK kicked after 1 hour
  Superop: name changed to Admin, /realm maps increased to 12, AFK kicked after 1 hour, max /undo time reduced to 14600d
  Nobody: name changed to Owner, /realm maps increased to 16, AFK kicked after 1 hour, max /undo time reduced to 14600d, draw limit increased to 134217728 blocks
2022-03-02 23:53:06 +11:00
UnknownShadow200
60c5698304 Fix /cmds shortcuts [modifier] ignoring modifier 2022-03-01 23:56:20 +11:00
UnknownShadow200
23f06267bf Move more protocol related stuff out of Player class 2022-03-01 22:10:49 +11:00
UnknownShadow200
b85b67be70 Fix custom blocks auto created from built in blocks having wrong Shape value, which would cause solid blocks to show wrong height to clients that only support BlockDefinitions and not BlockDefinitionsExt
Also minorly optimise Voronoi map generator
2022-02-27 22:14:11 +11:00
UnknownShadow200
1684d31e4c Try to use better fallback block ids when importing custom blocks from .cw files
If a global custom block exists for this block ID, then use the fallback block ID from the global custom block
Otherwise if this block ID is an original classic or CPE block, then use this block ID as the fallback ID
2022-02-27 21:27:43 +11:00
UnknownShadow200
0b1185da99 Make billow3D/perlin3D map generation a tiny bit faster 2022-02-27 15:49:34 +11:00
UnknownShadow200
fec61b9b48 Release 1.9.3.9 1.9.3.9 2022-02-27 09:57:32 +11:00
UnknownShadow200
6f71af3713 Change classic map gen to standard/simple theme instead of advanced theme
That way it can be used to generate maps in GUI and by players ranked less than superop by default
2022-02-26 11:32:44 +11:00
UnknownShadow200
3cb816a602 GUI: In players gui, 'do command' automatically strips leading / if it is provided (e.g. /cmd -> cmd)
This makes it more consistent with regular console command input

Also improve /vote messaging (thanks Goodly and Panda)
2022-02-22 23:29:48 +11:00
UnknownShadow200
50a718fb15 Fix wrong yaw/pitch when spawning self in classic 0.0.16a 2022-02-21 23:43:40 +11:00
UnknownShadow200
c4ba3b7e28 Fix teleporting self in 0.0.16-0.0.17 doing nothing 2022-02-21 19:55:11 +11:00
UnknownShadow200
f211335d37 GUI: In Players tab, change 'Send Message' message to behave as a direct/private message
Previously it just simply sent a '<CONSOLE>: [message]' message to the player
2022-02-19 12:39:00 +11:00
UnknownShadow200
c420d0df1d Improve some fallback blocks for < 0.30 classic versions 2022-02-17 17:56:42 +11:00
UnknownShadow200
9d82d5eb0f Fix 256 max players not working in GUI 2022-02-16 20:20:30 +11:00
UnknownShadow200
f8805bb1c0 Discord: Update Gateway api from v6 to v8 (websockets API) 2022-02-16 12:15:22 +11:00
UnknownShadow200
d42c059b71 Bump player limit to 256 2022-02-16 08:12:15 +11:00
UnknownShadow200
284c8a05f5 Remove misleading TargetName property from ModActionEvent (Thanks 123DMWM) 2022-02-15 18:14:24 +11:00
UnknownShadow200
ec2ba25d86 Cmdunload now includes name of command, /cmdload and /cmdunload now use &T before command names 2022-02-10 23:17:56 +11:00
UnknownShadow200
f82ea2cb51 Compiling now includes source filenames at end in success message (thanks Venk) 2022-02-08 21:01:57 +11:00
UnknownShadow200
ca8f6eba59 Change 'admin verification' to more generic 'account/password verification' in messages 2022-02-06 08:35:36 +11:00
UnknownShadow200
a1071758a0 Don't bother resending block permissions when defining a new custom block
Makes no difference in the client whether the block permissions are sent here or not
2022-02-04 22:26:21 +11:00
UnknownShadow200
5005a97aa6 Fix last commit 2022-02-04 12:01:33 +11:00
UnknownShadow200
54817d9bc3 Move AddExtension to ClassicProtocol.cs 2022-02-04 11:57:24 +11:00