space-wizards / RobustToolbox

Robust multiplayer game engine, used by Space Station 14
https://spacestation14.io
Other
547 stars 408 forks source link

UIController subscription's don't work #5239

Open metalgearsloth opened 4 months ago

metalgearsloth commented 4 months ago

This is the actual cause of https://github.com/space-wizards/space-station-14/issues/28559

The problem is eventsubs get cleared on entitymanager shutdown (AKA when the sim shuts down). UIController lifetimes do not match EntityManager and they do not handle this so all of their subscriptions get removed.

deltanedas commented 4 months ago

shouldnt ui controllers not be subscribing to events??

metalgearsloth commented 4 months ago

shouldnt ui controllers not be subscribing to events??

Realistically they should have all eventsub functionality removed yeah.

juliangiebel commented 4 months ago

Isn't that UI controllers whole spiel? Behaving like an entity system?