Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Stuck on November 23, 2005, 04:37 PM

Title: [C#] Bot Sourcecode
Post by: Stuck on November 23, 2005, 04:37 PM
hello everyone, I'm trying to learn how winsock works. I've worked with VB.NET and now am working with C#. I'm searching for battle.net bot sourcecode written in C#, Unsuccessfully so far... Any ideas where I could find some? Even sourcecode written in VB.NET would be helpful, I'm finding alot of VB 6.0, but I'm have trouble upgrading it to VB.NET. I've looked at Planet Sourcecode without much success, any other sites I should try?

*EDIT*

I've also looked at http://www.zeroforce.net, alot of VB 6.0 and C++, but not much else.   :-[
Title: Re: [C#] Bot Sourcecode
Post by: Yegg on November 23, 2005, 05:49 PM
You don't need a C# bot source code to learn how Winsock works. You need a tutorial.
Title: Re: [C#] Bot Sourcecode
Post by: Networks on November 23, 2005, 06:40 PM
Quote from: Stuck on November 23, 2005, 04:37 PM
hello everyone, I'm trying to learn how winsock works. I've worked with VB.NET and now am working with C#. I'm searching for battle.net bot sourcecode written in C#, Unsuccessfully so far... Any ideas where I could find some? Even sourcecode written in VB.NET would be helpful, I'm finding alot of VB 6.0, but I'm have trouble upgrading it to VB.NET. I've looked at Planet Sourcecode without much success, any other sites I should try?

*EDIT*

I've also looked at http://www.zeroforce.net, alot of VB 6.0 and C++, but not much else.   :-[

There aren't any open source C# bots that I know of so ZF isn't you best bet for .NET stuff. I would recommend getting in contact with MyndFyre since he knows his way around .NET. However like Yegg said, your best bet is actually learning C# and getting to know the winsock library and maybe modding VB6/C/C++ code to C# code.
Title: Re: [C#] Bot Sourcecode
Post by: MyndFyre on November 23, 2005, 07:10 PM
While I highly recommend poking and playing around with the System.Net.Sockets namespace, feel free to browse through the "source" repository at the JinxBot project at SourceForge, http://sourceforge.net/projects/jinxbot/.  It's incomplete, although a lot of the core is there.  Good luck getting me to support it though.  I busy enough without trying to remember why I coded something a certain way on a project I really haven't worked on in 6 months.
Title: Re: [C#] Bot Sourcecode
Post by: Stuck on November 23, 2005, 08:26 PM
ok, well do you guys know where I can get some VB.Net sourcecode? I keep running into VB 6.0 source and I have trouble upgrading to .NET. Know where I could get some VB.Net bot source code? I think I just needa look at a bot sourcecode, then I'll be set and can manage with C#.
Title: Re: [C#] Bot Sourcecode
Post by: Yegg on November 23, 2005, 09:37 PM
Quote from: Stuck on November 23, 2005, 08:26 PM
ok, well do you guys know where I can get some VB.Net sourcecode? I keep running into VB 6.0 source and I have trouble upgrading to .NET. Know where I could get some VB.Net bot source code? I think I just needa look at a bot sourcecode, then I'll be set and can manage with C#.
How can looking at someone else's source code help you "manage with C#".
Title: Re: [C#] Bot Sourcecode
Post by: MyndFyre on November 24, 2005, 03:38 AM
Since you're apparently too lazy to locate the CVS to find my source, here (http://cvs.sourceforge.net/viewcvs.py/jinxbot/source/) is the root folder of the browser tree.
Title: Re: [C#] Bot Sourcecode
Post by: Stuck on November 26, 2005, 06:32 PM
I don't know, how did you guys learn Winsock? I've read MSDN and searched winsock multiple times, I learn better from example. I can find definitions and descriptions of what specific functions in winsock do, but I don't know how they all work together.
Title: Re: [C#] Bot Sourcecode
Post by: Yegg on November 26, 2005, 07:18 PM
Most of us probably learned from tutorials. You can find various tutorials for how to use Winsock by simply searching google for "winsock tutorial".