Online File Patcher

Results 1 to 4 of 4
  1. #1
    Member Destinykity is offline
    MemberRank
    Jul 2005 Join Date
    85Posts

    Online File Patcher

    Alright, I think this may have been asked before, and I do know it might be pretty hard to create, but many MMORPG's have a client patcher, I'm not exactly talking about patching a .grf/.dol or whaveter, but I am talking about a patcher which checks the folder the patcher.exe was placed in contains the files that are listed in an online directory or not. Like, a .php file which contains filenames and filesizes, the patcher.exe connects to that php file and checks the files, if the files exist it checks for the filesize whether they match or not, if they don't match or the file doesn't exist, it will download the file(s).

    I doubt this would be something easy to make, with an user interface or something, a nice picture displaying as download status and or what it's downloading.

    Too bad Macromedia Flash does not allow writing stuff to hard disks except SharedObjects, but those are just variables stored in a .sol file..

    I don't code in C++ yet as I am still working in Actionscript developing games, I am planning to step over to C++ later but for now I'm sticking to Actionscript.

    Anyone knowns some kind of open source project about something I tried to explain? (I hope I wasn't blurry.. >_<)

    Thanks in advance,
    ~Destinykity
    Last edited by Destinykity; 15-01-07 at 04:47 PM.


  2. #2
    Grand Master FragFrog is offline
    Grand MasterRank
    Aug 2004 Join Date
    The NetherlandsLocation
    5,629Posts
    Think this is quite easy to make, depending on your language of choise. However, it contains some elements that are a little more difficult then writing an hello world program, so better learn a language first if you want to make this.

    As to it already existing: not for as far as I know.

  3. #3
    Grand Master username1 is offline
    Grand MasterRank
    Jul 2004 Join Date
    5,867Posts
    Quote Originally Posted by Destinykity View Post
    I doubt this would be something easy to make, with an user interface or something, a nice picture displaying as download status and or what it's downloading.
    Very easy, actually.

    An outline of the algorithm follows:

    Code:
    1. Get filelist from server (you can use a fixed HTTP request here, and parse the response as it is recieved).
    
    2. When one line is recieved, determine whether the file exists using FindFirstFile(), and check the size with GetFileSize(). If it matches, goto 4.
    
    3. Initiate the download of this file (once again, hardcoded HTTP request with a variable in the GET line will work fine) and store the result to disk.
    
    4. If there are more lines in the filelist being recieved, goto 1.
    
    5. End.

  4. #4
    Sorcerer Supreme mts is offline
    Member +Rank
    Dec 2006 Join Date
    354Posts
    there is a gunz launcher with updater..



Advertisement