I'm a doctor, not a mechanic

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

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Variables)
m (Purpose)
Line 1: Line 1:
 
== Purpose ==
 
== Purpose ==
  
This is the mutator part of NBSP.
+
This class is used for external logging.
  
 
== Variables ==
 
== Variables ==

Revision as of 04:55, 1 April 2009

Purpose

This class is used for external logging.

Variables

  • var private bool xxhacktheplanet - Boolean
  • var NBSP nbsp - Reference to NBSP ( NBSP (Class) ) mutator class

Discussion

Complete source code

//=============================================================================
// 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"
}