12/8/2023 0 Comments Geck script debuggerThe ToString($) command converts anything to a string for printing. ![]() It is helpful to reliably know what version of your mod, and any requirements it might have that the user has installed. Print "NX (An NVSE plugin) Version: " + $(NX_GetVersion) Print "NVSE Version: " + $(GetNVSEVersion) + "." + $(GetNVSERevision) + "." + $(GetNVSEBeta) Print "My Mod's Master Version: " + $MyMasterMainQuest.version Print "My Mod Version: " + $MyModMainQuest.version The debug dump file name will look like: "MyModName-Debug-Dump-YEAR-MONTH-DAY-HOUR-MINUTE-SECOND.txt" ![]() The Print command outputs text to the console, and supports many convenient features. The Con_SCOF command writes all console output to the specified file, which will be found in the main game directory of the user. Print "Starting debug dump to file: " + file_nameĪ String Variable and the GetUserTime function can be used to create a unique and recognizable file name for your dump, based on your mod name and the real life time it is created. Above is the variable declaration for the proceeding examples.įoreach entry <- (Ar_List "Year", "Month", "Day", "Hour", "Minute", "Second") ![]() This article describes a template of useful features you may want to include in a debug dump script.Ī User Defined Function is a convenient way to run the script, although it could just as easily be on object OnAdd or spell ScriptEffectStart. This is highly useful when attempting to solve third party bug reports, as all the information you need may be provided by the user simply uploading you a text file, created by running a script which could be triggered by clicking an MCM button, or by console adding some object or spell, etc. There are various functions in NVSE that allow you to dump debugging information from any game to a text file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |