Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: FuzZ on November 04, 2007, 06:20 PM

Title: BNLS Help?
Post by: FuzZ on November 04, 2007, 06:20 PM
Yeah, I'm back and newbified. (none of you probably remember me anyway, but I prefer it that way)

Sending 0x1A to BNLS..

0000:  35 00 1A 03 00 00 00 00 00 00 00 00 00 00 00 6C   5............l
0010:  6F 63 6B 64 6F 77 6E 2D 49 58 38 36 2D 31 35 2E   ockdown-IX86-15.
0020:  6D 70 71 00 4A ED A2 68 A8 7D 9B F6 63 9C 8A 1B   mpq.Jí¢h¨}›öcœŠ
0030:  1A C2 77 2D 00                                    Âw-............

0000:  0B 00 1A 00 00 00 00 00 00 00 00                  ..............

Something incorrect with this? I fail version check everytime.

Or is there another explanation why I'm failing version check? Perhaps bad parsing in 0x50?


Title: Re: BNLS Help?
Post by: l2k-Shadow on November 04, 2007, 06:36 PM
look at bnetdocs:

(DWORD) Product ID.*
(DWORD) Flags.**
(DWORD) Cookie.
(ULONGLONG) Timestamp for version check archive.
(STRING) Version check archive filename.
(STRING) Checksum formula.

you are leaving out a part of the message.
Title: Re: BNLS Help?
Post by: FuzZ on November 04, 2007, 07:00 PM
Well, I realize that the timestamp is missing, what confuses me is that this works


0000:  35 00 1A 03 00 00 00 00 00 00 00 00 00 00 00 6C   5............l
0010:  6F 63 6B 64 6F 77 6E 2D 49 58 38 36 2D 31 32 2E   ockdown-IX86-12.
0020:  6D 70 71 00 D5 27 C2 4E 5A EB E7 77 B6 58 48 F3   mpq.Õ'ÂNZëçw¶XHó
0030:  9C 28 7B AF 00                                    œ({¯............


but mine does not.. To me, after looking over this several times I don't notice anything that's different, except perhaps the checksum itself and the # of the lockdown file.
Title: Re: BNLS Help?
Post by: Chriso on November 04, 2007, 07:10 PM
What BNLS/JBLS server are you using? Try hdx.jbls.org I never have any problems with that one. I believe bnls.valhallalegends.com is not updated for WarCraft III, because it still returns 0x14 as the version byte, so maybe lockdown is broken as well?
Title: Re: BNLS Help?
Post by: FuzZ on November 04, 2007, 07:13 PM
I am using HDX's JBLS server. I'm still trying to figure out what exactly is causing this.. I'm about to give up for the night though.. It's perplexing to say the least.
Title: Re: BNLS Help?
Post by: FuzZ on November 04, 2007, 07:16 PM
I'm not sure why the other was working, but I have it fixed, I was just too lazy to add the file time into it, but now that I have, it's corrected. Thank you both for your insight.
Title: Re: BNLS Help?
Post by: Chriso on November 04, 2007, 08:10 PM
Perhaps show us your code?

Edit: didn't see you resolved it :o
Title: Re: BNLS Help?
Post by: Hdx on November 05, 2007, 02:57 PM
Nither of those logs should work...

35 00 1A 5.
03 00 00 00 ....
00 00 00 00 ....
00 00 00 00 ....
6C 6F 63 6B 64 6F 77 6E 2D lockdown
49 58 38 36 2D 31 35 2E 6D 70 71 00 -IX86-15.mpq.
4A ED A2 68 A8 7D 9B F6 63 9C 8A 1B 1A C2 77 2D 00 Jí¢h¨}›öcœŠÂw-............

Like Shadow said, you're missing the timestamps. I should kick you in the face for filling up my logs with 'Unknown Checkrevision Archive: -IX86-15.mpq TimeStamp: 0x2d6e776f646b636f6c'
Try sending the correct packet format.
~Hdx
Title: Re: BNLS Help?
Post by: FuzZ on November 06, 2007, 10:20 AM
Yeah, that's why I was confused about why one would work, and the other one wouldn't.. Because according to the BNLS Protocol, neither should work, but one of them did.

Regardless, I stopped being lazy and added the Timestamp, and it resolved the issue.. Thank you, again, for your input :)