Register for your free account! | Forgot your password?

Go Back   elitepvpers > Popular Games > Metin2 > Metin2 Private Server > Metin2 PServer Guides & Strategies
You last visited: Today at 18:35

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

Advertisement



[Tutorial] How to do an autopatch with Visual Basic 2008

Discussion on [Tutorial] How to do an autopatch with Visual Basic 2008 within the Metin2 PServer Guides & Strategies forum part of the Metin2 Private Server category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Feb 2010
Posts: 31
Received Thanks: 30
[Tutorial] How to do an autopatch with Visual Basic 2008

Add to your form one Button.

Delete the code from the button and put this:

Quote:
Imports System.Net
Public Class Form1

Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim Web As New WebClient
Dim Update As String = Web.DownloadString(“)
If Update.Contains(“New Version”) Then
MsgBox(“New Version Available”)
Button1.Visible = True
Else
MsgBox(“No Actualizations available”)
End If
End Sub

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
My.Computer.Network.DownloadFile(“, “C:\Auto Patcher\file.zip”)
End Sub
End Class
Explanation of the code:

Quote:
Dim Web As New WebClient
Dim Update As String = Web.DownloadString(“)
If Update.Contains(“New Version Available”) Then
MsgBox(“New Version Avalable!”)
Button1.Visible = True
Else
MsgBox(“No actualizations available!”)
End If
This Verify if the contains New Version Available.If it haves It gona show New Version Avalable!.

If the FIle doesn't contains New Version Available it gona show No actualizations available!

Quote:
My.Computer.Network.DownloadFile(“, “C:\Auto Patcher\Ficheiro.zip”)
This gona Download (if it exists) to the folder C:\Auto Patcher.

If you want to do a better auto patcher Then Use Skins of the oficials Clients.

Cumpz. pablito7
pablito7 is offline  
Thanks
1 User
Old 12/31/2010, 15:34   #2
 
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
nice tut but there are already 2 or more tutorials
but you still can add some screens ^^
'Haseo is offline  
Old 12/31/2010, 15:36   #3
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
stimmt aber bei den anderen tuts musst du jede datei, die gepatcht werden soll einzelnd in dem code eintragen glaub ich.
der hiet ließt es aus einer txt datei raus
.Resistance is offline  
Old 12/31/2010, 15:43   #4
 
elite*gold: 0
Join Date: Feb 2010
Posts: 31
Received Thanks: 30
I gona do a tutorial!!!
pablito7 is offline  
Old 12/31/2010, 16:01   #5
 
elite*gold: LOCKED
Join Date: Oct 2008
Posts: 2,817
Received Thanks: 2,044
Quote:
Originally Posted by poll7979 View Post
stimmt aber bei den anderen tuts musst du jede datei, die gepatcht werden soll einzelnd in dem code eintragen glaub ich.
der hiet ließt es aus einer txt datei raus
ne derr lädt nur die zip runter also komplette zip ^^
'Haseo is offline  
Old 12/31/2010, 16:03   #6
 
.Resistance's Avatar
 
elite*gold: 17
Join Date: Jul 2009
Posts: 1,562
Received Thanks: 478
achso na dann^^
.Resistance is offline  
Old 12/31/2010, 17:34   #7
 
|R.o.x|'s Avatar
 
elite*gold: 164
Join Date: Feb 2010
Posts: 1,130
Received Thanks: 1,025
That is very simple, but I would add a Progressbar, which compares the listed files in the .txt with the files in the client...
|R.o.x| is offline  
Old 01/21/2011, 05:13   #8
 
elite*gold: 0
Join Date: Jun 2008
Posts: 3
Received Thanks: 0
Thank Dudez
gantu21 is offline  
Reply


Similar Threads Similar Threads
Visual Basic 2008 !!! Help
10/01/2012 - .NET Languages - 9 Replies
Hey habe früher mal paa Bots gemacht geht allerdings nicht mehr ... über Visual Basic 2008 würde ich gerne einen Bot machen über sendkeys.send ("{Beispiel}") nur für P server also kein Hackschield ^^ kann mir wer sagen wie ich jetzt das er das auch macht also z.b. schlägt Pottet usw. wie ich das mache geht irgend wie nicht mehr ^^
Visual Basic 2008 !!! Help
09/22/2010 - .NET Languages - 1 Replies
Hey will wieder Bot´s für Mt2 P-server machen also kein hackschield trz geht es über sendkeys.send ("{ }") nich mehr kann mir jemand sagen wiso Sagt mir wer wie ich das Hinkriege das er in Metin2 dan schlägt ^^ Bzw. in Dem Privat-server
Visual basic 2008 ?
06/12/2010 - Technical Support - 7 Replies
Hey leute habe kleines progrmm geschrieben mit vb2008 so nun mein problem . wie kann ich die gespeicherte datei (.net) glaub ich in eine exe umwandeln so das es andere auch benutzen können ?
Visual Basic 2008
06/03/2010 - WarRock - 8 Replies
Hi Da Hier Viele von Euch Mit Vb Was Coden Habe Ich Eine Frage. Ihr Kennt Ja Bei Webbrowsern Rechts Am Rand Die Scroll Leiste. Ich Würde Gerne In VB Ein Ein Panel Haben Wo Ich Drin RunterScrollen Kann. Könnt Ihr Mir Helfen?:confused:
how to use visual basic 2008?
09/28/2009 - CO2 Programming - 2 Replies
how to use visual basic 2008? help me please or give me some codes.



All times are GMT +1. The time now is 18:35.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.