playMaker

Author Topic: FSM works in Editor, but not in build[SOLVED]  (Read 1518 times)

Hexkonst

  • Playmaker Newbie
  • *
  • Posts: 9
FSM works in Editor, but not in build[SOLVED]
« 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)
« Last Edit: November 08, 2018, 12:34:22 AM by jeanfabre »

Hexkonst

  • Playmaker Newbie
  • *
  • Posts: 9
Re: FSM works in Editor, but not in build
« Reply #1 on: November 06, 2018, 11:26:36 AM »

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: FSM works in Editor, but not in build
« Reply #2 on: November 06, 2018, 12:31:55 PM »
Haha Alex is the guy that made Playmaker. Report a bug.
Available for Playmaker work

Hexkonst

  • Playmaker Newbie
  • *
  • Posts: 9
Re: FSM works in Editor, but not in build
« Reply #3 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.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: FSM works in Editor, but not in build
« Reply #4 on: November 06, 2018, 05:13:55 PM »
Hi,
Careful with deleting if you use global variables (the file is inside playmaker/resources)
« Last Edit: November 08, 2018, 12:34:14 AM by jeanfabre »