Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Meh on November 18, 2004, 07:44 AM

Title: Hashing
Post by: Meh on November 18, 2004, 07:44 AM
I didnt write this but found it on my travels.

http://www.rival.bnetweb.com/rival/content.php?article.24

That link is an article on how to hash a connection to battle.net.
Title: Re: Hashing
Post by: Zakath on November 18, 2004, 07:59 AM
It's not really much of an article. More a long example of not-incredibly-well-written code.
Title: Re: Hashing
Post by: MyndFyre on November 18, 2004, 08:00 AM
This might be pertinent in BNBDR, but I noticed that while it says "tutorial" it screams "be a cookie cutter code copycat."

There is nothing there that actually *teaches* what is involved in hashing Battle.net.  It is also not language-agnostic.  Language agnosticism in a tutorial is not a requirement, but it is when all you do is give code.

[edit]You just beat me Zak.
Title: Re: Hashing
Post by: Zakath on November 18, 2004, 08:04 AM
Quote from: MyndFyre on November 18, 2004, 08:00 AM
[edit]You just beat me Zak.

Arrrr, that I did!

Oh man..."you must have setup.ini"

Oh no! My method for storing configuration information (using the windows registry) won't work if I want to create a hashed client?! :o

Shit, I don't remember importing either of those DLLs, either!
Title: Re: Hashing
Post by: Meh on November 18, 2004, 09:27 AM
I only found it, as i said i didnt write. I thought it may be useful for others to look and see how its done.
Title: Re: Hashing
Post by: iago on November 18, 2004, 10:22 AM
I don't like using the registry to store information, personally.  But that's personal preference, and an argument for another time/place :)
Title: Re: Hashing
Post by: MyndFyre on November 18, 2004, 10:51 AM
Quote from: Meh on November 18, 2004, 09:27 AM
I only found it, as i said i didnt write. I thought it may be useful for others to look and see how its done.

I know that.  I'm saying that it's not useful as a tutorial.  It's copycat code.

Quote from: iago on November 18, 2004, 10:22 AM
I don't like using the registry to store information, personally.  But that's personal preference, and an argument for another time/place :)

Did we ask for your opinion on using the registry?  :P  Out of curiousity, why not?
Title: Re: Hashing
Post by: Meh on November 18, 2004, 10:56 AM
Quote from: MyndFyre on November 18, 2004, 10:51 AM
Quote from: Meh on November 18, 2004, 09:27 AM
I only found it, as i said i didnt write. I thought it may be useful for others to look and see how its done.

I know that.  I'm saying that it's not useful as a tutorial.  It's copycat code.

Quote from: iago on November 18, 2004, 10:22 AM
I don't like using the registry to store information, personally.  But that's personal preference, and an argument for another time/place :)

Did we ask for your opinion on using the registry?  :P  Out of curiousity, why not?
My comment was aimed mainley at Zakath. I felt I was beeing flamed for something I did not desrve.
Title: Re: Hashing
Post by: Zakath on November 18, 2004, 11:56 AM
My comments were aimed more at that "tutorial," not at you Meh.
Title: Re: Hashing
Post by: iago on November 18, 2004, 11:57 AM
Quote from: MyndFyre on November 18, 2004, 10:51 AM
Quote from: iago on November 18, 2004, 10:22 AM
I don't like using the registry to store information, personally.  But that's personal preference, and an argument for another time/place :)

Did we ask for your opinion on using the registry? :P Out of curiousity, why not?

1. I format frequently, and it's much easier to back up programs that don't have a presence in the registry.
2. Programs are more easily ported to/used in Linux if they don't use the registry.
3. It's much easier to find/edit configurations by hand if they are files.  Unless they put the files somewhere stupid. but eh.

<edit> If you want to persue this, let's start a new thread somewhere.
Title: Re: Hashing
Post by: Zakath on November 18, 2004, 12:03 PM
Quote from: iago on November 18, 2004, 11:57 AM1. I format frequently, and it's much easier to back up programs that don't have a presence in the registry.
See, I consider formatting a time consuming nuisance. I do it as infrequently as I can practically manage.
Quote2. Programs are more easily ported to/used in Linux if they don't use the registry.
This is a chat client that is completely based on the Windows API we're talking about here. There'd be no point in porting it to linux; it'd make far more sense to just write a new one from scratch. :P
Quote3. It's much easier to find/edit configurations by hand if they are files.  Unless they put the files somewhere stupid. but eh.
Pfft...what are you doing editing these things by hand, anyway? That's what the config dialog is for. :)
Title: Re: Hashing
Post by: MyndFyre on November 18, 2004, 12:18 PM
Quote from: Zakath on November 18, 2004, 12:03 PM
Quote from: iago on November 18, 2004, 11:57 AM3. It's much easier to find/edit configurations by hand if they are files.  Unless they put the files somewhere stupid. but eh.
Pfft...what are you doing editing these things by hand, anyway? That's what the config dialog is for. :)
<hypocritical-statement reference="signature">Pfft, Windows newbie.</hypocritical-statement>