• Welcome to Valhalla Legends Archive.
 

High Latency and Invalid version?

Started by Jaquio, May 03, 2006, 05:09 PM

Previous topic - Next topic

Jaquio

For some reason EVERYTIME I connect to bnet on my bot, it has a latency of like.. 400-500ms.. Any idea why? Because when I connect of any other bot it's 50-75ms.. An I cannot figure out why..

Again, it's something that didn't happen on the other bot I made(was outdated needed to start anew), but is happening on this one.. I am sending everything the same.. But not sure why..

Also, when I connect to BNet of anything else other then Starcraft I get invalid version.. Any idea on that? I am using BNLS to get all the information.. Works with starcraft an not anything else.. Again, I think I am sending everything correctly but who knows.. It worked on my other bot an it's the same exact setup(was testing to see if it was my code but it wasn't)..

MyndFyre

Quote from: Jaquio on May 03, 2006, 05:09 PM
For some reason EVERYTIME I connect to bnet on my bot, it has a latency of like.. 400-500ms.. Any idea why? Because when I connect of any other bot it's 50-75ms.. An I cannot figure out why..

Again, it's something that didn't happen on the other bot I made(was outdated needed to start anew), but is happening on this one.. I am sending everything the same.. But not sure why..

Also, when I connect to BNet of anything else other then Starcraft I get invalid version.. Any idea on that? I am using BNLS to get all the information.. Works with starcraft an not anything else.. Again, I think I am sending everything correctly but who knows.. It worked on my other bot an it's the same exact setup(was testing to see if it was my code but it wasn't)..

Well, it seems to me like you're taking longer than other bots (probably going through a lot more code) to send the SID_PING response.

As to the invalid version info for anything besides Starcraft, you're probably not providing the right information to Battle.net.
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.

Jaquio

Quote from: MyndFyre[vL] on May 03, 2006, 05:38 PM
Well, it seems to me like you're taking longer than other bots (probably going through a lot more code) to send the SID_PING response.

I send it as soon as I receive it.. Or am I supposed to send it first?

Quote from: MyndFyre[vL] on May 03, 2006, 05:38 PM
As to the invalid version info for anything besides Starcraft, you're probably not providing the right information to Battle.net.

I have provided everything correctly because I did it exactly as I did it in my other bot, an it still don't work? Wtf, lol. I will retry everything again.

raylu

If you send 0x25 before B.net sends it to you, you get a ping of 0.

I get this when I load SC for the first time after using the computer for a bit. I don't have a lot of RAM so it has to load stuff into virtual memory to pull the hashing function into RAM, I believe. My HD isn't exactly top-of-the-line either, so this takes time...time that delays the 0x25 response.

I've also used SB on a really slow computer. With BNLS, my ping is usually <100, but with local hashing, the ping goes >1000

In short, I believe your hashing function for 0x51 is inefficient.
Pie?

Jaquio

#4
Quote from: raylu on May 03, 2006, 08:47 PM
If you send 0x25 before B.net sends it to you, you get a ping of 0.

I get this when I load SC for the first time after using the computer for a bit. I don't have a lot of RAM so it has to load stuff into virtual memory to pull the hashing function into RAM, I believe. My HD isn't exactly top-of-the-line either, so this takes time...time that delays the 0x25 response.

I've also used SB on a really slow computer. With BNLS, my ping is usually <100, but with local hashing, the ping goes >1000

In short, I believe your hashing function for 0x51 is inefficient.

I am using BNLS to do all the hashing for me pretty much..


Public Sub Send0x51()
    With PB
        .InsertDWORD BNETDat.ClientToken
        .InsertDWORD BNETDat.Version
        .InsertDWORD BNETDat.CheckSum
            If BDat.Product = "PX2D" Or BDat.Product = "PX3W" Then
                .InsertDWORD &H2
            Else
                .InsertDWORD &H1
            End If
        .InsertDWORD &H0
        .InsertNonNTString BNETDat.CDKeyHash
            If BDat.Product = "PX2D" Or BDat.Product = "PX3W" Then
                .InsertNonNTString BNETDat.CDKeyHash2
            End If
        .InsertNTString BNETDat.EXEInfo
        .InsertNTString BDat.CDKeyOwner
        .SendBNCSPacket &H51
    End With
