Difference between revisions of "NifWriteToDisk"
imported>DragoonWraith (New page: This is a command from NifSE. <div id="catlinks" style="width: 90%; margin: 0.5em auto; border-style: solid;"><div style="float: left; margin: 5px 1em 5px 0.5em;">[[Im...) |
imported>DragoonWraith |
||
Line 9: | Line 9: | ||
(bool:success) NifWriteToDisk string:filepath short:nifID | (bool:success) NifWriteToDisk string:filepath short:nifID | ||
Writes the (possibly edited) NIF to disk at the indicated location. The <tt>filepath</tt> is relative to the <tt>Data\Meshes\</tt> folder. '''Do not write use this to write a NIF to the <tt>ni\</tt> temporary directory.''' Especially do not pass the result of [[NifGetPath]] to this function, or else no further changes to the NIF will ever appear (as ''Oblivion'' will see the version you wrote to the disk and never look for NifSE's virtual version). | Writes the (possibly edited) NIF to disk at the indicated location. The <tt>filepath</tt> is relative to the <tt>Data\Meshes\</tt> folder. '''Do not write use this to write a NIF to the <tt>ni\</tt> temporary directory.''' Especially do not pass the result of [[NifGetPath]] to this function, or else no further changes to the NIF will ever appear (as ''Oblivion'' will see the version you wrote to the disk and never look for NifSE's virtual version). '''This function can and will overwrite models already found at that location.''' | ||
The purpose of this function is to allow you to inspect the NIF in NifSkope or similar, so you can double-check that everything is being affected as you want it to. The file may be deleted manually after you have inspected it. | The purpose of this function is to allow you to inspect the NIF in NifSkope or similar, so you can double-check that everything is being affected as you want it to. The file may be deleted manually after you have inspected it. | ||
[[Category:NifSE]] | [[Category:NifSE]] |
Latest revision as of 14:42, 15 May 2011
This is a command from NifSE.
This function is for debugging purposes only. It is not included in non-debug builds of NifSE, and should never be included in released mods. This function produces a permanent file on the user's hard-drive, and NifSE has no method of deleting that file once created.
Syntax
(bool:success) NifWriteToDisk string:filepath short:nifID
Writes the (possibly edited) NIF to disk at the indicated location. The filepath is relative to the Data\Meshes\ folder. Do not write use this to write a NIF to the ni\ temporary directory. Especially do not pass the result of NifGetPath to this function, or else no further changes to the NIF will ever appear (as Oblivion will see the version you wrote to the disk and never look for NifSE's virtual version). This function can and will overwrite models already found at that location.
The purpose of this function is to allow you to inspect the NIF in NifSkope or similar, so you can double-check that everything is being affected as you want it to. The file may be deleted manually after you have inspected it.