Jump to content

PRoCon Voteban and Votekick[1.0.0.1] 06.02.2011 [BC2, BF3]


ImportBot

Recommended Posts

Originally Posted by PhaxeNor*:

 

ah i missed this post but goes with my post above. i get that too BUT i see it in the chat box. even if i tell users to type yes it will only say 1 vote.

I think I'll disable this for now until that bug is fixed.

I made a unofficial fix for it here myrcon.net/...procon-voteban-and-votekick-06022011#entry5272

 

That works in BF3 and it tells users when someone starts a vote in chat.

 

So until XpKiller decide to do an official update (once DICE make player say and what not I guess)

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 108
  • Created
  • Last Reply

Top Posters In This Topic

  • ImportBot

    109

Originally Posted by droopie*:

 

here is some of the errors i get...

 

[14:42:05 65] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

[14:44:18 30] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

[14:45:22 60] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

[14:46:48 67] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

[14:49:53 14] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n(ExceptionArgument argument, ExceptionResource resource)

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by XpKiller*:

 

I made a unofficial fix for it here myrcon.net/...procon-voteban-and-votekick-06022011#entry5272

 

That works in BF3 and it tells users when someone starts a vote in chat.

 

So until XpKiller decide to do an official update (once DICE make player say and what not I guess)

Atm dont have so much time.

My target is to iron out the bugs of my far more complex statsplugin first.

I will provide a reviewed version with improvemnts as soon i have time for this.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PhaxeNor*:

 

Atm dont have so much time.

My target is to iron out the bugs of my far more complex statsplugin first.

I will provide a reviewed version with improvemnts as soon i have time for this.

No rush, so far this works fine :-) One can't have it all handed to you on a silver plate :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Tremu1ant*:

 

XpKiller - Good work, dude! we could use something like this.

 

I've installed the plugin, but I'm getting the following error.

 

[17:49:58 10] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

 

[17:50:05 07] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

 

[17:50:40 72] Error in OnCommandVotekick: System.ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection.

Parameter name: index

at System.ThrowHelper.ThrowArgumentOutOfRangeExceptio n()

