Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: timbo on May 25, 2003, 10:22 PM

Title: CleanSlateBot.ocx: events not firing
Post by: timbo on May 25, 2003, 10:22 PM
I cant figure out what's wrong with this picture, maybe someone else can.

With CSB
   .BNLSBotID = "mybnlsid"
   .BNLSBotPassword = "******"
   .CDKey = "****************"
   .ChangePassword = False
   .Character = "none"
   .HomeChannel = "my channel"
   .LODKey = "****************"
   .NewPassword = "None"
   .Password = "*********"
   .Product = "VD2D"
   .Realm = "USEast"
   .Server = "useast.battle.net"
   .UseRealm = False
   .Username = "username"
   .UseUDP = False
   .Accept = 579728
   .Connect
End With


here's some background...

figuring out the accept value had to be 579728 instead of -65 was my first hurdle to get events to fire.  now i can get the BNLS_Connecting, BNLS_Connected, and BNLS_Disconnected events to fire BUT no other events fire.

What I do not understand is why no other events are firing.  I have registered and unregistered the ocx, redownloaded it to make sure it didnt somehow get corrupted and I'm quite clueless of what the problem could be.

I have a debug.print in every event, however im not sure why the others arent firing.  I would assume that if my BNLS account/pass were incorrect then it would return the error as such, or same for incorrect information.  I'm not sure for incomplete information, but I dont know what I could possibly be leaving out.  I'm not ipbanned of BNLS as i can get another cleanslatebot client that I did not compose to connect.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: ______ on May 25, 2003, 10:26 PM
Quote from: timbo on May 25, 2003, 10:22 PM


With CSB
   .BNLSBotID = "mybnlsid"
   .BNLSBotPassword = "******"
   .CDKey = "****************"
   .ChangePassword = False
   .Character = "none"
   .HomeChannel = "my channel"
   .LODKey = "****************"
   .NewPassword = "None"
   .Password = "*********"
   .Product = "VD2D"
   .Realm = "USEast"
   .Server = "useast.battle.net"
   .UseRealm = False
   .Username = "username"
   .UseUDP = False
   .Accept = 579728
   .Connect
End With




I have never logged in as d2 or d2x but i think you wanna use realm, and a character that you have in your select character screen

.userealm = true
Title: Re:CleanSlateBot.ocx: events not firing
Post by: tA-Kane on May 25, 2003, 10:29 PM
Quote from: timbo on May 25, 2003, 10:22 PMnow i can get the BNLS_Connecting, BNLS_Connected, and BNLS_Disconnected events to fire BUT no other events fire.
Verify your Bot ID and password strings are correct.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: tA-Kane on May 25, 2003, 10:33 PM
Quote from: ______ on May 25, 2003, 10:26 PMI have never logged in as d2 or d2x but i think you wanna use realm, and a character that you have in your select character screen
Not using realm will log you in as an open character. Not using realm will (should?) render the character string unused.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: Banana fanna fo fanna on May 26, 2003, 09:06 AM
You set your LOD key, but are using product D2DV.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: Tazo on May 26, 2003, 09:53 AM
Lol...wheres .usewait = true or false BWAHAHA I WIN
Title: Re:CleanSlateBot.ocx: events not firing
Post by: Stealth on May 26, 2003, 11:23 AM
Booleans default to false - you don't actually have to set them if they're not going to change.

St0rm, I believe CSB will ignore a D2XP cdkey if the client is D2DV.

Are you recieving any error codes from the BNLS server or socket? Make sure you print the results properly of the _BNLSError and _BNLSAuthEvent subroutines.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: timbo on May 26, 2003, 11:58 AM
I have tried it with my working keys for XP2D (lod), VD2D (d2), PXES (bw), and RATS (sc).  

yes, booleans default to false. though i have tried it all 3 ways, specifying true, false and not at all.

I'm suspecting BNLS account at this point tho no errors are being returned via the cleanslatebot BNLS auth events.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: Kp on May 26, 2003, 01:06 PM
Quote from: timbo on May 26, 2003, 11:58 AMI'm suspecting BNLS account at this point tho no errors are being returned via the cleanslatebot BNLS auth events.
What is your BNLS account name?  Do not include password.

Also, try taking a network trace of the activity when you start up.  Check if you successfully reach BNLS, whether it answers you, and what packets (if any) you send to BNCS.
Title: Re:CleanSlateBot.ocx: events not firing
Post by: iago on May 26, 2003, 01:24 PM
Also, XP2D is wrong.  Just fyi..
Title: Re:CleanSlateBot.ocx: events not firing
Post by: timbo on May 26, 2003, 04:57 PM
BNLS account is mfe, Yoni created it friday i think.  traces to come when i get winpcap to work correctly on this machine (trace only picksup outgoing packets atm, clean install of both ethereal and wpcap (new comp))

Quote from: iago on May 26, 2003, 01:24 PM
Also, XP2D is wrong.  Just fyi..

you're right, PX2D it is
Title: Re:CleanSlateBot.ocx: events not firing
Post by: tA-Kane on May 26, 2003, 06:18 PM
Ethereal works just fine on my mom's Windows XP machine (without a reboot, I might add).
Title: Re:CleanSlateBot.ocx: events not firing
Post by: timbo on May 27, 2003, 01:00 PM
normally it doesnt require a reboot, ill do it after i get home from work (blah)