Console info on Events

Forums 💬 NodeCanvas 🗨️ General Discussion Console info on Events

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #14066
    chocolacode
    Participant

      Hey Gavalakis,

      the event information that is sent to the Console when event is sent or received is confusing,

      1. it says who sent the message but does not say who is the receiver
      2. it says “event received from…” but actually the object in the message is the “to” not the “from”

      should these messages say something like… ?

      1. Event ‘add score’ sent. From Object A to Object B
      2. Event ‘add score’ received. From Object A to Object B

      [attachment file=”Console Info on events.png”]

      Thanks

      #14070
      Gavalakis
      Keymaster

        Hey,

        The reason that it is like that, is because the order of execution is like this:

        – First an event is send to a graph either from code of from a task (same thing).
        – Then at a later or even the same frame, the event is received from some task like for example CheckEvent condition task.

        Does this makes send? 🙂
        Let me know.

        #14069
        chocolacode
        Participant

          Hey,

          thanks for the info,

          in both cases the message only says one part of the communication. in first statement, it says the receiver, but id does not say who sent the event

          in case 2 it says who received the event but does not say who sent it

          thanks,

          #14068
          Gavalakis
          Keymaster

            Hey,

            Yes. Only one part of the communication is stated in the message, because when an event is send, the sender is unknown (a SendEvent can be called from any script like a normal function). So, only the receiver becomes known when an event is send.

            #14067
            chocolacode
            Participant

              Hey,

              thanks,

            Viewing 5 posts - 1 through 5 (of 5 total)
            • You must be logged in to reply to this topic.