• Welcome to Valhalla Legends Archive.
 

Battle.net Bot Restrictions

Started by Rasico, April 04, 2004, 07:25 PM

Previous topic - Next topic

MyndFyre

#45
Quote from: Eli_1 on April 06, 2004, 08:06 PM
I already answered what you could do (read above myndfyre's post -- first sentence.), but note that not many users really want to use the same CDKey their game is installed with. For 90% of the users of your bot, they will want to have a bot loaded, and be on the client at the same time. If your bot is using the clients key, therefore stopping it from connecting, it will stop them from doing what they want.

[Edit] I just tryed looking through the registry, and I can't find the CDKey for SC (doesn't mean it's not there, I just can't find it).

Not being certain how other bots do it (SphtBot puts it in the registry), this is how I do it:

I store in the registry the full path of the installation folder under HKEY_LOCAL_MACHINE\Software\ArmaBot Alpha 4, which tells me where the install path is.  Under HKEY_CURRENT_USER\Software\ArmaBot Alpha 4, I store the path to the Profiles folder, which is by default in My Documents\ArmaBot Alpha 4\, with the file named Profiles.apl.  The profiles.apl file is simply an XML file with names of connection profiles; for example, FTAzeroth.  There is then a subfolder in the MyDocs\ArmaBot Alpha 4 folder called FTAzeroth, which has a file called FTAzeroth.acp, another XML file, containing the CD keys for all supported clients.  That way, each connection can maintain its own CD key list.

Fun, huh?  ;)
QuoteEvery generation of humans believed it had all the answers it needed, except for a few mysteries they assumed would be solved at any moment. And they all believed their ancestors were simplistic and deluded. What are the odds that you are the first generation of humans who will understand reality?

After 3 years, it's on the horizon.  The new JinxBot, and BN#, the managed Battle.net Client library.

Quote from: chyea on January 16, 2009, 05:05 PM
You've just located global warming.

Adron

Quote from: Eli_1 on April 06, 2004, 08:06 PM
[Edit] I just tryed looking through the registry, and I can't find the CDKey for SC (doesn't mean it's not there, I just can't find it).

The cd keys for blizzard games are stored in various mpqs in the game directories.

Eli_1

Quote from: Adron on April 07, 2004, 07:33 PM
Quote from: Eli_1 on April 06, 2004, 08:06 PM
[Edit] I just tryed looking through the registry, and I can't find the CDKey for SC (doesn't mean it's not there, I just can't find it).

The cd keys for blizzard games are stored in various mpqs in the game directories.

ok thanks, Adron ;D

Lycaon

Quote from: Eli_1 on April 06, 2004, 07:33 PM
' // Also for some reason when you use For Input, it
' // seems to screw up when there's commas in the
' // data it's trying to input.


When using Input, VB treats commas as delimiters, much like vbCrLfs.  To read in an entire line, whether it includes commas or not, use Line Input, eg:

Line Input #1, MyLine

|