![]() |
|
|
|
|
#1 |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
As i promised.
I`m sharing my just finished autoupdater for private servers. This one uses client-server architecture (this means you`ll have to have it server side application running on your server), and works in pretty similar way the original NCSoft`s autoupdater does.
features:
report bugs to [email protected] If, you`ll use it in your own apps, credit would be appreciated ![]() sorry cannot upload to postpacific, use these links: 2006 07 05 update - fixed broken links, added v1.1 autocheck editor (see page 5 for this) |
|
|
|
|
#2 |
|
Архивный участник
Join Date: Mar 2005
Posts: 368
|
AWESOME !!!
JUST AWESOME !!!! Can i have a linux version of server ? You didn't include the files so i cant compile myself. Anyway, THANK YOU ! Eli |
|
|
|
|
#3 |
|
Архивный участник
Join Date: May 2005
Posts: 463
|
=O really good
|
|
|
|
|
#4 |
|
Архивный участник
Join Date: May 2005
Posts: 39
|
autocheck list editor seems to be broken...
Access violation at address 0046C145 in module 'autocheck_list_editor.exe', Read address of 00000024. AWSOME program btw ![]() edit : nvm i had to run the update server and get the list
|
|
|
|
|
#5 |
|
Архивный участник
Join Date: May 2005
Posts: 39
|
um another problem....well shellexecute is set as ../system/l2.exe but it does not find the executable for some reason....any idea on that?
|
|
|
|
|
#6 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
I`ll post update for this and an access violation fix soon
|
|
|
|
|
|
#7 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
|
|
|
|
|
|
#8 |
|
Архивный участник
Join Date: Mar 2005
Posts: 368
|
I am capable, if it doesn't use windows specific packages, it's possible to compile delphi on linux with Kylix. I did it before.
|
|
|
|
|
#9 |
|
Архивный участник
Join Date: May 2005
Posts: 39
|
relative path doesnt work o_O
..\system\l2.exe ../system/l2.exe same error im lovin the update feature tho
|
|
|
|
|
#10 |
|
Архивный участник
Join Date: Sep 2005
Posts: 731
|
Hope you finish the Autoupdater Soon !!!GJ and keep up the good work !!!
|
|
|
|
|
#11 | |
|
Архивный участник
Join Date: Jul 2005
Posts: 36
|
Quote:
|
|
|
|
|
|
#12 |
|
Архивный участник
Join Date: Jun 2005
Posts: 19
|
Hmmm not work for me..
First I try work without rar compression, but autoapderter for client try to unpack downloaded file with rar, so it don`t work.. only with rar compression. then I compress all files on directories with winrar, and make each file in eache archive, but mass renamer can`t rename file. It`s say that "List index os out of bounds(0)" What I did wrong? :cry: PS: I found my mistake. I foget put unrar.dll in to the server folder :-) |
|
|
|
|
#13 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
![]() Code:
procedure TMain.Button2Click(Sender: TObject);
var s, s1: string;
pc, pc1: PChar;
r: integer;
begin
// launch lineage2
s:= ExtractFilePath(ParamStr(0))+'System\l2.exe';
s1:= ExtractFilePath(s);
pc:= AllocMem(Length(s)+1);
pc1:= AllocMem(Length(s1)+1);
StrPCopy(pc, s);
StrPCopy(pc1, s1);
chDir(s1);
r:= ShellExecute(Handle, 'Open', pc, '', pc1, SW_SHOWNORMAL);
FreeMem(pc);
FreeMem(pc1);
case r of
0: begin
MessageBox(Handle, 'System is out of resources',
'Out of resources', MB_OK+MB_ICONERROR);
end;
ERROR_FILE_NOT_FOUND: begin
MessageBox(Handle, 'Lineage II main executable not found.'#13#10+
'Check whether the launcher is in Lineage II installation root directory.'#13#10+
'Also, you may have not updated your Lineage II yet.',
'File Not Found', MB_OK+MB_ICONERROR);
end;
ERROR_PATH_NOT_FOUND: begin
MessageBox(Handle, 'Lineage II main executable path not found.'#13#10+
'Check whether the launcher is in Lineage II installation root directory.'#13#10+
'Also, you may have not updated your Lineage II yet.',
'Path Not Found', MB_OK+MB_ICONERROR);
end;
else begin
if r > 33 then Close
else begin
MessageBox(Handle, 'Unknown error has occurred while launching Lineage II'#13#10+
'Check whether the launcher is in Lineage II installation root directory.'#13#10+
'Also, you may have not updated your Lineage II yet.',
'Unknown Error', MB_OK+MB_ICONERROR);
end;
end;
end;
end;
|
|
|
|
|
|
#14 | |
|
Архивный участник
Join Date: May 2005
Posts: 115
|
Quote:
You can edit it in exe by filing zeros (00) at address 76d82 till 76d8e, or compile with fix that Kazhkaz post to Kazhkaz: I have some questions about updater work 1. Why it can't update files with read only attribute placed in rar. It downloads these files again and again. 2. I have a problem with autocheck.lst editor can you post this file format, or some little tutorial ? ![]() 3. Can you add support for zip archives in mass renaming tool?
|
|
|
|
|
|
#15 | ||
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
2. Code:
AChkEntry = record
fname: string[255];
crc32_check,
fsize_check: boolean;
crc32: LongWord;
fsize: integer;
end;
AChkFile = file of AChkEntry;
![]() 3. Then you`ll have to rewrite extraction code in both Server and Client - since they also use this format (that`s why unrar.dll must be present in both client and server directories). Also unzip libraries must be added... |
||
|
|
|
|
#16 |
|
Архивный участник
Join Date: May 2005
Posts: 115
|
unrar.dll can unpack zip
also i have problems with crc calculation on some files it always say on them FFFFFFFF ![]() here one of them http://rapidshare.de/files/7490738/L2Font-r.rar.html |
|
|
|
|
#17 |
|
Архивный участник
Join Date: Nov 2005
Posts: 2
|
damn, how to generate list.fl? :|
|
|
|
|
|
#18 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
|
|
|
|
|
|
#19 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
|
|
|
|
|
|
#20 |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
And here goes fix for the autocheck file list generator:
|
|
|
|
|
#21 |
|
Архивный участник
Join Date: Aug 2005
Posts: 1,531
|
kazhkaz, you can do tool without server side? Or i dont understund - what make server side service? It is no can remove from update process?
I try now make very simple L2Updater. Only client side and simple web share metod from "server-side". With CRC check sure. No have much time for fast finish. Maybe i wrong. But, why/for what need server side? |
|
|
|
|
#22 | |
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
|
|
|
|
|
|
#23 | ||
|
Архивный участник
Join Date: Jun 2005
Posts: 19
|
Quote:
|
||
|
|
|
|
#24 | |||
|
Архивный участник
Join Date: Oct 2005
Posts: 55
|
Quote:
|
|||
|
|
|
|
#25 |
|
Архивный участник
Join Date: Jun 2005
Posts: 199
|
I have error: the compilator say: [Fatal Error] l2_updater.dpr(1): Unit not found: 'System.pas' or binary equivalents (DCU,DPU)
Sorry for my english |
|
|
| Thread Tools | Search this Thread |
| Display Modes | |
|
|