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: Autofill plugin for Battlefield 3  (Read 11472 times)

Offline seb2015

  • Jr. Member
  • **
  • Posts: 22
Autofill plugin for Battlefield 3
« on: March 28, 2012, 12:50:05 AM »
Download: http://forum.bigbrotherbot.net/downloads/?sa=view;down=190
Github: https://github.com/sebwert/b3-plugin-autofillbf3

Feature:
  • Game slots are added according to your logged in user, min/max slots have to be specified
  • Ver.0.2: roundStartPlayerCount/roundRestartPlayerCount is set to 8/4 bevore round ends it's reset to 1/0
  • Ver.0.3: the plugin switches two map rotation configs according to the connected players
  • Ver.0.3.1: end current round if last player left with config switch

Please report any bugs here. I could only test this plugin on an 16 slot server.
If you have any suggestions, wishes please post them, too.
« Last Edit: March 29, 2012, 02:28:49 PM by seb2015 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Autofill plugin for Battlefield 3
« Reply #1 on: March 28, 2012, 02:26:42 AM »
nice one ! very clean release with readme and all :)
I'm willing to see more plugins from you. Please feel free to contribute to the B3 core code if you feel comfortable with it.

Offline seb2015

  • Jr. Member
  • **
  • Posts: 22
Re: Autofill plugin for Battlefield 3
« Reply #2 on: March 28, 2012, 02:33:01 AM »
THX I used your poweradmin plugin as blueprint. When I'm more trained in python I will contact you.

Offline MordyT

  • Moderator
  • Hero Member
  • *
  • Posts: 3644
  • Over $300 Donated to B3!
    • MordyT
Re: Autofill plugin for Battlefield 3
« Reply #3 on: March 28, 2012, 03:53:32 PM »
Thanks.
Downloaded and will test soon.
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 seb2015

  • Jr. Member
  • **
  • Posts: 22
Re: Autofill plugin for Battlefield 3
« Reply #5 on: March 29, 2012, 03:17:44 AM »
some new feauteres:

  • If adjust_start_restart_payer_count is set to On in config it will change roundStartPlayerCount/roundRestartPlayerCount to 8/4 after the round started and set it to 1/0 when the round ends.
  • If change_maps is set to On and you have two map files and write their correct absolute pathes to maps_many, maps_few this plugin will change your map rotation when the number of connected user falls under/growth over your maps_border

I've read much about the first point. The roundStartPlayerCount/roundRestartPlayerCount is always told to be a very important setting to get quick matches. Here I set these settings after the round started an before the round ends. In this way you can have a 1player start server and the Quickmatch availabillity.

The second point is to switch map rotation when more or less player are connected. This is done by specifying two file and a border. The files must not contain empty lines and have to be written in the format the battlefield 3 /Admin/MapList.txt is. You find an example and a list with all available map/mode combinations in the plugin. In this file comments are only allowed behind map gamemode rounds tripple.
« Last Edit: March 29, 2012, 03:35:29 AM by seb2015 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Autofill plugin for Battlefield 3
« Reply #6 on: March 29, 2012, 03:34:55 AM »
  • If adjust_start_restart_payer_count is set to On in config it will change roundStartPlayerCount/roundRestartPlayerCount to 8/4 after the round started and set it to 1/0 when the round ends.

...

I've read much about the first point. The roundStartPlayerCount/roundRestartPlayerCount is always told to be a very important setting to get quick matches. Here I set these settings after the round started an before the round ends. In this way you can have a 1player start server and the Quickmatch availabillity.


The BF3 server R20 update will solve that issue. We will be able to play on any server even if there are not enough players but scores won't make it to battelog.
http://battlelog.battlefield.com/bf3/forum/threadview/2832654489667700923/

Offline seb2015

  • Jr. Member
  • **
  • Posts: 22
Re: Autofill plugin for Battlefield 3
« Reply #7 on: March 29, 2012, 03:51:19 AM »
But will somebody join a ranked server where he doesn't get points? It will be intresting what happens with the points, when the settings are changed after the round started.
« Last Edit: March 29, 2012, 03:54:05 AM by seb2015 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Autofill plugin for Battlefield 3
« Reply #8 on: March 29, 2012, 09:23:57 AM »
don't know. Let's figure out in an hour when the patch is released.

