playMaker

Author Topic: Can't set non-string FSM variable?  (Read 2032 times)

Anyday

  • Playmaker Newbie
  • *
  • Posts: 4
Can't set non-string FSM variable?
« on: March 27, 2018, 11:52:17 AM »
I just purchased the product; so perhaps I'm doing something wrong, sent in a bug report though...

1) What happened


Can't set FSM variable with the Set FSM Variable action. The Variable does not show up unless it's a String.
Screenshots:
https://i.gyazo.com/3e94daa7de118d6f1d346c1a2bd660a4.png
https://i.gyazo.com/d351712300b2352fa9e46e05809abf01.png

2) How can we reproduce it

Create a variable and try to set it with the action.
Does not show up on the drop down menu.

Typing it in as a "new" variable returns "A variable with that name exists!"

Am I doing something wrong? Seems like a pretty huge bug if it is one.

DanielThomas

  • Beta Group
  • Full Member
  • *
  • Posts: 150
Re: Can't set non-string FSM variable?
« Reply #1 on: March 27, 2018, 12:32:56 PM »
I don't know what this specific action is needed for as there are set FSM for all the different variable types.

So for an example, you can use 'set fsm float' action, then you will get the pulldown list when you press the "..."

Or if it works anything like the action above, you can write the variable name manually.

Anyday

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Can't set non-string FSM variable?
« Reply #2 on: March 27, 2018, 12:59:57 PM »
I don't know what this specific action is needed for as there are set FSM for all the different variable types.

So for an example, you can use 'set fsm float' action, then you will get the pulldown list when you press the "..."

Or if it works anything like the action above, you can write the variable name manually.

Ah... Ok, good catch.

Yep, you definitely gave me a fix, a bit confusing though.
Not sure why the Variable action exists either then.

Anyday

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Can't set non-string FSM variable?
« Reply #3 on: March 27, 2018, 02:14:36 PM »
Lol, almost as soon as I was done with that problem, I ran into another one...

The action "Set FSM bool" doesn't seem to allow me to set it to true or false on the editor, I can only set it to another boolean variable...
Shots:



A boolean variable that contains "FALSE" as a work around...



This seems really sloppy... and a very obvious problem.

I'm starting to feel like if I'm having issues at this simple stage testing, I'm going to end up being seriously frustrated with this product later on, these seem like obvious bugs to me.

GonerGames

  • Junior Playmaker
  • **
  • Posts: 53
Re: Can't set non-string FSM variable?
« Reply #4 on: March 27, 2018, 04:10:51 PM »
For the bool:
Set Value:
-> with checkmark =  Set bool to True
-> no checkmark = Set bool to False

In short if you want the bool to set to false then leave the Set Value checkbox blank.


Anyday

  • Playmaker Newbie
  • *
  • Posts: 4
Re: Can't set non-string FSM variable?
« Reply #5 on: March 27, 2018, 04:55:26 PM »
For the bool:
Set Value:
-> with checkmark =  Set bool to True
-> no checkmark = Set bool to False

In short if you want the bool to set to false then leave the Set Value checkbox blank.
Fair enough, that one's on me.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 3987
  • Official Playmaker Support
    • LinkedIn
Re: Can't set non-string FSM variable?
« Reply #6 on: March 27, 2018, 11:27:44 PM »
Hi, I replied to the bug report, but thought I'd post here also in case it helped others out as well:

That action parameter is for the Variable Name - that's why it only accepts string variables. In other words, you need to know the name of the variable you want to set on the other FSM. You can enter the name or use a name stored in a string variable.

BTW, you can roll over an action field to show the variable type it accepts.

Let me know if that makes sense...