Post Pacific

Post Pacific (https://postpacific.mmorpg-game.online/index.php)
-   Lineage 2 General (https://postpacific.mmorpg-game.online/forumdisplay.php?f=31)
-   -   [SHARE] AutoUpdater for private servers (https://postpacific.mmorpg-game.online/showthread.php?t=2476)

kazhkaz 24.11.2005 01:05

Quote:

Originally Posted by midnight
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

well, the system.pas is the built-in unit for delphi. Try reinstalling it, because it must be problem with your IDE ;)

GMan 24.11.2005 06:01

I have never used delphi befor, but when i try to compile i get errors

[Error] l2u_client_acthread.pas(80): E2250 There is no overloaded version of 'Connect' that can be called with these arguments
[Error] l2u_client_acthread.pas(81): E2003 Undeclared identifier: 'ReadLn'
[Error] l2u_client_acthread.pas(88): E2003 Undeclared identifier: 'WriteLn'
[Error] l2u_client_acthread.pas(89): E2003 Undeclared identifier: 'ReadLn'
[Error] l2u_client_acthread.pas(96): E2003 Undeclared identifier: 'WriteLn'
[Error] l2u_client_acthread.pas(98): E2003 Undeclared identifier: 'ReadInteger'
[Error] l2u_client_acthread.pas(100): E2003 Undeclared identifier: 'WriteLn'
[Error] l2u_client_acthread.pas(114): E2003 Undeclared identifier: 'ReadInteger'
[Error] l2u_client_acthread.pas(115): E2003 Undeclared identifier: 'WriteLn'
[Error] l2u_client_acthread.pas(121): E2003 Undeclared identifier: 'ReadBuffer'
[Error] l2u_client_acthread.pas(123): E2003 Undeclared identifier: 'WriteLn'
[Warning] l2u_client_acthread.pas(198): W1020 Constructing instance of 'TIdIOHandlerSocket' containing abstract method 'TIdIOHandler.ReadFromSource'
[Fatal Error] l2u_client_uthread.pas(45): F2063 Could not compile used unit 'l2u_client_acthread.pas'

please help. only have 30 days left on trial :)

lich 24.11.2005 15:37

Which version of Delphi do you have? Seems something like Delphi 2005.
Try Delphi 6 or 7.

kazhkaz thanks a lot for the updater!

Small request :) Can you make server side exe to automatically start server on running. May be by using a command line. or putting server into services.

GMan 24.11.2005 21:02

yep i got 2005, anyone know where i can get delphi 7 its not
 
yep i got 2005, anyone know where i can get delphi 7 its not on their webpage, they ony have it so u can get a key if you have the CD :(

wiish i knew delphi better cause i would just port it to a lang. i know

pirateice 25.11.2005 14:14

is there a visual basic version? please.. :)

GMan 26.11.2005 05:43

sorry to be an idiot with delphi, but i finally got delphi 7 personal and when i compile i get

[Fatal Error] l2u_client_uthread.pas(6): File not found: 'IdIOHandler.dcu'

any ideas on this error

GMan 26.11.2005 06:30

Ok i figured something out. if you are going to use 2005 all you have to do is tell delphi to use $(BDS)\Lib\Indy9 not $(BDS)\Lib\Indy10

GMan 26.11.2005 08:03

Im on a role (hope i dont get yelled at for posting so much) but i fould a fix

i noticed that it doesnt overwirigt files if they are on the clienside alread it just keeps redownloading them becaue the CRC is wrong

simple fix

on line 275 in file l2u_client_uthread.pas
add
DelFile(work_dir+s); above
RenameFile(ExtractFilePath(work_dir+s)+temp_f_name , work_dir+s);

havent checked the autocheck code because i cant figure out how to add things to the autocheck.lst file with the updeted maker.
and this is for non rar setup not sure if after it unrars he file if it rus this code or somewhere else

anyway hope this helps

good share and thanks for making me learn delphi it was on my list for a while :)

GMan 01.12.2005 09:07

How do i add files to the autocheck ditor. i downloaded the new version but have no idea how to add files to it. tried dragging files typing files but the add button never enabels

thanks

KTPSMF 01.12.2005 09:08

i think [kazhkaz] is worth an user lace user

kazhkaz 01.12.2005 15:28

Quote:

Originally Posted by GMan
How do i add files to the autocheck ditor. i downloaded the new version but have no idea how to add files to it. tried dragging files typing files but the add button never enabels

thanks


try doubleclicking the edit field ;)

kazhkaz 01.12.2005 15:39

Quote:

Originally Posted by lich
Which version of Delphi do you have? Seems something like Delphi 2005.
Try Delphi 6 or 7.

kazhkaz thanks a lot for the updater!

Small request :) Can you make server side exe to automatically start server on running. May be by using a command line. or putting server into services.

