playMaker

Author Topic: Problem with Run FSM (2)  (Read 1170 times)

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Problem with Run FSM (2)
« on: May 10, 2020, 01:18:21 PM »
Hi,

I'm sorry about that, but the problem I was discussing yesterday has rappeared.
I have tried several solutions, and even re-installing PlayMaker on my PC. No result.

This is so incredibly important (what is the use of templates, then ?) that either Playmaker is crazy or I am or something crucial is missing in the manual :).

I think I'll poost a bug report to-morrow.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Problem with Run FSM (2)
« Reply #1 on: May 11, 2020, 02:23:12 PM »
Hi.
can you give a link to the previous thread?

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Re: Problem with Run FSM (2)
« Reply #2 on: May 12, 2020, 09:42:36 AM »
Hi,

It was called "Problem with Run FSM" and was started on May 04, 2020.
Is this what you want ?

By the way I have found a workaround, but still...

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Problem with Run FSM (2)
« Reply #3 on: May 12, 2020, 04:21:31 PM »
Hi.
Can you show more details as i use run fsm a lot and so far i did not encounter issues yet.

If you refer to another topic it is best to add a link or continue on that topic so other that did not see that topic can still help :)

TVISARL

  • Junior Playmaker
  • **
  • Posts: 50
Re: Problem with Run FSM (2)
« Reply #4 on: May 13, 2020, 12:40:57 PM »
Hi,

I'll get back to you in two or threedays, but I have already something : in th offending "Get Fsm Int"action, the owner of the target Fsm is not a Game Object, but a Game Object variable, which itself is global.

So, in my workaround I stay away of global variables as much as possible, and everything works like a charm. But the previous solution with global variables and Run Fsms was elegant, and I find this one clumsy. Clumsy but it works.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Problem with Run FSM (2)
« Reply #5 on: May 14, 2020, 09:15:51 AM »
Hi.
I only use global variables for  game objects that i need to reference a lot, like player / weapon data / meta data / language handler / health handler etc.

With the 'Get Fsm Int' you can use a local 'Gameobject Variable' but in the template you need to expose that variable (by turning on 'inspector)

Then on the 'run fsm' action you need to 'feed' the game object.