NvcPrintToFile
Revision as of 10:12, 3 November 2008 by imported>Speedo (Created)
Beta Function
This function has not been fully tested yet, and is not ready to be used in a released mod. It may not have the same function in later versions, may require the script to be recompiled, or simply may be removed. Use for testing purposes only until the author of the function says otherwise.
A command for NVC.
nvcPrintToFile ContainerID filename:string indent:int stringsource:int filenameStrID:int
Outputs the contents of a container to a text file. If the exists, the new information will be appended to the existing file, if not the file is created.
A files must be saved under the path "\My Documents\My Games\Oblivion\NVC", though additional sub-folders may be specified in the filename.
- If indent is < 0 or not specified, tabs are used to indent the ouput - one tab per level.
- If indent is >= 0, indent number of spaces are used to indent the output, with level * indent spaces per level.
Example
int container ... nvcPrintToFile container "MyModName\debug.txt" 1
Would output container to the file "\My Documents\My Games\Oblivion\NVC\MyModName\debug.txt", using one space to indent every level.