[bf1942] Switching handling sequence

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

No can do since one of them is a built-in python script which I doubt
I'll be allowed to modify by EA. That is of course the script that is
run first, and unfortunately it deletes some info before my script can
get to it.


Steven "test" Hartland wrote:
> Nope which ever registers first gets notified first.
> Might want to consider changing them to MM modules
> which might well provide you with the info you want.
>    Steve
> "Einar S. Idsø" wrote:
>> 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?

More information about the Bf1942 mailing list