playMaker

Author Topic: FSM not loaded when unity starts  (Read 1273 times)

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
FSM not loaded when unity starts
« on: February 11, 2020, 08:48:51 AM »
Hello,

actually i have a bug with 1 fsm, only 1... but i can't understand why

As you can see on my screenshot, it's a simple state, wich drive 2 animated floats and actions for post processing stack V2 i did.
the thing is that everything is working perfectly when i set and use it .

but

when i close unity and come back , this fsm has only the actions, but no variables registered into it.
so, it's not really complicated to restore it back but, it's funny 1 time, not more,

so, i don't know what to do to...


blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: FSM not loaded when unity starts
« Reply #1 on: February 11, 2020, 08:57:29 AM »
Also, after completely restored my setup,
and when i play the game, inspector shows me this error:
ArgumentException: Object at index 0 is null
UnityEditor.SerializedObject..ctor (UnityEngine.Object[] objs, UnityEngine.Object context) (at C:/buildslave/unity/build/Editor/Mono/SerializedObject.bindings.cs:39)
UnityEditor.Editor.GetSerializedObjectInternal () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:553)
UnityEditor.Editor.get_serializedObject () (at C:/buildslave/unity/build/Editor/Mono/Inspector/Editor.cs:452)
UnityEditor.UIElements.InspectorElement..ctor (UnityEditor.Editor editor, UnityEditor.UIElements.InspectorElement+Mode mode) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorElement.cs:137)
UnityEditor.UIElements.EditorElement.Init () (at C:/buildslave/unity/build/Editor/Mono/Inspector/EditorElement.cs:89)
UnityEditor.UIElements.EditorElement..ctor (System.Int32 editorIndex, UnityEditor.InspectorWindow iw) (at C:/buildslave/unity/build/Editor/Mono/Inspector/EditorElement.cs:67)
UnityEditor.InspectorWindow.DrawEditors (UnityEditor.Editor[] editors) (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:1487)
UnityEditor.InspectorWindow.RebuildContentsContainers () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:712)
UnityEditor.InspectorWindow.RedrawFromNative () (at C:/buildslave/unity/build/Editor/Mono/Inspector/InspectorWindow.cs:312)

and this alert:
Error detecting Visual Studio installations: ApplicationName='F:\Travail\Autre Disk Dur\Projects\Ketchup Mayo\Test Unity\Ketch'Up & May'O\Library\PackageCache\com.unity.ide.visualstudio@1.0.11/Editor/VSWhere/vswhere.exe', CommandLine='-prerelease -property productPath', CurrentDirectory='', Native error= Le fichier sp룩fi룥st introuvable.

  at System.Diagnostics.Process.StartWithCreateProcess (System.Diagnostics.ProcessStartInfo startInfo) [0x002dc] in <d465e2b2e5054d2787d6364114c43446>:0
  at System.Diagnostics.Process.Start () [0x0003a] in <d465e2b2e5054d2787d6364114c43446>:0
  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process.Start()
  at VisualStudioEditor.Discovery+<FindVisualStudioDevEnvPaths>d__9.MoveNext () [0x00106] in F:\Travail\Projets\Unity\Ketch'Up & May'O\Library\PackageCache\com.unity.ide.visualstudio@1.0.11\Editor\Discovery.cs:266
  at System.Collections.Generic.LargeArrayBuilder`1[T].AddRange (System.Collections.Generic.IEnumerable`1[T] items) [0x0005e] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0
  at System.Collections.Generic.EnumerableHelpers.ToArray[T] (System.Collections.Generic.IEnumerable`1[T] source) [0x00033] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0
  at System.Linq.Enumerable.ToArray[TSource] (System.Collections.Generic.IEnumerable`1[T] source) [0x00018] in <b7efe7e6e548497fac3c4a6049a0a4b6>:0
  at VisualStudioEditor.Discovery.GetInstalledVisualStudios () [0x00099] in F:\Travail\Projets\Unity\Ketch'Up & May'O\Library\PackageCache\com.unity.ide.visualstudio@1.0.11\Editor\Discovery.cs:194
  at VisualStudioEditor.VSEditor..cctor () [0x00011] in F:\Travail\Projets\Unity\Ketch'Up & May'O\Library\PackageCache\com.unity.ide.visualstudio@1.0.11\Editor\VSEditor.cs:42
UnityEngine.Debug:Log(Object)
VisualStudioEditor.VSEditor:.cctor() (at F:/Travail/Projets/Unity/Ketch'Up & May'O/Library/PackageCache/com.unity.ide.visualstudio@1.0.11/Editor/VSEditor.cs:46)
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes(Type[])


jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: FSM not loaded when unity starts
« Reply #2 on: February 12, 2020, 01:43:49 AM »
Hi,

 it's very likely that your path is not parsed properly because of your folder "Ketch'Up & May'O", that's a big nop for safety in path finding in your OS.

 Renamed it without any funcky characters and try again, "KetchUp_and_MayO" is a lot better. I know... this is 2020, but still...

let me know if that doesn't help.

Bye,

 Jean

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: FSM not loaded when unity starts
« Reply #3 on: February 12, 2020, 09:38:02 AM »
thanks jean,
i did not renamed the project's name, i just updated from unity 2019.3.0a2 to unity 2019.3.0f6, and used most rect post processing stack V2.3 and all problems are gone !

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: FSM not loaded when unity starts
« Reply #4 on: February 14, 2020, 06:02:31 AM »
Hi,

 Great :)

Bye,

 Jean