at System.Collections.Generic.List`1.get_Item(Int32 index)

at PRoConEvents.CPlayerVote.OnCommandVotekick(String strSpeaker, String strText, MatchCommand mtcCommand, CapturedCommand capCommand, CPlayerSubset subMatchedScope)

 

I'm up-to-date with ProCon, and the only other plugins that are running are the following:

In-Game Admin

Spambot

Squad Enforcer

True Balancer (BF3)

 

Let me know if I can help in any way!

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PhaxeNor*:

 

No... The only thing that was touched was turning votekick from "No" to "Yes"

 

See attached.

 

CL.png

Try re type the settings, could be that it isn't loaded properly. Not really that good in this area yet :P

 

This is my first server I have rented. So I guess I'm a newb.

 

Do I just enter the command in chat, !votekick playername to initiate a kick vote?

Yes
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FAF_DRAKO*:

 

I made a unofficial fix for it here myrcon.net/...procon-voteban-and-votekick-06022011#entry5272

 

That works in BF3 and it tells users when someone starts a vote in chat.

 

So until XpKiller decide to do an official update (once DICE make player say and what not I guess)

Great Band-aid... works like a charm.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FSolon*:

 

It works on BF3 but do not show that the vote was started and even do not show the results.

Only show the reason that the guy was kicked/banned (if everybody know that they need to vote on someone).

 

It because the plugin uses a YELL command that is not present in BF3.

And I think the SAY command are wrong written to BF3 too, I think is something like admin.say, not just say. Anyway, I'm a stupid on C, I just figured that this plugin does not work 100% ok on BF3.

 

//Vote Messages

this.msg_StartVote = new List();

this.msg_StartVote.Add("[Yell]A %votetype% has been started against Player %target% by %starter%");

this.msg_StartVote.Add("[Yell]Use @vote yes or @vote no to vote - %req% Votes required");

this.msg_VoteFailed = new List();

this.msg_VoteFailed.Add("[Yell]The %votetype% failed, Player %target% stays");

this.msg_VoteSuccessful = new List();

this.msg_VoteSuccessful.Add("[Yell]The %votetype% was successful, Player %target% will be removed");

this.msg_VoteResults = new List();

this.msg_VoteResults.Add("[say]%yes% Players vote for YES and %no% for NO - Total: %total% votes");

this.m_Reason = "You have been kicked or banned due to a result of a %votetype%!";

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PhaxeNor*:

 

Ok, the command SAY refereced in that post before are ok.

The [say] refers to admin.say

 

Sorry!

 

Anyway I will try to change all the [Yell] to [say] and see if it work's on BF3.

Already made a fix for it:

 

myrcon.net/...procon-voteban-and-votekick-06022011#entry5283

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by dyn*:

 

A friend of mine, not sure if he wants his name mentioned, modified this plugin a bit to better suit our needs.

 

The change now kicks people as soon as the vote total is reached. This enables us to set a higher time limit (say, 3 mins) and then the script will auto kick/ban once the % threshold is reached. This works great since the alternative is to set the threshold lower and then try to QUICKLY get everyone to kick/ban. With this change you have a bit of time to get players on board with the kick but don't have to wait until the the vote ends.

 

The previous patch mentioned above has been included with this modified version.

 

Download here CPlayerVote.zip . Backup your old copy and then give this one a try.

 

It can be tested by setting the % to kick low and then vote kick yourself out.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by xFaNtASyGiRLx*:

 

A friend of mine, not sure if he wants his name mentioned, modified this plugin a bit to better suit our needs.

 

The change now kicks people as soon as the vote total is reached. This enables us to set a higher time limit (say, 3 mins) and then the script will auto kick/ban once the % threshold is reached. This works great since the alternative is to set the threshold lower and then try to QUICKLY get everyone to kick/ban. With this change you have a bit of time to get players on board with the kick but don't have to wait until the the vote ends.

 

The previous patch mentioned above has been included with this modified version.

 

Download here CPlayerVote.zip . Backup your old copy and then give this one a try.

 

It can be tested by setting the % to kick low and then vote kick yourself out.

this works great! thanks! i couldn't get the original to work on bf3 but it worked with your version

 

however, i can only set it to work at 7 percent for some reason. so on a 64 player server it only requires 4 to kick someone - which isn't very many. when i try to up the percentage, it would say not enough votes reached, xfantasygirlx stays. or something like that.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PhaxeNor*:

 

however, i can only set it to work at 7 percent for some reason. so on a 64 player server it only requires 4 to kick someone - which isn't very many. when i try to up the percentage, it would say not enough votes reached, xfantasygirlx stays. or something like that.

Talked with xFaNtASyGiRLx and explained how it works :P
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FSolon*:

 

It is case sensitive.

If the nickname is FSolon try @votekick FSolon. If u write @votekick fsolon could get error like u mentioned.

 

FSolon != fsolon

 

Otherwise u can write @votekick fs, the program will ask "Did you mean @votekick FSolon", u will need to response @yes or @no

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by FSolon*:

 

Thank you!

My work arround worked well too.

And for convenience I have translated all the text to Brazilian Portuguese.

 

Would be nice implementation if all the text could be changed directly through the Procon plugin settings.

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Flo16007*:

 

It is case sensitive.

If the nickname is FSolon try @votekick FSolon. If u write @votekick fsolon could get error like u mentioned.

 

FSolon != fsolon

 

Otherwise u can write @votekick fs, the program will ask "Did you mean @votekick FSolon", u will need to response @yes or @no

Don't work for me. I still get the message "Did you mean @Vote No_"

Somebody know to fix this?

* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by TimSad*:

 

There are a buttload of hackers as of late. My servers just got hit by three in a row within 30 minutes. We really need this plugin polished up. It needs to be easy to understand for the admin to setup and the players need to know what's going on as they use the commands.

 

Here are things that can be done to expedite the player control of banning hackers...

 

1. If they mistype the name have it suggest a player as the In Game Commands does. (Is this already included_)

2. If they don't supply enough arguments, have it tell them the format (!voteban ) and make them supply a reason.

3. When someone does a !voteban, announce how many more are required to start a voteban via chat. Also, announce when a voteban has been initiated via chat.

4. After X amount of people have voted, recurrently, show the updated vote count via chat. (X being the admin's choice via plugin variable)

5. Also, via chat, have the person being voted for and current vote time left displayed recurrently.

 

If I can find time, I'll see if I can add those features into this plugin. I think it'll make things much more clear of what's going on as the votes proceed. All the better for getting rid of these pesky hackers.

 

EDIT (01/18/2012): For those of you still visiting this thread, here is my version of a Vote Ban plugin for BF3... www.phogue.net/forumvb/showth...17-2011%29-BF3*

* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by Mandizzy*:

 

Found a bug or perhaps two ;-)

 

If a vote is in progress and the guy leaves/gets kicked out in the middle of it, the voting thing goes into a spiral. Also if an admin intervenes and bans the player - the voteban keeps going. Sometimes, it gets stuck altogether and keeps repeating "Server XX more Yes votes needed to ban xxxxxx...".

 

I think you need to add an additional hook into procon to monitor playerLeave messages. If a playerLeave name matches the vote in progress, it should automatically cancel the votekick/ban. That should resolve this issue.

* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by Layenne*:

 

hello,

 

Today R20 update and this message appear and never disapear, message stay, its bugued.

 

Posted Image

 

and a message ask 37 vote, i ask 4 vote in plugin.

 

Posted Image

 

Posted Image

 

this server message is really nice, how can i use it for admin @say ?

we can use only it for vote ? we can only use it with procon ?

* Restored post. It could be that the author is no longer active.
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.




  • Our picks

    • Game Server Hosting:

      We're happy to announce that EZRCON will branch out into the game server provider scene. This is a big step for us so please having patience if something doesn't go right in this area. Now, what makes us different compared to other providers? Well, we're going with the idea of having a scaleable server hosting and providing more control in how you set up your server. For example, in Minecraft, you have the ability to control how many CPU cores you wish your server to have access to, how much RAM you want to use, how much disk space you want to use. This type of control can't be offered in a single service package so you're able to configure a custom package the way you want it.

      You can see all the available games here. Currently, we have the following games available.

      Valheim (From $1.50 USD)


      Rust (From $3.20 USD)


      Minecraft (Basic) (From $4.00 USD)


      Call of Duty 4X (From $7.00 USD)


      OpenTTD (From $4.00 USD)


      Squad (From $9.00 USD)


      Insurgency: Sandstorm (From $6.40 USD)


      Changes to US-East:

      Starting in January 2022, we will be moving to a different provider that has better support, better infrastructure, and better connectivity. We've noticed that the connection/routes to this location are not ideal and it's been hard getting support to correct this. Our contract for our two servers ends in March/April respectively. If you currently have servers in this location you will be migrated over to the new provider. We'll have more details when the time comes closer to January. The new location for this change will be based out of Atlanta, GA. If you have any questions/concerns please open a ticket and we'll do our best to answer them.
      • 5 replies
    • Hello All,

      I wanted to give an update to how EZRCON is doing. As of today we have 56 active customers using the services offered. I'm glad its doing so well and it hasn't been 1 year yet. To those that have services with EZRCON, I hope the service is doing well and if not please let us know so that we can improve it where possible. We've done quite a few changes behind the scenes to improve the performance hopefully. 

      We'll be launching a new location for hosting procon layers in either Los Angeles, USA or Chicago, IL. Still being decided on where the placement should be but these two locations are not set in stone yet. We would like to get feedback on where we should have a new location for hosting the Procon Layers, which you can do by replying to this topic. A poll will be created where people can vote on which location they would like to see.

      We're also looking for some suggestions on what else you would like to see for hosting provider options. So please let us know your thoughts on this matter.
      • 4 replies
    • Added ability to disable the new API check for player country info


      Updated GeoIP database file


      Removed usage sending stats


      Added EZRCON ad banner



      If you are upgrading then you may need to add these two lines to your existing installation in the file procon.cfg. To enable these options just change False to True.

      procon.private.options.UseGeoIpFileOnly False
      procon.private.options.BlockRssFeedNews False



       
      • 2 replies
    • I wanted I let you know that I am starting to build out the foundation for the hosting services that I talked about here. The pricing model I was originally going for wasn't going to be suitable for how I want to build it. So instead I decided to offer each service as it's own product instead of a package deal. In the future, hopefully, I will be able to do this and offer discounts to those that choose it.

      Here is how the pricing is laid out for each service as well as information about each. This is as of 7/12/2020.

      Single MySQL database (up to 30 GB) is $10 USD per month.



      If you go over the 30 GB usage for the database then each additional gigabyte is charged at $0.10 USD each billing cycle. If you're under 30GB you don't need to worry about this.


      Databases are replicated across 3 zones (regions) for redundancy. One (1) on the east coast of the USA, One (1) in Frankfurt, and One (1) in Singapore. Depending on the demand, this would grow to more regions.


      Databases will also be backed up daily and retained for 7 days.




      Procon Layer will be $2 USD per month.


      Each layer will only allow one (1) game server connection. The reason behind this is for performance.


      Each layer will also come with all available plugins installed by default. This is to help facilitate faster deployments and get you up and running quickly.


      Each layer will automatically restart if Procon crashes. 


      Each layer will also automatically restart daily at midnight to make sure it stays in tip-top shape.


      Custom plugins can be installed by submitting a support ticket.




      Battlefield Admin Control Panel (BFACP) will be $5 USD per month


      As I am still working on building version 3 of the software, I will be installing the last version I did. Once I complete version 3 it will automatically be upgraded for you.





      All these services will be managed by me so you don't have to worry about the technical side of things to get up and going.

      If you would like to see how much it would cost for the services, I made a calculator that you can use. It can be found here https://ezrcon.com/calculator.html

       
      • 11 replies
    • I have pushed out a new minor release which updates the geodata pull (flags in the playerlisting). This should be way more accurate now. As always, please let me know if any problems show up.

       
      • 9 replies
×
×
  • Create New...

Important Information

Please review our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.