I do get the odd random crash so for fun I ran this on my meshes folder and there are hundreds of meshes with External emittance flag mismatch and Duplicate children names, which both lead to random crashes according to your readme. Is there a way to batch correct these meshes? Can it be done using your Sniff tool? Otherwise I guess I'll just live with the odd random crash.
Thanks to EAB961996 for showing me how to get an error report and stop the program closing immediately after it opens. Problem is the command window instantly closes if I type anything in it so I cannot run any commands. [UPDATE For anyone with the same problem: right click the "NifScan.bat" file and click Edit. and in the text file type cmd /k Now the command window should stay open].
New problem: the command is not recognized, and I get the following message: "-fixdds is not recognized as an internal or external command, operable program or batch file" Is the hyphen necessary? Anyway, same message i.e. not recognized whether I type -fixdds or fixdds So, could someone please tell me how to run this fixdds command?
Thanks. By the way I've added all of the NifScan's checks and more to the "Check for errors" operation in my another tool Sniff https://www.nexusmods.com/newvegas/mods/67829
Unlike NifScan it has a GUI and should work faster because of multithreading.
Seems some people are having trouble with it closing right after it opens for no reason, so here's the fix that worked for me:
1. Extract NifScan.exe from the archive to the folder containing the meshes/textures you want to scan
2. Create a new text document in that same folder and name it "NifScan.bat", if it warns you about changing the file name extension, click Yes. Make SURE it only says "NifScan.bat" and not "NifScan.bat.txt"
3. Right click the "NifScan.bat" file and click Edit.
4. If the folder your meshes/textures are in that you want to be scanned are on a different drive (such as D:\ or E:\) make sure you type "E:" or whichever drive letter it's on, and then hit enter and then paste the following into the text editor:
cd\ cd C:\Users\YourName\Desktop\NifScan Meshes or Textures You Want Scanned\ NifScan.exe NifScan.exe >errors.txt pause
So for example if my folder was on a different drive the file would look like:
E: cd\ cd C:\Users\YourName\Desktop\NifScan Meshes or Textures You Want Scanned\ NifScan.exe NifScan.exe >errors.txt pause
5. Finally, change the line below "cd\" to the file path that leads to the folder that has the meshes/textures you want to run NifScan on. This can be easily done by opening the folder, right-clicking the address bar (the bar that has the refresh button at the end of it) and clicking "Copy address", then pasting. The line should look exactly as either of the examples above depending on your drive, except with YOUR folder path instead of this one. Save and close the document.
6. Now double click on "NifScan.bat", the file we just edited, to run NifScan. This bat file uses a command that will also create an "errors.txt" file in the same folder which is just a log file that writes down everything NifScan says, for convenience.
I hope this helps someone. :) Sorry for it being ridiculously long.
Thanks for this. I found it worked when I edited the .bat to be:
NifScan.exe NifScan.exe >errors.txt pause
The application scans all subdirectories so now I can drop the exe and bat into the textures folder of any Oldrim mod, run it from the bat and read the output
Right click the "NifScan.bat" file and click Edit what do you mean by that ??? what do you do after edit want to you need to write inside nifscan.bat ???
I've launched the command prompt from mo2 so that I am inside the skyrim directory in the filesystem... I launch Nifscan from there but it keep scanning zero files.
NifScan 0.3.2, starting to scan...
[Done] Checked 0 file(s) Does not matter from where I run it, it scan 0 files.
@MrSuspciousX - I think you should carefully read the notes, use the tool effectively, before writing your observations. Zilav has created a very powerful NIF tool, and you should be grateful to him.
EDIT: When I scan all my SSE mods, it finds various issues and then gets to this section where it starts reporting a ton of "Error reading file" on DDS files and reports nothing else than that until the end of the log. What went wrong as it can't read a lot of very popular mods like folkvangr, cc's fort dawnguard, cathedral 3D pine grass, and many more?
wizkid signs-30481-2-3-1609391985.1\meshes\clutter\signage\windhelm\signwhblacksmith01.nif Block [24]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty Block [32]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty Block [40]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty Block [60]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\!_rudy_misc\bed_lether_n.dds Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairlong.dds Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairlong_n.dds Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairshaved.dds Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairshort.dds
"create a batch file open Notepad and enter Nifscan.exe -fixdds (or whatever switch you want) @pause and click File > Save As > MyFile.bat > Save as type: All Files (*.*) to save it as a .bat file and not .txt make sure Nifscan.exe and MyFile.bat are in the same folder as the meshes Double click the created .bat file to launch it it'll perform the action on all the files in the folder and subfolders"
Nothing happens. I double click the bat file? The exe? Drag and drop the folder? Nothing happens.
Following the instructions left by EAB, I placed NifScan app into a mod folder, created the Bat file, placed the directory of the mod on /cdm but I still have problems. It says that the system cannot find the directory, and also that NifScan.exe is not elegible, somehow. My apologies for being unable to quote what exactly cmd tells me is wrong, it's in Russian. I hope you can tell me what I can do to fix this. If it might be of any significance, my PC username contain cyrillic symbols and mod organizer stores mod folders in AppData.
Okay..so i placed the exe in my mods folder of mo2. It starts up, scans, gets some errors and after a few minutes closes itself without any helpfull message or a chance to put in some commands :/ whattodo?
Yes, don't run this from MO2. Since this involves a command prompt this should be run from your desktop/main drive containing your OS and let the program do the rest after you scan the folder contents which should also include the location and drive of what you're scanning.
277 comments
Problem is the command window instantly closes if I type anything in it so I cannot run any commands.
[UPDATE For anyone with the same problem: right click the "NifScan.bat" file and click Edit. and in the text file type cmd /k
Now the command window should stay open].
New problem: the command is not recognized, and I get the following message:
"-fixdds is not recognized as an internal or external command, operable program or batch file"
Is the hyphen necessary? Anyway, same message i.e. not recognized whether I type -fixdds or fixdds
So, could someone please tell me how to run this fixdds command?
https://www.nexusmods.com/newvegas/mods/67829
Unlike NifScan it has a GUI and should work faster because of multithreading.
1. Extract NifScan.exe from the archive to the folder containing the meshes/textures you want to scan
2. Create a new text document in that same folder and name it "NifScan.bat", if it warns you about changing the file name extension, click Yes. Make SURE it only says "NifScan.bat" and not "NifScan.bat.txt"
3. Right click the "NifScan.bat" file and click Edit.
4. If the folder your meshes/textures are in that you want to be scanned are on a different drive (such as D:\ or E:\) make sure you type "E:" or whichever drive letter it's on, and then hit enter and then paste the following into the text editor:
cd\
cd C:\Users\YourName\Desktop\NifScan Meshes or Textures You Want Scanned\
NifScan.exe
NifScan.exe >errors.txt
pause
So for example if my folder was on a different drive the file would look like:
E:
cd\
cd C:\Users\YourName\Desktop\NifScan Meshes or Textures You Want Scanned\
NifScan.exe
NifScan.exe >errors.txt
pause
5. Finally, change the line below "cd\" to the file path that leads to the folder that has the meshes/textures you want to run NifScan on. This can be easily done by opening the folder, right-clicking the address bar (the bar that has the refresh button at the end of it) and clicking "Copy address", then pasting. The line should look exactly as either of the examples above depending on your drive, except with YOUR folder path instead of this one. Save and close the document.
6. Now double click on "NifScan.bat", the file we just edited, to run NifScan. This bat file uses a command that will also create an "errors.txt" file in the same folder which is just a log file that writes down everything NifScan says, for convenience.
I hope this helps someone. :) Sorry for it being ridiculously long.
I found it worked when I edited the .bat to be:
NifScan.exe
NifScan.exe >errors.txt
pause
The application scans all subdirectories so now I can drop the exe and bat into the textures folder of any Oldrim mod, run it from the bat and read the output
NifScan 0.3.2, starting to scan...
[Done] Checked 2 file(s)
Is that supposed to mean there are no errors? If so, why is my game crashing when I go near these meshes?
NifScan 0.3.2, starting to scan...
[Done] Checked 0 file(s)
Does not matter from where I run it, it scan 0 files.
And no, I didnt run it from an organizer
"A simple command line utility ..."
If you don't know what "command line" means, then this tool is not for you.
Zilav has created a very powerful NIF tool, and you should be grateful to him.
Nifscan.exe -nowvc >niferrors.txt
start niferrors.txt
pause
Run the batch file and it should open niferrors.txt when it's done. It may appear to hang for a while as all the output is going to the TXT file.
wizkid signs-30481-2-3-1609391985.1\meshes\clutter\signage\windhelm\signwhblacksmith01.nif
Block [24]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty
Block [32]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty
Block [40]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty
Block [60]: Has Vertex Colors flag in NiTriShapeData must match SLSF2_Vertex_Colors in BSLightingShaderProperty
Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\!_rudy_misc\bed_lether_n.dds
Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairlong.dds
Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairlong_n.dds
Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairshaved.dds
Error reading file - skyrim 2020 8.4.2 - 3 of 3 - other - 4k to 2k-2347-8-4-2-1624479907\textures\actors\character\hair\hairshort.dds
"create a batch file open Notepad and enter
Nifscan.exe -fixdds (or whatever switch you want)
@pause
and click File > Save As > MyFile.bat > Save as type: All Files (*.*) to save it as a .bat file and not .txt
make sure Nifscan.exe and MyFile.bat are in the same folder as the meshes
Double click the created .bat file to launch it it'll perform the action on all the files in the folder and subfolders"
Nothing happens. I double click the bat file? The exe? Drag and drop the folder? Nothing happens.
My apologies for being unable to quote what exactly cmd tells me is wrong, it's in Russian.
I hope you can tell me what I can do to fix this. If it might be of any significance, my PC username contain cyrillic symbols and mod organizer stores mod folders in AppData.