playMaker

Author Topic: Send Event Failing to Send  (Read 1028 times)

Athin

  • Full Member
  • ***
  • Posts: 163
Send Event Failing to Send
« on: May 24, 2020, 09:56:28 AM »
Hey guys,

I'm really confused with this one, I got a FSM that sends a global event to another FSM on the same Game object. It fails to fire off every time. Odd thing is if I use a Next Frame Action and throw the failing Send Event action into another state, it works?  I have no clue why that would work, is there something I'm missing on how this action functions?

Hate having things working without knowing why its working lol.

Thanks   

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Send Event Failing to Send
« Reply #1 on: May 24, 2020, 12:40:12 PM »
Hi.
We would have to see the fsms/actions to be able to see whats going on.

it can Possibly have more that 1 event is happening at the same frame for example.

Athin

  • Full Member
  • ***
  • Posts: 163
Re: Send Event Failing to Send
« Reply #2 on: May 25, 2020, 06:35:45 AM »
Heya,

Here is my FSM.

https://imgur.com/thSczjY

https://imgur.com/viRskGL

https://imgur.com/5VWcGlV

https://imgur.com/HWXSCJy

The Send event on Find Rally point state is disabled in the pic but is copy over to State 1 and works perfectly fine there.  If I try to run it at the Find Rally Point, it fails to send for whatever reason.

Basically the FSM is waiting for the unit to get drafted.  Once drafted, it will find the armory and equip itself with whatever the player picked.  Once it is fully equipped, it will head to the rally point in a certain formation. 
« Last Edit: May 25, 2020, 06:39:00 AM by Athin »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Send Event Failing to Send
« Reply #3 on: May 25, 2020, 03:56:22 PM »
Hi.
you should use the direct links to show the images, like this :
Code: [Select]
[img]https://i.imgur.com/viRskGL.jpg[/img]
then it will show directly in your post like this :



This part might have an issue and might be solved by enabling 'Action Sequence' (right click in the action window and enable 'Action Sequence' )

action in a state are started from top to bottom, but they will not wait till they are finished.
when you turn on 'Action Sequence' it will wait for each action to finish before going to the next one.
its possible that for example 'Array List Copy To' is not yet finished but the send event is already send.
you can also split into several states.
state 1 : array list get and array list clear / state 2 : array list copy to / state 3 Send event.

Have you tried setting a breakpoint to check if the event is really not received?
(right click header of a state to select breakpoint)

Also if you test now make sure to turn off the next frame event as it is above the send event so it will never trigger that.