marceldev89 89 Posted April 10, 2013 (edited) BattlEye Protocol Library and Client BattleNET is a C# (.NET) library and client for the BattlEye protocol written by me and Vipeax. BattleNET client The BattleNET client basically replicates the official BE RCon client but uses the BattleNET library to do all of it's work. Usage: BattleNET client.exe -host [ipaddress] -port [portnumber] -password [password] -command [command] Command line options: -host [ipaddress] RCon ip address -port [portnumber] RCon port number -password [password] RCon password -command [command] Sends command to RCon server and exits again Note: If no arguments are specified the client will ask for the login details. Examples: BattleNET client.exe -host 127.0.0.1 -port 2302 -password 123456789 BattleNET client.exe -host 127.0.0.1 -port 2302 -password 123456789 -command "say -1 Hello World!" BattleNET library Code example: https://github.com/marceldev89/BattleNET/blob/master/BattleNET%20client/Program.cs GitHub project page https://github.com/marceldev89/BattleNET Licence LGPL Changelog v1.3.3 * Improved command queuing system (Fixes #37) v1.3.2 * Fixed an issue with banlists (Thank you DomiStyle) * Added "admins" command, which returns all connected RCon clients (Thank you maca134) v1.3.1 * Fixed an issue where the (first) command would be sent twice * Fixed an issue where the library would lose connection after a long time, depending on server load (Thanks to EPM Cortez for finding the issue) v1.3 * Client now has DNS support * BattlEyeLoginCredentials.Host changed from string to IPAddress * Increased timeout check sleep a bit (1 second) * Increased time before a packet gets resend (2 seconds) * Proper UTF8 support * The usual bugfixes and cleanups v1.2.1 * Increased max socket receive buffer (fixes long ban lists) v1.2 * Removed system messages (Connected, Disconnected, etc) from library * Changed ReconnectOnPacketLoss and IsConnected to properties * New connect event (success, invalid login, host unreachable) * SendCommandPacket() now returns an identifier which can be used in message filtering * Renamed SendCommandPacket() to SendCommand(), kinda... * Bugfixes and cleanups v1.1 * Different method to construct packets * Some fixes and cleanups * Did licensing the right way v1.0.2 * Fixed predefined commands, they now work actually. :) v1.0.1 * Fixed a bug where the lib would send the 'say' command twice v1.0 * Started using proper version numbers... :) 20121217.1 * Library didn't reconnect on connection loss 20121217 * Updated predifined commands * Timeout values decreased for faster connection drop detection * UTF8 support * Better handling of dropped packets (client -> server) * Packet receiving is now asynchronous * Some other fixes and cleanups * Client now accepts command line arguments 20120821 * Hackish fix for not handling very long ban files 20120717 * Decreased keep alive packet interval and timeout timer * Changed Encoding.Default to Encoding.GetEncoding(1252) as Default is variable across systems (also makes it compatible with Linux/mono) 20120706 * Fixed autoreconnect not working 20120704 * License added 20120628 * Complete BattlEye protocol implementation Edited July 7, 2016 by marceldev89 Share this post Link to post Share on other sites
cortez471 6 Posted April 11, 2013 Nice to see you posting your Library on here. Keep up the good work. Share this post Link to post Share on other sites
marceldev89 89 Posted April 22, 2013 Ha, I guess not many are interested. :p Share this post Link to post Share on other sites
faceimage 10 Posted May 10, 2013 no, it is actually good to see all of his work here. really wonderful. Share this post Link to post Share on other sites
ligthert 21 Posted October 3, 2013 What are the instructions to compile this under linux? :) You mentioned something about mono? Share this post Link to post Share on other sites
marceldev89 89 Posted January 6, 2014 No need to compile anything. It should run fine out of the box with mono (if you get the binaries). Share this post Link to post Share on other sites
LoneRanger65 10 Posted April 27, 2014 I would really love to know how to use this.. Share this post Link to post Share on other sites
marceldev89 89 Posted April 27, 2014 https://github.com/ziellos2k/BattleNET/blob/master/BattleNET%20client/Program.cs <-- That's basically a full implementation of the library, all you'd need to know to use it. :) Share this post Link to post Share on other sites
TobsA13 10 Posted June 4, 2014 @ziellos2k Is your Website down? Share this post Link to post Share on other sites
marceldev89 89 Posted June 4, 2014 Uhm yes, it's been down since forever. I'll remove the link. ^^ Share this post Link to post Share on other sites
georgeashby123 1 Posted October 6, 2015 Nice work man, thankyou for it! Share this post Link to post Share on other sites
gstenroos 11 Posted April 29, 2016 !!!!!!!!!!!!!!!!!!!!!!!!!!!! Thank you so much for this. You are a gentleman and a scholar. 1 Share this post Link to post Share on other sites