- Added more verbose status messages
This commit is contained in:
parent
12773fd63e
commit
15bcaa0686
|
@ -21,7 +21,7 @@
|
||||||
* CDDL HEADER END
|
* CDDL HEADER END
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
* Portions Copyright 2007 Andreas Schneider
|
* Portions Copyright 2008 Andreas Schneider
|
||||||
*)
|
*)
|
||||||
unit ULandscape;
|
unit ULandscape;
|
||||||
|
|
||||||
|
@ -183,12 +183,18 @@ end;
|
||||||
|
|
||||||
constructor TLandscape.Create(AMap, AStatics, AStaIdx, ATiledata,
|
constructor TLandscape.Create(AMap, AStatics, AStaIdx, ATiledata,
|
||||||
ARadarCol: string; AWidth, AHeight: Word; var AValid: Boolean);
|
ARadarCol: string; AWidth, AHeight: Word; var AValid: Boolean);
|
||||||
|
var
|
||||||
|
map, statics, staidx, tiledata: TStream;
|
||||||
begin
|
begin
|
||||||
Create(TFileStream.Create(AMap, fmOpenReadWrite),
|
Write(TimeStamp, 'Loading Map');
|
||||||
TFileStream.Create(AStatics, fmOpenReadWrite),
|
map := TFileStream.Create(AMap, fmOpenReadWrite);
|
||||||
TBufferedReader.Create(TFileStream.Create(AStaIdx, fmOpenReadWrite), True),
|
Write(', Statics');
|
||||||
TFileStream.Create(ATiledata, fmOpenRead or fmShareDenyWrite),
|
statics := TFileStream.Create(AStatics, fmOpenReadWrite);
|
||||||
ARadarCol, AWidth, AHeight, AValid);
|
Write(', StaIdx');
|
||||||
|
staidx := TBufferedReader.Create(TFileStream.Create(AStaIdx, fmOpenReadWrite), True);
|
||||||
|
Writeln(', Tiledata');
|
||||||
|
tiledata := TFileStream.Create(ATiledata, fmOpenRead or fmShareDenyWrite);
|
||||||
|
Create(map, statics, staidx, tiledata, ARadarCol, AWidth, AHeight, AValid);
|
||||||
FOwnsStreams := True;
|
FOwnsStreams := True;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
@ -210,13 +216,17 @@ begin
|
||||||
AValid := Validate;
|
AValid := Validate;
|
||||||
if AValid then
|
if AValid then
|
||||||
begin
|
begin
|
||||||
|
Write(TimeStamp, 'Creating Cache');
|
||||||
FBlockCache := TCacheManager.Create(256);
|
FBlockCache := TCacheManager.Create(256);
|
||||||
FBlockCache.OnRemoveObject := @OnRemoveCachedObject;
|
FBlockCache.OnRemoveObject := @OnRemoveCachedObject;
|
||||||
|
Write(', Tiledata');
|
||||||
FTiledataProvider := TTiledataProvider.Create(ATiledata);
|
FTiledataProvider := TTiledataProvider.Create(ATiledata);
|
||||||
|
Write(', Subscriptions');
|
||||||
SetLength(FBlockSubscriptions, AWidth * AHeight);
|
SetLength(FBlockSubscriptions, AWidth * AHeight);
|
||||||
for blockID := 0 to AWidth * AHeight - 1 do
|
for blockID := 0 to AWidth * AHeight - 1 do
|
||||||
FBlockSubscriptions[blockID] := TLinkedList.Create;
|
FBlockSubscriptions[blockID] := TLinkedList.Create;
|
||||||
|
|
||||||
|
Writeln(', RadarMap');
|
||||||
FRadarMap := TRadarMap.Create(FMap, FStatics, FStaIdx, FWidth, FHeight,
|
FRadarMap := TRadarMap.Create(FMap, FStatics, FStaIdx, FWidth, FHeight,
|
||||||
ARadarCol);
|
ARadarCol);
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@
|
||||||
<PackageName Value="lnetbase"/>
|
<PackageName Value="lnetbase"/>
|
||||||
</Item1>
|
</Item1>
|
||||||
</RequiredPackages>
|
</RequiredPackages>
|
||||||
<Units Count="9">
|
<Units Count="14">
|
||||||
<Unit0>
|
<Unit0>
|
||||||
<Filename Value="cedserver.lpr"/>
|
<Filename Value="cedserver.lpr"/>
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
|
@ -74,6 +74,31 @@
|
||||||
<IsPartOfProject Value="True"/>
|
<IsPartOfProject Value="True"/>
|
||||||
<UnitName Value="UInterfaces"/>
|
<UnitName Value="UInterfaces"/>
|
||||||
</Unit8>
|
</Unit8>
|
||||||
|
<Unit9>
|
||||||
|
<Filename Value="UPacketHandlers.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="UPacketHandlers"/>
|
||||||
|
</Unit9>
|
||||||
|
<Unit10>
|
||||||
|
<Filename Value="ULandscape.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="ULandscape"/>
|
||||||
|
</Unit10>
|
||||||
|
<Unit11>
|
||||||
|
<Filename Value="UPackets.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="UPackets"/>
|
||||||
|
</Unit11>
|
||||||
|
<Unit12>
|
||||||
|
<Filename Value="UAdminHandling.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="UAdminHandling"/>
|
||||||
|
</Unit12>
|
||||||
|
<Unit13>
|
||||||
|
<Filename Value="UClientHandling.pas"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="UClientHandling"/>
|
||||||
|
</Unit13>
|
||||||
</Units>
|
</Units>
|
||||||
</ProjectOptions>
|
</ProjectOptions>
|
||||||
<CompilerOptions>
|
<CompilerOptions>
|
||||||
|
|
|
@ -33,11 +33,13 @@ uses
|
||||||
{$ENDIF}{$ENDIF}
|
{$ENDIF}{$ENDIF}
|
||||||
SysUtils, Classes,
|
SysUtils, Classes,
|
||||||
lnetbase,
|
lnetbase,
|
||||||
UConfig, UCEDServer, URadarMap, ULargeScaleOperations;
|
UConfig, UCEDServer, URadarMap, ULargeScaleOperations, UPackets,
|
||||||
|
UAdminHandling, UClientHandling, ULandscape, UPacketHandlers;
|
||||||
|
|
||||||
{$I version.inc}
|
{$I version.inc}
|
||||||
|
|
||||||
begin
|
begin
|
||||||
|
Writeln('');
|
||||||
Writeln('UO CentrED Server Version ', ProductVersion);
|
Writeln('UO CentrED Server Version ', ProductVersion);
|
||||||
Writeln('Copyright ', Copyright);
|
Writeln('Copyright ', Copyright);
|
||||||
//Writeln('================================');
|
//Writeln('================================');
|
||||||
|
@ -59,15 +61,15 @@ begin
|
||||||
end;
|
end;
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
Write(TimeStamp, 'Initializing ... ');
|
Writeln(TimeStamp, 'Initialization started');
|
||||||
Randomize;
|
Randomize;
|
||||||
CEDServerInstance := TCEDServer.Create;
|
CEDServerInstance := TCEDServer.Create;
|
||||||
Writeln('Done');
|
Writeln(TimeStamp, 'Initialization done');
|
||||||
CEDServerInstance.Run;
|
CEDServerInstance.Run;
|
||||||
Write(TimeStamp, 'Terminating ... ');
|
Write(TimeStamp, 'Shutting down ... ');
|
||||||
FreeAndNil(CEDServerInstance);
|
FreeAndNil(CEDServerInstance);
|
||||||
Config.Flush;
|
Config.Flush;
|
||||||
FreeAndNil(Config);
|
FreeAndNil(Config);
|
||||||
Writeln('Done');
|
Writeln('done');
|
||||||
end.
|
end.
|
||||||
|
|
||||||
|
|
|
@ -2,4 +2,4 @@ const
|
||||||
ProductVersion = '0.3.6';
|
ProductVersion = '0.3.6';
|
||||||
ProtocolVersion = 5;
|
ProtocolVersion = 5;
|
||||||
Revision = '41';
|
Revision = '41';
|
||||||
Copyright = '2007 Andreas Schneider';
|
Copyright = '2008 Andreas Schneider';
|
||||||
|
|
Loading…
Reference in New Issue