ziellos2k 35 Posted November 30, 2012 (edited) Grr. :( ;)Sorry. :D Edited November 30, 2012 by ziellos2k Share this post Link to post Share on other sites
ziellos2k 35 Posted December 7, 2012 Sigh... Forgot to update the binaries. Should be good now. :) Share this post Link to post Share on other sites
hohlraum 9 Posted December 7, 2012 So did anyone ever implement the command like utility I mentioned a page or so back? :) Share this post Link to post Share on other sites
Wotuu 11 Posted December 10, 2012 Well, no :P. But if you specify exactly what kind of commands you want, exact input and exact output you want, I may work my magic when I'm bored. Shouldn't take very long to create something like that for me anyways. (But depends on the # of commands and complexity, ofcourse) Share this post Link to post Share on other sites
ziellos2k 35 Posted December 10, 2012 I could add it to the BattleNET client if that's appreciated? Share this post Link to post Share on other sites
ziellos2k 35 Posted December 11, 2012 (edited) Alright, BattleNET client updated with command line options. :) Please note that it won't check if the command was received or anything, this will have to be fixed within the lib itself.BattleNET Client.exe -host 127.0.0.1 -port 2302 -password 123456789 -command "say -1 testing 123"-host // Ip-port // Port-password // Password-command // Command to send to the server (optional)https://github.com/ziellos2k/BattleNET/tree/master/bin Edited December 11, 2012 by ziellos2k Share this post Link to post Share on other sites
TheSilentWarrior 43 Posted December 13, 2012 Hey ziellos, I am using your lib for about 1 and half month now, and it works great. Today I thought I should update to the latest available on GIT, I imported it, replaced all the old files and made the interface change.But when I use it, it will disconnect from rcon every 6 or 7 seconds, my tool is made so that if it disconnects it will reconnect, so, it keeps connecting and disconnecting in a loop forever, every 6-7 seconds.I reverted to the old files that still work and are stable, but could be useful to have the latest :DOh, by the way, I am having this problem where after banning a player, the ban wont stick and he can join right back.Here are all the permutations I have tried thus far : //b.SendCommandPacket(EBattlEyeCommand.ExecBan, p.id + " -1 " + message);//b.SendCommandPacket ("ban "+ p.id + " -1 " + message);b.SendCommandPacket(string.Format("ban {0} -1 {1}", p.id, curBan.banID));b.SendCommandPacket(string.Format("banIP {0} -1 {1}", p.id, curBan.banID));b.SendCommandPacket(string.Format("addBan {0} -1 {1}", p.guid, curBan.banID));iPop.show(p.nick + " banned!");b.SendCommandPacket("writebans");None of them seem to "stick" and the ban is treated as a simple kick. Share this post Link to post Share on other sites
ziellos2k 35 Posted December 14, 2012 (edited) Hmm I don't see this behavior on my own test server. It could be the way you've implemented stuff. Not sure. As per PM, add me to skype and we'll figure it out. :) Edited December 14, 2012 by ziellos2k Share this post Link to post Share on other sites
ziellos2k 35 Posted December 14, 2012 (edited) Binaries updated, dropped packets should be handled now but currently it's only handling them when both server and client are "idle" for 5 seconds. This will probably be changed in the future.Changelog: https://github.com/z.../commits/master Edited December 14, 2012 by ziellos2k Share this post Link to post Share on other sites
ziellos2k 35 Posted December 14, 2012 Binaries updated, grab them while you can. :D Share this post Link to post Share on other sites
Wotuu 11 Posted December 15, 2012 Heya ziellos2k,Not sure if this is still around in the current version (I use an old version as that one works just fine), but calling the BattlEyeClient.Disconnect() function raises the OnDisconnect() event twice.This is because in void Disconnect() you raise the event, and again at the end of the loop which listens for data. Solution, don't raise the event in void Disconnect().Just a little thing that was crashing my program. Share this post Link to post Share on other sites
domistyle 221 Posted December 15, 2012 (edited) Heya ziellos2k,Not sure if this is still around in the current version (I use an old version as that one works just fine), but calling the BattlEyeClient.Disconnect() function raises the OnDisconnect() event twice.This is because in void Disconnect() you raise the event, and again at the end of the loop which listens for data. Solution, don't raise the event in void Disconnect().Just a little thing that was crashing my program.DisconnectEvent gets triggered 2 times too, making it output the disconnect message 2 times.Didn't have any problems with that yet, I just filtered the disconnect messages.DaRT sometimes displays a disconnect message 2+ times in a row because of this though. Edited December 15, 2012 by DomiStyle Share this post Link to post Share on other sites
ziellos2k 35 Posted December 16, 2012 (edited) Heya ziellos2k,Not sure if this is still around in the current version (I use an old version as that one works just fine), but calling the BattlEyeClient.Disconnect() function raises the OnDisconnect() event twice.This is because in void Disconnect() you raise the event, and again at the end of the loop which listens for data. Solution, don't raise the event in void Disconnect().Just a little thing that was crashing my program.Can you create a ticket on github? That way I won't forget to check. :) Edited December 16, 2012 by ziellos2k Share this post Link to post Share on other sites
Wotuu 11 Posted December 17, 2012 Can you create a ticket on github? That way I won't forget to check. :)Done! Share this post Link to post Share on other sites
ziellos2k 35 Posted December 18, 2012 (edited) New version available.20121217Updated predifined commandsTimeout values decreased for faster connection drop detectionUTF8 supportBetter handling of dropped packets (client -> server)Packet receiving is now asynchronousSome other fixes and cleanupsClient now accepts command line argumentsThis includes some older changes and what not, but I'm moving back to version numbers. Makes it a bit more easy to track issues. :) Edited December 18, 2012 by ziellos2k 2 Share this post Link to post Share on other sites
ziellos2k 35 Posted December 22, 2012 Removed binaries from github and setup a little webpage for binary releases. Also retagged current code as v1.0. :) Share this post Link to post Share on other sites
ameo_koradi@hotmail.com 103 Posted December 23, 2012 Great tool !I've got an issue when trying the say command, display the text twice.Connecting to 94.242.xx.xx:2342...Connected!RCon admin #0 (83.194.xx.xx:54918) logged insay 4 testRCon admin #0: (To Ameo) testRCon admin #0: (To Ameo) test Share this post Link to post Share on other sites
ziellos2k 35 Posted December 23, 2012 Try putting a small sleep between connecting and sending the message. Share this post Link to post Share on other sites
ameo_koradi@hotmail.com 103 Posted December 23, 2012 (edited) Even with manual method I got the issueEnter IP address: 94.242.xxx.xxxEnter port number: 2342Enter RCon password: xxxxxxxxConnecting to 94.242.xxx.xxx:2342...Connected!RCon admin #3 (83.194.xx.xx:52174) logged insay 9 testRCon admin #3: (To Ameo) testRCon admin #3: (To Ameo) test Edited December 23, 2012 by Ameo Share this post Link to post Share on other sites
ziellos2k 35 Posted December 23, 2012 (edited) Alright, will take a look later today.EDIT: You're right, major fuck up.. ^^ Please don't use this version! :) Edited December 23, 2012 by ziellos2k Share this post Link to post Share on other sites
ziellos2k 35 Posted December 23, 2012 binaries and code updated to v1.0.1 -> http://ziellos2k.net/battlenet/ Share this post Link to post Share on other sites
ameo_koradi@hotmail.com 103 Posted December 23, 2012 It's working perfectly now.Thanks a lot ! Share this post Link to post Share on other sites
Wotuu 11 Posted December 24, 2012 Can you create an OnConnected event? I've been adding it myself, but every time I try to update Git just plain refuses to do it because I messed with the code. I need this event for reasons, but I'd also like the updates. Thanks! Share this post Link to post Share on other sites
ziellos2k 35 Posted December 24, 2012 (edited) I'll take a look at it.Though, you should just be able to merge your code with my code. Edited December 24, 2012 by ziellos2k Share this post Link to post Share on other sites
ziellos2k 35 Posted December 24, 2012 Can you create an OnConnected event? I've been adding it myself, but every time I try to update Git just plain refuses to do it because I messed with the code. I need this event for reasons, but I'd also like the updates. Thanks!For now it has it's own branch, 'connected-event'. Is this something like what you meant? :) Share this post Link to post Share on other sites