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

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

Extensions startup priority

Postby sadensmol » 16 Jul 2018, 05:56

Hi.
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?

Thanks.
User avatar
Lapo
Site Admin
Posts: 23007
Joined: 21 Mar 2005, 09:50
Location: Italy

Re: Extensions startup priority

Postby Lapo » 16 Jul 2018, 06:09

Hi,
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.
Thanks
Lapo
--
gotoAndPlay()
...addicted to flash games

Return to “SFS2X Questions”

Who is online

Users browsing this forum: No registered users and 64 guests