How to add new event types

General discussions and questions.
Post Reply
mcvertex
Posts: 3
Joined: Tue Nov 03, 2020 8:38 am

How to add new event types

Post by mcvertex »

Hello,
I tried to use event handle lately and it works like a charm, but I would like to know if it's possible to code new event types, like JOB_CREATED, or JOB_STARTED for example. In what part of cgru should I check that if I want to add these event types?
Regards,
Last edited by mcvertex on Tue Nov 03, 2020 9:10 am, edited 1 time in total.
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: How to add new event types

Post by timurhai »

Hi!
Events are build in Afanasy server code.
To add a new event, you should add it in the code and recompile the project.

But such events as JOB_CREATED and JOB_STARTED can be handled not by the server.
When artist submits a job it is JOB_CREATED - submission script perform event.
When the first job task starts it is JOB_STARTED - job first extra block can do it.

But it is not a big deal to teach (develop) server to emit new events.
For what you need such events?
Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
mcvertex
Posts: 3
Joined: Tue Nov 03, 2020 8:38 am

Re: How to add new event types

Post by mcvertex »

In fact the event I need is RENDER_DISCONNECT, but we run the version 2.3.1. We have planned to upgrade to the last version but because we have made a lot of customisations, the upgrade is planned in a few months (too much work right now). I just wanted to know if there was a simple way to just add this specific event now without upgrade to last version. If not it's not a big deal, we will wait :)
User avatar
timurhai
Site Admin
Posts: 911
Joined: Sun Jan 15, 2017 8:40 pm
Location: Russia, Korolev
Contact:

Re: How to add new event types

Post by timurhai »

Timur Hairulin
CGRU 3.3.1, Ubuntu 20.04, 22.04, MS Windows 10 (clients only).
mcvertex
Posts: 3
Joined: Tue Nov 03, 2020 8:38 am

Re: How to add new event types

Post by mcvertex »

RENDER_ZOMBIE will work I think, we will use this after the update so. thanks for your quick answers
Post Reply