Post Pacific

Post Pacific (https://postpacific.loc-online.com/index.php)
-   Lineage 2 Stickies (https://postpacific.loc-online.com/forumdisplay.php?f=44)
-   -   [SHARE] AutoUpdater v4.0.4.2 for private servers (17 Jule 2007) (https://postpacific.loc-online.com/showthread.php?t=2746)

tpuNIsher 09.05.2007 13:26

server/client box has .NET framework? 2.0? remember.. regional settings must be ok too.

HF 09.05.2007 14:33

Quote:

Originally Posted by haxigi (Post 85695)
...
And still this same error :(

easy check

http://xx.xx8.xx.xx9/patch/system/actionname-e.dat

Not Found
The requested URL /patch/system/actionname-e.dat was not found on this server.

haxigi 09.05.2007 14:51

Quote:

Originally Posted by tpuNIsher (Post 85700)
server/client box has .NET framework? 2.0? remember.. regional settings must be ok too.

Yep.

@up.
Then your guide in this pack need a little update.
Code:

II. Server side
1. "AdmSide" for creating web site content for updating
1.1 create temporary directory for work (see example)
1.2 start tool "HttpUpdateGenerator.exe" and select directory with subdirectories (example, Lineage II Clean)
Note. No do select dir w/o sub-dirs. Tool make wrong config.
1.3 select directory for ready compressed file's (example, Lineage II Compressed)
1.4 start tool. Wait status "Done"
1.5 all files in folder "Lineage II Compressed" ready to upload. But first need make some
correction in "l2update.lst"

i make all whit this guide and i get this: Look attach. All files look's like rar archive.
Then i uploade this to server and files got *cab.:
actionname-e.dat.cab
http://xx.xx8.xx.xx9/patch/system
look {edit] sorri i have deletet the *.cab files.

So i see that i need to upload normal files not this compresed :)

http://xx.xx8.xx.xx9/patch/system/actionname-e.dat - now this file is on ftp but still i got error.

I have Framework 2.0.

btw. why you dont programm this patcher for framework 1.0 ?

Вложения из исходного сообщения (сами файлы в копии отсутствуют):
bez tytułu.jpg — 26441 байт

HF 09.05.2007 18:05

Quote:

Originally Posted by haxigi (Post 85709)
Yep.

...
i make all whit this guide and i get this: Look attach. All files look's like rar archive.
Then i uploade this to server and files got *cab.:
actionname-e.dat.cab
http://xx.xx8.xx.xx9/patch/system
look {edit] sorri i have deletet the *.cab files.

So i see that i need to upload normal files not this compresed :)

http://xx.xx8.xx.xx9/patch/system/actionname-e.dat - now this file is on ftp but still i got error.

ups.. my promise. Sure you need have .cab files
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat.cab
but not
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat
if you have
system\actionname-e.dat.cab 111111111111111
then tool find
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat.cab file and try to download it.

haxigi 10.05.2007 13:07

Quote:

Originally Posted by HF (Post 85717)
ups.. my promise. Sure you need have .cab files
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat.cab
but not
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat
if you have
system\actionname-e.dat.cab 111111111111111
then tool find
http://xx.xx8.xx.xx9/patch/system/actionname-e.dat.cab file and try to download it.

So i need to upload only .cab files or files whitout .cab ? Or .cab and normal ?

I have uploaded files whit .cab and whitout. Still don't work

KOC2000 10.05.2007 16:34

Quote:

Originally Posted by HF (Post 85422)
sorry. Only now i understund your problem. "Loop updating".
I expain process of updating ...
- if config have new version - tool download .cab archive
- generate .JS script to harddrive in game folder (near with tool)
- start .JS script. Windows Script do Kill updater process.
Have small issue in this step: if your PC have low-speed CPU or hard, then...
- process cant kill very fast, but
- script go to next step - archiv unpacking
but process lock file and new exec dont pack
- next start again update tool (must be newer, but start older) and cycle start again.
2 variance: your player dont have permissions to start .JS file. Perhaps antivirus blocked.

I recomended one - say to your user do this:
- open game folder where you start update tool
- find file update.js and
- start this script manualy
Script must be unpack new Exec and destroy itself.

ً
I've an Athlon 64 (939) 3000+ with 2GB rams and 9200rbm SATA HDD.
it's not slow..
also, can you do DELAY or something, so it doesn't happen?

Breaker 11.05.2007 23:17

Hmmmm Delphi? its good =)


Question one to Autor: Your program can update self?
Question two to Autor: Program can use ftp server for update?



I think if use this on buttons:
Code:

  TImageButton = class(TGraphicControl)
  private
    MOver: TBitmap;
    MDown: TBitmap;
    MUp: TBitmap;
    Bmp: TBitmap;
    ActualBmp: TBitmap;
    BmpDAble: TBitmap;
    BtnClick: TNotifyEvent;
    OnMDown: TMouseEvent;
    OnMUp: TMouseEvent;
    OnMEnter: TNotifyEvent;
    OnMLeave: TNotifyEvent;
    procedure SetMOver(Value: TBitmap);
    procedure SetMDown(Value: TBitmap);
    procedure SetMUp(Value: TBitmap);
    procedure SetBmp(Value: TBitmap);
    procedure SetBmpDAble(Value: TBitmap);
  protected
    procedure Paint; override;
    procedure MouseDown(Button: TMouseButton; Shift: TShiftState;
      X, Y: Integer); override;
    procedure MouseUp(Button: TMouseButton; Shift: TShiftState;
      X, Y: Integer); override;
    procedure MouseEnter(var Message: TMessage); message CM_MOUSEENTER;
    procedure MouseLeave(var Message: TMessage); message CM_MOUSELEAVE;
    procedure Click; override;
  public
    constructor Create(AOwner: TComponent); override;
  published
    property BitmapOver: TBitmap read MOver write SetMOver;
    property BitmapDown: TBitmap read MDown write SetMDown;
    property BitmapUp: TBitmap read MUp write SetMUp;
    property BitmapDisabled: TBitmap read BmpDAble write SetBmpDAble;
    property Bitmap: TBitmap read Bmp write SetBmp;
    property OnClick: TNotifyEvent read BtnClick write BtnClick;
    property OnMouseDown: TMouseEvent read OnMDown write OnMDown;
    property OnMouseUp: TMouseEvent read OnMUp write OnMUp;
    property OnMouseEnter: TNotifyEvent read OnMEnter write OnMEnter;
    property OnMouseLeave: TNotifyEvent read OnMLeave write OnMLeave;
    property Enabled;
    property ShowHint;
    property ParentShowHint;
  end;

implementation

constructor TImageButton.Create(AOwner: TComponent);
begin
  inherited Create(AOwner);
  MOver := TBitmap.Create;
  MDown := TBitmap.Create;
  MUp := TBitmap.Create;
  Bmp := TBitmap.Create;
  BmpDAble := TBitmap.Create;
  ActualBmp := TBitmap.Create;
  Width := 50;
  Height := 50;
  Canvas.Brush.Color := clBtnFace;
  ShowHint := true;
end;

procedure TImageButton.Paint;
begin
  inherited Paint;
  if ActualBmp.Width = 0 then ActualBmp.Assign(Bmp);
  Canvas.FillRect(Rect(0,0,Width,Height));
  if Enabled or (BmpDAble.Width = 0) then Canvas.Draw(0,0,ActualBmp)
  else begin
    Width := BmpDAble.Width;
    Height := BmpDAble.Height;
    Canvas.Draw(0,0,BmpDAble);
  end;
end;

procedure TImageButton.Click;
begin
  inherited Click;
  Paint;
  if Enabled then if Assigned(BtnClick) then BtnClick(Self);
end;

procedure TImageButton.SetMOver(Value: TBitmap);
begin
  MOver.Assign(Value);
  Paint;
end;

procedure TImageButton.SetMDown(Value: TBitmap);
begin
  MDown.Assign(Value);
  Paint;
end;

procedure TImageButton.SetMUp(Value: TBitmap);
begin
  MUp.Assign(Value);
  Paint;
end;

procedure TImageButton.SetBmp(Value: TBitmap);
begin
  Bmp.Assign(Value);
  ActualBmp.Assign(Value);
  Width := Bmp.Width;
  Height := Bmp.Height;
  Paint;
end;

procedure TImageButton.SetBmpDAble(Value: TBitmap);
begin
  BmpDAble.Assign(Value);
  paint;
end;

procedure TImageButton.MouseDown(Button: TMouseButton; Shift: TShiftState;
  X, Y: Integer);
begin
  inherited MouseDown(Button, Shift, X, Y);
  if (Button = mbLeft) and Enabled then begin
    if Assigned (OnMDown) then OnMDown(Self, Button, Shift, X, Y);
    if MDown.Width > 0 then begin
        ActualBmp.Assign(MDown);
        Width := MDown.Width;
        Height := MDown.Height;
        Paint;
    end;
  end;
end;

procedure TImageButton.MouseUp(Button: TMouseButton; Shift: TShiftState;
  X, Y: Integer);
var MouseOverButton: Boolean;
    P: TPoint;
begin
  inherited MouseUp(Button, Shift, X, Y);
  if (Button = mbLeft) and Enabled then begin
    if Assigned (OnMUp) then OnMUp(Self, Button, Shift, X, Y);
    if MUp.Width > 0 then begin
        GetCursorPos(P);
        MouseOverButton := (FindDragTarget(P, True) = Self);
        if MouseOverButton then begin
          Width := MUp.Width;
          Height := MUp.Height;
          Canvas.FillRect(Rect(0,0,Width,Height));
          Canvas.Draw(0,0,MUp);
        end else begin
          Width := bmp.Width;
          Height := Bmp.Height;
          Canvas.FillRect(Rect(0,0,Width,Height));
          Canvas.Draw(0,0,Bmp);
        end;
    end else begin
        if MouseOverButton = false then begin
          Width := MOver.Width;
          Height := MOver.Height;
          Canvas.FillRect(Rect(0,0,Width,Height));
          Canvas.Draw(0,0,MOver);
        end else begin
          Width := bmp.Width;
          Height := Bmp.Height;
          Canvas.FillRect(Rect(0,0,Width,Height));
          Canvas.Draw(0,0,Bmp);
        end;
    end;
  end;
end;

procedure TImageButton.MouseEnter(var Message: TMessage);
begin
  if Enabled then begin
    if MOver.Width > 0 then begin
        ActualBmp.Assign(MOver);
        Width := MOver.Width;
        Height := MOver.Height;
        Paint;
    end;
  end;
end;

procedure TImageButton.MouseLeave(var Message: TMessage);
begin
  if Enabled then begin
    if Bmp.Width > 0 then begin
        ActualBmp.Assign(Bmp);
        Width := Bmp.Width;
        Height := Bmp.Height;
        Paint;
    end;
  end;
end;

on results look is cool...my example:
(This auto launcher i make for my Ultima Online project): program here.... for look http://uo.utech.ru/uo.exe

Thanks...

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

haxigi 12.05.2007 07:28

Quote:

Originally Posted by haxigi (Post 85766)
So i need to upload only .cab files or files whitout .cab ? Or .cab and normal ?

I have uploaded files whit .cab and whitout. Still don't work


hello hello, someone help me ?

okae 15.05.2007 12:26

great work HF, i am testing your tool with nice result;
only two things, i think you need encryp/decrypt .ini, and why i can set news in the loader?; i change the .js files and live.html and nothings happend only can change suppor, account... buttons.

olmer2002 15.05.2007 12:33

news in *js files
design in live.html -> support, account button and all graphical sources

olmer2002 15.05.2007 12:36

Quote:

Originally Posted by haxigi (Post 85852)
hello hello, someone help me ?

you must upload all files from Lineage II Compressed dir.

read manual.

okae 15.05.2007 13:05

Quote:

Originally Posted by olmer2002 (Post 86070)
news in *js files
design in live.html -> support, account button and all graphical sources

sure, but i change *.js files and nothing happends :S

problem solved.

haxigi 18.05.2007 14:26

Quote:

Originally Posted by olmer2002 (Post 86071)
you must upload all files from Lineage II Compressed dir.

read manual.


i have all uploaded and still nothing ...
still that error.

_Untitled 18.05.2007 17:33

Here was offtopic ;)

