Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Imperceptus on April 26, 2008, 03:41 AM

Title: D2 Gateways
Post by: Imperceptus on April 26, 2008, 03:41 AM
How can I add my own gateway option to the list of gateways in the D2 Client?
Title: Re: D2 Gateways
Post by: Ringo on April 26, 2008, 03:53 AM
HKEY_CURRENT_USER\Software\Battle.net\Configuration\Diablo II Battle.net gateways
Title: Re: D2 Gateways
Post by: Imperceptus on April 26, 2008, 07:28 AM
thanks. im trying to set it to point to my computer so that i can see all the traffic.  so far not so good, lol.
Title: Re: D2 Gateways
Post by: FrostWraith on April 26, 2008, 09:08 AM
You could just write a simple proxy that would relay everything byte for byte if you aren't already doing so.
Title: Re: D2 Gateways
Post by: UserLoser on April 26, 2008, 11:48 AM
Quote from: Imperceptus on April 26, 2008, 03:41 AM
How can I add my own gateway option to the list of gateways in the D2 Client?
what ringo said ^

Since I mis-read the first post...might as well keep this here incase anyone needs it:

To obtain a list of servers reqest the following from the server via SID_GETFILETIME then download if a newer one is out.

bnserver.ini
bnserver-d2dv.ini
bnserver-war3.ini
Title: Re: D2 Gateways
Post by: Yegg on April 26, 2008, 11:08 PM
Quote from: UserLoser on April 26, 2008, 11:48 AM
Quote from: Imperceptus on April 26, 2008, 03:41 AM
How can I add my own gateway option to the list of gateways in the D2 Client?
what ringo said, but isn't reliable if user doesn't have it installed

If the user doesn't have what installed? If they don't have the game installed then they won't have to worry about a list of gateways in the first place.
Title: Re: D2 Gateways
Post by: UserLoser on April 27, 2008, 01:22 AM
this forum needs to let people delete their own posts
Title: Re: D2 Gateways
Post by: Ringo on April 27, 2008, 03:15 AM
Quote from: UserLoser on April 27, 2008, 01:22 AM
If it's not installed, Ringo's suggestion fails.
Well, I figgerd it would have to be installed, as he said "in the D2 Client" :P
Then again, if the client (or bot in any case) does not support manualy editing of gateway domain's, and you want it to connect to a LAN or somthing (think hes trying to make a gateway/proxy-like server) then you would probly wanna edit a gateway to get it to connect to lan to download a modifyed server ini (with out getting into modifying the bncache to much), in which case C:\WINDOWS\system32\drivers\etc\hosts -> w/e.battle.net -> 127.0.0.1 or w/e  should be effective
Title: Re: D2 Gateways
Post by: Imperceptus on April 27, 2008, 10:04 AM
ringo was on target. did the trick for me.
Title: Re: D2 Gateways
Post by: Yegg on April 27, 2008, 11:35 AM
Quote from: Ringo on April 27, 2008, 03:15 AM
Quote from: UserLoser on April 27, 2008, 01:22 AM
If it's not installed, Ringo's suggestion fails.
Well, I figgerd it would have to be installed, as he said "in the D2 Client" :P

That's exactly why I couldn't see what UserLoser was originally getting at.
Title: Re: D2 Gateways
Post by: Imperceptus on April 27, 2008, 01:29 PM
I have failed in the same ways before and had to modify my post with more logical answers.  I have a bad habit of skimming or reading a sentence up to a point to which I know the answer, from which my mind quickly says "OH I KNOW HOW". And then I respond like he did.  Then I read my post(thankfully before I get flamed) and try to fix it. LOL
Title: Re: D2 Gateways
Post by: UserLoser on April 27, 2008, 02:01 PM
I misread first post, oops.  Didnt see that he wanted to add his own option.  I thought he said he wants his own option to strictly list the gateways...didn't make sense to me.  So yeah you have to modify what Ringo said