Clan x86
Technical (Development, Security, etc.) => General Programming => Botdev => Topic started 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
-
Thanks, will have a look over it.
-
Can you pack it, please?
-
No
-
Thanks iago! I'll have to take a look at this when I get back home!
-
From what this looks like it's just a little crippled, updated hash coding and needs a GUI and it'll get going.
-
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.
-
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.
-
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.
-
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.
-
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.
-
Alright Myndfyre, that seems logical. But, do you have any suggested sites that have these programs on there?
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.
-
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.
-
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.)
-
Thanks MyndFyre.
Also, thanks Ron for you breathe taking story. :) (It was actually very interesting.)
-
iago, is that the whole story?
/me is interested...
-
Why did you want to write it in C++ instead of C ? Few examples...
-
Why did you want to write it in C++ instead of C ? Few examples...
Because C isn't object oriented?