Gah - a solution with more questions. – EntropicLqd

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

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Complete source code)
m
Line 1: Line 1:
 
== Purpose ==
 
== Purpose ==
 +
 +
Displays a logo.
 +
 +
== Variables ==
 +
 +
== Discussion ==
 +
 +
== Complete source code ==
 +
 +
<uscript>== Purpose ==
  
 
This class is used for external logging.
 
This class is used for external logging.
Line 45: Line 55:
 
StatLogFile="./NBSP.log"
 
StatLogFile="./NBSP.log"
 
}</uscript>
 
}</uscript>
 +
 +
[[Category:NBSP Classes]]
 +
</uscript>
  
 
[[Category:NBSP Classes]]
 
[[Category:NBSP Classes]]

Revision as of 14:37, 1 April 2009

Purpose

Displays a logo.

Variables

Discussion

Complete source code

== Purpose ==
 
This class is used for external logging.
 
== Variables ==
 
* var private bool xxhacktheplanet - Unused boolean ?
* var NBSP nbsp - Reference to instance of NBSP ( [[NBSP (Class)]] ) mutator class.
 
== Discussion ==
 
== Possible improvements ==
 
* Test if nbsp equals none.
 
== Complete source code ==
 
<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>