Difference between revisions of "Debug Script"

From the CreationKit Wiki
Jump to navigation Jump to search
imported>Henning
 
imported>CraftySentinel
(Revert to List)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]
Collection of debug-related global functions
Collection of debug-related global functions


Line 12: Line 8:
== Properties ==
== Properties ==
None
None


== Global Functions ==
== Global Functions ==
*Function [[CenterOnCell - Debug|CenterOnCell]](string asCellName)
 
**Teleports the player to the specified cell.
:'''[[CenterOnCell - Debug|CenterOnCell]](String ''asCellName'')'''
*float Function [[CenterOnCellAndWait - Debug|CenterOnCellAndWait]](string asCellName)
:*Teleports the player to the specified cell.
**Teleports the player to the specified cell and doesn't return until he gets there.
 
*float Function [[PlayerMoveToAndWait - Debug|PlayerMoveToAndWait]](string asDestRef)
:'''Float [[CenterOnCellAndWait - Debug|CenterOnCellAndWait]](String ''asCellName'')'''
**Teleports the player to the specified reference and doesn't return until he gets there.
:*Teleports the player to the specified cell and doesn't return until he gets there.
*Function [[CloseUserLog - Debug|CloseUserLog]](string asLogName)
 
**Closes the specified user log
:'''Float [[PlayerMoveToAndWait - Debug|PlayerMoveToAndWait]](String ''asDestRef'')'''
*Function [[DumpAliasData - Debug|DumpAliasData]](Quest akQuest)
:*Teleports the player to the specified reference and doesn't return until he gets there.
**Dumps all alias fill information to the alias dump log.
 
*string Function [[GetConfigName - Debug|GetConfigName]]()
:'''[[CloseUserLog - Debug|CloseUserLog]](String ''asLogName'')'''
**Obtains the build configuration name
:*Closes the specified user log
*string Function [[GetPlatformName - Debug|GetPlatformName]]()
 
**Obtains the current platform name
:'''[[DumpAliasData - Debug|DumpAliasData]](Quest ''akQuest'')'''
*string Function [[GetVersionNumber - Debug|GetVersionNumber]]()
:*Dumps all alias fill information to the alias dump log.
**Obtains the current version number
 
*Function [[MessageBox - Debug|MessageBox]](string asMessageBoxText)
:'''String [[GetConfigName - Debug|GetConfigName]]()'''
**Displays an OK message box with the specified text
:*Obtains the build configuration name
*Function [[Notification - Debug|Notification]](string asNotificationText)
 
**Displays an in-game notification message (on the top-left corner)
:'''String [[GetPlatformName - Debug|GetPlatformName]]()'''
*bool Function [[OpenUserLog - Debug|OpenUserLog]](string asLogName)
:*Obtains the current platform name
**Opens the specified user log (fails if already open)
 
*Function [[QuitGame - Debug|QuitGame]]()
:'''String [[GetVersionNumber - Debug|GetVersionNumber]]()'''
**Quits the game
:*Obtains the current version number
*Function [[SetFootIK - Debug|SetFootIK]](bool abFootIK)
 
**Turns foot IK on and off
:'''[[MessageBox - Debug|MessageBox]](String ''asMessageBoxText'')'''
*Function [[SetGodMode - Debug|SetGodMode]](bool abGodMode)
:*Displays an OK message box with the specified text
**Turns god mode on and off
 
*Function [[SendAnimationEvent - Debug|SendAnimationEvent]](ObjectReference arRef, string asEventName)
:'''[[Notification - Debug|Notification]](String ''asNotificationText'')'''
**Sends an animation event to the specified reference.
:*Displays an in-game notification message (on the top-left corner)
*Function [[StartScriptProfiling - Debug|StartScriptProfiling]](string asScriptName)
 
**Starts profiling a specific Papyrus script
:'''Bool [[OpenUserLog - Debug|OpenUserLog]](String ''asLogName'')'''
*Function [[StartStackProfiling - Debug|StartStackProfiling]]()
:*Opens the specified user log (fails if already open)
**Starts profiling the calling stack
 
*Function [[StopScriptProfiling - Debug|StopScriptProfiling]](string asScriptName)
:'''[[QuitGame - Debug|QuitGame]]()'''
**Stops profiling a specific Papyrus script
:*Quits the game
*Function [[StopStackProfiling - Debug|StopStackProfiling]]()
 
**Stops profiling the calling stack
:'''[[SetFootIK - Debug|SetFootIK]](Bool ''abFootIK'')'''
*Function [[ToggleAI - Debug|ToggleAI]]()
:*Turns foot IK on and off
**Turns AI on and off.
 
*Function [[ToggleCollisions - Debug|ToggleCollisions]]()
:'''[[SetGodMode - Debug|SetGodMode]](Bool ''abGodMode'')'''
**Turns collision on and off.
:*Turns god mode on and off
*Function [[ToggleMenus - Debug|ToggleMenus]]()
 
**Toggles menus on and off.
:'''[[SendAnimationEvent - Debug|SendAnimationEvent]](ObjectReference ''arRef'', String ''asEventName'')'''
*Function [[Trace - Debug|Trace]](string asTextToPrint, int aiSeverity)
:*Sends an animation event to the specified reference.
**Outputs the string to the Papyrus log and debug text page
 
