Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: J.R. on November 08, 2004, 11:52 AM

Title: Cannot Connect to BNLS :(
Post by: J.R. on November 08, 2004, 11:52 AM
I am using a bot that uses CleanSlateBot to connect to BNLS but when I attempt to connect, nothing happens i.e. BNLS cannot be connected to at all. I have been using this bot for a very long time and it is only in the past week that this is happening, and I don't note any changes on Battle.net during this particular time. Has anybody else experienced the same problem or know what is going on?

Cheers,
J.R.
Title: Re: Cannot Connect to BNLS :(
Post by: Warrior on November 08, 2004, 02:04 PM
Quote from: J.R. on November 08, 2004, 11:52 AMd I don't note any changes on Battle.net during this particular time

Why would that even matter? Your problem obviously is with BNLS
Title: Re: Cannot Connect to BNLS :(
Post by: Skywing on November 08, 2004, 04:28 PM
Oh how I love application backwards compatibility.

This should be fixed sometime in the near future.
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 08, 2004, 04:43 PM
Warrior: Don't blame a guy for being a bit tired when writing his post :P That said, although I'm (user-side) technically competent I'm not a genius, so touche.

Skywing: Does that mean the problem is not my end? Just out of curiosity, can the problem be expressed in a simple enough nature so that you could describe it to me quickly and I can hope I'll learn something from it? :P

J.R.
Title: Re: Cannot Connect to BNLS :(
Post by: BaDDBLooD on November 08, 2004, 05:05 PM
i believe either BNLS.ValhallaLegends.com or ValhallaLegends.com currently is not working as a BNLS Server address.  Clean Slate Bot uses one of those two server's.  I am not sure if that's what he meant, however that's what i think.
Title: Re: Cannot Connect to BNLS :(
Post by: Skywing on November 08, 2004, 05:11 PM
CSB uses www.valhallalegends.com which is at present not setup for BNLS connections.
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 08, 2004, 07:28 PM
Is there anywhere in particular I am able to change my BNLS server without having to dive into the source code of CleanSlateBot? I take it that it's not as easy as opening up the .ocx in Notepad and editing it :( Does anybody mind writing a short guide?

Sorry again but thanks.
Title: Re: Cannot Connect to BNLS :(
Post by: Yegg on November 08, 2004, 07:32 PM
again, i think bnls would b better.
Title: Re: Cannot Connect to BNLS :(
Post by: MyndFyre on November 09, 2004, 02:50 AM
Aside from JR and Skywing, I really do not see a coherent point to any other messages posted in this thread.

JR: No, there is not any way to change the BNLS server short of modifying the source, as I recall (although I could be wrong).  I Google'd, but was not able to find ocx_me.txt, which was the file Cuphead wrote as a tutorial for CSB.

Sorry!
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 09, 2004, 05:50 AM
Thanks MyndFyre...I basically need to find the file ocx_me.txt which teaches me how to modify the source and change my BNLS server then?
Title: Re: Cannot Connect to BNLS :(
Post by: Stealth on November 09, 2004, 03:26 PM
It won't help you modify the source. It is, however, a very good resource to have, along with his other HTML-based readme. I've put them both you for your reading pleasure at http://stealthbot.net/misc/ .
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 09, 2004, 06:26 PM
Stealth: Thanks! I am actually reading both of them and if anything they are very educational reads (no sarcasm). However I'm still stuck without BNLS access which means I can't use my bot :( On the bright side I now know what OCX does! :D
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 12, 2004, 01:46 PM
:( Unfortunately no update for BNLS has been released yet so I am still unable to use the bot...does anybody know when it will be updated? *puts on his best pretty face*
Title: Re: Cannot Connect to BNLS :(
Post by: iago on November 12, 2004, 02:35 PM
You could map www.valhallalegends.com in your hosts file to point to th proper server.

Right now, the addresses are:
Quoteiago@Slayer:~$ host www.valhallalegends.com
www.valhallalegends.com has address 168.215.185.2
iago@Slayer:~$ host bnls.valhallalegends.com
bnls.valhallalegends.com has address 63.161.183.202

You'll want to edit your hosts file, which can be found at:
C:\windows\system32\drivers\etc\hosts on Windows
or
/etc/hosts on Linux (just to compare :P)

You'll want to add the line:
Quote63.161.183.202    www.valhallalegends.com

I'm not 100% sure that that'll work, but give it a try and let me know.

The other alternative is not using CSB, it's too restricting :)
Title: Re: Cannot Connect to BNLS :(
Post by: hismajesty on November 12, 2004, 02:45 PM
Cuphead released the CSB source code (I think) some time ago, it should be in one of these forums. Denial posted it iirc. Just edit/recompile that. :)

Edit: http://forum.valhallalegends.com/phpbbs/index.php?topic=8607.0

Edit2: That's not the same CSB as you're using, but maybe it'll help anyway. It's the one that was under development. I opened it up to see if it was right, hrm oh well.*shrug*
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 13, 2004, 10:21 AM
My current hosts file has the following information:

(Blahblahblah crap at the top)
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
#      102.54.94.97     rhino.acme.com          # source server
#       38.25.63.10     x.acme.com              # x client host

127.0.0.1       localhost

That's right, just localhost...which got me wondering whether something was wrong here in the first place. Nevertheless, I've added "63.161.183.202    www.valhallalegends.com" under localhost and now it works! Either BNLS has been updated or you have solved my problem, cheers ;)

EDIT: Yes, it's your solution, not BNLS back up :) Thanks!

J.R.
Title: Re: Cannot Connect to BNLS :(
Post by: Kp on November 13, 2004, 10:56 AM
Quote from: J.R. on November 13, 2004, 10:21 AMEDIT: Yes, it's your solution, not BNLS back up :) Thanks!

BNLS wasn't down.  You're just using old poorly written software which looks for BNLS in the wrong place.
Title: Re: Cannot Connect to BNLS :(
Post by: iago on November 13, 2004, 11:48 AM
Yeah, www.valhallalegends.com points to the wrong ip.  What you're doing is overriding the dns to point to the correct address.
Title: Re: Cannot Connect to BNLS :(
Post by: J.R. on November 13, 2004, 08:33 PM
Sorry for the bad wording, that's what I meant :) Thanks for the solution!