Mostly Harmless

Difference between revisions of "UE1:NBSPLog (Class)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Purpose)
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
== Purpose ==
 
== Purpose ==
  
This class is used for external logging.
+
== Overview ==
 +
* Spawned by NBSP in it's Spawned() function if UseNBSPLog is true.
  
 
== Variables ==
 
== Variables ==
 
* var private bool xxhacktheplanet - Boolean
 
* var NBSP nbsp - Reference to NBSP ( [[NBSP (Class)]] ) mutator class
 
  
 
== Discussion ==
 
== Discussion ==
Line 12: Line 10:
 
== Complete source code ==
 
== Complete source code ==
  
<uscript>//=============================================================================
+
<uscript></uscript>
// NBSPLog ==> NoBullShitPlus v1.09
+
//=============================================================================
+
 
+
class NBSPLog extends StatLogFile;
+
 
+
var private bool xxhacktheplanet;
+
var NBSP nbsp;
+
 
+
function StartLog()
+
{
+
local string FileName;
+
 
+
if (len(nbsp.LogDirectory) != 0)
+
FileName = nbsp.LogDirectory$"NBSP."$Level.Month$"."$Level.Day$"."$Level.Year$"_"$Level.Hour$"."$Level.Minute$"."$Level.Second;
+
else
+
FileName = "../Logs/NBSP."$Level.Month$"."$Level.Day$"."$Level.Year$"_"$Level.Hour$"."$Level.Minute$"."$Level.Second;
+
 
+
StatLogFile = FileName$".tmp";
+
StatLogFinal = FileName$".log";
+
OpenLog();
+
}
+
 
+
function Timer() {} // Don't log pings every 30 seconds
+
 
+
defaultproperties
+
{
+
StatLogFile="./NBSP.log"
+
}</uscript>
+
  
[[Category:NBSP Documentation Project]]
+
[[Category:NBSP Classes]]

Latest revision as of 19:18, 5 April 2009

Purpose[edit]

Overview[edit]

  • Spawned by NBSP in it's Spawned() function if UseNBSPLog is true.

Variables[edit]

Discussion[edit]

Complete source code[edit]