Class DebugScript
- Namespace
- SkyrimForge.Papyrus
- Assembly
- SkyrimForge.Game.dll
Functions and comments from Debug.psc.
Note that these functions will do nothing in release console builds
public static class DebugScript
- Inheritance
-
DebugScript
- Inherited Members
Properties
Dispatcher
The dispatcher that binds this script to a form and calls the functions and properties that have no generated member.
public static PapyrusScriptDispatcher Dispatcher { get; }
Property Value
Methods
CenterOnCell(string)
[Obsolete("Uses the Papyrus virtual machine. Prefer GameTarget.CenterOnCell(string).", DiagnosticId = "SKYRIMFORGE0002")]
public static Task CenterOnCell(string asCellname)
Parameters
asCellnamestring
Returns
CenterOnCellAndWait(string)
public static Task<float> CenterOnCellAndWait(string asCellname)
Parameters
asCellnamestring
Returns
CloseUserLog(string)
Closes the specified user log
public static Task CloseUserLog(string asLogName)
Parameters
asLogNamestring
Returns
DBSendPlayerPosition()
Prints out the players position to the database (non-release PC and Xenon builds only)
public static Task DBSendPlayerPosition()
Returns
DebugChannelNotify(string, string)
Outputs the string to a named debug channel (useful on the Xenon currently)
public static Task DebugChannelNotify(string channel, string message)
Parameters
Returns
DumpAliasData(Quest)
Dumps all alias fill information for the quest to the AliasDump log in Logs/Script/
public static Task DumpAliasData(Quest akQuest)
Parameters
akQuestQuest
Returns
GetConfigName()
Returns the config name
public static Task<string> GetConfigName()
Returns
GetPlatformName()
Returns the platform name
public static Task<string> GetPlatformName()
Returns
GetVersionNumber()
Returns the version number string
public static Task<string> GetVersionNumber()
Returns
MessageBox(string)
Displays an in-game message box
[Obsolete("Uses the Papyrus virtual machine. Prefer IMessageBoxPrompter.ShowAsync.", DiagnosticId = "SKYRIMFORGE0002")]
public static Task MessageBox(string asMessageBoxText)
Parameters
asMessageBoxTextstring
Returns
Notification(string)
Displays an in-game notification
[Obsolete("Uses the Papyrus virtual machine. Prefer IDebug.Notification.", DiagnosticId = "SKYRIMFORGE0002")]
public static Task Notification(string asNotificationText)
Parameters
asNotificationTextstring
Returns
OpenUserLog(string)
Opens a user log - fails if the log is already open
public static Task<bool> OpenUserLog(string asLogName)
Parameters
asLogNamestring
Returns
PlayerMoveToAndWait(string)
player.moveto functionality
public static Task<float> PlayerMoveToAndWait(string asDestRef)
Parameters
asDestRefstring
Returns
QuitGame()
Quits the game
public static Task QuitGame()
Returns
SendAnimationEvent(IObjectReference, string)
Forcibly sends an animation event to a reference's behavior graph used to bypass actor limitation on the ObjectReference version
[Obsolete("Uses the Papyrus virtual machine. Prefer ObjectReference.SendAnimationEvent(string).", DiagnosticId = "SKYRIMFORGE0002")]
public static Task SendAnimationEvent(IObjectReference arRef, string asEventName)
Parameters
arRefIObjectReferenceasEventNamestring
Returns
SetFootIK(bool)
Toggles Foot IK on/off
public static Task SetFootIK(bool abFootIK)
Parameters
abFootIKbool
Returns
SetGodMode(bool)
TGM functionality
public static Task SetGodMode(bool abGodMode)
Parameters
abGodModebool
Returns
ShowRefPosition(IObjectReference)
Used to add a tripod to a reference (non-release builds only)
public static Task ShowRefPosition(IObjectReference arRef)
Parameters
arRefIObjectReference
Returns
StartScriptProfiling(string)
Start profiing a specific script - setting doesn't persist across saves Will do nothing on release console builds, and if the Papyrus:bEnableProfiling ini setting is off
public static Task StartScriptProfiling(string asScriptName)
Parameters
asScriptNamestring
Returns
StartStackProfiling()
Start profiling the calling stack - setting doesn't persist across saves Will do nothing on release console builds, and if the Papyrus:bEnableProfiling ini setting is off
public static Task StartStackProfiling()
Returns
StopScriptProfiling(string)
Stop profiling a specific script - setting doesn't persist across saves Will do nothing on release console builds, and if the Papyrus:bEnableProfiling ini setting is off
public static Task StopScriptProfiling(string asScriptName)
Parameters
asScriptNamestring
Returns
StopStackProfiling()
Stop profiling the calling stack - setting doesn't persist across saves Will do nothing on release console builds, and if the Papyrus:bEnableProfiling ini setting is off
public static Task StopStackProfiling()
Returns
TakeScreenshot(string)
Takes a screenshot (Xenon only)
public static Task TakeScreenshot(string asFilename)
Parameters
asFilenamestring
Returns
ToggleAI()
ToggleAI
public static Task ToggleAI()
Returns
ToggleCollisions()
TCL functionality
public static Task ToggleCollisions()
Returns
ToggleMenus()
Toggles menus on/off
public static Task ToggleMenus()
Returns
Trace(string, int)
Outputs the string to the log Severity is one of the following: 0 - Info 1 - Warning 2 - Error
public static Task Trace(string asTextToPrint, int aiSeverity = 0)
Parameters
Returns
TraceAndBox(string, int)
A convenience function to both throw a message box AND write to the trace log, since message boxes sometimes stack in weird ways and won't show up reliably.
public static Task TraceAndBox(string asTextToPrint, int aiSeverity = 0)
Parameters
Returns
TraceConditional(string, bool)
As Trace() but takes a second parameter bool ShowTrace (which if false suppresses the message). Used to turn off and on traces that might be otherwise annoying.
public static Task TraceConditional(string TextToPrint, bool ShowTrace)
Parameters
Returns
TraceStack(string, int)
Outputs the current stack to the log
public static Task TraceStack(string asTextToPrint = "Tracing stack on request", int aiSeverity = 0)
Parameters
Returns
TraceUser(string, string, int)
Outputs the string to a user log - fails if the log hasn't been opened
public static Task<bool> TraceUser(string asUserLog, string asTextToPrint, int aiSeverity = 0)