Register for your free account! | Forgot your password?

You last visited: Today at 21:39

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

Advertisement



[Open Source] Patcher v3

Discussion on [Open Source] Patcher v3 within the Flyff PServer Guides & Releases forum part of the Flyff Private Server category.

Reply
 
Old   #1



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
[Open Source] Patcher v3

.
Sedrika is offline  
Thanks
22 Users
Old 01/26/2013, 18:29   #2
 
elite*gold: 0
Join Date: Jan 2013
Posts: 6
Received Thanks: 5
Mir ist aufgefallen , dass dein MD5 Hash nicht richtig funktioniert.

Bei kleinen änderung an der Neuz , wo nur paar Bytes anders sind . Patcht er nicht die Neuz.
Razzer'# is offline  
Old 01/26/2013, 18:32   #3



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Es wird auch nicht auf den MD5 Hash geprüft. Bei vielen Dateien wäre das langsam.
Es gibt ein Check auf Dateigröße in Byte und den letzen zugriff auf die Datei.
Noch ist die Patchlist nicht verschlüpsselt, daher kann man das in der list.txt selbst einsehen.

Warte noch etwas ab, ich pack dann MD5 als Zusatz (optional) check ein.
Sedrika is offline  
Thanks
1 User
Old 01/26/2013, 18:49   #4
 
elite*gold: 0
Join Date: Aug 2011
Posts: 61
Received Thanks: 3
HOW TO COMPILE THIS ONE?
tangia1426 is offline  
Old 01/26/2013, 19:02   #5



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
With Visual Basic 2010.
Sedrika is offline  
Old 01/26/2013, 21:49   #6
 
xsrf's Avatar
 
elite*gold: 0
Join Date: May 2012
Posts: 871
Received Thanks: 642
Sieht gut aus, wie immer
xsrf is offline  
Old 01/26/2013, 21:51   #7



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Habe ebend den MD5 Check eingebaut und dabei ist mir ein Fehler beim Check der Dateien aufgefallen. Diesen habe ich in v3.0.1 behoben.

Download:
Sedrika is offline  
Thanks
1 User
Old 01/28/2013, 11:46   #8
 
elite*gold: 0
Join Date: Dec 2008
Posts: 204
Received Thanks: 220
Sedrika?

There is a problem with this code.


If the person Is american, or uses the date format MM/DD/YYYY on their computer as opposed to DD/MM/YYYY.

It willl throw an exception and not change the dates of the files nor will it finish the patching.

I fixed it in a very hacky way

Code:
            Dim dateString, format As String
            Dim result As Date
            Dim provider As Globalization.CultureInfo = Globalization.CultureInfo.InvariantCulture

            ' Parse date and time with custom specifier.
            ' 20.01.2013 04:46:54

            dateString = Args(2)

            Dim strDate2 As String

            Try

                If Month("01-02-03") = 1 Then

                    strDate2 = DateTime.ParseExact(Args(2),
                                            "dd.MM.yyyy hh:mm:ss",
                                             provider).ToString("MM.dd.yyyy hh:mm:ss")

                    result = Date.ParseExact(strDate2, "MM.dd.yyyy hh:mm:ss", provider)
                Else
                    result = Date.ParseExact(Args(2), "dd.MM.yyyy hh:mm:ss", provider)
                End If

            Catch e As FormatException
                CFunc.Status("Error: Converting Date Failed!") ' Status setzem
            End Try

            Try
                File.SetLastWriteTime(Args(0).Remove(Args(0).Length - 3), result)
            Catch e As FormatException
                CFunc.Status("Error: SetLastWriteTime Failed!") ' Status setzem
            End Try
I hope this helps
jcdace is offline  
Old 01/28/2013, 12:04   #9



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Why did not you just changed the PHP part ?
Sedrika is offline  
Old 01/28/2013, 14:33   #10
 
elite*gold: 0
Join Date: Dec 2008
Posts: 204
Received Thanks: 220
Quote:
Originally Posted by Sedrika View Post
Why did not you just changed the PHP part ?
Because the time format changes on every persons computer...

I have on dude with 01/28/2013, I am 28/01/2013, one guy has 1/28/13

and if its different format it just doesn't work.


EDIT: Less of a "Hacky" Fix


