Auto-Kick plugin ?

ManiaControl, the completely new designed and easy to use controller managing all your Maniaplanet server.

Moderators: kremsy, Jocy, Wabbitface, steeffeen, NADEO

Post Reply
Xenome77
Posts: 144
Joined: 13 Sep 2012, 21:42

Auto-Kick plugin ?

Post by Xenome77 » 16 Jan 2015, 13:45

Hey

I want to know if it's possible to make a plugin for this like you got a player on you'r server who got high latency more than value you put during X time ?
Will be kicked or put in spectator to keep low snapshot & good netvision.

Regards.

kremsy
Posts: 1725
Joined: 21 Jul 2011, 09:51

Re: Auto-Kick plugin ?

Post by kremsy » 16 Jan 2015, 15:48

Xenome77 wrote:Hey

I want to know if it's possible to make a plugin for this like you got a player on you'r server who got high latency more than value you put during X time ?
Will be kicked or put in spectator to keep low snapshot & good netvision.

Regards.
Don't think there is a way to estimate if someone is timedout.

Oh wait, there could be one, it didnt work before ManiaPlanet 3 but I never tested it afterwards.
Lukas alias Kremsy, Developer of:
ManiaControl: http://www.maniacontrol.com
ParagonLeague: http://league.paragon-esports.com
MPAseco: http://mpaseco.org
ManiaViewer: http://www.maniaviewer.com

Xenome77
Posts: 144
Joined: 13 Sep 2012, 21:42

Re: Auto-Kick plugin ?

Post by Xenome77 » 16 Jan 2015, 16:23

Ok could be nice but it only for timedout ?

And even if it's not maniascripted we got adress ip on client connexion maybe there is a way to use it in script who test ping evry 10sec for example and if there is 2 intervall higher than value you set it send to maniacontroler to kick the client ip who failed check ping.

But sorry i'm not coder don't know if it's possible just some idea maybe too much query or just impossible :?

Anyway if it's possible to do something like this it's awsome :)

Graphic http://image.noelshack.com/fichiers/201 ... o-kick.jpg

User avatar
steeffeen
Translator
Translator
Posts: 2472
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Auto-Kick plugin ?

Post by steeffeen » 16 Jan 2015, 17:59

//Edit: ignore that post - I wasn't thinking it through//

just to throw in my two cents:
you can't just ping any ip, the client has to be open for input on the ICM protocol
which will not be the case for 99,999999999% of the players

you could build something with a manialink but that wouldn't be really accurate
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks

    Xenome77
    Posts: 144
    Joined: 13 Sep 2012, 21:42

    Re: Auto-Kick plugin ?

    Post by Xenome77 » 16 Jan 2015, 18:22

    ok thx.

    But i'm the 0.000000001% left my router allow ping by default cfg :shock:
    So we have to deal with snapshot .......... :teub:

    User avatar
    steeffeen
    Translator
    Translator
    Posts: 2472
    Joined: 14 Oct 2012, 16:22
    Location: Germany

    Re: Auto-Kick plugin ?

    Post by steeffeen » 16 Jan 2015, 19:06

    Xenome77 wrote:But i'm the 0.000000001% left my router allow ping by default cfg
    well actually by now i kinda feel like i mixed things up, anyone else having an opinion on that? :D
      Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

      ManiaControl, FancyManiaLinks

      kremsy
      Posts: 1725
      Joined: 21 Jul 2011, 09:51

      Re: Auto-Kick plugin ?

      Post by kremsy » 17 Jan 2015, 09:47

      I don't know it exactly yet, but try if this ManiaPlanet Method now works correctly:

      Code: Select all

      GetNetworkStats() 		
      array 	Returns a struct containing the networks stats of the server. The structure contains the following fields : Uptime, NbrConnection, MeanConnectionTime, MeanNbrPlayer, RecvNetRate, SendNetRate, TotalReceivingSize, TotalSendingSize and an array of structures named PlayerNetInfos. Each structure of the array PlayerNetInfos contains the following fields : Login, IPAddress, LastTransferTime, DeltaBetweenTwoLastNetState, PacketLossRate. Only available to SuperAdmin.
      Once I thought of an implementation in the ManiaControl core itself, but before ManiaPlanet 3 the PlayerNetInfos sadly didn't work for Shootmania, they only did for Trackmania. (But never took just one event, check for example every second, 10 seconds in a row, sum it up and than if you see weired things -> kick over the maniacontrol kick function.)

      If it works for Shootmania, please tell me, than im considering a Solution in the ManiaControl core again to store the Ping for example in the Playerobject.
      Lukas alias Kremsy, Developer of:
      ManiaControl: http://www.maniacontrol.com
      ParagonLeague: http://league.paragon-esports.com
      MPAseco: http://mpaseco.org
      ManiaViewer: http://www.maniaviewer.com

      Xenome77
      Posts: 144
      Joined: 13 Sep 2012, 21:42

      Re: Auto-Kick plugin ?

      Post by Xenome77 » 17 Jan 2015, 13:00

      I'm sorry but idk how can i test this. I can read & understand some part of code but write it or implement it correctly was too much for me :?
      If i'm right it's xmlrpc call ? but even if put good fonction it have to be draw somwhere and i have no idea how do this

      I also see they do some work on it with SMadminstools but can't find the files ... or source.

      kremsy
      Posts: 1725
      Joined: 21 Jul 2011, 09:51

      Re: Auto-Kick plugin ?

      Post by kremsy » 17 Jan 2015, 13:58

      Just try to call maniaControl->getConnection()->getNetworkStats() and dump its result, something like:

      Code: Select all

      var_dump($this->maniaControl->getConnection()->getNetworkStats())
      (I don't know if I called the functions the correct way, but it demonstrates the way). Than you see it in the console / log if it shows networkstats of players.
      Lukas alias Kremsy, Developer of:
      ManiaControl: http://www.maniacontrol.com
      ParagonLeague: http://league.paragon-esports.com
      MPAseco: http://mpaseco.org
      ManiaViewer: http://www.maniaviewer.com

      Xenome77
      Posts: 144
      Joined: 13 Sep 2012, 21:42

      Re: Auto-Kick plugin ?

      Post by Xenome77 » 17 Jan 2015, 15:19

      Hm nothing happens :s

      Post Reply

      Return to “ManiaControl”

      Who is online

      Users browsing this forum: No registered users and 1 guest