Commit graph

88 commits

Author SHA1 Message Date
ReinforceZwei
0cbe543c30
Update to MC version 1.16.5 (#1417)
* Update to MC version 1.16.5

* Remove comments about protocol number
2021-01-16 21:33:40 +08:00
ReinforceZwei
c04c597aba
Implement Microsoft account login (#1397)
* Implement Microsoft account login
* Create proxied web request class
* Whole bunch of code that doesn't work
* I finally FIXED IT
It took me 2 hours to resolve the problem
* Fill the missed method summary
* Remove some unused code
* Revert http version
* Remove JSON parsing bug workaround
Not needed anymore as per e06438b582
* Remove comment asking about clientID
Client ID is used for session token refreshes. Random UUID without hyphens
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2021-01-06 21:14:51 +01:00
DanisDGK
bea5161d6f
Add support for 1.16.4 (#1311) 2020-11-03 19:04:34 +01:00
ORelio
d3f150ba12 Allow force-enabling Forge support for 1.13+ (#1184)
Skip login step and join even when forge info is missing in server info.
However, this only works for 1.13+. Server info retrieval is required
for enabling Forge support on older Minecraft versions.
2020-10-18 13:09:49 +02:00
ReinforceZwei
2017d5d652
Add support of language files (#1273)
* Basic support of language file
Only mapped main part of MCC.
* Translations function imporve
* Change translation file naming
* Fix default translation file naming
* Complete translation file mapping for main part
Command and ChatBot not done yet
* Complete translation mapping for commands
Except Entitycmd
* Complete translation mapping for ChatBots
* Add new method for replacing translation key
Just for Entitycmd. Be proud of yourself. We have a convenient method now.
* Complete all translation mapping
* Add default config and translation file to resource
* Remove untranslatable messages from default translation file
2020-10-17 13:41:31 +02:00
ReinforceZwei
9bfb2bf6c7 Update supported version to 1.16.3
Nothing got changed in 1.16.3
2020-09-11 23:00:48 +02:00
ReinforceZwei
7e20e409a8
Add support for creating replay mod capture files (#1246)
* Add test replay handler
* Fix incorrect built raw packet
* Fix incorrect built raw packet
* Add filter
* Add not working zip lib
* Add dotNetZip lib and complete basic function
* Update ReplayHandler.cs
* Complete Replay handler
Without client player handling
* Complete replay mod
- New ChatBot OnNetworkPacket event
* Add auto-backup and command for Replay Mod
* Add ReplayMod description to readme
* Small naming changes, fix compile error on .NET4.0
* ReplayHandler slight optimizations
Use Path.Combine to automatically use Windows '\' or Linux '/'
Move re-usable common parts outside the Replay handler
Small optimizations in building JSON strings
Co-authored-by: ORelio <oreliogitantispam.l0gin@spamgourmet.com>
2020-09-06 21:51:42 +02:00
ReinforceZwei
6bbb7236e3
Add support for Minecraft 1.16.2 (#1214)
* Implement MC version 1.16.2 basic support
All packets ID update done
Tested in 1.16.2 craftbukkit server
* Implement MC 1.16.2 entity handling
New EntityPalette
* Add back protocol version checking for entity handling
Was removed during testing and forgot to add it back
* Implement inventory handling for MC 1.16+
Item ID got changed in 1.16+ so a palette is needed.
* Fix ChangeSlot command
What a joke
* Handle 1.16 new entity properties name
Convert new naming style to old style
* Revert "Handle 1.16 new entity properties name"
This reverts commit 52c7d29062.
* Update AutoAttack to use the new entity properties key
* Fix item type to ID conversion
* Sort item types by name
* Remove ZombiePigmanSpawnEgg
User ZombifiedPiglinSpawnEgg instead (new name for same item)
* Add missing 1.16.2 version strings
* Remove old ItemTypeGenerator
* Sort entity types by name
* Palette loading, instructions, NotImplemented err
Co-authored-by: ORelio <ORelio@users.noreply.github.com>
2020-08-17 17:08:50 +02:00
ORelio
c4647c35ef Fix timeout on resolving SRV records (#1095) 2020-06-30 23:13:19 +02:00
Bas950
c82c91705c ♻️ Whoopsy.. 2020-06-27 16:51:25 +02:00
Bas950
d06f14d055 Added 1.16(.1) support 2020-06-27 16:48:46 +02:00
ORelio
4362de4540 Fix #1018 (ThreadAbortException) 2020-05-24 19:57:32 +02:00
ORelio
b2bcfca8ec Allow Forge detection with manual MC version (#1004) 2020-05-24 19:53:31 +02:00
CarbonNeuron
26a7db6f39 Fix "Failed to check session cache" Add range between 200-300 2020-04-19 17:09:11 +02:00
CarbonNeuron
3799d2062f Fix "Failed to check session cache" 2020-04-19 17:09:11 +02:00
CarbonNeuron
52248d1aba Fix "Failed to check session cache" 2020-04-19 17:09:11 +02:00
rvankammen
921ec5aaf5 Added the 1.15.2 protocol 2020-02-09 14:27:26 +01:00
Mhowser
7df98a96b5 Added 1.15.1 protocol 2019-12-25 10:12:18 +00:00
ORelio
c6f00ce686 Add support for Minecraft 1.15
See #834
2019-12-14 14:22:24 +01: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
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
xdavidwu
f99fb5886b 1.14.1 support 2019-05-14 19:53:29 +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
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
5e11348e6f Debug messages for login attempt
Print stack traces when debugmessages=true for issue #696
2019-04-17 04:38:09 +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
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
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
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
fd2e3d5797 Implement 1.12.1 protocol 2017-08-03 23:08:25 +02:00
Pokechu22
550beda7c4 Update to 1.12
This adds support for Minecraft 1.12's protocol, and also abstracts out outgoing packet IDs.  I include packet IDs for some 1.12 snapshots, even though snapshot versions aren't supported, because I already had written the code (though in a far more messy variant) for my MC-106551 test script; while they won't be used right now, they may be useful if snapshots are ever formally supported in the future.
2017-06-10 09:09:48 -07:00
ORelio
ffb1adeb4d Add login request and response debug messages
See #269

+ Add exaxct mono packages in README, thanks @Pokechu22 for that
2017-04-17 15:58:46 +02:00
ORelio
a254a282cd Rewrite SRV lookup procedure using HeijdenDns
See #253
2017-03-11 15:30:26 +01:00
Nikolay Dmitriyev
7088d09330 add 1.11.2 to supported protocol versions 2017-02-06 16:33:19 +04:00
Pokechu22
bc0a11d55b Add 1.11.1 support 2016-12-20 16:59:48 -08:00
ORelio
8ec2b2e570 Use short SRV resolving timeout
By default, lower SRV resolve timeout from 30 seconds to 5 seconds
Should help people facing SRV issues, see #213
Timeout can be set to 30 seconds in settings.
2016-11-17 11:18:35 +01:00
Pokechu22
8a4b67c93e Add 1.11 to the list of accepted protocols 2016-11-14 15:39:41 -08:00
ORelio
9cd983c50d Add support for Minecraft Service DNS Records
- Add DnDns library for performing DNS queries
 - Add query method for SRV record
 - Resolve Minecraft services

This allows resolving actual server addresses for
servers using SRV records on their domain names

SRV records are basically DNS redirection eg:

  myserver.net -> srv1.myserver.net:12345

Should solve #186 reported by sammyvsparks and many others.
2016-10-06 19:13:58 +02:00
ORelio
f82cb8f83a Fix exceptions not handled in DoHTTPSRequest
Bug report by GetPots. Thanks!
2016-09-24 13:48:39 +02:00
ORelio
2a07fbbae6 Remove tab display name experiment (not working)
- Tab display names should hold display name but...
 - Server sends <UUID, name, null> x Player count
 - TabListPlus sends <SlotID, ???tab#01, SlotText> x Slot Count
 - So we don't have player display names, only worthless slots
 - So the whole feature was useless, reverting to name only.
2016-08-27 15:46:34 +02:00
ORelio
9a98a9d46f Store extended player info, list display names
- Add 1.10.1 and 1.10.2 in supported version list
 - Store both player name and player display names
 - List command will sort players by player name
 - List command will now display by display name
 - Ability to use /list raw to display by real name

Suggestion by Johngreen123
2016-08-22 19:40:58 +02:00
ORelio
d3a54e8caf Add support for MC 1.10.0
See #159
2016-06-09 21:10:57 +02:00
ORelio
5e6f4d3af9 Add 1.9.3 and 1.9.4 2016-05-11 23:00:40 +02:00