HF 18.05.2007 18:16

Quote:

Originally Posted by _Untitled (Post 86267)
try this

The impudence. Go out!

_Untitled 18.05.2007 18:33

void offtopic() {

cout << "(''\(o.0)/'') Preved \r\n";
// P.S. а вдруг это действительно решит его проблему ?)
// P.P.S. прошу прощения , если кого-то обидел своими действиями

}

Freeman 19.05.2007 14:14

WinXP Media Center, last a-updater: "No support for old windows - Old windows sux" :(

HF 19.05.2007 16:36

Quote:

Originally Posted by Freeman (Post 86344)
WinXP Media Center, last a-updater: "No support for old windows - Old windows sux" :(

check existing of host file
%SystemRoot%\System32\Drivers\etc\hosts
If file not exist, then tool show this error.

nasso 19.05.2007 16:49

/rus/
HF, а ты не расшариваеш сорцы апдейтера?
На чем он написан?
/rus/

Ahmed 22.05.2007 10:15

Ok for most of my players including myself the Auto-Updater works great, so i know that the updater is good, BUT for some other people that have .NET Frameworks 2.0 or 3.0 they get this (i have 3.0), some of them are on vista, the ones on vista so far cant use this auto-updater for some reason. I am looking for suggestions please. Thank You!:

Quote:

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.NullReferenceException: Object reference not set to an instance of an object.
at BhlgWShCsCx.AFvKqeNP.AC(PdC4caC()
at BhlgWShCsCx.AFvKqeNP.AB5MxPZ7csgg9eGnT(Object , EventArgs )
at System.EventHandler.Invoke(Object sender, EventArgs e)
at System.Windows.Forms.Form.OnLoad(EventArgs e)
at System.Windows.Forms.Form.OnCreateControl()
at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
at System.Windows.Forms.Control.CreateControl()
at System.Windows.Forms.Control.WmShowWindow(Message& m)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Mes sage& m)
at System.Windows.Forms.ContainerControl.WndProc(Mess age& m)
at System.Windows.Forms.Form.WmShowWindow(Message& m)
at System.Windows.Forms.Form.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.O nMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.W ndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Loaded Assemblies **************
mscorlib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
ezencryption_lib
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
System.Windows.Forms
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Drawing
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
License
Assembly Version: 1.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
ziplib
Assembly Version: 1.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Lineage2Update
Assembly Version: 4.0.3.34908
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_32/mscorlib/2.0.0.0__b77a5c561934e089/mscorlib.dll
----------------------------------------
Microsoft.VisualBasic
Assembly Version: 8.0.0.0
Win32 Version: 8.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System.Runtime.Remoting
Assembly Version: 2.0.0.0
Win32 Version: 2.0.507xx.xx (RTM.050727-4200)
CodeBase: file:///C:/WINDOWS/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
<system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.

GMan 25.05.2007 11:17

Got board tonight and thought id make something special for my Prelude server project.

So i made my own custom Auto patcher skin and skin template.

And best of all (i hope) I'm Going to share the template to you all.

Heres a shot of the PSD in action, you get layers, and guides. I did this all by hand i should add :). The only 2 things copied are the L2 logo and the "more" text cause of the logo would be to hard to extract and the more text was some odd font.

http://img213.imageshack.us/img213/8...pacesw0.th.jpg

Heres the finished product. BTW i used the interlude files because i wanted a lighter look, I'm sure anyone with a little PS know how could tweak the colors in mine to get a darker C5 look.

http://img217.imageshack.us/img217/9130/livexq2.th.jpg

not bad huh! And I know very little about PS.

The only think not included is a template to make corner.jpg. Cause its late (4:20AM) and cant really make a template for that anyway.

anyway enjoy.

***NOTE***
The attached file is really a .ace file (becasue it makes the smallest archives) so if you have issues opening it, just rename it to .ace.

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

HF 25.05.2007 12:22

Quote:

Originally Posted by Ahmed (Post 86668)
Ok for most of my players including myself the Auto-Updater works great, so i know that the updater is good, BUT for some other people that have .NET Frameworks 2.0 or 3.0 they get this (i have 3.0), some of them are on vista, the ones on vista so far cant use this auto-updater for some reason. I am looking for suggestions please. Thank You!:

Dont know. All work good on Windows XP, Vista, 2003. With 2.0 and with 3.0 too. Problem on server, i think.

Quote:

Originally Posted by GMan (Post 86925)
Got board tonight and thought id make something special for my Prelude server project.
...

:) good work. I has idea - make editor or universal template.

