Switching handling sequence

"Einar S. Idsø" esi at itk.ntnu.no
Mon Jul 17 10:40:57 EDT 2006


Hi,

If there are two modules for BF2 which both register a gamestatus
handler, is there any way in which I can change which event is run first
without changing the loading sequence of the modules?

Example:
mod1.py has
host.registerGameStatusHandler(self.mod1GSChanged)

while mod2.py has
host.registerGameStatusHandler(self.mod2GSChanged)

If mod1.py is loaded before mod2.py from __init__.py, then
mod1GSChanged() is always run before mod2GSChanged(). Is there any way
to rearrange this so that mod2GSChanged() is always run first without
modifying __init__.py?

Cheers,
Einar
Kybber, servermanager @ Battlefield.no



More information about the Bf1942 mailing list