Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question Could not load the file 'NiceIO'

Discussion in 'Visual Scripting' started by SuchlikeSleet29, Jun 20, 2023.

  1. SuchlikeSleet29

    SuchlikeSleet29

    Joined:
    Feb 4, 2017
    Posts:
    3
    I am getting this log warning 'Could not load the file 'NiceIO'' in Unity 2022.3.1f1 whenever i add a script Machine or StateMachine on a GameObject. I am using Input System package. Please help. Thank you.
     

    Attached Files:

  2. SuchlikeSleet29

    SuchlikeSleet29

    Joined:
    Feb 4, 2017
    Posts:
    3
    So not so active forum or this community .. feels like Unity killed off Visual Scripting(newer bolt).. i better move to playmaker or flowcanvas for visual scripting purposes. Thankyou
     
  3. GregMcM

    GregMcM

    Joined:
    Jan 14, 2018
    Posts:
    10
    I would respectfully disagree... I think Unity is still actively developing for Visual Scripting.

    In answer to your issue with the NiceIO warning, is it possible you moved or renamed the project folder?

    I was having the same warning pop up when I copied my project to another Mac to do some testing... I had manually renamed my project folder in the Mac's Finder. I don't think Unity liked that and hence this warning getting thrown. It most likely is a bug, but I haven't had time to nail it down and submit a bug report on it.
     
  4. iScriptz

    iScriptz

    Joined:
    Jul 4, 2018
    Posts:
    11
    This "NiceIO" error started appearing for me after I had my project build to Android for the first time. Was strictly testing on iOS with 0 problems for weeks.

    I did do a small test by having Unity re-import the assets folder. The warning didn't appear the first time I played it in Editor. Now every subsequent Play it does.

    Haven't been bothered to try debugging more. No where do I see a mention of "NiceIO" inside of the VS package unless I'm overlooking it.
     
  5. rie_unity

    rie_unity

    Joined:
    Mar 15, 2022
    Posts:
    11
    I'm having this exact same issue, bumping this up to see if there was ever a solution.
     
  6. frmorm

    frmorm

    Joined:
    May 25, 2023
    Posts:
    1
    Same here, ironically I'm not even using VisualScripting, I just played a bit with it at one point and since then I'm stuck with the error.

    And same thing, if I do Reimport All the warning doesn't show on first play, but will show on subsequent plays.
     
    iScriptz likes this.
  7. iScriptz

    iScriptz

    Joined:
    Jul 4, 2018
    Posts:
    11
    I "fixed" the error in my error log by commenting out the "debug.log(e.message)" in the try/catch that was throwing it.

    I figured if Unity doesn't care about fixing it - why should I. :)
     
    ValentineCat and KOCEILA18 like this.
  8. Royce17

    Royce17

    Joined:
    May 9, 2020
    Posts:
    4
    If you don't need Visual Scripting package, just remove it. And everything works fine, annoying warning disappears.
     
  9. Dodd_

    Dodd_

    Joined:
    Aug 15, 2021
    Posts:
    1
    Here is my solution, works fine.
    Code (CSharp):
    1.        [InitializeOnEnterPlayMode]
    2.         public static void DisableCodebaseWarnings()
    3.         {
    4.             Debug.unityLogger.logEnabled = false;
    5.             var _ = Codebase.assemblies;
    6.             Debug.unityLogger.logEnabled = true;
    7.         }
     
  10. ValentineCat

    ValentineCat

    Joined:
    Feb 15, 2021
    Posts:
    10
    just commenting this out doesn't solve it for me, it won't build and run to android. the only way I can do this is to build the APK and manually dragging to my phone...

    errors:

    Could not load the file 'NiceIO'.
    UnityEngine.Debug:LogWarning (object)
    Unity.VisualScripting.Codebase:IsEditorAssembly (System.Reflection.Assembly,System.Collections.Generic.HashSet`1<string>) (at ./Library/PackageCache/com.unity.visualscripting@1.9.1/Editor/VisualScripting.Core/Reflection/Codebase.cs:383)
    Unity.VisualScripting.Codebase:IsRuntimeAssembly (System.Reflection.Assembly) (at ./Library/PackageCache/com.unity.visualscripting@1.9.1/Editor/VisualScripting.Core/Reflection/Codebase.cs:404)
    Unity.VisualScripting.Codebase:.cctor () (at ./Library/PackageCache/com.unity.visualscripting@1.9.1/Editor/VisualScripting.Core/Reflection/Codebase.cs:46)
     
  11. Hypnotoad0

    Hypnotoad0

    Joined:
    Jun 22, 2013
    Posts:
    40
    That's just a warning my dude, not the exception causing your build to fail.
     
  12. ValentineCat

    ValentineCat

    Joined:
    Feb 15, 2021
    Posts:
    10
    So can you give more help? I can build the APK and drag it to my phone, it works. I cannot get the Build and Run to work, it fails with this warning, and it's very possible that the warning is incorrect and there's another issue preventing the build and run from working. would be great to know more about how to fix it.
     
  13. qincai201

    qincai201

    Joined:
    Oct 28, 2023
    Posts:
    1
    Try removing "com.unity.visualscripting" from /Your Project/Package/manifest.json and /Your Project/Package/packages-lock.json.
    (If you don't need Visualscripting)