1. Hey there Guest,

    The game servers have moved to semi-dedicated hardware and IPs have changed. Please see front page server widget for up-to-date game server information.

game_ui Crashing Game

Discussion in 'Mapping Questions & Discussion' started by Digaag Wa Riz, Jul 27, 2014.

  1. Digaag Wa Riz

    Digaag Wa Riz L3: Member

    Messages:
    121
    Positive Ratings:
    93
    Question.

    I know how to use the game_ui entity extensively. There is, however, a large problem with it. When a player has activated it and leaves the server without deactivating it, the entire game crashes. Is it possible for Valve or some plugin to fix this? If not, Then I need some other way of redirecting player inputs to manipulate certain objects in my map.
     
  2. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    Is it possible to use a trigger_multiple, optionally with a filter_activator_name if there are other players in the same area, to deactivate the game_ui when the player stops touching it?
     
  3. Freyja

    aa Freyja ¯\_(ツ)_/¯

    Messages:
    2,884
    Positive Ratings:
    5,127
    That's what I'd try, like what worMatty suggested.

    If a player disconnects from within a trigger, the trigger will fire an OnEndTouch output. You could surround your map with a trigger, and have OnEndTouch > Deactivate. You may have to forward it through a User i/o to get the activator to correctly align with the player.

    It should work to deactivate it as they disconnect.
     
  4. A Boojum Snark

    aa A Boojum Snark Toraipoddodezain Mazahabado

    Messages:
    4,769
    Positive Ratings:
    5,538
    eh... I have a feeling that won't work. The trigger won't fire until they are gone, and when they are gone it is too late. I don't remember this exact crashing issue, but it might have been the one I had, when I used game_ui for the chairman derby map. I think this is something valve would have to fix.
     
  5. Geit

    aa Geit 💜 I probably broke it 💜

    Messages:
    597
    Positive Ratings:
    1,117
  6. Digaag Wa Riz

    Digaag Wa Riz L3: Member

    Messages:
    121
    Positive Ratings:
    93
    So I downloaded that plugin and I'm not sure if it works. I put it in the sourcemod/plugins folder of my server folder and the "meta list" command showed all the stuff I needed to know that sourcemod and metamod were correctly installed. Does the plugin need some kind of activation or something? Or maybe it doesn't do what I was hoping it would do.

    I think what happens is that the game_ui is still looking for an input from the player when the player disconnects so it doesn't know what to do and has a brain fart that brings the rest of the game down with it. I'm not sure what the plugin is supposed to do to remedy that.
     
  7. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    All you need to do is what you described - put the SMX file in the plugins dir. I doubt it needs configuring. Are you still having trouble with the game_ui entity when running your map on your server? Are you using an online server or are you running SRCDS locally?
     
  8. Digaag Wa Riz

    Digaag Wa Riz L3: Member

    Messages:
    121
    Positive Ratings:
    93
    The server appears in the internet tab so I assume it's not local. I run the server on the same computer I play on. I run the server and type console commands in the Windows command prompt. When a player disconnects while controlling the game_ui the command prompt crashes (and so does the server) but tf2 doesn't crash.
     
  9. worMatty

    aa worMatty Repacking Evangelist

    Messages:
    1,072
    Positive Ratings:
    836
    When you run a local server, your client treats it as if it's on the internet, so the server will show up in your server browser as normal. If you run the server on your computer, it's considered a local server. The server crashing indicates that the plugin isn't doing its job. Maybe it's out of date?
     
  10. Digaag Wa Riz

    Digaag Wa Riz L3: Member

    Messages:
    121
    Positive Ratings:
    93
    I think it was probably only meant to fix a glitch that would affect the spectator camera and prevent a player from using the game_ui after its current owner disconnects. But if the user disconnects then it should cause a server crash (which is pretty noticeable) but the uploader of the plugin doesn't mention that. Maybe it's only a problem in tf2.