Debug Script: Difference between revisions
Jump to navigation
Jump to search
imported>Jog |
imported>CraftySentinel m (→Global Functions: Formatting Change) |
||
| Line 14: | Line 14: | ||
== Global Functions == |
== Global Functions == |
||
'''Function [[CenterOnCell - Debug|CenterOnCell]](string asCellName)''' |
|||
*Teleports the player to the specified cell. |
|||
{|class="wikitable" width =100% |
|||
'''float Function [[CenterOnCellAndWait - Debug|CenterOnCellAndWait]](string asCellName)''' |
|||
!style="text-align:left;"|Function |
|||
*Teleports the player to the specified cell and doesn't return until he gets there. |
|||
!style="text-align:left;"|Description |
|||
|- |
|||
|[[CenterOnCell - Debug|'''CenterOnCell'''(String ''asCellName'')]] |
|||
|Teleports the player to the specified cell. |
|||
|- |
|||
|[[CenterOnCellAndWait - Debug|Float '''CenterOnCellAndWait'''(String ''asCellName'')]] |
|||
'''float Function [[PlayerMoveToAndWait - Debug|PlayerMoveToAndWait]](string asDestRef)''' |
|||
|Teleports the player to the specified cell and doesn't return until he gets there. |
|||
|- |
|||
|[[PlayerMoveToAndWait - Debug|Float '''PlayerMoveToAndWait'''(String ''asDestRef'')]] |
|||
'''Function [[CloseUserLog - Debug|CloseUserLog]](string asLogName)''' |
|||
|Teleports the player to the specified reference and doesn't return until he gets there. |
|||
*Closes the specified user log |
|||
|- |
|||
|[[CloseUserLog - Debug|'''CloseUserLog'''(String ''asLogName'')]] |
|||
'''Function [[DumpAliasData - Debug|DumpAliasData]](Quest akQuest)''' |
|||
|Closes the specified user log |
|||
*Dumps all alias fill information to the alias dump log. |
|||
|- |
|||
|[[DumpAliasData - Debug|'''DumpAliasData'''(Quest ''akQuest'')]] |
|||
'''string Function [[GetConfigName - Debug|GetConfigName]]()''' |
|||
|Dumps all alias fill information to the alias dump log. |
|||
*Obtains the build configuration name |
|||
|- |
|||
|[[GetConfigName - Debug|String '''GetConfigName'''()]] |
|||
'''string Function [[GetPlatformName - Debug|GetPlatformName]]()''' |
|||
|Obtains the build configuration name |
|||
|- |
|||
|[[GetPlatformName - Debug|String '''GetPlatformName'''()]] |
|||
'''string Function [[GetVersionNumber - Debug|GetVersionNumber]]()''' |
|||
|Obtains the current platform name |
|||
|- |
|||
|[[GetVersionNumber - Debug|String '''GetVersionNumber'''()]] |
|||
'''Function [[MessageBox - Debug|MessageBox]](string asMessageBoxText)''' |
|||
|Obtains the current version number |
|||
*Displays an OK message box with the specified text |
|||
|- |
|||
|[[MessageBox - Debug|'''MessageBox'''(String ''asMessageBoxText'')]] |
|||
'''Function [[Notification - Debug|Notification]](string asNotificationText)''' |
|||
|Displays an OK message box with the specified text |
|||
|- |
|||
|[[Notification - Debug|'''Notification'''(String ''asNotificationText'')]] |
|||
'''bool Function [[OpenUserLog - Debug|OpenUserLog]](string asLogName)''' |
|||
|Displays an in-game notification message (on the top-left corner) |
|||
*Opens the specified user log (fails if already open) |
|||
|- |
|||
|[[OpenUserLog - Debug|Bool '''OpenUserLog'''(String ''asLogName'')]] |
|||
'''Function [[QuitGame - Debug|QuitGame]]()''' |
|||
|Opens the specified user log (fails if already open) |
|||
*Quits the game |
|||
|- |
|||
|[[QuitGame - Debug|'''QuitGame'''()]] |
|||
'''Function [[SetFootIK - Debug|SetFootIK]](bool abFootIK)''' |
|||
|Quits the game |
|||
*Turns foot IK on and off |
|||
|- |
|||
|[[SetFootIK - Debug|'''SetFootIK'''(Bool ''abFootIK'')]] |
|||
|Turns foot IK on and off |
|||
|- |
|||
|[[SetGodMode - Debug|'''SetGodMode'''(Bool ''abGodMode'')]] |
|||
'''Function [[SendAnimationEvent - Debug|SendAnimationEvent]](ObjectReference arRef, string asEventName)''' |
|||
|Turns god mode on and off |
|||
*Sends an animation event to the specified reference. |
|||
|- |
|||
|[[SendAnimationEvent - Debug|'''SendAnimationEvent'''(ObjectReference ''arRef'', String ''asEventName'')]] |
|||
'''Function [[StartScriptProfiling - Debug|StartScriptProfiling]](string asScriptName)''' |
|||
|Sends an animation event to the specified reference. |
|||
*Starts profiling a specific Papyrus script |
|||
|- |
|||
|[[StartScriptProfiling - Debug|'''StartScriptProfiling'''(String ''asScriptName'')]] |
|||
'''Function [[StartStackProfiling - Debug|StartStackProfiling]]()''' |
|||
|Starts profiling a specific Papyrus script |
|||
|- |
|||
|[[StartStackProfiling - Debug|'''StartStackProfiling'''()]] |
|||
'''Function [[StopScriptProfiling - Debug|StopScriptProfiling]](string asScriptName)''' |
|||
|Starts profiling the calling stack |
|||
|- |
|||
|[[StopScriptProfiling - Debug|'''StopScriptProfiling'''(String ''asScriptName'')]] |
|||
'''Function [[StopStackProfiling - Debug|StopStackProfiling]]()''' |
|||
|Stops profiling a specific Papyrus script |
|||
|- |
|||
|[[StopStackProfiling - Debug|'''StopStackProfiling'''()]] |
|||
'''Function [[ToggleAI - Debug|ToggleAI]]()''' |
|||
|Stops profiling the calling stack |
|||
*Turns AI on and off. |
|||
|- |
|||
|[[ToggleAI - Debug|'''ToggleAI'''()]] |
|||
'''Function [[ToggleCollisions - Debug|ToggleCollisions]]()''' |
|||
|Turns AI on and off. |
|||
|- |
|||
|[[ToggleCollisions - Debug|'''ToggleCollisions'''()]] |
|||
'''Function [[ToggleMenus - Debug|ToggleMenus]]()''' |
|||
|Turns collision on and off. |
|||
|- |
|||
|[[ToggleMenus - Debug|'''ToggleMenus'''()]] |
|||
'''Function [[Trace - Debug|Trace]](string asTextToPrint, int aiSeverity)''' |
|||
|Toggles menus on and off. |
|||
*Outputs the string to the Papyrus log and debug text page |
|||
|- |
|||
|[[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'')]] |
|||
'''Function [[TraceConditional - Debug|TraceConditional]](string TextToPrint, bool ShowTrace)''' |
|||
|Outputs the string to the log and puts up a message box |
|||
|- |
|||
|[[TraceConditional - Debug|'''TraceConditional'''(String ''TextToPrint'', Bool ''ShowTrace'')]] |
|||
'''Function [[TraceStack - Debug|TraceStack]](string asTextToPrint, int aiSeverity)''' |
|||
|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 |
|||
|- |
|||
|[[TraceUser - Debug|Bool '''TraceUser'''(String ''asUserLog'', String ''asTextToPrint'', Int ''aiSeverity'')]] |
|||
|Outputs the string to the specified user log (and debug text page) |
|||
|- |
|||
|} |
|||
== Member Functions == |
== Member Functions == |
||
Revision as of 03:53, 24 October 2013
Collection of debug-related global functions
Definition
ScriptName DebugProperties
None
Global Functions
| Function | Description |
|---|---|
| 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
None
Events
None