Open nyronic opened 11 years ago
@nyronic - can you post us more explicit instructions on how to reproduce this? Can you point me to a map that exhibits this problem?
It's as simple as it sounds, by inactive game_ui I mean one that a player has not activated at all, so that it is just sitting there idle.
Then have a 2nd entity send the Deactivate input to it, and it will result in a crash. If a player is using the game_ui entity(meaning its Active) then it will correctly deactivate and not crash.
I don't know of any maps besides my own, which I fixed by making sure the Deactivate input couldn't be sent unless a player was using it.
This is the old version, with the bug. http://www.sendspace.com/file/qgeq8t
It's a secret in the map, so to save you the hassle of a confusing explanation of how to activate it you can simply enter the following ent_fire commands(in order).
ent_fire vote_full_lr trigger ent_fire ufo_event_mc add 5
Wait several seconds, a ufo will show up. If you walk under it you will be sucked up and start using the game_ui. But for this test you obviously don't want to be using it.
After 3 minutes of a round starting it goes into sudden death mode, which teleports players to the roof to have a knife fight. As a fail-safe, after 1 minute of this starting it will deactivate the game_ui and kill the player controlling. If nobody is controlling it then the server will crash.
You can just host_timescale to save yourself the trouble of sitting around for 4 minutes.
I didn't find out about this until a friend who runs a Linux based server told me it was crashing, did some testing and discovered it.
@Plagman You're assigned to this. What's your progress on it?
If an inactive game_ui entity receives the input Deactivate it will crash the server.
This only happens on servers running Linux and not Windows.