This page was pulled into the static site from the original vBulletin thread — rescued from the Internet Archive or the vBulletin backup database after the forum upgrade made the live threads unreachable; original authorship is credited below.
DebugMode
Version 1.01
Requirements
- N/A
//==================================================================================================
//
// Debug Mode Library
//
// Name: Debug Mode
// Author: Sevion
//
//==================================================================================================
include "TriggerLibs/NativeLib"
//==================================================================================================
//
// System Globals
//
//==================================================================================================
bool DEBUG_MODE = false;
//==================================================================================================
//
// System Script
//
//==================================================================================================
void lib_dm_setDebugMode( bool flag )
{
DEBUG_MODE = flag;
}
void lib_dm_debugMsg( string msg )
{
UIDisplayMessage(PlayerGroupActive(), c_messageAreaDebug, StringToText(msg));
}
Just a simple way to have "Debug Mode". Not as efficient as NewGen's Debug Mode, but since there is no other way that I know of, this is the next best thing.
I know of a few natives that say something about Debug Mode, but I have no idea how to use them. TriggerDebugOutput is one of them, but I don't have a clue on how to use it.
Anyhow, it's simple and useful.
Updates
- Version 1.01: lib_dm_debugMsg( string msg ) addition and function renames.
- Version 1.00: Release.