Search Unity

Bug Updating to 1.8.0 from 1.7.8 breaks Bolt Community Add-ons

Discussion in 'Visual Scripting' started by CameronDWills, Dec 13, 2022.

  1. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    90
    I'm using the Bolt community addons package RealityStop/Bolt.Addons.Community: A community-driven project for extending Unity Bolt (github.com)

    And after updating to Visual Scriptping 1.8 from 1.7.8, there's an error:
    Code (CSharp):
    1. Library\PackageCache\dev.bolt.addons@32ad2edd02\Editor\Windows\View\EditorWindowView.cs(13,58): error CS0535: 'EditorWindowView' does not implement interface member 'ISerializationDependency.IsDeserialized'
    Does anyone know how I could fix this, or at least keep the good nodes from the community addons without creating a project breaking error?
     
  2. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    396
    Just take IMacro off the class name inheritance, and then comment out /* */ or delete the Descriptor (you will get a new error)

    public sealed class EditorWindowView : EditorWindow // , IMacro

    That's not the true fix, but that will get everything running
     
    CameronDWills likes this.
  3. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    90
    That definitely got me past the error, but then none of the community addon nodes appear and existing ones break
     
  4. Trindenberg

    Trindenberg

    Joined:
    Dec 3, 2017
    Posts:
    396
    I did notice that, but assumed they needed rebuilding. Try commenting out the whole EditorWindowView code (or deleting the file), then rebuilding
     
  5. TouchManage

    TouchManage

    Joined:
    Aug 26, 2021
    Posts:
    3
  6. Creiz

    Creiz

    Joined:
    Jun 6, 2017
    Posts:
    130
    Yes, just delete the Descriptor file, I think it's IMacroDescriptor or something. Then comment out IMacro like they said up there. It should work.
     
    TouchManage likes this.
  7. TouchManage

    TouchManage

    Joined:
    Aug 26, 2021
    Posts:
    3
    It did that and it broke all my Visual Scripting scripts. Of course I have backups.

    What appear on the GameObjects where I had scripts before:
    upload_2023-1-27_13-24-12.png

    The errors that are being thrown when I try to edit direclty one of the VS script:
    upload_2023-1-27_13-26-10.png

    Does anyone know how to fix this?
     
  8. CameronDWills

    CameronDWills

    Joined:
    Feb 26, 2021
    Posts:
    90
    Still no luck, so I've just downgraded to 1.7.8 for now
     
    S2NX7 and adam_unity450 like this.
  9. RoastedPotatoe

    RoastedPotatoe

    Joined:
    Nov 5, 2016
    Posts:
    6
    This error isn't caused by Unity but by the plugin Bolt Addons Community. Last commit made to the repo was done 7 months ago. And it only modified the readme.md to add
    So you'll need to fork the project yourself or find somebody who has already forked for a chance for a fix. Because the main project will probably never be updated.
     
  10. IceSkip

    IceSkip

    Joined:
    Apr 4, 2021
    Posts:
    5
    Hi, I tried to transfer, and at me it turned out, the truth not everything, but at least though something! I have Unity version 2022 and everything works, I created a repository you can look
    https://github.com/Bioshock1990/Visual-Scripting-Community
     
  11. Lib_one

    Lib_one

    Joined:
    Mar 26, 2018
    Posts:
    2
    It`s working as the Trindenberg said.

    What I did:
    1. Copy and rename whole community addons folder [*UnityProject*\Library\PackageCache\dev.bolt.addons@32ad2edd02] to [*UnityProject*\Packages\dev.bolt.addons] - this will make local copy of the addon, so it will be not replaced by auto-update etc.

    2. Comment out the ", IMacro" part -> dev.bolt.addons\Editor\Windows\View\EditorWindowView.cs
    Code (CSharp):
    1. public sealed class EditorWindowView : EditorWindow //, IMacro
    3. Comment out the Descriptor -> dev.bolt.addons\Editor\Windows\View\EditorWindowViewDescriptor.cs

    Code (CSharp):
    1. namespace Unity.VisualScripting.Community
    2. {
    3.   /*
    4. [Descriptor(typeof(EditorWindowView))]
    5.     public sealed class EditorWindowViewDescriptor : MacroDescriptor<EditorWindowView, MacroDescription>
    6.     {
    7.         public EditorWindowViewDescriptor(EditorWindowView target) : base(target)
    8.         {
    9.         }
    10.     }
    11.     */
    12. }
    Working for me in Unity 2022.3
     
    Trindenberg, pmenefee and Nuyx like this.
  12. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    39
    Blitz54 likes this.
  13. drhousemd

    drhousemd

    Joined:
    Dec 6, 2012
    Posts:
    25
    cheers for the update fix and VisualScriptingCommunity v1.1 - the new nodes look interesting:

     
    S2NX7 likes this.
  14. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    39
    Last edited: Jul 17, 2023
  15. S2NX7

    S2NX7

    Joined:
    Aug 17, 2021
    Posts:
    39
    PanthenEye and drhousemd like this.