Page MenuHomeFeedback Tracker

Client-side addPublicVaribleEventHandler ignored during preinit
Acknowledged, WishlistPublic

Description

During preinit, addPublicVariableEventHandler only appears to take effect if running on the server. {F26859}

Details

Legacy ID
2173675328
Severity
None
Resolution
Open
Reproducibility
Always
Category
Scripting
Steps To Reproduce

Launch the attached repro mission on a dedicated server with one normal client connected.

Observe the client and the server's RPTs:

Server:
2015/08/27, 14:26:53 [118.214,"Sending pvars, check remote RPTs for activity"]
2015/08/27, 14:26:55 [119.474,["pvar_preinit",[47.236,"preinit"],Namespace]]
2015/08/27, 14:26:55 [119.474,["pvar_postinit",[47.236,"postinit"],Namespace]]
2015/08/27, 14:26:55 [120.234,"Sending pvars, check remote RPTs for activity"]
2015/08/27, 14:26:57 [121.554,["pvar_preinit",[49.308,"preinit"],Namespace]]
2015/08/27, 14:26:57 [121.554,["pvar_postinit",[49.308,"postinit"],Namespace]]

Client:
14:26:53 [371.68,"Sending pvars, check remote RPTs for activity"]
14:26:53 [372.453,["pvar_postinit",[45.923,"postinit"],Namespace]]
14:26:55 [373.637,"Sending pvars, check remote RPTs for activity"]
14:26:55 [374.487,["pvar_postinit",[47.943,"postinit"],Namespace]]

You can additionally confirm that preinit is executing on client and server by searching the rpts for "Executing preinit":

14:21:42 [60.761,1075,"Executing preinit"]

Expected results:
Both client and server apply PVEHs during preinit.

Additional Information

This was also observed as not working in 1.48.

Feature was working as expected back in (at least) April 21st - as that was when I'd written some code that relied on expected behaviour and confirmed it working.

Event Timeline

zx64 edited Steps To Reproduce. (Show Details)Aug 27 2015, 3:40 PM
zx64 edited Additional Information. (Show Details)
zx64 set Category to Scripting.
zx64 set Reproducibility to Always.
zx64 set Severity to None.
zx64 set Resolution to Open.
zx64 set Legacy ID to 2173675328.May 8 2016, 12:35 PM
zx64 edited a custom field.