Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: MusicDemon on May 17, 2011, 09:27 AM

Title: BN# issues
Post by: MusicDemon on May 17, 2011, 09:27 AM
Hello,

Since 1.26 I have problems with logging in, I keep on getting invalid version, are there any changes needed?
Title: Re: BN# issues
Post by: Michael on May 17, 2011, 11:14 AM
Did you put in the new hashes and verbytes?
Title: Re: BN# issues
Post by: MusicDemon on May 17, 2011, 03:38 PM
Yups, I've noticed that W3L (PvPGN loader) had a softwarematic change.... Never found out why but, I think it's because of "that". Btw, I didn't update BN# for quite some time, because of a fix I made to it... Was there a change since Warcraft 1.25?
Title: Re: BN# issues
Post by: Michael on May 17, 2011, 08:39 PM
I am not sure, I know the newest BN# from the SVN works fine.
Title: Re: BN# issues
Post by: MusicDemon on May 18, 2011, 08:06 AM
Guess I have to update it... Uhm, and idea how to patch it without having my changes be overwritten?
Title: Re: BN# issues
Post by: MyndFyre on May 19, 2011, 06:54 PM
Quote from: MusicDemon on May 18, 2011, 08:06 AM
Guess I have to update it... Uhm, and idea how to patch it without having my changes be overwritten?
Update and merge.
Title: Re: BN# issues
Post by: MusicDemon on May 20, 2011, 01:54 AM
I did an update on one of my BN# source directories and still it bugs; File difference. I cannot see the difference...

It seemed that it has problems with checkrevision, for somehow it hashes the wrong data, I had to add that hash/version arrays myself.

P.S.: I created a patch for SendMail at account creation, any need?

EDIT: PvPGN tells me this:

Quoteverstr=1.26.25.1 exeinfo="war3.exe 3/18/11 20:03:55 471040" versionid=0x0000001a gameversion=0x011a1901 checksum=0xf2e7cec2
The version string is wrong.
Title: Re: BN# issues
Post by: MusicDemon on October 23, 2011, 08:14 AM
After nearly a year still no response. Yes, I'm trying it all over again! :P


int version = ((fvi.FileMajorPart << 24) |
               (fvi.FileMinorPart << 16) |
               (fvi.FileBuildPart << 8) | fvi.FilePrivatePart);
byte[] t1 = BitConverter.GetBytes(version);
/*
* t1[0] = 1
* t1[1] = 25
* t1[2] = 26
* t1[3] = 1
* What should be:
* t1[0] = 1
* t1[1] = 0
* t1[2] = 26
* t1[3] = 1
*/

I've seen that it's been updated last October so, I suppose that it can be fixed.

Dump from StealthBot
255 81 141 0 204 127 145 0 1 0 26 1 194 206 231 242 2 0 0 0 0 0 0 0 26 0 0 0 (...)
Title: Re: BN# issues
Post by: MyndFyre on October 23, 2011, 05:19 PM
If you'd like to set up a retainer, I promise I'll get you answers in a more timely manner. :)