• Welcome to Valhalla Legends Archive.
 

Auto Update

Started by PaiD, January 18, 2006, 08:45 PM

Previous topic - Next topic

PaiD

Well with Blizzard releasing a new patch for sc. I was wanting to know if anyone know how to auto download the patch and run it and then get the new info/hashes?

Kp

Quote from: Savior on January 18, 2006, 08:45 PM
Well with Blizzard releasing a new patch for sc. I was wanting to know if anyone know how to auto download the patch and run it and then get the new info/hashes?

Yes.  BNLS has this functionality, though it requires a specific command to activate it (for simplicity/security's sake).  You can't easily get the magic version value, but everything else is easy enough.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

PaiD

KP: you know that wasnt what I was looking for. Ok.. going with BNLS, How does BNLS do this?

MyndFyre

Quote from: Savior on January 18, 2006, 09:11 PM
KP: you know that wasnt what I was looking for. Ok.. going with BNLS, How does BNLS do this?

Once BNLS is issued the command, it downloads the patch via Battle.net's FTP service, then applies the patch to its game files per the Blizzard patching algorithm.
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.

Skywing

#4
If you want to learn how to do this, a good place to start would be taking a stab at reverse engineering bnupdate and possibly some of the standalone patches.

You'll probably also need a library capable of understanding single block compressed and bzip2 compressed MPQs.

Unfortunately, the C API for Storm has not been updated to support either of these to my knowledge, so you're better off looking for a third party implementation.

PaiD

Hm.
Thank you Skywing, that was the answer I was looking for.

Joe[x86]

If you hadn't made us make wild stabs in the dark (your question was quite vague), I could have answered that it was bnupdate you were looking for in about two seconds. =p
Quote from: brew on April 25, 2007, 07:33 PM
that made me feel like a total idiot. this entire thing was useless.

Kp

Quote from: Savior on January 18, 2006, 09:11 PM
KP: you know that wasnt what I was looking for. Ok.. going with BNLS, How does BNLS do this?

Perhaps not, but you requested only whether anyone knew how to do it.  The answer to that question is "yes", as demonstrated by the BNLS features I outlined.  Be careful what you ask, and you'll get more useful answers.
[19:20:23] (BotNet) <[vL]Kp> Any idiot can make a bot with CSB, and many do!

Mesiah / haiseM

What about creating a public server to download the newest hash files for those who don't use BNLS? I can create a compression scheme for binary files to distribute as ONE file, to cloak the file names upon download (Just incase Blizzard were to ever catch on..) This doesn't seem too hard... I'm not referring to a webserver either, i mean a special protocol made simply to download the latest updated hash files upon detection of a new patch. Just a thought.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

MyndFyre

Quote from: Mesiah / haiseM on January 19, 2006, 06:48 AM
What about creating a public server to download the newest hash files for those who don't use BNLS? I can create a compression scheme for binary files to distribute as ONE file, to cloak the file names upon download (Just incase Blizzard were to ever catch on..) This doesn't seem too hard... I'm not referring to a webserver either, i mean a special protocol made simply to download the latest updated hash files upon detection of a new patch. Just a thought.

That's fine, but it might require a way to auto-update on your part.
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.

shout

StormLib is available for getting files inside of mpq files, but I don't know how well it will work with current mpq files. I'm sure it could be fixed though.

Skywing

Quote from: Mesiah / haiseM on January 19, 2006, 06:48 AM
What about creating a public server to download the newest hash files for those who don't use BNLS? I can create a compression scheme for binary files to distribute as ONE file, to cloak the file names upon download (Just incase Blizzard were to ever catch on..) This doesn't seem too hard... I'm not referring to a webserver either, i mean a special protocol made simply to download the latest updated hash files upon detection of a new patch. Just a thought.

That's likely to be bandwidth-intensive (who is going to provide all of the bandwidth to distribute those new version check files to thousands of people after every patch?), and it'd be a lot easier for Blizzard to nail you on distributed copyrighted materials than with doing something like using BNLS (or a compatible system).

PaiD

Why hasnt Blizzard tried to shutdown BNLS before? I am sure they know about it or do they not?

Mesiah / haiseM

What are they going to do? Its the same concept as any other bot, and thousands of users log on bots every day. From what I understand, Blizzard is in no position to make formal agreements with anything that has to do with exploiting, modifying, or cloning there software.

Aside from that, Skywing:

I understand the bandwidth issues, which would be one of the reason for compression. It may not help a GREAT deal, but a simple queue priority system would easily handle 5,000 users at the same time... Who is going to provide the bandwidth? What is wrong with your average cable modem? If there is a queue, speed would be comprimised from the get-go. Also, I understand that BNLS is undoubtably the easiest way to do this, but unless you missed it, I was referring to Non-BNLS users. Hash files are roughly 1mb, or 1.5mb's, somewhere around there. Add a compression to it, then add it to an archive, youll end up with less than 500kb. 1 single 500kb file, sustained at 5kb/s would not take too long. The server would also be responsible for distributed: "Server Busy" messages, along with a link to an HTTP server with a manual hash file download. The main idea here is, Centrilization.
]HighBrow Innovations
Coming soon...

AIM Online Status: 

MyndFyre

Quote from: Mesiah / haiseM on January 19, 2006, 01:05 PM
What are they going to do? Its the same concept as any other bot, and thousands of users log on bots every day. From what I understand, Blizzard is in no position to make formal agreements with anything that has to do with exploiting, modifying, or cloning there software.

Aside from that, Skywing:

I understand the bandwidth issues, which would be one of the reason for compression. It may not help a GREAT deal, but a simple queue priority system would easily handle 5,000 users at the same time... Who is going to provide the bandwidth? What is wrong with your average cable modem? If there is a queue, speed would be comprimised from the get-go. Also, I understand that BNLS is undoubtably the easiest way to do this, but unless you missed it, I was referring to Non-BNLS users. Hash files are roughly 1mb, or 1.5mb's, somewhere around there. Add a compression to it, then add it to an archive, youll end up with less than 500kb. 1 single 500kb file, sustained at 5kb/s would not take too long. The server would also be responsible for distributed: "Server Busy" messages, along with a link to an HTTP server with a manual hash file download. The main idea here is, Centrilization.

It would be better just to host a torrent tracker.
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.