Commit graph

535 commits

Author SHA1 Message Date
ORelio
6261e7adb7 More startup error handling
- Pass minecraft login failure message to AutoRelog bot (suggestion by
doranchak)
- Fix NullReferenceException in McTcpClient caused by SocketException in
ProxyHandler
- Refactor error handling code in Program.InitializeClient()
- More detailed error messages on network errors.
2015-04-20 17:26:16 +02:00
ORelio
791ecba454 Add timeout for server ping
Thanks doranchak & FantomHD (post no.1193)
+ Add missing doc for MinecraftVersionPrompt
2015-04-14 15:36:51 +02:00
ORelio
ea17ec87f1 Better exception catching
- Better catch in proxy handler
- Better catch in StartClient (thx doranchak)
2015-04-06 11:42:43 +02:00
ORelio
05a141c50d Improve offline interactions
- Add prompt for Minecraft version
- Improve offline-mode command prompt
- Fix default value on parse error in protocol handler
- Fix failed to connect not showing offline prompt
2015-03-25 22:50:20 +01:00
ORelio
7757d5ae03 Upgrade login/session timeout to 30 seconds
Might help when login/session servers take a long time to respond.
2015-03-25 22:14:38 +01:00
ORelio
e3c38ed6ac Update version info for 1.8.2 release 2015-03-11 19:58:39 +01:00
ORelio
2408b51d28 Fix BungeeCord 1.8 (2nd attempt) 2015-01-31 11:21:06 +01:00
ORelio
391eca102c Add 15 seconds timeout to session and login
Add AutoTimeout class for use on login and session requests.
Bug report by GamerCorey7.
2015-01-27 20:38:59 +01:00
ORelio
4752094f1f Fix server version detection for Bungeecord 1.8 2014-11-11 12:44:37 +01:00
ORelio
2dec21ddc7 Add Minecraft 1.8.1 in supported version list
Allows support for version=1.8.1 in config file
2014-11-11 12:36:15 +01:00
ORelio
8e458f7ab9 Add /list support in Protocol16
Removed fallback to server /list command
2014-11-11 12:35:08 +01:00
ORelio
8d16f1ec89 Add /list support in Protocol17
Fake UUID using md5(username) since protocol17 does not have UUID in
player list item packet
2014-11-10 20:56:12 +01:00
ORelio
f82041288d /list command improvements
Coding style, Guid, interface, Fallback Command
2014-11-10 20:43:00 +01:00
lokulin
7fa2e0d02e fixed whitespace to fit with code style 2014-11-11 00:55:42 +11:00
lokulin
07fed5cd24 Added a player list command /list 2014-11-11 00:32:32 +11:00
lokulin
5c8c3f42ed Merge branch 'master' into Indev
Conflicts:
	MinecraftClient/McTcpClient.cs
	MinecraftClient/Protocol/ProtocolHandler.cs
	MinecraftClient/Settings.cs
2014-11-06 20:31:31 +11:00
Lauchlin Wilkinson
006a1a5f4b Missed ushort in protocol handler 2014-11-06 17:59:19 +11:00
ORelio
d6c286bfbf Remove useless ping method from Protocol18
ping method wasn't part of the interface so it can in fact be removed
without any issue.
2014-10-28 21:44:40 +01:00
ORelio
f0f8183182 Merge pull request #50 from ORelio/master
Import merged pull request from Master to Indev
2014-10-28 21:41:22 +01:00
ORelio
531aede9d5 Protocol18: Redirect ping to Protocol17
Removed duplicate ping code
2014-10-28 21:39:21 +01:00
Corban Mailloux
fef50a3d48 Handle the case where "name" exists twice in the result string, like when connecting to a server with another user logged in. 2014-10-24 09:30:10 -04:00
ORelio
dc06cef704 Fix OverflowException for server port
Change short to int. Bug report by 1092CQ.
2014-10-09 08:08:40 +02:00
ORelio
8eb71bd3f8 Fix SSL errors not properly handled
Mono throws SSL errors as IOException when using SSLStream, instead of
AuthenticationException.
2014-09-06 18:19:39 +02:00
ORelio
88b8399c5c Add support for MC 1.8 protocol
Lots of changes in 1.8 protocol so a new protocol handler was necessary
Packet (de)compression done with dotNetZip Zlib compression engine
1.4.6-1.7.10 support is still there thanks to app refactoring
2014-09-04 13:58:49 +02:00
ORelio
31e53c2dbd Add 1.7.10 in mcversion INI setting
"1.7.10" can now be used to designate protocol v5.
2014-08-18 13:33:50 +02:00
ORelio
f99efb5177 Better connection lost detection
To detect that the TCP connection has been lost, try sending a small
packet every ~10 seconds. If the connection is lost, it will then throw
an exception which will allow MCC to detect that connection is lost, and
eventually properly trigger the AutoRelog bot.
- See issue #41 -
2014-08-11 12:38:39 +02:00
ORelio
cfb313fa01 Several fixes
Fix Alerts bot not displaying several occurences in a row
Fix Script bot not displaying in console what it is performing
Fix IOException not caught when connection is lost
2014-07-01 14:10:29 +02:00
ORelio
42e706d1a7 Player head as console icon
For Windows only
Idea from TNT-UP
2014-06-30 13:55:51 +02:00
ORelio
608eb8059c Unix slashes in file path when using Mono
Bug report by MousePak
2014-06-27 13:26:27 +02:00
ORelio
8b5ce567a6 Add setting for manually choosing MC version
- User can manually provide server version in config file
- Server is not pinged if a minecraft version was manually provided
- If the provided version isn't recognized, ping is re-enabled
2014-06-14 16:01:19 +02:00
ORelio
068b87a11a Variable engine done, catch bot exceptions
- %variable% variables can be declared in the INI file and used
elsewhere
- Default argument 'true' for WriteLineFormatted in ConsoleIO
- Exceptions thrown by bots no longer disconnect from the server, stack
trace is printed instead
2014-06-11 20:40:25 +02:00
ORelio
898a04a843 Various fixes
- Re-add support for MC 1.6 chat color names
- Re-add support for MC 1.5- vanilla whispers in ChatBot
- Add /connect in main chat prompt (reported by TNT-UP)
2014-06-03 13:05:53 +02:00
ORelio
84ba8fd0ae Fix special chars in minecraft passwords
Bug report by TNT-UP
2014-06-02 11:21:05 +02:00
ORelio
850ff7ad0b Add timeout for SpigotMC, Fix bot update
- We need to send a MC 1.6 ping first but SpigotMC ignore them
- So a timeout is necessary. Too slow old servers might suffer
- Fix bots not beign updated by Protocol16 (MC 1.4 to 1.6)
2014-05-31 13:47:34 +02:00
ORelio
d2ec2f48b7 App refactoring almost done
- Created specific namespaces and folders for each app brick
- Added proxy support using Starksoft's Biko Library
- App bricks: Main, ChatBots, Crypto, Protocol, Proxy
- Each class is now in its own file (Aes streams, chatbots)
- Used "Bridge" design pattern for Crypto, Protocol, Proxy
- Added back support for Minecraft 1.4.6 to 1.6.4 (MCC 1.6.2)
- Need to fully re-test everything and fix bugs
- To Fix : Server pinging is slow on SpigotMC
- To Do : Add Minecraft 1.2.5 (MCC 1.3) and maybe 1.3 to 1.4.5
2014-05-31 01:59:03 +02:00