thankyou
Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: MakeRoom plugin  (Read 20973 times)

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: MakeRoom plugin
« Reply #15 on: June 20, 2011, 08:46:49 PM »
Not that I would use this, but people have asked and XLR made a suggestion that lead me to ask for this feature request..

For the next version if possible...
in the xml
automation settings
--automation on/off
--number of slots in gameserver total
--number to hold back
--immune level
--wait time
--automationmessage

.py (coding)
If automation is on,
then, if player connects check how many slots are full
then if number of slots total (minus) number of slots full (is less then) number of slots to hold back, then kick (using same logic plugin already uses) players until number of slots total (minus) number to hold back is = or (greater then) number of slots to hold back. If player joins who is immune, then kick next possible player to keep slots open...

ofc, it would be awesome if it displayed a message (automation message) 15 seconds (set via wait time) before it began the kicks.
« Last Edit: June 20, 2011, 08:54:16 PM by MordyT »
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: MakeRoom plugin
« Reply #16 on: June 20, 2011, 11:03:16 PM »
It is always easier to get motivated once clear and detailed requirements have been written down.

Give a try to makeroom v1.3

Offline MordyT

  • Support Hero
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: MakeRoom plugin
« Reply #17 on: June 20, 2011, 11:30:19 PM »
Really! AWESOME!
I will let Grosskokf know....
Help will be given to those with a b3.log

If drop off the map it is due to RL becoming busy :)

System: Python 2.7.3 - Deb 7 - B3 Source Code - 128MB RAM box (rented at $5 a year) - remote MySQL - Remote Web Services

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #18 on: June 21, 2011, 05:06:38 AM »
If automation is on,
then, if player connects check how many slots are full
then if number of slots total (minus) number of slots full (is less then) number of slots to hold back, then kick (using same logic plugin already uses) players until number of slots total (minus) number to hold back is = or (greater then) number of slots to hold back. If player joins who is immune, then kick next possible player to keep slots open...

ofc, it would be awesome if it displayed a message (automation message) 15 seconds (set via wait time) before it began the kicks.

Ouch. My head hurts after trying to read that. :)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: MakeRoom plugin
« Reply #19 on: June 21, 2011, 07:23:56 AM »
Not that I would use this, but people have asked and XLR made a suggestion that lead me to ask for this feature request..

For the next version if possible...
in the xml
automation settings
--automation on/off
--number of slots in gameserver total
--number to hold back
--immune level
--wait time
--automationmessage

^^ I've kept that part only

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #20 on: June 21, 2011, 01:18:08 PM »
^^ I've kept that part only

Can you explain how that works? Mordy's explanation was a bit too complicated for me. :)

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: MakeRoom plugin
« Reply #21 on: June 21, 2011, 01:20:12 PM »
when someone connects, it counts the free slots
if less than what you choose in config, then the last connected player is kicked
unless he is a member, in which case a non member would be kicked following the same behavior as the !makeroom command

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #22 on: June 22, 2011, 08:05:10 PM »
The customized reasons for kicking don't seem to be working. For example, see this line:

Quote
<set name="kick_message">kicking $clientname for a reserved slot. Reserved slots available! Visit grosskopf-servers.com for details!</set>

However, when someone is being kicked, it's simply saying "to free a slot". Doesn't even have the player's name. Yes, I saved the .xml file and restarted B3.

*EDIT*

I believe this is supposed to be the reason given to the player for their kick:

Quote
        <set name="kick_reason">to make room for a contributing member.</set>

The b3.log shows this:

Quote
110622 09:37:13   VERBOSE   "RCON sending (109.73.163.230:28960) 'say ^0(^2b3^0)^7: Keeping a free slot, please come back again'"
« Last Edit: June 22, 2011, 08:08:09 PM by GrossKopf »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: MakeRoom plugin
« Reply #23 on: June 22, 2011, 08:34:04 PM »
is this the case when using !makeroom ?

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #24 on: June 22, 2011, 10:10:39 PM »
is this the case when using !makeroom ?

I honestly don't know. I haven't tested the command, but I do know it's doing this with the automatic option, even though I changed the messages. Are the messages in the .py file?

Offline Kid Cudi

  • Jr. Member
  • **
  • Posts: 27
Re: MakeRoom plugin
« Reply #25 on: June 23, 2011, 12:43:01 PM »
its working really nice, thanks.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #26 on: June 29, 2011, 03:19:25 AM »
I honestly don't know. I haven't tested the command, but I do know it's doing this with the automatic option, even though I changed the messages. Are the messages in the .py file?

Anyone know?

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #27 on: July 06, 2011, 03:45:11 AM »
I hate to feel like a spammer, but has this plugin been abandoned?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: MakeRoom plugin
« Reply #28 on: July 06, 2011, 07:30:38 AM »
no, but since two weeks I have a new job and I cannot spend as much time here as when unemployed. Now I have to make priorities.

Offline BetterDeadThanZed

  • Beta Testers
  • Hero Member
  • *
  • Posts: 681
    • Killin Zeds
Re: MakeRoom plugin
« Reply #29 on: July 06, 2011, 01:02:57 PM »
no, but since two weeks I have a new job and I cannot spend as much time here as when unemployed. Now I have to make priorities.

Ah, ok. just didn't want to lose hope that someone would look into why the messages aren't being sent.

 


Rate this page +1 at Google Search