Ahmed 25.05.2007 13:26

well it cant be the server cause its working for other people am i correct?

also this is some stuff i found on google:



http://www.dotnet247.com/247referenc...25/125480.aspx


Dont know if this will help or not but this is what i've told my players to try:



1. Go to: Control Panel >> Administrative Tools >> Microsoft .NET Framework 2.0 Configuration

2. The .NET 2.0 Configuration module will appear. Expand the My Computer area in the left side window. Click on the "Runtime Security Policy" folder on the left hand side of the screen.

3. Click on the "Adjust Security Zone" link in the body of the screen (right side window).

4. Click "Next" (Make Changes to this Computer").

5. Click the "Local Intranet" security button.

6. Adjusted the security to "FULL".

7. Click the "Internet" security button.

8. Adjusted the security to "FULL".

9. Click "Next"

10. Click "Finish"


and do the same to the .Net Framework 1.1 or 3.0 if you have them in the "Control Panel >> Administrative Tools" area.

hope this helps them ;) (personally i cant trouble shoot this very well cause its not happening to me.

haxigi 27.05.2007 09:27

ok autoupdater work good but everybody when launch game after update got GameGuard problem. Something adds in C:\Windows\system32\drivers\etc in host file this:

0.0.0.0 l2authd.lineage2.com
1.1.1.1 l2testauthd.lineage2.com
1.1.1.1 nprotect.ncsoft.co.kr
1.1.1.1 nprotect.lineage2.com

how to fix this ?

HF 27.05.2007 10:43

Quote:

Originally Posted by haxigi (Post 87043)
ok autoupdater work good but everybody when launch game after update got GameGuard problem. Something adds in C:\Windows\system32\drivers\etc in host file this:

0.0.0.0 l2authd.lineage2.com
1.1.1.1 l2testauthd.lineage2.com
1.1.1.1 nprotect.ncsoft.co.kr
1.1.1.1 nprotect.lineage2.com

how to fix this ?

maybe you need configure your server config?


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