playMaker

Author Topic: Editing an actions variables with an FsmVar resets the FsmVar  (Read 1634 times)

Krileon

  • Full Member
  • ***
  • Posts: 107
If your action has an FsmVar and you add/remove/edit another variable (with no relation to the FsmVar) it causes the FsmVar values to reset. This is a HUGE problem if you need to fix a bug or add another variable that has nothing to do with the FsmVar as it causes the FsmVar to completely lose its values (resets to Float: None). Example as follows.

FROM:
Code: [Select]
[RequiredField, UIHint(UIHint.Variable)]
public FsmVar variable;
[RequiredField]
public FsmString path;
TO:
Code: [Select]
[RequiredField, UIHint(UIHint.Variable)]
public FsmVar variable;
[RequiredField]
public FsmString path;
public FsmBool encrypt;

Adding the "encrypt" variable that has nothing to do with "variable", which is an FsmVar still causes any usages of the action to lose its values for "variable". This causes a nightmare of issues as you have to scan through all your FSMs, find the usages, and manually fix them.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Editing an actions variables with an FsmVar resets the FsmVar
« Reply #1 on: May 18, 2014, 08:01:42 PM »
Can you submit this using the bug reporter so we can get more info on your setup and track the issue? Thanks!
« Last Edit: May 18, 2014, 08:07:27 PM by Alex Chouls »

Krileon

  • Full Member
  • ***
  • Posts: 107
Re: Editing an actions variables with an FsmVar resets the FsmVar
« Reply #2 on: May 18, 2014, 10:37:15 PM »
Yup, bug ticket submitted.