Commit graph

161 commits

Author SHA1 Message Date
ORelio
72498a6756 Fix ping failure causing double failure handling
"Failed to ping this IP" also caused "Failed to determine server
version" error, calling HandleFailure() twice.
2015-04-22 18:56:43 +02:00
ORelio
57c66c82d7 Merge error handlers
- Merge all error handling code into one method
- Fix ConsoleIO not clearing the line being typed upon reset
- Update console title upon logging in to the server
- Pass "failed to ping this IP" to AutoRelog (thx doranchak)
2015-04-22 10:27:53 +02:00
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
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
e3c38ed6ac Update version info for 1.8.2 release 2015-03-11 19:58:39 +01:00
ORelio
0c81c703db Change version number for 1.8.1 2014-10-08 20:15:11 +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
6e841f11aa Last changes for 1.8.0 Beta release
Update sample script
Update Readme file and add it to repository
Update version numbers and fix missing field in Program
2014-08-20 23:31:47 +02:00
ORelio
b0b65b7ce0 Add offline command prompt
Fix #42, and allow more interactive commands when not connected to a
server. /quit, /reco, /connect are the only allowed commands in this
limited command prompt.
Updated Assembly Info, version number is now 1.8.0.
2014-08-18 15:10:15 +02:00
ORelio
47a3cdc783 Revert to CMD icon on exit
Else CMD would still have the player head as icon
2014-07-27 16:43:45 +02:00
ORelio
86efb38fa9 Re-add /reco and /connect when connection is lost 2014-07-01 20:31:47 +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
36690b8b34 Commands as separate classes
Each command is now in its own class in the 'Commands' namespace, and
loaded through reflection.
2014-06-18 13:32:17 +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
283074bb63 Store server IP and server port in distinct vars
- Change "replaceVars" to "expandVars" (more explicit)
- Store server IP and server port in distinct vars in Settings class
- Add setServerIP setter in Settings which automatically split a
host:port string
- Add %serverip% variable which use the new ServerPort setting
- Fix "text%incompletevarnameatstringend" strings
2014-06-13 16:50:55 +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
c8332eb845 Add 'exit on failure' setting
- Automatically close on connection lost or other failure
- Feature suggested by TorchRJ_
- Also, forgot to mention in 'App refactoring almost done' :
- Issue depending on username and/or server should be fixed
2014-05-31 12:56:54 +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
ORelio
9be1d99ca0 Removed 'Too many failed logins' error message
Display the HTTP error code instead.
2014-05-29 17:38:35 +02:00
ORelio
62731fc0b9 Add 'Failed to ping this IP' kick message
- AutoRelog can relog when failed to ping the server IP
2014-05-18 19:30:01 +02:00
ORelio
879c124d6a Last changes for 1.7.3 release
Change config files. Change version number.
2014-05-14 21:39:26 +02:00
ORelio
49a2d2b681 Add support for %username% on log & task files
- Allows to use different files depending on the username
- Also, added a setting for disabling "beep" sound in Alerts bot
2014-05-10 21:03:03 +02:00
ORelio
22c47e99c2 Add ScriptScheduler bot
- Allow to launch script on various events
- Removed startup script, now part of ScriptScheduler
- ScriptScheduler is configured using its own INI file
- Can launch scripts on first login, login and/or specific time
2014-05-06 22:41:14 +02:00
ORelio
3c84c5813e Mark 1.7.8+ as supported
1.7.8 can be supported without any change.
Fix login in MinecraftCom using hardcoded value instead of version
2014-05-06 15:43:50 +02:00
ORelio
a543620a80 Fix null characters in chat prompt (old bug)
Sometimes null characters were inserted in chat prompt
Rename "Scripting" bot into "Script" bot.
2014-04-10 19:55:16 +02:00
ORelio
b0e4e993ce Hold on scripts when reconnecting + login 503
- Added "connect" command in scripts (idea from TorchRJ_)
- Handle 503 service unavailable error for Minecraft logins
- Renamed [Scripting] into [StartupScript] (more explicit)
- Startup Script only runs once even using /reco but ...
- Scripts are now kept and resumed when (re)connecting
2014-04-10 16:13:30 +02:00
ORelio
d972378f0e Added remote control bot
A bot that can perform operations using /tell commands!
Available commands: exit, reco, script, send.
Closes #7 :)
2014-04-03 00:17:47 +02:00
ORelio
a481640306 Remove legacy command-line args & xauth bot
- Use scripting instead of xauth bot
- Use ini files instead of bot:botname args
2014-04-02 22:53:46 +02:00
ORelio
26a2fdd517 Changes for fixing Mono issues
- Detect missing HTTPS certificates
- Give the mozroots command for importing certificates
- Use a specific workaround AesStream class made for Mono
- It only process 128bits blocks because Mono is not CFB-8 ready
2014-03-26 10:12:05 +01:00
ORelio
58d7b0734f Remove Java dependency for Encryption Key Request
Encryption Key Request is now fully processed using .NET RSA
capabilities
-> Good news, that was the last step for removing IKVM dependencies!
-> So now MCC does not need to use any external library. Yay! :)
-> MCC should now be compatible with Mono (Mac, Linux).
+ Removed no longed needed DLL files (9 MBytes!)
+ State MC 1.7.5 as a supported version.
+ Update version number to MCC 1.7.2
2014-03-16 23:04:43 +01:00
ORelio
86908c35a0 Change version number for 1.7.1 release 2014-01-28 18:46:41 +01:00
ORelio
d08634789b Little optimization from dogwatch
See comment in commit 420c93a
2014-01-22 11:44:53 +01:00
Vitalij
420c93a5dd Input GUI fix :D 2014-01-21 22:40:23 +04:00
ORelio
6e6fa6a50f Fix text encoding for GUI (BasicIO) mode
- Fix encoding when using a GUI on non-ascii langages (eg russian)
- See discussion in pull request #30 for more info
2014-01-21 18:28:14 +01:00
ORelio
07ef031bb9 Allow to use both INI files and command-line args
- MinecraftClient.ini or the specified INI file is loaded anyway
- Command-line arguments overrides the INI file settings
- INI file is added in front of the command-line args
- eg. MinecraftClient.exe my.ini Login Password IP
2014-01-17 20:58:42 +01:00
ORelio
a627842bed Username in window title using %username%
- No window title is set if 'consoletitle' setting is not set
- Lowercase %username% will be replaced by the user's name
2014-01-17 19:54:10 +01:00
ORelio
fa6aa107c8 Fixed username added several times with autorelog
- If using autorelog bot, " - Username" was added each time the app was
restarting
- To fix this, added a ConsoleTitle setting which is re-used when
restarting
2014-01-16 19:33:48 +01:00
ORelio
b49850e042 Default console title + add username after login
- Default console title is set if no title is provided in config file
- Fix custom console title beign replaced when adding username
- Idea is from v1RuX, see commit bf87374
2014-01-16 19:27:06 +01:00
ORelio
3185b2df55 Merge pull request #29 from v1RuX/Indev
Show username in console title
2014-01-16 09:07:38 -08:00
v1RuX
bf87374b48 Show username in title
Shows the username in console title to make identification easier when
multiple instances of the client are running
2014-01-16 16:21:15 +01:00
ORelio
d012905b65 Fix for kick messages : now decoded from Json 2014-01-10 13:18:29 +01:00
ORelio
30cbc85850 Online Mode done, 1.7 compatibility should be OK
+ Fixed chat colors because of 1.7 changes
+ Some code cleanup here and there
2014-01-09 23:28:41 +01:00
ORelio
0d0a7e9c4a Fix for username causing login to fail 2014-01-09 00:07:41 +01:00
ORelio
0b9a7f4ba6 Offline mode done, TODO: online mode
Offline mode should be working now.
2014-01-08 23:58:49 +01:00
ORelio
bee1893f75 Server list ping packet done
(+) Thanks dogwatch for pointing out the mistake in int->varint
converter !
2014-01-08 20:54:42 +01:00
ORelio
5fb54882ca First attempt of MC 1.7 Server Ping ping packet
Currently not working, see MinecraftCom.cs & comment "STUCK HERE"
2014-01-06 18:12:25 +01:00
ORelio
723c961753 Added credit to contributors instead of email adress 2013-11-03 23:20:26 +01:00
justcool393
931c00a97f Add version 78 (1.6.4) to the list of supported versions. 2013-10-11 08:59:03 -07:00
justcool393
0f74944a66 Update supported versions
Change from 1.6.2 to 1.6.4 in the first output line.
2013-10-11 08:57:06 -07:00