Author Topic: [done] Game admin should be able to disconnect players during game  (Read 807 times)

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
A game admin (the person hosting a game or controlling a headless server) should be able to disconnect a player from a running game, so as to be able to handle misbehaving users without having to restart the entire game. As usual, disconnected players should be replaced by AI.
« Last Edit: 25 September 2012, 13:44:59 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

Omega

  • MegaGlest Team
  • Dragon
  • ********
  • Posts: 6,167
  • Professional bug writer
    • View Profile
    • Personal site
Re: Game admin should be able to disconnect players during game
« Reply #1 on: 20 September 2012, 22:36:25 »
So a "kick" command. Perhaps it could also have an option of "blocking" that person from joining that headless server in the future (emphasis: as an option, as it could be necessary to kick someone for a minor reason, without wanting to ban them from future games).
Edit the MegaGlest wiki: http://docs.megaglest.org/

My personal projects: http://github.com/KatrinaHoffert

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Game admin should be able to disconnect players during game
« Reply #2 on: 21 September 2012, 05:45:24 »
Added in svn, admin user can now disconnect other network players via a new popup menu in game.

tomreyn

  • MegaGlest Team
  • Airship
  • ********
  • Posts: 2,764
    • View Profile
    • MegaGlest - the free and open source cross platform 3D real-time strategy game
Re: Game admin should be able to disconnect players during game
« Reply #3 on: 21 September 2012, 13:10:36 »
And a very nice implementation. :)

It's not perfect, yet, though:
  • After removing a player this way, the admin can then remove the AI player which automatically replaced the original player
  • The warning message shows an incorrect message on headless servers. The player I wanted to disconnect was called tom3 but the message read: Admin is warning to disconnect player #3 - Closed!
« Last Edit: 21 September 2012, 13:31:23 by tomreyn »
atibox: Ryzen 1800X (8 cores @3.6GHz), 32 GB RAM, MSI Radeon RX 580 Gaming X 8G, PCI subsystem ID [1462:3417], (Radeon RX 580 chipset, POLARIS10) @3440x1440; latest stable Ubuntu release, (open source) radeon (amdgpu) / mesa video driver
atibox (old): Core2Quad Q9400 (4 cores @2.66GHz), 8 GB RAM, XFX HD-467X-DDF2, PCI subsystem ID [1682:2931], (Radeon HD 4670, RV730 XT) @1680x1050; latest stable Ubuntu release, (open source) radeon / mesa video driver
notebook: HP envy13d020ng
internet access: VDSL2+

· · · How YOU can contribute to MG · Latest development snapshot · How to build yourself · Megapack techtree · Currently hosted MG games · · ·

softcoder

  • MegaGlest Team
  • Battle Machine
  • ********
  • Posts: 2,239
    • View Profile
Re: Game admin should be able to disconnect players during game
« Reply #4 on: 21 September 2012, 15:05:46 »
Should be fixed now.