playMaker

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

Hexkonst

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
FSM works in Editor, but not in build[SOLVED]
« on: November 06, 2018, 09: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 07, 2018, 10:34:22 PM by jeanfabre »

Hexkonst

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

krmko

  • Beta Group
  • Hero Member
  • *
  • Posts: 989
    • View Profile
    • Fat Pug Studio
Re: FSM works in Editor, but not in build
« Reply #2 on: November 06, 2018, 10:31:55 AM »
Haha Alex is the guy that made Playmaker. Report a bug.

Hexkonst

  • Playmaker Newbie
  • *
  • Posts: 9
    • View Profile
Re: FSM works in Editor, but not in build
« Reply #3 on: November 06, 2018, 01: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: 4448
    • View Profile
    • jinxtergames
Re: FSM works in Editor, but not in build
« Reply #4 on: November 06, 2018, 03:13:55 PM »
Hi,
Careful with deleting if you use global variables (the file is inside playmaker/resources)
« Last Edit: November 07, 2018, 10:34:14 PM by jeanfabre »
FOR HIRE:Playmaker/C#

Playmaker Samples <-------------> Easy Exporter <---------------------> TPA Actions