Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Ringo on December 20, 2008, 01:29 PM

Title: VB6 Checkrevision On Smack
Post by: Ringo on December 20, 2008, 01:29 PM
hmm, I got bored again :p
I read HDX's post in the C++ forum, and it got me thinking:
http://forum.valhallalegends.com/index.php?topic=17719.0
Since I wrote an ASM class for vb6, I thought id see how fast I could really get VB6 CheckRrevision moving!
Ive been comparing it with BNCSutli.dll, and got it moving 2 times as fast :)
I'm posting it here incase anyone want's to add it to their bot.
You can download the test project here: VB6Checkrevision.zip (http://d2bot.cjb.net/VB6Checkrevision.zip)
You will need to paste Warcraft3 binary's into the same directory as the project, since they are not included in the zip.
Here's some out put's compared to BNCSutli.dll's:

VB6 Check revision:
   Time     = 93ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info = war3.exe 08/19/08 12:58:06 471040


C++ Check revision:
   Time     = 203ms
   Checksum = 0xB268CECB

The project/code is abit of a mess, so you might want to clean it up before useing it.
1 Main advantage of this, is it runs just as fast in debug mode, as it does compiled!
All suggestions are welcome, but please note: I know the code is a mess ;)
Title: Re: VB6 Checkrevision On Smack
Post by: Hdx on December 20, 2008, 01:45 PM
VB6 Check revision:
   Time     = 46ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info = war3.exe 06/27/08 04:01:34
C++ Check revision:
   Time     = 109ms
   Checksum = 0xB268CECB

Sexy sexy, Good job, now just clean it up and make it look pretty!
Title: Re: VB6 Checkrevision On Smack
Post by: l2k-Shadow on December 20, 2008, 03:08 PM
clsASM = cheating :X
Title: Re: VB6 Checkrevision On Smack
Post by: l)ragon on December 20, 2008, 04:01 PM
nifty, how fast with the rest of the clients, average time over multi tests.
Title: Re: VB6 Checkrevision On Smack
Post by: Ringo on December 21, 2008, 07:25 AM
Quote from: Hdx on December 20, 2008, 01:45 PM
VB6 Check revision:
   Time     = 46ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info = war3.exe 06/27/08 04:01:34
C++ Check revision:
   Time     = 109ms
   Checksum = 0xB268CECB

Sexy sexy, Good job, now just clean it up and make it look pretty!
You're comp > My comp :(

Quote from: l2k-Shadow on December 20, 2008, 03:08 PM
clsASM = cheating :X
How so? :p
Besides afew API's, it's all native VB6 ;)

Quote from: l)ragon on December 20, 2008, 04:01 PM
nifty, how fast with the rest of the clients, average time over multi tests.
uh, Ive only tested it with W3 because of their large binarys :)
But heres some average times for 100 loops of checkrevision.
I did it about 5 times on both, and wrote down the best average time:

WAR3:
    VB6 = 107ms
    C++ = 210ms

W2BN:
    VB6 = 10ms
    C++ = 26ms

SEXP:
    VB6 = 18ms
    C++ = 37ms

D2XP:
    VB6 = 10ms
    C++ = 20ms

DRTL:
    VB6 = 12ms
    C++ = 28ms
Title: Re: VB6 Checkrevision On Smack
Post by: PunK on December 26, 2008, 11:54 AM

VB6 Check revision:
   Time     = 1781ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info =
war3.exe 06/27/08 00:01:35 471040



C++ Check revision:
   Time     = 94ms
   Checksum = 0xB268CECB


Hmm.
Title: Re: VB6 Checkrevision On Smack
Post by: Ringo on December 26, 2008, 12:30 PM
Quote from: PunK on December 26, 2008, 11:54 AM

VB6 Check revision:
   Time     = 1781ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info =
war3.exe 06/27/08 00:01:35 471040



C++ Check revision:
   Time     = 94ms
   Checksum = 0xB268CECB


Hmm.
Sounds like a hard-drive thing, or w/e causes lag when you 1st run somthing that reads large amount of data from HD.
If you ran BNCSulti 1st, it would have also taken a few seconds to do.
Try it a few times ;)
Title: Re: VB6 Checkrevision On Smack
Post by: MysT_DooM on December 26, 2008, 02:27 PM
QuoteVB6 Check revision:
   Time     = 78ms
   Checksum = 0xB268CECB
   Version  = 0x11600B8
   Info =
war3.exe 06/27/08 00:01:35 471040

C++ Check revision:
   Time     = 281ms
   Checksum = 0xB268CECB

good stuff, ill make sure too use this
Title: Re: VB6 Checkrevision On Smack
Post by: PunK on December 26, 2008, 04:52 PM
Oh yeah, now it's faster. 31ms vs 125ms...

Interesting. Good job!