here you go. just start it with -s command line parameter (note: case sensitive). It`ll autostart within 15 seconds.

kazhkaz 01.12.2005 15:41

Quote:

Originally Posted by GMan
Im on a role (hope i dont get yelled at for posting so much) but i fould a fix

i noticed that it doesnt overwirigt files if they are on the clienside alread it just keeps redownloading them becaue the CRC is wrong

simple fix

on line 275 in file l2u_client_uthread.pas
add
DelFile(work_dir+s); above
RenameFile(ExtractFilePath(work_dir+s)+temp_f_name , work_dir+s);

havent checked the autocheck code because i cant figure out how to add things to the autocheck.lst file with the updeted maker.
and this is for non rar setup not sure if after it unrars he file if it rus this code or somewhere else

anyway hope this helps

good share and thanks for making me learn delphi it was on my list for a while :)

in fact ot does overwrite. the bug seems to be hidden somewhere deep inside server. currently investigating this one.

kazhkaz 01.12.2005 15:44

Quote:

Originally Posted by pirateice
is there a visual basic version? please.. :)

sorry, no VB version ;) Unless someone would port the sources into VB.

kazhkaz 01.12.2005 15:56

Btw, it would be very nice if someone would recommend me to digital to let me into the modders section. I`m currently working on a couple of projects and don`t know whether they`d be useful or not :roll:

P.s. thanks in advance ;)

GMan 07.12.2005 19:46

Quote:

Originally Posted by kazhkaz
in fact ot does overwrite. the bug seems to be hidden somewhere deep inside server. currently investigating this one.

it doent over wright i tested with a bmp and a text file i added one red pixel to the bitmap and it kept downloading and i would check the bitmap and it was sill there and same with plain text file had a hello world in there then added a "." to the end and server kept downloading with no change on clients file (still had a "."

kazhkaz 08.12.2005 08:37

Quote:

Originally Posted by GMan
Quote:

Originally Posted by kazhkaz
in fact ot does overwrite. the bug seems to be hidden somewhere deep inside server. currently investigating this one.

it doent over wright i tested with a bmp and a text file i added one red pixel to the bitmap and it kept downloading and i would check the bitmap and it was sill there and same with plain text file had a hello world in there then added a "." to the end and server kept downloading with no change on clients file (still had a "."

I`ll look into this.

lich 10.12.2005 19:45

Quote:

Originally Posted by kazhkaz
Quote:

Originally Posted by lich
Which version of Delphi do you have? Seems something like Delphi 2005.
Try Delphi 6 or 7.

kazhkaz thanks a lot for the updater!

Small request :) Can you make server side exe to automatically start server on running. May be by using a command line. or putting server into services.

here you go. just start it with -s command line parameter (note: case sensitive). It`ll autostart within 15 seconds.

Oh. Thanks.

superkent 18.12.2005 00:38

pliese help. I don't know delphi, but ME need this autoapdater. I open project and I have error.
[Fatal Error] l2u_client_uthread.pas(7): File not found: 'DFUnRar.dcu'

What it this?

Sory for my bad english

superkent 18.12.2005 02:23

Quote:

Originally Posted by superkent
pliese help. I don't know delphi, but ME need this autoapdater. I open project and I have error.
[Fatal Error] l2u_client_uthread.pas(7): File not found: 'DFUnRar.dcu'

What it this?

Sory for my bad english

I am sory, but I understood its error.



But in me another problem arose. With the starting CLIENT, the server issues error, although there he is l2.ini present.

[4:18:01 AM] Request for file: autocheck.lst
[4:18:01 AM] Request for file: Updates\system\l2.ini
[4:18:01 AM] Error opening file or bad file requested:
[4:18:01 AM] Updates\system\l2.ini

Susanin 18.12.2005 12:43

Give sorc to people ;)

типа дай сырцы народу =)

kazhkaz 21.12.2005 21:34

Quote:

Originally Posted by superkent
Quote:

Originally Posted by superkent
pliese help. I don't know delphi, but ME need this autoapdater. I open project and I have error.
[Fatal Error] l2u_client_uthread.pas(7): File not found: 'DFUnRar.dcu'

What it this?

Sory for my bad english

I am sory, but I understood its error.



But in me another problem arose. With the starting CLIENT, the server issues error, although there he is l2.ini present.

[4:18:01 AM] Request for file: autocheck.lst
[4:18:01 AM] Request for file: Updates\system\l2.ini
[4:18:01 AM] Error opening file or bad file requested:
[4:18:01 AM] Updates\system\l2.ini

the file might be in use by another application (the server uses share-exclusive mode to access files)

kazhkaz 21.12.2005 21:38

Quote:

Originally Posted by Susanin
Give sorc to people ;)

типа дай сырцы народу =)

well...

ah, what the hell, merry x-mas everyone!

http://kami.25u.com/l2/l2_autoupdater_server_source.rar

TheOrder 21.12.2005 21:40

Tnx for the source it will come in handy in the future !!!

kazhkaz 22.12.2005 11:28

Quote:

Originally Posted by TheOrder
Tnx for the source it will come in handy in the future !!!

i sure hope so :D


All times are GMT. The time now is 16:27.