Extensions startup priority

Post here your questions about SFS2X. Here we discuss all server-side matters. For client API questions see the dedicated forums.

Moderators: Lapo, Bax

Posts: 25
Joined: 20 Feb 2018, 05:25

Extensions startup priority

Postby sadensmol » 16 Jul 2018, 05:56

I couldn't find info about this in documentation.
I need to get some extension initializing after all others.
For example Ext1, Ext2, ExtA, Ext4.
I need ExtA to be initialised after all other extensions.
Is there any config parameters to show the extension init priority/order?

User avatar
Site Admin
Posts: 21782
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extensions startup priority

Postby Lapo » 16 Jul 2018, 06:09

Extensions are started "linearly" by reading the config files.
In other words, every .zone.xml file is loaded, parsed and, as Extensions declarations are encountered, they are created.

When you need coordination among extensions I would recommend to use the SFSEvent.SERVER_READY event. This is fired when the server has completed the booting process.
At that moment all Extension are ready and therefore you can make them cross-talk, if that's the problem.

If this is not helpful I need to understand your use case better.
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: Aldenea, Baidu [Spider], DavinVicy, DerikFent, Kevengar and 29 guests