During preinit, addPublicVariableEventHandler only appears to take effect if running on the server. {F26859}
Description
Details
- Legacy ID
- 2173675328
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Category
- Scripting
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.
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.