*Function [[TraceAndBox - Debug|TraceAndBox]](string asTextToPrint, int aiSeverity)
:'''[[StartScriptProfiling - Debug|StartScriptProfiling]](String ''asScriptName'')'''
**Outputs the string to the log and puts up a message box
:*Starts profiling a specific Papyrus script
*Function [[TraceConditional - Debug|TraceConditional]](string TextToPrint, bool ShowTrace)
 
**Outputs the string to the Papyrus log, but only if the condition is true
:'''[[StartStackProfiling - Debug|StartStackProfiling]]()'''
*Function [[TraceStack - Debug|TraceStack]](string asTextToPrint, int aiSeverity)
:*Starts profiling the calling stack
**Outputs the string to the Papyrus log and debug text page, along with a full call stack
 
*bool Function [[TraceUser - Debug|TraceUser]](string asUserLog, string asTextToPrint, int aiSeverity)
:'''[[StopScriptProfiling - Debug|StopScriptProfiling]](String ''asScriptName'')'''
**Outputs the string to the specified user log (and debug text page)
:*Stops profiling a specific Papyrus script
 
:'''[[StopStackProfiling - Debug|StopStackProfiling]]()'''
:*Stops profiling the calling stack
 
:'''[[ToggleAI - Debug|ToggleAI]]()'''
:*Turns AI on and off.
 
:'''[[ToggleCollisions - Debug|ToggleCollisions]]()'''
:*Turns collision on and off.
 
:'''[[ToggleMenus - Debug|ToggleMenus]]()'''
:*Toggles menus on and off.
 
:'''[[Trace - Debug|Trace]](String ''asTextToPrint'', Int ''aiSeverity'')'''
:*Outputs the string to the Papyrus log and debug text page
 
:'''[[TraceAndBox - Debug|TraceAndBox]](String ''asTextToPrint'', Int ''aiSeverity'')'''
:*Outputs the string to the log and puts up a message box
 
:'''[[TraceConditional - Debug|TraceConditional]](String ''TextToPrint'', Bool ''ShowTrace'')'''
:*Outputs the string to the Papyrus log, but only if the condition is true
 
:'''[[TraceStack - Debug|TraceStack]](String ''asTextToPrint'', Int ''aiSeverity'')'''
:*Outputs the string to the Papyrus log and debug text page, along with a full call stack
 
:'''Bool [[TraceUser - Debug|TraceUser]](String ''asUserLog'', String ''asTextToPrint'', Int ''aiSeverity'')'''
:*Outputs the string to the specified user log (and debug text page)
 


== Member Functions ==
== Member Functions ==
None
None


== Events ==
== Events ==
None
None
[[Category:Scripting]]
[[Category:Papyrus]]
[[Category:Script Objects]]

Latest revision as of 06:48, 2 February 2014

Collection of debug-related global functions

Definition[edit | edit source]

ScriptName Debug

Properties[edit | edit source]

None


Global Functions[edit | edit source]

CenterOnCell(String asCellName)
  • Teleports the player to the specified cell.
Float CenterOnCellAndWait(String asCellName)
  • Teleports the player to the specified cell and doesn't return until he gets there.
Float PlayerMoveToAndWait(String asDestRef)
  • Teleports the player to the specified reference and doesn't return until he gets there.
CloseUserLog(String asLogName)
  • Closes the specified user log
DumpAliasData(Quest akQuest)
  • Dumps all alias fill information to the alias dump log.
String GetConfigName()
  • Obtains the build configuration name
String GetPlatformName()
  • Obtains the current platform name
String GetVersionNumber()
  • Obtains the current version number
MessageBox(String asMessageBoxText)
  • Displays an OK message box with the specified text
Notification(String asNotificationText)
  • Displays an in-game notification message (on the top-left corner)
Bool OpenUserLog(String asLogName)
  • Opens the specified user log (fails if already open)
QuitGame()
  • Quits the game
SetFootIK(Bool abFootIK)
  • Turns foot IK on and off
SetGodMode(Bool abGodMode)
  • Turns god mode on and off
SendAnimationEvent(ObjectReference arRef, String asEventName)
  • Sends an animation event to the specified reference.
StartScriptProfiling(String asScriptName)
  • Starts profiling a specific Papyrus script
StartStackProfiling()
  • Starts profiling the calling stack
StopScriptProfiling(String asScriptName)
  • Stops profiling a specific Papyrus script
StopStackProfiling()
  • Stops profiling the calling stack
ToggleAI()
  • Turns AI on and off.
ToggleCollisions()
  • Turns collision on and off.
ToggleMenus()
  • Toggles menus on and off.
Trace(String asTextToPrint, Int aiSeverity)
  • Outputs the string to the Papyrus log and debug text page
TraceAndBox(String asTextToPrint, Int aiSeverity)
  • Outputs the string to the log and puts up a message box
TraceConditional(String TextToPrint, Bool ShowTrace)
  • Outputs the string to the Papyrus log, but only if the condition is true
TraceStack(String asTextToPrint, Int aiSeverity)
  • Outputs the string to the Papyrus log and debug text page, along with a full call stack
Bool TraceUser(String asUserLog, String asTextToPrint, Int aiSeverity)
  • Outputs the string to the specified user log (and debug text page)


Member Functions[edit | edit source]

None


Events[edit | edit source]

None