Clan x86

Technical (Development, Security, etc.) => General Programming => Botdev => Topic started by: iago on June 28, 2005, 04:47:47 pm

Title: C++ Binary Bot source
Post by: iago on June 28, 2005, 04:47:47 pm
First off, this will not work.  This was my first attempt at writing a bot.  Nearly all the research was done myself, before I knew how to reverse engineer, so I called the functions straight from the .snp and .dll rather than doing them myself.  As a result, it only supports Starcraft 1.07 or 1.08 or something.

Anyway, I did some neat stuff.  This is years old, back when I used C++, and it's commented well.  Maybe somebody can learn something *shrug*

It will connect, using my code, and it has a buffer type object (I think?).  Anyway, here is the code:

http://www.javaop.com/~iago/CBinaryBot
Title: Re: C++ Binary Bot source
Post by: Quik on June 28, 2005, 06:07:40 pm
Thanks, will have a look over it.
Title: Re: C++ Binary Bot source
Post by: rabbit on June 28, 2005, 09:03:00 pm
Can you pack it, please?
Title: Re: C++ Binary Bot source
Post by: iago on June 29, 2005, 05:11:47 pm
No
Title: Re: C++ Binary Bot source
Post by: Sidoh on June 29, 2005, 07:32:12 pm
Thanks iago! I'll have to take a look at this when I get back home!
Title: Re: C++ Binary Bot source
Post by: GameSnake on August 13, 2005, 09:54:06 pm
From what this looks like it's just a  little crippled, updated hash coding and needs a GUI and it'll get going.
Title: Re: C++ Binary Bot source
Post by: iago on August 13, 2005, 11:02:47 pm
It's not crippled, it's incomplete. 

I had never intended to write a gui for it, the entire project was more for practice than anything.  Most of the code is useless, but the principles might help somebody.
Title: Re: C++ Binary Bot source
Post by: GameSnake on August 14, 2005, 12:06:08 am
Oh I see, well I'm soso at C/C++ and this does help some what, I used NBBot's source as a main study of bot framwork in C.
Title: Re: C++ Binary Bot source
Post by: AntiVirus on August 30, 2005, 04:43:11 pm
Sorry about reviving a semi-dead topic.

What is NBBot, and will it still work with the new patches?

I am learning C++, and I perfer to learn by looking at things already done, instead of just reading a book.  So, if you know of any other open source C++ bots that work on b.net, would you guys tell me please?

P.S.
Sorry about reviving a semi-dead topic.
Title: Re: C++ Binary Bot source
Post by: c0n on August 30, 2005, 04:53:29 pm
Sorry about reviving a semi-dead topic.

What is NBBot, and will it still work with the new patches?

I am learning C++, and I perfer to learn by looking at things already done, instead of just reading a book.  So, if you know of any other open source C++ bots that work on b.net, would you guys tell me please?

P.S.
Sorry about reviving a semi-dead topic.

NBBot is an old bot made by Adron[vL] (i think). It was used to massload and shit... i remember using it, and its many different remakes.
Title: Re: C++ Binary Bot source
Post by: MyndFyre on August 30, 2005, 07:13:49 pm
I am learning C++, and I perfer to learn by looking at things already done, instead of just reading a book.  So, if you know of any other open source C++ bots that work on b.net, would you guys tell me please?
Unless you have already made a bot, then trying to learn C++ by making one is just a silly task.  You should consider not doing that, instead of doing it.

Learn C++ by modifying and tinkering with some easier, less complicated, less-involved programs that are out there already.
Title: Re: C++ Binary Bot source
Post by: AntiVirus on August 30, 2005, 07:31:07 pm
Alright Myndfyre, that seems logical.  But, do you have any suggested sites that have these programs on there?

Quote
I'm both anti-newbie and anti-Newby (I hope I get NewbFyre back so I can kill him for being part-spawn of Newby), but if you have a genuine interest in learning, you'll find I'm extremely receptive and willing to help.  What I just can't stand is people who are unwilling to help themselves, and who always want others to give them the easy way out of something.  I hate that.  With a passion.
That isn't what I am aiming for.  Seeing that you hate it... I rather not make someone angry who is willing to help.
Title: Re: C++ Binary Bot source
Post by: MyndFyre on August 30, 2005, 08:51:35 pm
Well, I wish I could suggest something further, but C++ was not my first language, and mostly I've learned it in passing.  Learning C# and Java really helped me learn (regular) C++, but I'm not nearly as proficient with it as others here.  Browse around CodeProject and other websites that offer free code.  Find something that interests you and tinker with it.  Make sure it's interesting to you.

The first language I learned was JavaScript (http://hotwired.lycos.com/webmonkey).  I learned it through trial-and-error, and dug in to make it do all kinds of fun things.

Anyway, good luck.  If you have any specific questions I may be able to help.
Title: Re: C++ Binary Bot source
Post by: iago on August 30, 2005, 09:45:02 pm
NBBot wasn't written by Adron, it was written by people who've since fallen through the cracks of History.  But it was maintained by Adron for a long time, perhaps ongoing. 

There was a long involved story about how the source got released (originally to Blizzard, and evenually given to Skywing, and stolen off Grok's computer and released publicly, etc.)
Title: Re: C++ Binary Bot source
Post by: AntiVirus on August 30, 2005, 11:24:57 pm
Thanks MyndFyre.

Also, thanks Ron for you breathe taking story. :) (It was actually very interesting.)
Title: Re: C++ Binary Bot source
Post by: Blaze on August 31, 2005, 12:15:36 am
iago, is that the whole story?

/me is interested...
Title: Re: C++ Binary Bot source
Post by: mynameistmp on August 31, 2005, 02:56:31 am
Why did you want to write it in C++ instead of C ? Few examples...
Title: Re: C++ Binary Bot source
Post by: Eric on August 31, 2005, 03:15:59 am
Why did you want to write it in C++ instead of C ? Few examples...

Because C isn't object oriented?