Change the FileCheck() Function in CFunc.vb to:
Code:
    ' Datei überprüfen
    Public Shared Sub FileCheck(ByVal Param() As String)
        If File.Exists(Param(0)) Then
            If Not New FileInfo(Param(0)).LastWriteTime = DateTime.ParseExact(Param(2), "dd.MM.yyyy HH:mm:ss", CultureInfo.InvariantCulture) Or Not New FileInfo(Param(0)).Length = Param(1) Or (Config.UseMd5Check AndAlso Not Param(3) = CFunc.MD5FileHash(Param(0))) Then
                CFunc.DeleteFile(Param(0))
                CFunc.PatchList = CFunc.AddLineToStringArray(CFunc.PatchList, Param(0) & ".gz" & vbTab & Param(1) & vbTab & Param(2))
                CFunc.MaxUpdate += 1
            End If
        Else
            CFunc.PatchList = CFunc.AddLineToStringArray(CFunc.PatchList, Param(0) & ".gz" & vbTab & Param(1) & vbTab & Param(2))
            CFunc.MaxUpdate += 1
        End If
    End Sub
Will force the format to follow dd.MM.yyyy HH:mm:ss
jcdace is offline  
Old 01/28/2013, 15:41   #11



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
I'm gonna fix it in an another faster way.
My way only needs 2 lines.

Edit:

Ich habe jetzt schonmal zwei kleinere Änderungen durchgenommen.
- Es gab bei Usern mit dem MM.dd.yyyy Format einen Error, da diese nicht unser Datum format haben, dies wurde gefixxt.
- Man kann jetzt in den Konfigs die Farbe des Start Button auch bestimmen.

Sedrika is offline  
Old 01/28/2013, 18:51   #12

 
Crowley™'s Avatar
 
elite*gold: 5
Join Date: Oct 2012
Posts: 1,335
Received Thanks: 505
Sieht ganz nice aus. Finde den normalen Patcher aber iwi immer noch besser.
mfg. Crowley
Crowley™ is offline  
Old 01/28/2013, 20:12   #13



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Jedermans geschmacksache
Sedrika is offline  
Old 01/28/2013, 20:15   #14
 
elite*gold: 0
Join Date: Dec 2008
Posts: 204
Received Thanks: 220
Quote:
Originally Posted by Sedrika View Post
I'm gonna fix it in an another faster way.
My way only needs 2 lines.

Edit:

Ich habe jetzt schonmal zwei kleinere Änderungen durchgenommen.
- Es gab bei Usern mit dem MM.dd.yyyy Format einen Error, da diese nicht unser Datum format haben, dies wurde gefixxt.
- Man kann jetzt in den Konfigs die Farbe des Start Button auch bestimmen.


Uh ok? I wasn't being competitive, just trying to help =\
jcdace is offline  
Old 01/28/2013, 20:17   #15



 
Sedrika's Avatar
 
elite*gold: 18
The Black Market: 103/0/0
Join Date: Sep 2009
Posts: 20,174
Received Thanks: 14,475
Quote:
Originally Posted by jcdace View Post
Uh ok? I wasn't being competitive, just trying to help =\
I've never claimed. Thank you for the help, otherwise I wouldn't have noticed.
Sedrika is offline  
Reply


Similar Threads Similar Threads
[Open Source] Patcher v1.8.13
07/23/2016 - Flyff PServer Guides & Releases - 157 Replies
.
[Open Source] Patcher v1.8.14
07/21/2016 - Metin2 PServer Guides & Strategies - 102 Replies
.
[Open Source] Patcher v2.2
03/14/2014 - Flyff PServer Guides & Releases - 36 Replies
.
Open Source Patcher by Sedrika
06/02/2012 - Metin2 Private Server - 0 Replies
Moin Moin, ich habe ein kleines Problem mit diesem Patcher http://www.elitepvpers.com/forum/metin2-pserver-gu ides-strategies/1890023-open-source-patcher-v1-8-1 4-a.html. Habe die GlobalConfig.vb angepasst und alles dann kompiliert. Dann eine list.txt erstellt (Pfad in dem mein Client drin ist eingegeben, Create List geklickt und dann Compress). So wurden alle meine Daten in .gz komprimiert, welche ich dann auch auf einen Webspace geladen (in meinem Fall habe ich funpic benutzt. Hab ...
Sedrika open Source Patcher Problem
03/22/2012 - Flyff Private Server - 17 Replies
Hey Leute, ich habe folgendes Prob. Wenn ich den Patcher von sedrika starte kommt immer eine Meldung There is a new update und danach ein error "Could not find NewPatcher.exe on the server" Nun meine frage wo soll ich die Datei jetzt hinpacken und welche datei ist das überhaupt wo finde ich die? schonmal danke;) HILFE!!!



All times are GMT +1. The time now is 21:43.


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.