• Welcome to Valhalla Legends Archive.
 

Getting Started

Started by Newtfeet, August 16, 2003, 10:25 AM

Previous topic - Next topic

Newtfeet

Are there any tutorials about connecting to Battle.net? I would like to make an application that can chat on Battle.net as well as create a bot, but I have found nothing that tells me where to connect to and what to do afterwards. I am a somewhat competent programmer, but this would be my first Internet application.

-Newtfeet

Tubby

Clean Slate Bot and Cuphead included a tutorial. Your also gonna need a BNLS account and password.

Newtfeet

Quote from: Tubby on August 16, 2003, 10:52 AM
Clean Slate Bot and Cuphead included a tutorial. Your also gonna need a BNLS account and password.
Where can I get these? Isn't there any tutorial that is available separately from bot downloads? Also, isn't it possible to connect to Battle.net without BNLS?

hismajesty

#3
www.valhallalegends.com/cuphead

And yes through local hashing

Hazard


"Courage is being scared to death - but saddling up anyway." --John Wayne

Newtfeet

Thanks guys. However, I am trying to write a bot from scratch (without BNLS), and I won't be using VB.  Does CupHead come with tutorials on the Battle.net protocol?

-Newtfeet

Soul Taker

CupHead is a person =P

Newtfeet

Quote from: Soul Taker on August 18, 2003, 11:34 AM
CupHead is a person =P
Yeah, I noticed that right after I posted. Sorry, CupHead. ;)

Kp

For protocol documentation, I'd suggest BnetDocs.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Newtfeet

Quote from: Kp on August 18, 2003, 01:42 PM
For protocol documentation, I'd suggest BnetDocs.
Thanks, but I was aware of that. I am looking for tutorials, not documentation. I mostly just need to know how to start (where to connect to, what to send to log in, etc.).

RhiNo

Quote from: Newtfeet on August 18, 2003, 10:36 AM
Thanks guys. However, I am trying to write a bot from scratch (without BNLS), and I won't be using VB.  Does CupHead come with tutorials on the Battle.net protocol?

-Newtfeet

what lang will you be using??..

Kp

Quote from: Newtfeet on August 18, 2003, 01:46 PMThanks, but I was aware of that. I am looking for tutorials, not documentation. I mostly just need to know how to start (where to connect to, what to send to log in, etc.).
Connect to any valid BNCS, send control-a ("\1" in C/C++) to specify binary logon, then send your product's initial handshake, which is SID_AUTH_INFO unless you're doing something old like War2 or Diablo.  The server will respond with SID_AUTH_INFO, to which you send SID_AUTH_CHECK.  It answers back with a SID_AUTH_CHECK specifying whether it will accept you or not (reasons for failuire include bad game version, bad CD key, CD key in use).  Once you have those working, post back and I'll dig up my notes on the rest of the sequence (or you could monitor the game's traffic on your own).
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Hazard

Let me get this straight. You are trying to build a hashed Battle.Net bot in C++ with no prior experience of any kind?

!~!HaZaRD!~!

"Courage is being scared to death - but saddling up anyway." --John Wayne

Newtfeet

#13
Quote from: RhiNo on August 18, 2003, 02:22 PMwhat lang will you be using??..
REALbasic.
http://www.realsoftware.com/realbasic/

Quote from: Kp on August 18, 2003, 02:59 PMConnect to any valid BNCS, send control-a ("\1" in C/C++) to specify binary logon, then send your product's initial handshake, which is SID_AUTH_INFO unless you're doing something old like War2 or Diablo.  The server will respond with SID_AUTH_INFO, to which you send SID_AUTH_CHECK.  It answers back with a SID_AUTH_CHECK specifying whether it will accept you or not (reasons for failuire include bad game version, bad CD key, CD key in use).  Once you have those working, post back and I'll dig up my notes on the rest of the sequence (or you could monitor the game's traffic on your own).
I wish there were awards for "Most Helpful Post in This Thread So Far". :) Just one question: what is a BNCS? I assume that is a Battle.net server? I thought I saw that you connect to uswest.battle.net, useast.battle.net, asia.battle.net, europe.battle.net? Thanks!

EDIT:
Quote from: HaZarD on August 18, 2003, 03:37 PM
Let me get this straight. You are trying to build a hashed Battle.Net bot in C++ with no prior experience of any kind?
Define 'experience'. I am not using C++, I have programmed before and, IMHO, am good at it, but this is my first Internet (i.e. using sockets) application and this is my first time using hashes.

Hazard

You obviously aren't versed on Battle.Net protocols. You want tutorials instead of documentation. You don't want to use the simpler langauge of vB to grasp an understanding before taking on C++. You don't want to use BNLS which, in the opinion of some, is easier to understand than hashing.  You don't want to use CSB or its tutorials to gain a better understanding of protocols and basic programming. Do you even understand how to program in C++ at all? I'm not talking about random number generators to simulate a dice roll either. You might want to start at the beginning rather than trying to skip ahead a few chapters.

!~!HaZaRD!~!

"Courage is being scared to death - but saddling up anyway." --John Wayne