Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > .NET Languages
You last visited: Today at 16:43

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[VB 2010] Patcher Hilfe

Discussion on [VB 2010] Patcher Hilfe within the .NET Languages forum part of the Coders Den category.

Reply
 
Old   #1

 
.Nexitis's Avatar
 
elite*gold: 20
Join Date: Mar 2009
Posts: 668
Received Thanks: 220
[VB 2010] Patcher Hilfe

Hi ehm das ist bis jetzt der Source code

PHP Code:
Public Class Form1

    Dim AppPath 
As Object
    Dim Patchpfad 
As String
    Dim Patchname 
As String
    Dim Patchname_old 
As String

    Dim WithEvents Download_client 
As New System.Net.WebClient
    Dim Download_addr 
As String
    Dim Download_file_name 
As String
    Dim Fin 
As Boolean


    
Public Function Download_start(ByVal Download_addr As StringByVal Download_file_name As String)

        
Download_client.DownloadFileAsync(New System.Uri(Download_addr), Download_file_name)

    
End Function

    Public Function 
Progress(ByVal sender As System.ObjectByVal e As System.Net.DownloadProgressChangedEventArgsHandles Download_client.DownloadProgressChanged
        ProgressBar1
.Value e.ProgressPercentage
        Label2
.Text e.BytesReceived
        Label3
.Text e.TotalBytesToReceive
        
If e.TotalBytesToReceive e.BytesReceived Then
            Fin 
True
        
Else
            
Fin False
        End 
If


    
End Function


    Private 
Sub PictureBox1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles PictureBox1.Click
        
If PictureBox1.Visible True Then
            PictureBox1
.Visible False
        End 
If

        If 
Dir("sframe.exe"AppPath) <> "" Then
            Shell
("SFrame.exe /auth_ip:46.4.64.76 /locale:ASCII /country:US /cash /commercial_shop /guild"vbNormalFocus)
            
Timer2.Enabled True
            Me
.Close()
        Else
            
MessageBox.Show("The SFrame.exe does not exist. Please put the Launcher into the Last-Warriors game folder and restart the Launcher.")
            
Me.Close()
        
End If
    
End Sub

    
Private Sub Form1_Close(ByVal sender As System.ObjectByVal e As System.EventArgsHandles MyBase.FormClosed
        IO
.File.WriteAllText(Application.StartupPath "/del.bat""del" " " Patchname_old vbNewLine "del Patch.txt" vbNewLine "del Patchname.txt" vbNewLine "del Patchnameold.txt" vbNewLine "del del.bat")
        
Shell(Application.StartupPath "/del.bat"'ich glaub das sollte es gewesen sein ... wart das muss noch ein wenig verbessert werden xD =)
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Dim Patch As New System.Net.WebClient
        Patch.DownloadFile(New Uri("http://lastwarriors.de/Patcher/Patch.txt"), "Patch.txt")
        Patchpfad = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "/Patch.txt")
        Patch.DownloadFile(New Uri("http://lastwarriors.de/Patcher/Patchname.txt"), "Patchname.txt")
        Patchname = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "/Patchname.txt")
        Patch.DownloadFile(New Uri("http://lastwarriors.de/Patcher/Patchnameold.txt"), "Patchnameold.txt")
        Patchname_old = My.Computer.FileSystem.ReadAllText(Application.StartupPath & "/Patchnameold.txt")



        Timer1.Enabled = True
        Dim client As New System.Net.Sockets.TcpClient
        Try
            client.Connect("46.4.64.76", 1433)
            PictureBox3.Visible = True
            PictureBox8.Visible = False
        Catch ex As Exception
            PictureBox8.Visible = True
            PictureBox3.Visible = False
        End Try

        Dim client2 As New System.Net.Sockets.TcpClient
        Try
            client2.Connect("46.4.64.76", 4514)
            PictureBox7.Visible = False
            PictureBox6.Visible = True
        Catch es As Exception
            PictureBox7.Visible = True
            PictureBox6.Visible = False
        End Try
        Me.MaximizeBox = False




    End Sub
    Private Sub LinkLabel1_LinkClicked(ByVal sender As System.Object, ByVal e As System.Windows.Forms.LinkLabelLinkClickedEventArgs)
        Process.Start("http://lastwarriors.de/forum/index.php?page=Thread&threadID=57")
    End Sub

    Private Sub PictureBox2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox2.Click
        Process.Start("http://lastwarriors.de/register.php/")
    End Sub
    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim client As New System.Net.Sockets.TcpClient
        Try
            client.Connect("46.4.64.76", 1433)
            PictureBox3.Visible = True
            PictureBox8.Visible = False
        Catch ex As Exception
            PictureBox8.Visible = True
            PictureBox3.Visible = False
        End Try

        Dim client2 As New System.Net.Sockets.TcpClient
        Try
            client2.Connect("46.4.64.76", 4514)
            PictureBox7.Visible = False
            PictureBox6.Visible = True
        Catch es As Exception
            PictureBox7.Visible = True
            PictureBox6.Visible = False
        End Try

    End Sub

    Private Sub Timer2_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer2.Tick
        SendKeys.Send("{ENTER}")
    End Sub

    Private Sub PictureBox5_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles PictureBox5.Click
        Process.Start("http://lastwarriors.de/")
    End Sub


    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Button1.Enabled = False
        Button1.Text = ("Please Wait...")

        Download_start(Patchpfad, Patchname)
        While Fin = False
            '
Timer2.Enabled True '
            MessageBox.Show("....")
        End While

        If Fin = True Then
            Me.Show()
            Download_start(Patchpfad, "1.exe")
            Fin = False
        End If

        While Fin = False
            '
Timer2.Enabled True '
            MessageBox.Show("....")
        End While

        If Fin = True Then
            Me.Show()
            Download_start(Patchpfad, "2.exe")
            Fin = False
        End If


        Label1.Text = ("Patcher started...")
    End Sub


End Class 
Ich komm nicht weiter wenn ich MSgBox wegmache crashed er
Er läd die Datei zwar runter nur popt dann immer ein fenster hoch das akzeptiert werden muss kann man das irgendwie ändern?

Und ehm mein Launcher heißt

Last-Warriors Launcher.exe und ich wollte das er den Launcher löscht und einen neuen mit dem gleichen namen neu downloaded.

Gibt natürlich ein THX
.Nexitis is offline  
Old 08/19/2011, 11:38   #2
 
Kraizy​'s Avatar
 
elite*gold: 0
The Black Market: 471/0/0
Join Date: Apr 2010
Posts: 9,696
Received Thanks: 1,811
Was für ein Fenster poppt auf? Vielleicht mal ein Bild davon machen? Und wieso musst du eig. immer dein gesamtes Projekt hochladen? Kannst du nicht einfach einen kleinen Ausschnit posten, wo der Fehler ist?
Löschen: IO.File.Delete("Dateiname")
Download:
PHP Code:
Dim wc as New Net.WebClient
wc
.DownloadFileAsync(New Uri("URL"), "Dateiname"
Kraizy​ is offline  
Old 08/19/2011, 20:15   #3

 
.Nexitis's Avatar
 
elite*gold: 20
Join Date: Mar 2009
Posts: 668
Received Thanks: 220
Dieser Abschnitt :

PHP Code:
Private Sub Button1_Click(ByVal sender As System.ObjectByVal e As System.EventArgsHandles Button1.Click
        Button1
.Enabled False
        Button1
.Text = ("Please Wait...")

        
Download_start(PatchpfadPatchname)
        While 
Fin False
            
'Timer2.Enabled = True '
            
MessageBox.Show("....")
        
End While

        If 
Fin True Then
            Me
.Show()
            
Download_start(Patchpfad"1.exe")
            
Fin False
        End 
If

        While 
Fin False
            
'Timer2.Enabled = True '
            
MessageBox.Show("....")
        
End While

        If 
Fin True Then
            Me
.Show()
            
Download_start(Patchpfad"2.exe")
            
Fin False
        End 
If


        
Label1.Text = ("Patcher started...")
    
End Sub


End 
Class 
Da popt eine MsgBox up die bestätigt werden muss wenn ich die MsgBox wegnehme funktioniert es nicht
.Nexitis is offline  
Reply


Similar Threads Similar Threads
Fantasymt2 2010 patcher hilfe
01/24/2011 - Metin2 Private Server - 3 Replies
Ähhm,ich habe mir Fantasymt2 geholt und der Patcher dauert immer 30-60 minuten... Was soll der kack.??!! Bitte um hilfe!
Geht das mit einem 2010 Patcher?
09/09/2010 - Metin2 Private Server - 13 Replies
Hi Com. Hab mal ne Frage einige von euch kenne bestimmt den Server: "Seven-World" und die machen einen neuen Patch vom 2010er Ordner von Metin2.DE damit man LVL-Anzeige MIT Rang sieht, geht das?
02.08.2010 Last Choas[GER] multiclient Patcher!
08/02/2010 - Last Chaos - 3 Replies
Hallo pvpers Da ja mein letzter Upload vom multiclient richtig mies war habe ich mal ein neuen gemacht der patcht die "nksp.exe" hier mal Virustotal ohne rar und mit rar Ohne rar: Virustotal_ergebnis mit rar:
[Hilfe] Suche Guten Patcher und seine hilfe
05/28/2010 - Metin2 PServer Guides & Strategies - 5 Replies
Hallo Liebe community suche einen patcher der von http://ytsf2.netai.net/ alle datein runterladet die drauf sind aber ohne den ganzen client raufzuladen auf den webspace z.b ich mein das so webspace is leer tuhe item.txt raufladen soll er die datei ruter laden kann mir bitte wer helfen were supper :D



All times are GMT +1. The time now is 16:44.


Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2026 elitepvpers All Rights Reserved.