Offline seb2015

  • Jr. Member
  • **
  • Posts: 22
Re: Autofill plugin for Battlefield 3
« Reply #9 on: March 29, 2012, 02:27:27 PM »
0.3.1
    end curent round if last player left with config switch
0.3.2
    border for many and few introduced

I have disabled the adjust_start_restart_payer_count option by default. It seems that after the server updates with this options the played round will never end. All scores are submitted to battlelog but when the tickets reach 0 the round does not finish.

What is the best way to trigger an action just before the round finishes? In this context it would be to reset the round start value.
« Last Edit: March 29, 2012, 06:52:36 PM by seb2015 »

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4883
    • Github repository
Re: Autofill plugin for Battlefield 3
« Reply #10 on: March 29, 2012, 07:51:12 PM »
What is the best way to trigger an action just before the round finishes? In this context it would be to reset the round start value.
I guess you would have to monitor the scores to estimate the end of round

Offline seb2015

  • Jr. Member
  • **
  • Posts: 22
Re: Autofill plugin for Battlefield 3
« Reply #11 on: March 29, 2012, 09:08:29 PM »
My idea is to do this with a cron. Haven't found any event for ticket loss or equal. By the way, my plugin needs a new confirmation in the files section. Didn't new that I start this process again by editing it.

Offline Dwarfer

  • Full Member
  • ***
  • Posts: 52
Re: Autofill plugin for Battlefield 3
« Reply #12 on: April 30, 2012, 01:20:28 PM »
Hi,

First of thanks for wring this its works great.  However I have noticed something that maybe a bug or maybe a one of "out of luck".  I had a server with about 16 players on it.. I was tweaking the B3 settings and needed to cold restart B3.  On doing so it kicked all my players bar 2 from the game and set the server level back to the start amount.

I did not manage to keep the logs (apologies for that) if this is not a know issue then I can try and do it again and get the logs..

Thanks

p.s. Sorry if this is not the right place to put this comment/feed back.

Offline [DAD]GrimReaper

  • Full Member
  • ***
  • Posts: 128
Re: Autofill plugin for Battlefield 3
« Reply #13 on: May 01, 2012, 11:47:22 AM »
I  am struggling getting this plugin to run, It does not appear to be changing the server sizing...

Here is my config:

Code: [Select]
<!--
# AutoFill BF3 Plugin for BigBrotherBot(B3) (www.bigbrotherbot.net)
# Copyright (C) 2012 Sebastian Ewert ([email protected])
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
-->
<configuration plugin="autosquad">
<settings name="preferences">
        <set name="server_size">16</set>
        <set name="min_slots">4</set>
        <set name="slots_when_empty">4</set>

        <set name="adjust_start_restart_payer_count">On</set><!-- On/Off -->

        <set name="change_maps">Off</set><!-- On/Off -->
        <set name="end_round_last_player_left">On</set><!-- On/Off -->
        <set name="maps_many">PATH TO YOUR LARGE MAP FILE</set>
        <set name="maps_few">PATH TO YOUR TINY MAP FILE</set>
        <set name="border_many">8</set>
        <set name="border_few">4</set>
</settings>
</configuration>

Any Ideas?

Dwarfer, could you post your config so I can have a peek?

Offline Dwarfer

  • Full Member
  • ***
  • Posts: 52
Re: Autofill plugin for Battlefield 3
« Reply #14 on: May 01, 2012, 01:29:19 PM »
Hi Grim,

Jump on vent with me if you want and I can help ya.. BUT.. here is the conf

Code: [Select]
<configuration plugin="autosquad">
<settings name="preferences">
        <set name="server_size">32</set>
        <set name="min_slots">2</set>
        <set name="slots_when_empty">2</set>

        <set name="adjust_start_restart_payer_count">Off</set><!-- On/Off -->

        <set name="change_maps">Off</set><!-- On/Off -->
        <set name="end_round_last_player_left">Off</set><!-- On/Off -->
        <set name="maps_many">/home/b3user/conf/maps-04.txt</set>
        <set name="maps_few">/home/b3user/conf/maps-04.txt</set>
        <set name="border_many">8</set>
        <set name="border_few">4</set>

</settings>

one thing I did notice is I had to jump on the server first to drop it to the minimal players. after a reload.

 


Rate this page +1 at Google Search

anything