playMaker

Author Topic: [BUG] Convert numeric variable to string, and string to numeric fails  (Read 1593 times)

Stuksgens

  • Playmaker Newbie
  • *
  • Posts: 11
Hi guys, while our team was fixing some tickets, we noticed a strange behavior in the playmaker,

If a certain action uses the convert variable mode from a string to a number or a number to a string, and the variable changes its name, for some reason the playmaker doesn't update the name in that action's variable.

I believe it's a bug because it keeps a reference to a variable that no longer exists

600

  • Moderator
  • Hero Member
  • *****
  • Posts: 725
    • 600
Re: [BUG] Convert numeric variable to string, and string to numeric fails
« Reply #1 on: December 16, 2024, 11:13:39 AM »
I had this few times over the years, only fix was to redo the state with adding the actions again (do not copy/paste anything) and then it worked.
Another time, but not sure if for this bug, but I had to redo the whole FSM to fix some weirdness with variables. However that was only once.
My theory is it may happen when copy/pasting actions between FSMs that are different Data Version (1 or 2), and also it may happen when using Undo (Ctrl+z), avoid Undo in Playmaker at all costs, else it can mess up other FSMs even you didn't touch :/

Stuksgens

  • Playmaker Newbie
  • *
  • Posts: 11
Re: [BUG] Convert numeric variable to string, and string to numeric fails
« Reply #2 on: December 17, 2024, 05:58:49 PM »
Yes, this is a bug. A workaround to avoid this is to use the convert action explicitly, instead of using the built-in option to convert the variable.