Commit graph

183 commits

Author SHA1 Message Date
Mhowser
7df98a96b5 Added 1.15.1 protocol 2019-12-25 10:12:18 +00:00
ORelio
aba2ec79d1 Add 1.15.1 (1/2) 2019-12-25 11:11:55 +01:00
ORelio
c6f00ce686 Add support for Minecraft 1.15
See #834
2019-12-14 14:22:24 +01:00
ORelio
94e96b11dd Better handling of SocketException variants
See #817
2019-12-08 21:44:25 +01:00
ORelio
96eda73dce Mark Terrain & Movement as supported for 1.14.4
See #794 #820 #822
2019-11-01 12:07:57 +01:00
Pokechu22
6ac3cd90ee Fix VarInt too big for player position and look 2019-10-29 19:53:28 +01:00
TheSnoozer
1f53845841 fix some doc strings 2019-10-03 09:48:40 +02:00
TheSnoozer
d4aa63d1d3 fix some doc strings 2019-10-03 09:46:08 +02:00
TheSnoozer
851f634fae https://github.com/ORelio/Minecraft-Console-Client/issues/811: report the raw packet data whenever we get a VarInt too big 2019-10-03 09:38:49 +02:00
ORelio
877e50579d Add connection timeout using server keepalives
Vanilla client will consider that connection has been lost
when no server keepalive was received during the last 30 seconds.
This commit implements a similar mechanism in MCC. See #802
2019-09-15 17:01:53 +02:00
ORelio
1406c00abd Fix SocketException causing InvalidDataException
See #788
2019-08-20 12:44:45 +02:00
0Jumpero
10790f2982 Changed the protocol version
I got the wrong protocol version previously. Got the right one from https://wiki.vg/Protocol_version_numbers for the live version on Minecraft
2019-07-20 20:40:57 +02:00
0Jumpero
84e790e9ce Add 1.14.4 support 2019-07-20 20:40:57 +02:00
Sheldon Rupp
81261c96f2 Add 1.14.3 support 2019-07-16 17:12:42 +02:00
ORelio
5b28179444 Auto-disable inventories when not supported
See #738
2019-05-30 11:34:08 +02:00
ORelio
084668b621 Mark 1.14.2 Terrain as supported
See #741
2019-05-30 11:25:45 +02:00
xdavidwu
49e1e76538 Add 1.14.2 support
Yet another version bump for Minecraft bugfix release.
Chat support tested and worked.
2019-05-30 11:25:45 +02:00
xPenguinx
9c0e3f3bcb Close Window & Toggle Setting 2019-05-28 18:53:40 +02:00
xPenguinx
5895a4161f Started to implement inventory handling 2019-05-28 18:53:40 +02:00
ORelio
76def0d56b Fix crash on terrain and movements not implemented (#736) 2019-05-25 18:09:22 +02:00
ORelio
4964860679 Mark 1.14.1 terrain as supported
1.14.1 Material IDs are the same as 1.14.
See #728 and #736
2019-05-25 18:03:48 +02:00
xdavidwu
f99fb5886b 1.14.1 support 2019-05-14 19:53:29 +02:00
ORelio
0d58fb9063 MC 1.14 Terrain support (#703)
Minecraft 1.14 is now fully supported.

- Implement NBT parsing to skip NBT field in chunk data
- Update lighting data format in Chunk Data parsing
- Move Chunk Data parsing into Protocol18Terrain.cs
- Improve PaletteGenerator to greatly reduce palette files sizes
- Re-Generate Palette113.cs to reduce its size (378 Kib -> 50 Kib)
- Generate Palette114.cs (57 Kib instead of 516 Kib with prev format)
- Update Material.cs and MaterialExtensions.cs for new block types
2019-05-01 15:31:34 +02:00
ORelio
d2cbc9f1c3 Split Protocol18 protocol into several classes
- Protocol18: Handles Vanilla packets
 - Protocol18Forge: Handles Forge packets
 - DataTypes: Handles packet field encoding/decoding
 - SocketWrapper: Handles encryption and basic R/W operations

This commit should not change anything for end users, only devs.
See also #704 for discussions about this.
2019-04-29 22:30:43 +02:00
ORelio
295d6546b8 MC 1.14 Basic/Chat support (#703)
Implement MC 1.14 baseline protocol support
Terrain and movements not supported yet for 1.14
2019-04-29 00:26:32 +02:00
ORelio
a6e660c974 Enable/Disable TerrainAndMovements while logged in
Feature requested in #705
2019-04-28 21:32:03 +02:00
ORelio
41b3f98924 Fix packet IDs for Minecraft 1.11.X
Issue #710, bug introduced when implementing #599
2019-04-28 19:40:31 +02:00
ORelio
5f83ff0958 Fix dev build numbering, add update notes
Add newline in AssemblyInfo to fix dev build number in exe (#456)
Add remarks on how to implement newer MC versions (from #145, #599)
2019-04-28 15:58:10 +02:00
ORelio
9841156130 Add more debug info in packet parsing errors
For diagnosing #710 and other future packet parsing errors
2019-04-27 21:04:13 +02:00
ORelio
c04b17cabc Implement Terrain and Movements for MC 1.13
Special thanks to @TheSnoozer and @vkorn for their help!

 - Implement global block Palette mechanism
 - Add class generation tool from blocks.json
 - Regenerate Material.cs and redefine solid blocks
 - Migrate previous Material.cs into Palette112
 - Generate Palette113 from MC 1.13.2 blocks.json
 - Improve Block class to handle up to 65535 block states
 - Adjust terrain parsing, small fixes in packets
 - Remove unused snapshot-related protocol cases

Solves #599
2019-04-25 22:19:50 +02:00
TheSnoozer
b57630a5e4 https://github.com/ORelio/Minecraft-Console-Client/issues/493: UUID not properly storing due to GUID conversion (need to convert a Java big-endian Guid to a C# little-endian Guid) 2019-04-22 14:22:14 +02:00
TheSnoozer
33edd15c9b https://github.com/ORelio/Minecraft-Console-Client/issues/625: add GetOnlinePlayersWithUUID() which allows to retrive a UUID <-> playerName relation 2019-04-22 14:22:14 +02:00
ORelio
2ebc8eded5 Implement file polling for disk session cache
For use in case FileSystemWatcher does not work, see #684
2019-04-17 05:18:19 +02:00
ORelio
5e11348e6f Debug messages for login attempt
Print stack traces when debugmessages=true for issue #696
2019-04-17 04:38:09 +02:00
ORelio
d0088e0dca Update player look when using pathfinding
Document Look command in Readme
Improve UpdateLocation API
Small coding style fixes
2019-04-12 17:11:41 +02:00
Stanley Powers
ba0f51dc8c Update func info and use concatBytes 2019-04-12 16:25:15 +02:00
Stanley Powers
8bfdb2ab59 Look command 2019-04-12 16:25:15 +02:00
LinTx
950fc42118 general 1.13.2 support(v404 protocol) 2018-11-07 22:25:48 +01:00
TheSnoozer
32667f8d5d general 1.13.1 support (v401 protocol) - there doesn't seem to be any packet changes since 1.13 (v393) 2018-10-07 08:27:31 +02:00
TheSnoozer
aad3d8b2ef https://github.com/ORelio/Minecraft-Console-Client/issues/525: general 1.13 support (v393 protocol). Note that terrainandmovements might cause some issues 2018-10-07 08:27:31 +02:00
Barnehhh
35058327d0 GetPing AutoTimeout timeout delay change.
Increase the time of the fast srvrecord setting from 5 to 10 seconds. As of now the method gets timed out before actually completing/attempting the Protocol18 DoPing.
2018-07-04 19:48:43 +02:00
ORelio
ecf0114f62 ConsoleIO: Sync with SharpTools
Had 2 versions of the ConsoleIO class, one here inc MCC (the original),
and another one in SharpTools, more generic, for use in other projects.

Both had diverged, this commit imports changes from the other repository.
This should not have any particular effect on MCC, besides adding more
documentation and settings in the source code of the class.

If any issue arises, as always, please report it :)
2018-05-28 22:09:50 +02:00
ORelio
143fcf7155 Move SessionToken.cs 2018-05-25 20:27:31 +02:00
ORelio
a75710b501 Fix online-mode server login
Fix session checking on server login as described in issue #451
2018-05-23 23:08:17 +02:00
ORelio
1cecf2d788 Improve debug output for HTTPS requests
For diagnosing session errors in #450 and #451
2018-05-23 19:07:31 +02:00
ORelio
79aaa04775 ScriptScheduler: Add debug messages for issue #431
These messages will only apprear if debugmessages=true in config.
2018-05-08 19:27:19 +02:00
ORelio
18fd24d2d5 Improve session caching
- Change SessionCache.db to SessionCache.ini
   Allows users to view and edit session cache

 - Automatically import previous SessionCache.db
   But this file is only read, not updated

 - Automatically import Minecraft session
   If you are logged in in Minecraft, no need to login again
   This is only done if Disk session cache is enabled
   See #232 and #430 for more information

 - Disk session cache becomes default
   The feature is no longer experimental and now recommended
   as the Mojang login servers now have a severe rate limit
   Previous default was Memory session cache, not saved to disk
2018-05-03 23:51:56 +02:00
Pokechu22
ab13a63ba1 Fix ID of resource pack status in 1.12+
0x17 is the recipe book packet.  0x18 is resource pack status.

Fixes #338
2017-10-20 07:55:05 +02:00
Pokechu22
b1a66791a1 Add support for 1.12.2
While there are protocol changes to the keep alive packet, the way MCC implements it should mean that the changes do not affect us.
2017-09-19 08:06:22 +02:00
Pokechu22
c85352f819 Fix packet compression 2017-09-09 17:07:26 +02:00