Hello Ventuzians!
THE FORUMS ARE CLOSED!

Please join our discord server HERE!! << click me :D

We are shutting our Ventuz Forum, but don't worry, it will all be archived for you to search in if you have a query. From now on, please add all your comments, questions or observations into our Discord Server

Thanks for the great time - see you on discord!!
Dee, Karol, Daniel and the whoooole Product and Support team!

ventuz.eventson with Remoting4

Q and A about functionality and how to solve a special task for your application.

Moderator: Support

Post Reply
User avatar
Etienne
Posts: 48
Joined: 20 Oct 2014, 19:46
Location: Los Angeles, California

ventuz.eventson with Remoting4

Post by Etienne » 25 Apr 2020, 22:47

Hello,

Is there a Remoting4 equivalent to ventuz.eventson? I used to read scene events from the CLI TCP socket and was interested in doing the same with Remoting4.

Thanks for your help,

Etienne Laneville

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: ventuz.eventson with Remoting4

Post by Karol » 28 Apr 2020, 11:09

Hi Etienne!

You do not need to explicitly enable event notification in Remoting4.
But you need to register to receive property change or event notifications.
For this you use the 'DataItemChanged' event on the Cluster class.

Best Regards
Karol

User avatar
Etienne
Posts: 48
Joined: 20 Oct 2014, 19:46
Location: Los Angeles, California

Re: ventuz.eventson with Remoting4

Post by Etienne » 11 May 2020, 05:04

Thanks Karol, that's working, I am getting the same scene event back through my Cluster's DataItemChanged event.

As far as matching the IID from the DataItemChangedEventArgs with my scene, it's giving me {0000}, the pipe ID. I'd expect that to be the IID of the scene where the change occured?

User avatar
Karol
Posts: 640
Joined: 10 Jan 2012, 12:07

Re: ventuz.eventson with Remoting4

Post by Karol » 11 May 2020, 09:42

Hi Etienne,
you are right. DataItemChangedEventArgs.IID must be the one of the scene where the event was triggered.
But this is definitely working correctly. I just tested to be sure.
Are you sure that this is the right event that you are awaiting?
I would recommend to double-check with our Remoting4 demo code.

Best Regards
Karol

User avatar
Etienne
Posts: 48
Joined: 20 Oct 2014, 19:46
Location: Los Angeles, California

Re: ventuz.eventson with Remoting4

Post by Etienne » 11 May 2020, 17:53

Hi Karol,

I am actually seeing two events, the first one has a correct IID and the next has the 0000 IID I mentioned:

/LBWP/00//.GameFlow.AutoRetract.Event
/0000/00//.GameFlow.AutoRetract.Event
0000 IID.png
Other updates made to properties in my Scene Data only show up once and without the path in front.

Post Reply