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)

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.


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