Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Hexkonst on November 06, 2018, 11:16:57 AM

Title: FSM works in Editor, but not in build[SOLVED]
Post by: Hexkonst on November 06, 2018, 11:16:57 AM
No FSM is running in the build, but works perfectly in Unity.

When running a dev build I get this spammed error (the path is not to my own computer, don't know who Alex is! :) ):
Code: [Select]
(Filename:  Line: -1)

TypeLoadException: A type load exception has occurred.

Rethrow as TypeInitializationException: An exception was thrown by the type initializer for HutongGames.PlayMaker.Fsm

Rethrow as TypeInitializationException: An exception was thrown by the type initializer for HutongGames.PlayMaker.Fsm
  at FsmTemplate.OnEnable () [0x00008] in c:\Users\Alex\Documents\Unity\Playmaker\Projects\Playmaker.source.unity\Assets\PlayMaker\Classes\FsmTemplate.cs:29
 
(Filename: c:/Users/Alex/Documents/Unity/Playmaker/Projects/Playmaker.source.unity/Assets/PlayMaker/Classes/FsmTemplate.cs Line: 29)
Title: Re: FSM works in Editor, but not in build
Post by: Hexkonst on November 06, 2018, 11:26:36 AM
Same as this issue:

https://hutonggames.com/playmakerforum/index.php?topic=19213.0
Title: Re: FSM works in Editor, but not in build
Post by: Fat Pug Studio on November 06, 2018, 12:31:55 PM
Haha Alex is the guy that made Playmaker. Report a bug.
Title: Re: FSM works in Editor, but not in build
Post by: Hexkonst on November 06, 2018, 03:24:32 PM
Haha Alex is the guy that made Playmaker. Report a bug.

It was just a conflicting old version when I tried to update playmaker. Deleted and reinstalled fixed the issue.
Title: Re: FSM works in Editor, but not in build
Post by: djaydino on November 06, 2018, 05:13:55 PM
Hi,
Careful with deleting if you use global variables (the file is inside playmaker/resources)