Skyrim

File information

Last updated

Original upload

Created by

zilav

Uploaded by

zilav

Virus scan

Safe to use

Tags for this mod

277 comments

  1. LeanWolf
    LeanWolf
    • premium
    • 915 kudos
    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.
  2. chrismartin
    chrismartin
    • premium
    • 2 kudos
    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?
  3. mbgreenleaf
    mbgreenleaf
    • premium
    • 0 kudos
    This has saved my game, and you, dearest creator, have my undying gratitude. Cheers!
    1. zilav
      zilav
      • premium
      • 613 kudos
      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.
    2. Bijoudama
      Bijoudama
      • premium
      • 0 kudos
      dude you're so cool
    3. mattski123
      mattski123
      • supporter
      • 88 kudos
      saweeeeeeeeetttttttttt
  4. EAB961996
    EAB961996
    • premium
    • 112 kudos
    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.
    1. RobWed
      RobWed
      • member
      • 1 kudos
      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
    2. StuntedWriter0
      StuntedWriter0
      • premium
      • 0 kudos
      You, Sir, are a god damned hero.
    3. gabinator717
      gabinator717
      • premium
      • 0 kudos
      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 ???
    4. FlRELYNX
      FlRELYNX
      • member
      • 0 kudos
      @gabinator717 You insert exactly what he/she posted under #4. Depending on your directory.
    5. Kadraeus
      Kadraeus
      • premium
      • 444 kudos
      I did all this and the error file just says:

      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?
    6. zilav
      zilav
      • premium
      • 613 kudos
      No errors that NifScan checks for, which are just a few the most common ones out of thousands.
    7. DarkenPixie
      DarkenPixie
      • supporter
      • 0 kudos
      This worked perfectly! Thank you :)
    8. EAB961996
      EAB961996
      • premium
      • 112 kudos
      No problem :)
    9. Skybroom
      Skybroom
      • supporter
      • 78 kudos
      No way it creates "errors.txt"
    10. DiogoDX
      DiogoDX
      • premium
      • 7 kudos
      Worked great. Many thanks.
    11. duzins
      duzins
      • supporter
      • 0 kudos
      You have saved me so much time, I salute you!
  5. borninbronx
    borninbronx
    • supporter
    • 0 kudos
    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.
  6. MrSuspiciousX
    MrSuspiciousX
    • supporter
    • 0 kudos
    Trash. Scans everything then closes before you can look and see what the problem is.
    And no, I didnt run it from an organizer
    1. zilav
      zilav
      • premium
      • 613 kudos
      The first line from the description
      "A simple command line utility ..."

      If you don't know what "command line" means, then this tool is not for you.
    2. BlueGunk
      BlueGunk
      • premium
      • 105 kudos
      @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.
    3. brentw89
      brentw89
      • premium
      • 7 kudos
      Create a text file called Nifscanbatch.bat in notepad that has the following and save it in your mod folder with the nifscan.exe:

      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. 
  7. brentw89
    brentw89
    • premium
    • 7 kudos
    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
  8. Frankenchokey
    Frankenchokey
    • member
    • 2 kudos
    Found a "guide" online:

    "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.
  9. DreamSoulshine
    DreamSoulshine
    • member
    • 0 kudos
    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.
  10. Ceddie999
    Ceddie999
    • supporter
    • 1 kudos
    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?
    1. KainThePheonix
      KainThePheonix
      • premium
      • 52 kudos
      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.