Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Auto Updater


Marsh
 Share

Recommended Posts

  • Replies 172
  • Created
  • Last Reply

Top Posters In This Topic

I believe its just end user issues.
I did many many tests along with 7 players all using it…
The files updated perfecetly... until i wanted to try more than 254 or 25...

I actually tried having someone just download the updator(like 5mb) and have it download all the files for the game LOL.
Link to comment
Share on other sites

@Vålöñシ:

> i think so, but whenever I compile it into an installer, it doesnt work anymore. but if its not on an installer it works! D:

of course it wont work that way, it doesnt have the files to read anymore….
Link to comment
Share on other sites

  • 2 weeks later...
Quick Question about the source of the updater. 

I am trying to edit it, i have dev-C++ as the compiler, and i have added this to the project…  My problem is i done have urlmon.lib or urlmon.h, and i get the urldownloadtofile undefined error ;(   

Does anyone no where i can get these files or how to fix this error?

I have googled this, but could not find urlmon.lib

THanks
Link to comment
Share on other sites

  • 3 weeks later...
@[VB:

> Warconn link=topic=43808.msg578971#msg578971 date=1259284595]
> Quick Question about the source of the updater. 
>
> I am trying to edit it, i have dev-C++ as the compiler, and i have added this to the project…  My problem is i done have urlmon.lib or urlmon.h, and i get the urldownloadtofile undefined error ;(   
>
> Does anyone no where i can get these files or how to fix this error?
>
> I have googled this, but could not find urlmon.lib
>
> THanks

Dev-Cpp uses MinGW which uses A-files instead of LIB-files for libraries. If you don't have the urlmon header (urlmon.h) and library ([lib]urlmon.a) shipped with MinGW then you should either use LoadLibrary, FreeLibrary and GetProcAddress or another compiler. If you have the header (urlmon.h) shipped, then you should try linking against [lib]urlmon.a using -lurlmon in your linker settings.

If you're missing the library and the header you can use run-time linking, a common technique I use in MinGW as MinGW misses a lot of shit I usually need.

So using http://msdn.microsoft.com/en-us/library/ms775123%28VS.85%29.aspx, the run-time linking would look like:
```
#define WIN32_MEAN_AND_LEAN
#include

typedef HRESULT (* URLDownloadToFileFunction)(LPUNKNOWN, LPCTSTR, LPCTSTR, DWORD, LPBINDSTATUSCALLBACK);

int main(int argc, char *argv[])
{
HINSTANCE hDLL = ::LoadLibrary("urlmon.dll");

if (hDLL == NULL)
{
fprintf(stderr, "LoadLibrary failed with error %08lx.\n", ::GetLastError());

return -1;
}

URLDownloadToFileFunction lpfnURLDownloadToFile;
lpfnURLDownloadToFile = (URLDownloadToFileFunction)::GetProcAddress(hDLL, "URLDownloadToFile");

if (lpfnURLDownloadToFile == NULL)
{
::FreeLibrary(hDLL);

fprintf(stderr, "GetProcAddress failed with error %08lx.\n", ::GetLastError());

return -1;
}

if (FAILED((*lpfnURLDownloadToFile)(/* Parameters */)))
{
::FreeLibrary(hDLL);

fprintf(stderr, "URLDownloadToFile failed.\n");

return -1;
}

::FreeLibrary(hDLL);

return 0;
}

```
And as MinGW32 doesn't work properly with UNICODE, you might as well use a more appropriate ANSI-version, which would look like this:
```
#define WIN32_MEAN_AND_LEAN
#include

typedef HRESULT (* URLDownloadToFileFunction)(LPUNKNOWN, LPCTSTR, LPCTSTR, DWORD, LPBINDSTATUSCALLBACK);

int main(int argc, char *argv[])
{
HINSTANCE hDLL = ::LoadLibrary("urlmon.dll");

if (hDLL == NULL)
{
fprintf(stderr, "LoadLibrary failed with error %08lx.\n", ::GetLastError());

return -1;
}

URLDownloadToFileFunction lpfnURLDownloadToFile;
lpfnURLDownloadToFile = (URLDownloadToFileFunction)::GetProcAddress(hDLL, "URLDownloadToFileA");

if (lpfnURLDownloadToFile == NULL)
{
::FreeLibrary(hDLL);

fprintf(stderr, "GetProcAddress failed with error %08lx.\n", ::GetLastError());

return -1;
}

if (FAILED((*lpfnURLDownloadToFile)(/* Parameters */)))
{
::FreeLibrary(hDLL);

fprintf(stderr, "URLDownloadToFile failed.\n");

return -1;
}

::FreeLibrary(hDLL);

return 0;
}

```

Regards,
  Godlord.
Link to comment
Share on other sites

  • 2 weeks later...
  • 2 months later...
I Use an Installer, Got the files on my web server, Edited the data file, even made it so everytime the Client.exe is ran it first checks for updates, The only issue I have is that Tile0.bmp is Twice in the update list and It updates all files correctly
but if I run the updater again the 2nd Tile0.bmp(that shouldn't even be there in the first place) is always out of date and
it always downloads it again.
Link to comment
Share on other sites

  • 2 months later...
hmm.. I have it worked once, not anymore now.

Edit: Fixed :)

>! but I have a question.
>! it updates the files, but, you can't put a new download link or change the new version, because you need to send them with the auto updater. So how can you update new files to a site without giving them to the auto updater?
>! also, after 1 time using the updater it says in the versions.txt this:

>! > "_      ¦$_ q$_          Ã5_      ÀA_ ‡A_ ¸D@        Ø@_             Ã’U_          ^_          ¹`_          “Ž_ E@       
> Ž_             8¤_          ¦©_ HE@        J§_  àC         ¼²_          xº_      _Ã_ 8Ã_      t)` a)`          Ä+`          W-`          ‹1`          úF`          ²H`          ÄN`          .R`          ìT`          gW`          iX`          ^Y`          Vb`          Óe`          Ðf`          zž`          àÄ`          ìÅ` $         Éâ`    ÀF@ *  CÆ` JÆ` XÆ` WÉ` pÊ` Ë` aÃŒ` vÍ` EÃŽ` Ï` æÏ` ¸Ð` ŠÑ` \Ã’` .Ó`  Ô` ÒÔ` ÕÕ` ØÖ` Û×` Ø` ×Ø` ©Ù` ©Ù` %Ú` ÜÚ` “Û` ˜Û` OÃœ` Ý` Ý` +Ý` éÝ` §Þ` ÑÞ` ß` Là` và` 3á` ñá` ñá` Áâ`             Wó`          ^ô`          b a          ÃŒa ¸G@        la             ta          Å¡a          &1a          ¸;a          µxa ^xa xxa @ya @ya ”ya ¡ya £ya £ya ¨ya ¨ya Ëya    &     Sa a    ¸I@   {za za ›za éza {a {a {a Ó{a é{a ¤|a ¤|a Â|a =}a N}a _}a °}a Ê}a ’~a £~a ‰a Ÿa …€a …€a …€a Ù€a æ€a è€a è€a í€a í€a a        &     p„a U„a    XJ@   NÆ’a UÆ’a cÆ’a σa B„a N„a N„a          GŸa    NŸa   @ a    G a   ¤a >¤a ¤a   ͦa §a Ô¦a  ðB      ä¨a    ì¨a          Þ©a          ¿ªa            «a          ¬a          b­a          C®a   l°a    s°a   ³a    ³a   ë³a    ò³a   â´a    é´a   ¯µa    ¶µa   |¶a    Ħa   e·a    l·a   ¸a    ¸a   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@ ÿ%@@ ÿ%4@ ÿ%,@ ÿ%Å’@ ÿ%H@ ÿ%°@ ÿ%Ëœ@ ÿ%<@ ÿ%X@ ÿ%x@ ÿ%t@ ÿ%”@ ÿ%ÃŒ@ ÿ%¨@ ÿ%ô@ ÿ% @ ÿ%¬@ ÿ%ø@ ÿ%È@ ÿ%ð@ ÿ%ð@ ÿ%(@ ÿ%Ð@ ÿ%Ä@ ÿ%<@ ÿ%P@ ÿ%P@ ÿ%¸@ ÿ%Ãœ@ ÿ% @ ÿ%8@ ÿ%”@ ÿ%Ð@ ÿ% @ ÿ%´@ ÿ%€@ ÿ%Å’@ ÿ%t@ ÿ%@ ÿ%Ô@ ÿ%Å“@ ÿ%$@ ÿ%`@ ÿ%`@ ÿ%À@ ÿ%ÃŒ@ ÿ%h@ ÿ% @ ÿ%p@ ÿ%à@ ÿ%ì@ ÿ%@ ÿ%L@ ÿ%x@ ÿ%°@ ÿ%è@ ÿ%l@ ÿ%ô@ ÿ%@ ÿ%@ ÿ%@ ÿ%@ ÿ%X@ ÿ%0@ ÿ%@@ ÿ%p@ ÿ%¼@ ÿ%T@ ÿ%4@ ÿ%ˆ@ ÿ%$@ ÿ%h@ ÿ%D@ ÿ%@ ÿ% @ ÿ%Å“@ ÿ%¬@ ÿ%\@ ÿ%„@ ÿ%`@ ÿ%T@ ÿ%,@ ÿ%<@ ÿ%H@ ÿ%ä@ ÿ%Ëœ@ ÿ%8@ ÿ%@ ÿ%@ ÿ%X@ ÿ%@ ÿ%p@ ÿ%@ ÿ%\@ ÿ%¨@ ÿ%ä@ ÿ%¤@ ÿ%Ø@ ÿ%(@  hDW@ èîÿÿÿ      0  8      üôòCô-5K~WmPI`              Eclipse      tÙB    ÿÿÿÿÿÿÿÿ    (ÝB ܃b    p,            S@  = tÙB    ÿÿÿÿÿÿÿÿ    8Ã¥B ¤b    øªÅ            LS@  D tÙB    ÿÿÿÿÿÿÿÿ    ˆæB 0”b    #            „S@   tÙB    ÿÿÿÿÿÿÿÿ    ¸ÝB „b    è3            ¼S@   tÙB    ÿÿÿÿÿÿÿÿ    (ÚB \€b      Å¡1            ôS@  @ tÙB    ÿÿÿÿÿÿÿÿ    ÈåB l€b    @â„¢1            ,T@  ? tÙB    ÿÿÿÿÿÿÿÿ    ˜åB 0b    øÅ,            dT@   tÙB    ÿÿÿÿÿÿÿÿ    èÚB ìƒb    Ø<"            Å“T@  8 tÙB    ÿÿÿÿÿÿÿÿ    HäB ؏b    À:(            ÔT@  > tÙB    ÿÿÿÿÿÿÿÿ    hÃ¥B p”b    hùÉ            U@  tÙB    ÿÿÿÿÿÿÿÿ    ØÛB 0„b    ¨•Å            DU@  A tÙB    ÿÿÿÿÿÿÿÿ    øåB €b   |U@            |U@ D a   tÙB    ÿÿÿÿÿÿÿÿ    ØÞB üƒb   ¸U@            ¸U@ h      tÙB    ÿÿÿÿÿÿÿÿ    øÙB L€b   øU@            øU@ H                 2 tÙB    ÿÿÿÿÿÿÿÿ    (ãB ¨“b   DV@            DV@                               B tÙB    ÿÿÿÿÿÿÿÿ    (æB b   Å“V@            Å“V@                          ) tÙB    ÿÿÿÿÿÿÿÿ    xáB  b   W@            W@                               !  "  VB5!ð*            ~           
>       v_ Å’[@ ÿÿø  ÿÿÿ    6  é  HŽA à$A  R@ x    –  —                  client Eclipse Stable Edition  Eclipse   G tÙB    ÿÿÿÿÿÿÿÿ    çB ,‘b c  X@            X@   dÄ<          À0               ·h l    xÊ>    PÄ<        @  4                   °?0 ÀÝ(  @  8                   @0 Øá(  @  <                   °?0 |ß(  @  @      ÿÿÿÿ            @0 @ã(ÿÿÿÿ@  D                   @0  Ä<  @  H                   °?0 Ã¥(  @  L                   °?0 °Ä<                                              : tÙB    ä"T ÿÿÿÿ    ¨äB ”b    x1              Z@   lÅ¡C      Z@   (Z@    $Z@   (Z@  ·h l xZ@ ,½b    HÈC|Å¡C Å’Å¡C @  4  húB ÿÿÿÿ        |Z@ @0 xúB ÿÿÿÿ@  8  ¤÷B          [@ 0@0 lgC   „[@    (Z@ ¨Y@ bR@ hR@ nR@                                                                                                                                PZ@ ¨Y@ bR@ hR@ nR@    |[@                                                                            l$7  éú›    ô  tÙB    À4T phb и €b –N@  €b * \ A D : \ E c l I p s e \ P r o j e c t s \ O A \ C l I e n t \ E c l I p s e . v b p                                                                                                                                                                                                                                                                                                                                                                                                                                                        ””@   
> tÙB    ¤*T ÿÿÿÿ    ¨ÛB ‘b    /            @^@   p and then long long more..
>
> it also says:
[![](http://img441.imageshack.us/img441/6871/naamlooslv.jpg)](http://img441.imageshack.us/I/naamlooslv.jpg/)
>
> Uploaded with [ImageShack.us](http://imageshack.us)
Link to comment
Share on other sites

  • 3 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share


×
×
  • Create New...