• Welcome to Valhalla Legends Archive.
 

Checkrevision failure

Started by Dale, June 01, 2006, 06:17 PM

Previous topic - Next topic

UserLoser

Wth is this, doesn't look like CheckRevision() to me!

Dale


rabbit

That's really not helpful at all.

A bad outgoing packet construct won't have any effect on a local routine's result.
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.

Dale

Hm alright, I'll work on it a little more, and check some other things out.

Mystical

#19
Quote from: dlStevens on June 02, 2006, 02:08 PM
Alrighty, here is where it gives me check revision failure.


  HF = GetHashFiles
                          Debugtxt vbYellow, "Checking hashfiles..."
                    If (checkRevision(ValueString, HF(0), HF(1), HF(2), NewMPQNumber, Checksum) = False) Then
                        frmMain.SckBnet.Close
                        AppendText LtRed, "Checkrevision failed!"
                        Exit Function
                    End If


This is the GetHashFiles function


Public Function GetHashFiles() As String()

    Dim HashFiles(2) As String
   
        Select Case UCase(BOT_PRODUCT)
            Case "RATS", "PXES"
                HashFiles(0) = App.Path & "\STAR\starcraft.exe"
                HashFiles(1) = App.Path & "\STAR\storm.dll"
                HashFiles(2) = App.Path & "\STAR\battle.snp"
        End Select

End Function




*cough*


Public Sub GetHashFiles(HashFiles() As String)
   
   Select Case UCASE(BOT_PRODUCT)
   
        Case "RATS", "SEXP"
         
            HashFiles(0) = App.Path & "\STAR\starcraft.exe"
            HashFiles(1) = App.Path & "\STAR\storm.dll"
            HashFiles(2) = App.Path & "\STAR\battle.snp"

        Case Else
            Debug.Print "hmmm..?"

    End Select

Exit Sub



another question why is it in a function your not returning nothing as GetHashFiles




HF = GetHashFiles
                          Debugtxt vbYellow, "Checking hashfiles..."
                    If (checkRevision(ValueString, HF(0), HF(1), HF(2), NewMPQNumber, Checksum) = False) Then
                        frmMain.SckBnet.Close
                        AppendText LtRed, "Checkrevision failed!"
                        Exit Function
                    End If


don't make things harder then it should be.. -_-



                          Debugtxt vbYellow, "Checking hashfiles..."
                    If (checkRevision(ValueString, HashFiles(0), HashFiles(1), HashFiles(2), NewMPQNumber, Checksum) = False) Then
                        frmMain.SckBnet.Close
                        AppendText LtRed, "Checkrevision failed!"
                        Exit Function
                    End If