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)

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

Susanin 22.12.2005 17:33

Quote:

Originally Posted by kazhkaz
Quote:

Originally Posted by Susanin
Give sorc to people ;)

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

well...

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

http://www.kazhkaz.net/download/l2_a...ver_source.rar

thx :)

-=ZEN=- 27.01.2006 20:59

when i'm started my update server , in console writing err like this : Error opening file "list.fl" for writing! . I think that i'm noob , b4ut ppl , plz can u tell me what is this ? .

/rus/ Мужики выручайте :( /rus/

-=ZEN=- 28.01.2006 09:11

Народ help плз.....
объяснить из-за чего err...

-=ZEN=- 28.01.2006 09:39

Explain plz how create list.fl PLZZZZZZZZ

/rus Объясните plz как создать list.fl PLZZZZZZZZ

TheOrder 28.01.2006 09:53

Quote:

Originally Posted by -=ZEN=-
Explain plz how create list.fl PLZZZZZZZZ

/rus Объясните plz как создать list.fl PLZZZZZZZZ

Why do you had to triple-post ahh ?? you can edit you're post . And wait for him to answer he might not be online right now so wait !!!!

axilles 03.02.2006 06:31

Не пойму в чем проблем autocheck_list_editor не сохраняет autocheck.lst файл подскажите плиз

shrek 06.02.2006 08:46

autocheck_list_editor no create autocheck.lst :(

kazhkaz 06.02.2006 11:57

Quote:

Originally Posted by axilles
Не пойму в чем проблем autocheck_list_editor не сохраняет autocheck.lst файл подскажите плиз

did you use the save button?

shrek 14.02.2006 08:22

Quote:

Originally Posted by kazhkaz
Quote:

Originally Posted by axilles
Не пойму в чем проблем autocheck_list_editor не сохраняет autocheck.lst файл подскажите плиз

did you use the save button?

yes

yocmen 15.02.2006 23:35

How add a Server Status in the client?????? :D

Co0L 16.02.2006 05:50

Quote:

Originally Posted by yocmen
How add a Server Status in the client?????? :D

:shock:

kgptzac 16.02.2006 16:20

Quote:

Originally Posted by Co0L
Quote:

Originally Posted by yocmen
How add a Server Status in the client?????? :D

:shock:

www.asknc.com !

Truffe 16.02.2006 20:08

I think he means in the updater client... :roll:

kazhkaz 19.02.2006 15:29

Quote:

Originally Posted by shrek
Quote:

Originally Posted by kazhkaz
Quote:

Originally Posted by axilles
Не пойму в чем проблем autocheck_list_editor не сохраняет autocheck.lst файл подскажите плиз

did you use the save button?

yes

try deleting autocheck.lst

btw it seems having problems in loading files.

Quote:

Originally Posted by yocmen
How add a Server Status in the client?????? :D

Read sources carefully. If you know something about programming you`ll find it :D

kazhkaz 03.03.2006 16:21

Ooh sory i didn`t include the server status check code in this version of launcher. Here ya go:
Code:

unit l2bw_srvchk;

interface

uses
  Classes, IdIOHandler, IdIOHandlerSocket, IdBaseComponent, IdComponent,
  IdTCPConnection, IdTCPClient, SysUtils;

type
  TServChk = class(TThread)
  private
    { Private declarations }
  protected
    { Private declarations }   
    TCP: TIdTCPClient;
    IOHS: TIdIOHandlerSocket;
    ip: string;
    ls, gs: boolean;
  protected
    procedure Execute; override;
    procedure UpdateLSGS; virtual;
    procedure GetIP; virtual;
  end;

implementation 

uses l2bw_main;

{ TServChk }

procedure TServChk.GetIP;
begin
  ip:= Main.ini.ReadString('Launcher', 'ip', 'localhost');
end;

procedure TServChk.Execute;
var ac: array[1..255] of byte;
    b: byte;
begin
  // init connection
  TCP:= TIdTCPClient.Create(nil);
  IOHS:= TIdIOHandlerSocket.Create(nil);
  TCP.IOHandler:= IOHS;

  while not Terminated do begin

    Synchronize(GetIP);

    // attempt to connect to port #2106 (login/auth server) of the specified IP
    TCP.Port:= 2106;
    TCP.Host:= ip;
    try
      TCP.Connect();

      // check for login init packet from server
      TCP.ReadBuffer(b, 1);
      TCP.ReadBuffer(ac, b-1);

      ls:= true;

      TCP.Disconnect;
    except
      on E: Exception do begin
        ls:= False;
      end;
    end;

    if Terminated then Exit;

    // attempt to connect to port #7777 (game server) of the specified IP
    TCP.Port:= 7777;
    TCP.Host:= ip;
    try
      TCP.Connect();

      gs:= True;

      TCP.Disconnect;
    except
      on E: Exception do begin
        gs:= False;
      end;
    end;
    Synchronize(UpdateLSGS);
    Sleep(30000);
  end;

  TCP.Free;
  IOHS.Free;
end;


procedure TServChk.UpdateLSGS;
begin
  if ls then begin
    Main.ls_on.Visible:= True;
    Main.ls_off.Visible:= False;
  end else begin
    Main.ls_on.Visible:= False;
    Main.ls_off.Visible:= True;
  end;

  if gs then begin
    Main.gs_on.Visible:= True;
    Main.gs_off.Visible:= False;
  end else begin
    Main.gs_on.Visible:= False;
    Main.gs_off.Visible:= True;
  end;
end;

end.

In fact it is one complete unit from the server i`m working for launcher`s code, also the same code (except for the UpdateLSGS method) is used in IRC bot which in real-time keeps server`s channel topic up-to-date with server status. This code is even older than the launcher project itself (i first used it in stand alone server check app :P)

Alzec 03.07.2006 12:46

Someone can re host the files ?
The links in the first post are broken

Edit: nobody ? :(

kazhkaz 05.07.2006 03:57

Quote:

Originally Posted by Alzec
Someone can re host the files ?
The links in the first post are broken

Edit: nobody ? :(

:oops:

Sorry everyone, during ftp server clean up moved the files to another folder :)

links have been corrected ;)

BTW got a message from one user, stating that there still was some bugs with the autocheck list editor, so fixed most of them (i hope), anf, finally, got that one with not saving the list :). The new version is attached to this post.

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
editor_180.rar — 211619 байт

kazhkaz 05.07.2006 04:11

Sory for sluggish responces, been busy lately - studying, programming here and there, updating the main server file, which i'd like to release when fully completed, however, no ETA yet on this...

Alzec 05.07.2006 15:42

Thank you very much =)

evern 07.01.2007 18:29

sorry to revive this old thread..

this is regarding the autocheck list editor, i'm currently using the latest version available for download in this thread, but i just can't figure out how to add a file into the autocheck list creator, i tried double clicking on the 'file name' textbox, a browse window appears, but when i click my files, it sez it's 'not a valid windows image'... and too bad the 'add' button is disabled by default, can someone enlighten me on this or just teach me how to create my autocheck.lst file manually through notepad?


thanks in advance

kazhkaz 10.01.2007 13:58

Quote:

Originally Posted by evern (Post 75653)
sorry to revive this old thread..

this is regarding the autocheck list editor, i'm currently using the latest version available for download in this thread, but i just can't figure out how to add a file into the autocheck list creator, i tried double clicking on the 'file name' textbox, a browse window appears, but when i click my files, it sez it's 'not a valid windows image'... and too bad the 'add' button is disabled by default, can someone enlighten me on this or just teach me how to create my autocheck.lst file manually through notepad?


thanks in advance

I think there's an error with something in your windows, since the application makes use of the common dialogs. And there's the structure of the file described somewhere within the updater client, though it is used for reading only, but can be reverse-engineered with little effort :)

evern 10.01.2007 15:22

thanks kazhkaz, i'll try it with windows xp then... currently using windows 2003 server... will post my findings here

kazhkaz 18.04.2007 11:13

I am preparing major release on this.

Since last release (v1.1 I believe) there was a huge amount of improvements/additions.

I'm willing to release both Client and Server side, and maybe Client side code (sorry, no server code - it's already customisable enough). No ETA on release though, monitor this thread for more info.

Current server version: 2.50 RC-2
Current client version: 2.21 (may be 2.50 if i prepare all the features in time)

moon 18.04.2007 12:18

Can you please share the full source ?

DEViANCE 12.05.2007 11:25

Quote:

Originally Posted by moon (Post 84146)
Can you please share the full source ?

+1

/rus Поделитесь полными исходниками. tnx.

Forcer 12.05.2007 11:38

+1 I for :)

HF 12.05.2007 12:36

Quote:

Originally Posted by moon (Post 84146)
Can you please share the full source ?

Quote:

Originally Posted by DEViANCE (Post 85859)
+1
/rus Поделитесь полными исходниками. tnx.

Quote:

Originally Posted by Forcer (Post 85861)
+1 I for :)


cool wishes. You can say same to Cypher, Tontor and... NCSoft... Why not?

Forcer 12.05.2007 14:09

Yep, maybe you luck and try ask microsoft for their sources? Why not? ^^

ismael66 16.05.2007 21:38

should i start spamming with my language?
this is an english forum, you have your own section if you wanna speak russian!
use it.

n00b 17.05.2007 19:27

found it on one russian forum:
http://www.rapidshare.ru/281207
sources:
http://www.rapidshare.ru/283151
screenshot:
http://img520.imageshack.us/my.php?image=screenwv7.jpg


All times are GMT. The time now is 15:14.