End Sub


The information in there comes from the 0x01 an 0x09 packets from BNLS.


                Case &H1
                    DB.rDWORD 'Result
                   
                    BNETDat.ClientToken = DB.rDWORD
                    BNETDat.CDKeyHash = DB.rVOID(36)
                   
                    Send0x51
           
                Case &H9
                    If DB.rDWORD = &H1 Then
                        BNETDat.Version = DB.rDWORD
                        BNETDat.CheckSum = DB.rDWORD
                        BNETDat.EXEInfo = DB.rNTString
                       
                            If BDat.Product = "PX2D" Or BDat.Product = "PX3W" Then
                                With PB
                                    .InsertDWORD &H0
                                    .InsertBYTE &H2
                                    .InsertDWORD &H1
                                    .InsertDWORD BNETDat.ServerToken
                                    .InsertNTString BDat.CDKey
                                    .InsertNTString BDat.CDKey2
                                    .SendBNLSPacket &HC
                                End With
                            Else
                                With PB
                                    .InsertDWORD BNETDat.ServerToken
                                    .InsertNTString BDat.CDKey
                                    .SendBNLSPacket &H1
                                End With
                            End If
                    Else
                        AddChat vbGreen, vbRed, "BNLS Version Check Failed!"
                        Call frmMain.mnu_Disconnect_Click
                    End If


So uhh.. my 0x51 is fine? An I have tried everything.. I send my SID_PING response as soon as I receive it.. I cannot find the problem..

As for the invalid version stuff I cannot figure that out either, but will continue to mess around with it until I get it, I never give up. O_o

Hero

this is what i do:
       .send frmMain.sckBNCS, SID_AUTH_INFO
       
        Dim x As Long
            For x = 1 To 710
                .send SID_NULL
            Next x
           
            .InsertDWORD 0
            .send SID_PING

UserLoser

You kids do the weirdest things now a days for these bots...

Tazo

Quote from: HeRo on May 04, 2006, 02:39 AM
this is what i do:
       .send frmMain.sckBNCS, SID_AUTH_INFO
       
        Dim x As Long
            For x = 1 To 710
                .send SID_NULL
            Next x
           
            .InsertDWORD 0
            .send SID_PING

wtf?!!!!

Jaquio

Quote from: Tazo on May 04, 2006, 05:59 AM
Quote from: HeRo on May 04, 2006, 02:39 AM
this is what i do:
       .send frmMain.sckBNCS, SID_AUTH_INFO
       
        Dim x As Long
            For x = 1 To 710
                .send SID_NULL
            Next x
           
            .InsertDWORD 0
            .send SID_PING

wtf?!!!!

That is what i'm saying.. What the hell would that do? Lol, anyways.. Still haven't figured it out an now I am getting high pings on all bots. So now I am thinking it's my computer or my connection(Crappy DSL). So who knows.. Will have a friend test it when he gets online, will post back with an answer.

Again, as for the invalid version not sure what is going on with it exactly..

rabbit

The first time you get SID_PING, set a timer for a few minutes and send your response after that time.  You can do whatever else in the mean time and still get huge lag.
Grif: Yeah, and the people in the red states are mad because the people in the blue states are mean to them and want them to pay money for roads and schools instead of cool things like NASCAR and shotguns.  Also, there's something about ketchup in there.

Sorc.Polgara

Quote from: HeRo on May 04, 2006, 02:39 AM
this is what i do:
       .send frmMain.sckBNCS, SID_AUTH_INFO
       
        Dim x As Long
            For x = 1 To 710
                .send SID_NULL
            Next x
           
            .InsertDWORD 0
            .send SID_PING

I'm drowning in wtf.

PaiD

Why wouldnt you get disconnect/ipbanned for sending that many packets(sid_null) or do they not count towards it?

Hdx

Quote from: Savior on May 04, 2006, 03:54 PM
or do they not count towards it?
They don't, SID_NULLS are all but ignored serverside.
~-~(HDX)~-~

Proud host of the JBLS server www.JBLS.org.
JBLS.org Status:
JBLS/BNLS Server Status

Hero

Just try it, when I use it my ping is 30-50, when I dont use it, its about 300+.

raylu

Pie?