Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: TheTrueFace on July 08, 2009, 05:43 PM

Title: Help handling warden
Post by: TheTrueFace on July 08, 2009, 05:43 PM
I'm programming a bot using C# with the help of BNSharp.

Is there any way I could reference a dll of warden or anything?
Title: Re: Help handling warden
Post by: MyndFyre on July 08, 2009, 06:15 PM
There is not currently a public implementation of Warden available in C#.

BN# provides extensibility (http://www.jinxbot.net/bns/html/Methods_T_BNSharp_Plugins_IWardenModule.htm) points (http://www.jinxbot.net/bns/html/P_BNSharp_Net_BattleNetClient_WardenHandler.htm) for Warden handling, though, if you can implement it yourself.
Title: Re: Help handling warden
Post by: TheTrueFace on July 08, 2009, 06:55 PM
When I connect, I receive such messages, it says that warden was requested and not handled.

Does this actually mean that there is a method to handle warden with BNSharp already? And if so could I please have help doing it? I don't even know where to begin.
Title: Re: Help handling warden
Post by: MyndFyre on July 08, 2009, 06:57 PM
Quote from: TheTrueFace on July 08, 2009, 06:55 PM
When I connect, I receive such messages, it says that warden was requested and not handled.

Does this actually mean that there is a method to handle warden with BNSharp already? And if so could I please have help doing it? I don't even know where to begin.
In order to implement Warden within BN#, you need to:
During connection, BN#'s BattleNetClient class calls the various methods of the IWardenModule interface, so you need to implement them.  BN# generates that warning when no warden module is provided, but Battle.net requests Warden functionality of the client.
Title: Re: Help handling warden
Post by: TheTrueFace on July 08, 2009, 07:59 PM
Can you help me with code? I really don't know how to do this. =/
Title: Re: Help handling warden
Post by: MyndFyre on July 09, 2009, 02:15 AM
Quote from: TheTrueFace on July 08, 2009, 07:59 PM
Can you help me with code? I really don't know how to do this. =/

What are you having trouble with?

Implementing an interface in C# (http://www.google.com/search?hl=en&q=implementing+an+interface+in+C%23&aq=f&oq=&aqi=g3)?
Creating an instance of a class (http://www.google.com/search?hl=en&q=creating+an+instance+of+a+class+in+C%23&aq=f&oq=&aqi=)?
Title: Re: Help handling warden
Post by: Sveet on July 09, 2009, 02:35 PM
if you're having problems with the implementation, you can always use BNLS to handle it. Check out the BNLS 0x7D thread on the same page as this.
Title: Re: Help handling warden
Post by: TheTrueFace on July 09, 2009, 03:23 PM
I'd like to be able to just implement warden as a class file, as I am using hash files, and don't care for BNLS.

How would I write this in a class file? Or is it even possible to use this method?
Title: Re: Help handling warden
Post by: MyndFyre on July 09, 2009, 04:45 PM
Do you know how to program in C#?
Title: Re: Help handling warden
Post by: Hdx on July 09, 2009, 04:51 PM
Quote from: MyndFyre on July 09, 2009, 04:45 PMDo you know how to program in C#?
No, he doesn't, I've spoken with him. This is his first program after writing a simple text editor which 1/2 the functionality didn't work [saving/loading files]

I've told him that I would be more then willing to help if he wanted to truly learn how to make a bot and go back to the basics. But he refuses to instead he uses BN# which is just a modern replacement to CSB [with improved features that make it great for experienced developers who simply don't want to re-write the connection over and over] and we all know how big of a head ake that was :/

He doesn't even know how to create a socket.

If he really wants to know whats going on, Ron's site (http://www.skullsecurity.org/wiki/index.php/Starcraft_Warden) will be helpful for the basics, after that we can direct him to the posts on these forums with more information, but, I'm doubtful he will understand the wiki less know how to implement it as the code is in C/Java not C# for him to copy.

So i'll state again, You should go back to the basics, and turly learn your language of choice, BEFORE making a bot, with or without BN#.
Title: Re: Help handling warden
Post by: MyndFyre on July 09, 2009, 06:45 PM
Quote from: Hdx on July 09, 2009, 04:51 PM
[with improved features that make it great for experienced developers who simply don't want to re-write the connection over and over]
Nice save :P