Jump to content

Insane Limits - Examples


Recommended Posts

Originally Posted by HexaCanon*:

 

hi there. Is there a possibility to make a spot kicker. example if the player spots more than 10 players in 30 seconds he should be kicked. Can't it be done?

i think you can not do that.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Multiple replies in this single post, so scan the whole post to see if your question was answered.

 

Thx! :smile: I will use it for our maplist 0-8 players to reduce the tickets on TDM maps.

 

Should this be ok?

Yes, that looks like it should work. You also taught me something new, I didn't know String == String operator== overload worked the same as String.Equal. Nice.

 

errr this is the tuffest request and not sure if this plugin can do it or know of any other plugin that can but i now NEED a plugin that logs when a player is autokicked for idling... we are going to PAY TO IDLE so want to create idle time log kicks based on the limit that changes server settings so if 24+ enables idle limit but if less then -24 disables idle kick.

It all depends on whether the server sends an identifiable event to PRoCon. What I would suggest you do is set up a short idle time, like 120 seconds, and capture the console.log from PRoCon around the OnLeave event. If there is something that PRoCon receives that would uniquely identify the OnLeave as coming from an automated idle kick, you are in business.

 

Or ... maybe it would be better to go the other way? It's much easier to measure the time between an OnJoin and OnLeave and record that. You can also record if the player had 0 kills and 0 deaths and 0 score. Depending on the map, you might even measure the ticket counts at OnJoin and OnLeave time and if it doesn't change, by definition the server was idle. With enough different data points like that, it might be possible to make a fairly accurate guess (a heuristic) that the player was idle during all that time.

 

The enabling/disabling idle kick based on player count is the easiest part. If I have time today I'll do a simple example that does just that -- not the logging part, though.

 

 

Code:

if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && !server.RoundData.issetBool("active1"))
{
plugin.ServerCommand("mapList.setNextMapIndex", "MP_Subway");
server.RoundData.setBool("active1", true);
}

else if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && server.RoundData.issetBool("active1"))
{
plugin.ServerCommand("mapList.runNextRound");
}

return false;
This is pretty good, but there are some problems.

 

mapList.setNextMapIndex takes a number, not a map name. You would have to compute the index number for the map to make that work.

 

Or ... if you arrange for Metro to always be the very first map in your maplist.txt, you can just "hard code" the number to 0, like this:

 

Code:

plugin.ServerCommand("mapList.setNextMapIndex", "0"); // Metro MUST be the first map in the map list!
Also, I don't think the flag logic works as intended. You basically want to insure that runNextRound only happens once. You don't want that to execute over and over again if the other conditions are met. I think you can achieve that by putting both the setNextMapIndex and runNextRound commands into the same block, instead of in separate blocks.

 

Finally, I think you might have to use Data instead of RoundData. Otherwise, if there are no players, it will switch to Metro, which clears RoundData, then it will switch to Metro again, clear RoundData, switch to Metro again, over and over, until someone joins.

 

If you use Data, it means you need an else if (current map is not Metro || PlayerCount > 0) to unsetBool the "active1" flag.

Code:

if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && !server.Data.issetBool("active1"))
{
    // Metro MUST be the first map in the map list!
    plugin.ServerCommand("mapList.setNextMapIndex", "0");
    plugin.ServerCommand("mapList.runNextRound");
    server.Data.setBool("active1", true);
} 
else if (plugin.Data.issetBool("active1") && (server.PlayerCount > 0 || server.MapFileName != "MP_Subway"))
{
    plugin.Data.unsetBool("active1");
}
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by D3ad5hot*:

 

This limit will send a message (global) for the player when he spawns in the server for the first time.

 

Set limit to evaluate OnSpawn, and action to Say

 

Set first_check to this Expression:

 

Code:

(true)
Set second_check to this Expression:

 

Code:

( limit.ActivationsTotal(player.Name) == 1 )
Set these action specific parameters

 

Code:

say_audience = All
           say_message = Everyone, lets welcome %p_n%, from %p_cn%!
If player leaves, and re-joins, welcome message should be displayed again.
hi, can someone help me with this rule. i wanted that when an admin enters the server the welcome message won't show for him. Note i have an admin list named: admin_list
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

hi, can someone help me with this rule. i wanted that when an admin enters the server the welcome message won't show for him. Note i have an admin list named: admin_list

But you want it to show for everyone else? Just not the admin? Unfortunately, that is not currently possible.

 

The best you could do is hide it from his squad (assuming he is in a squad). That would be rather messy to code, as you would have to discover all squads that he was not a member of and send the message only to those squads.

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

Originally Posted by Tsurany*:

 

Hi, I'm using your wordfilter example but running into a small problem.

 

 

List bad_words = new List();

 

bad_words.Add("noob");

bad_words.Add("n00b");

bad_words.Add("nub");

 

String[] chat_words = Regex.Split(player.LastChat, @"\s+");

 

foreach(String chat_word in chat_words)

foreach(String bad_word in bad_words)

if (Regex.Match(chat_word, "^"+bad_word+"$", RegexOptions.IgnoreCase).Success)

return true;

 

return false;

 

This won't respond to terms like noobtube or noobfag. I'd like to warn for those things as well. Just like I would like to warn for stupidnoob and losernoob. Basicly anything containing the combination "noob" either as standalone or with text in front and/or behind it.

 

What term would I use for that?

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

Originally Posted by PapaCharlie9*:

 

This won't respond to terms like noobtube or noobfag. I'd like to warn for those things as well. Just like I would like to warn for stupidnoob and losernoob. Basicly anything containing the combination "noob" either as standalone or with text in front and/or behind it.

 

What term would I use for that?

Hey micovery, I think this is your first FAQ!

 

Your best bet it just to add each new combo as you find them. So just do:

 

bad_words.Add("stupidnoob");

bad_words.Add("losernoob");

bad_words.Add("noobfag");

 

(Are you sure you want noobtube? Everyone types that in chat without meaning anything derogatory, it's just the nickname for the grenade launncher. Heck, I used to brag to my mates that I was a better noobtuber than they were.)

 

You can also group a bunch together like this:

 

Code:

bad_words.Add(@"(_:stupidnoob|losernoob|noobfag|noobtard|ubernoob)");
While it's possible to match anything that includes "noob" or "nub" as a substring, you get into problems where you match too much that you didn't mean to match, like:

 

is shotgun snub nosed?

 

there's no objective

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

Originally Posted by Tsurany*:

 

The problem is that people just rage so bad when they lose that they start throwing noob around. Very annoying. But it's the same problem with works like fuck, fag, nigger,... these words suffer from the same problem. You can type fuckingfaggotnigger and it won't go off at all.

 

Adding all these words is just a very boring job and you will never be able to get a complete list.

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

Originally Posted by QUACK-Major-Pain*:

 

bad_words.Add("stupidnoob");

bad_words.Add("losernoob");

bad_words.Add("noobfag");

Wondering, would it not be easier to implement a badwords_list?

 

plugin.isInList(chat, "badword_list")

 

Not sure what the line would look like exactly, but was meant to show you what I was thinking.

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

Originally Posted by micovery*:

 

Wondering, would it not be easier to implement a badwords_list?

 

plugin.isInList(chat, "badword_list")

 

Not sure what the line would look like exactly, but was meant to show you what I was thinking.

There were no lists when this example was written. We need a new example that uses a list.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by droopie*:

 

Code:

if(server.PlayerCount == 0 && server.MapFileName != "MP_Subway" && !server.Data.issetBool("active1"))
{
    // Metro MUST be the first map in the map list!
    plugin.ServerCommand("mapList.setNextMapIndex", "0");
    plugin.ServerCommand("mapList.runNextRound");
    server.Data.setBool("active1", true);
} 
else if (plugin.Data.issetBool("active1") && (server.PlayerCount > 0 || server.MapFileName != "MP_Subway"))
{
    plugin.Data.unsetBool("active1");
}
works great! should be indexed.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by droopie*:

 

It all depends on whether the server sends an identifiable event to PRoCon. What I would suggest you do is set up a short idle time, like 120 seconds, and capture the console.log from PRoCon around the OnLeave event. If there is something that PRoCon receives that would uniquely identify the OnLeave as coming from an automated idle kick, you are in business.

 

Or ... maybe it would be better to go the other way? It's much easier to measure the time between an OnJoin and OnLeave and record that. You can also record if the player had 0 kills and 0 deaths and 0 score. Depending on the map, you might even measure the ticket counts at OnJoin and OnLeave time and if it doesn't change, by definition the server was idle. With enough different data points like that, it might be possible to make a fairly accurate guess (a heuristic) that the player was idle during all that time.

 

The enabling/disabling idle kick based on player count is the easiest part. If I have time today I'll do a simple example that does just that -- not the logging part, though.

 

 

 

well currently im using a limit based on players to change idle on/off. so whatever works...

 

i am not sure what will work the best. all i know is i want it to enable idle kick and log the users who was idle below an X number of players and idle is off. so not to log when idle kicker is on...

 

so if like 4 are idle helping the server get started and on 24 players idle kick is enabled and those 4 players idle since the start when the server officially goes live to give me a list of those 4 names. this way it DOESNT log if a player is idle kicked when server is live with over 24 players. something like that.

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

Originally Posted by PapaCharlie9*:

 

well currently im using a limit based on players to change idle on/off. so whatever works...

 

i am not sure what will work the best. all i know is i want it to enable idle kick and log the users who was idle below an X number of players and idle is off. so not to log when idle kicker is on...

 

so if like 4 are idle helping the server get started and on 24 players idle kick is enabled and those 4 players idle since the start when the server officially goes live to give me a list of those 4 names. this way it DOESNT log if a player is idle kicked when server is live with over 24 players. something like that.

I see. So let's say 4 players are idle for 40 minutes, then the server starts up and gets up to 24+ players. One of the 4 players also starts playing, so now there are only 3 idlers who have been idle for a total of 55 minutes. All 3 get kicked after the idle timeout, which was activated when the server got to 24+ players.

 

You want to log just those 3 idle players when they are kicked, right? Not the fourth player who started playing, or anyone else that leaves?

 

The OnJoin/OnLeave bookkeeping plus 0 kills/0 deaths/0 score I described should do that for you.

 

OnJoin: if (idle kick is disabled) {save current time in player.Data}

 

OnLeave: if (join time saved for player was XX minutes ago AND player has 0 kills, 0 deaths and 0 score) { Log player for later reward }

 

XX would be the minimum idle time to earn logging/reward.

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

Originally Posted by PapaCharlie9*:

 

The problem is that people just rage so bad when they lose that they start throwing noob around. Very annoying. But it's the same problem with works like fuck, fag, nigger,... these words suffer from the same problem. You can type fuckingfaggotnigger and it won't go off at all.

Not to mention n o o b, n0 0b, nooooooooooob, etc. It's basically an impossible problem to solve automatically. Particularly if you plan to ban as punishment.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by droopie*:

 

I see. So let's say 4 players are idle for 40 minutes, then the server starts up and gets up to 24+ players. One of the 4 players also starts playing, so now there are only 3 idlers who have been idle for a total of 55 minutes. All 3 get kicked after the idle timeout, which was activated when the server got to 24+ players.

 

You want to log just those 3 idle players when they are kicked, right? Not the fourth player who started playing, or anyone else that leaves?

 

The OnJoin/OnLeave bookkeeping plus 0 kills/0 deaths/0 score I described should do that for you.

 

OnJoin: if (idle kick is disabled) {save current time in player.Data}

 

OnLeave: if (join time saved for player was XX minutes ago AND player has 0 kills, 0 deaths and 0 score) { Log player for later reward }

 

XX would be the minimum idle time to earn logging/reward.

yes i suppose that will work. i guess given the example i only want the players actually idle during a low player count to reward. if 1 or 2 are playing they they are active. this is more for those who leave computers on and since its on help get the server populated and are afk. i can consider active players as actually playing and getting points like random people even though its a low player count...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

yes i suppose that will work. i guess given the example i only want the players actually idle during a low player count to reward. if 1 or 2 are playing they they are active. this is more for those who leave computers on and since its on help get the server populated and are afk. i can consider active players as actually playing and getting points like random people even though its a low player count...

Right, I forgot to add logic for server.PlayerCount. The OnLeave test should also test for the number of players. If the idle player leaves when the server has 0 players, they shouldn't get a reward!
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mootart*:

 

PapaCharlie9 thanks for your replie bro... that is awsome unfortunately i have a lot of msg..

 

here is the exact msg i want to use.

 

## "Welcome to Meleemissile Server S3"

## For Server RULES type !r

## For Server RULES type !r

## For Server RULES type !r

## to votekick type !votekick PLAYERNAME - 5 req votes to apply

## to votekick type !votekick PLAYERNAME - 5 req votes to apply

## join in your Squad!!

##"PLEASE ADD US TO YOUR FAVOURITES"

##"PLEASE ADD US TO YOUR FAVOURITES"

## Server Stats:http://s3meleemissile.playerstats.net

## for ban list and ban appeals: http://forum.meleemissile.com

## Stock Holders: 1. [PH]stpatr3k

## We are open for Donations for the Month of February.

## Donation info: Contact [email protected]

 

give me a suggestion for the intervals.. i really have no idea..

 

thanks bro..

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

Originally Posted by Mootart*:

 

[06:36:15 68] [insane Limits] EXCEPTION: : System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

 

 

from the dump. InsaneLimits 0.0.0.8-patch-2

Date: 2/10/2012 6:28:37 PM

Data:

System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

 

Stack Trace:

at System.Net.Mail.MailCommand.CheckResponse(SmtpStat usCode statusCode, String response)

at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)

 

 

why the plugin insane limit don't send emails anymore? i notice this one 3days ago and until now does send email notice.

but before it's working perfect..

 

any ideas?

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

Originally Posted by micovery*:

 

I think you need to use your own email info now instead of the default "insanelimits@gmail" address

[06:36:15 68] [insane Limits] EXCEPTION: : System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required.

 

 

from the dump. InsaneLimits 0.0.0.8-patch-2

Date: 2/10/2012 6:28:37 PM

Data:

System.Net.Mail.SmtpException: The SMTP server requires a secure connection or the client was not authenticated. The server response was: 5.5.1 Authentication Required. Learn more at

 

Stack Trace:

at System.Net.Mail.MailCommand.CheckResponse(SmtpStat usCode statusCode, String response)

at System.Net.Mail.MailCommand.Send(SmtpConnection conn, Byte[] command, String from)

 

 

why the plugin insane limit don't send emails anymore? i notice this one 3days ago and until now does send email notice.

but before it's working perfect..

 

any ideas?

Not sure what happened ... but I tried logging in to the [email protected] ... and the password had been changed ... I freaked out, recovered the account, and changed the security settings on the Gmail account to have 2-Step login verification.

 

Whoever changed the password did a really bad job, because they forgot to change the recovery Phone #, and the security question :-)

 

I'll see what I can do for next version to make it work with the application specific password ... still not sure how that works.

 

In the mean-time use your own SMTP provider, or make a Gmail account for yourself.

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

Originally Posted by Mootart*:

 

Not sure what happened ... but I tried logging in to the [email protected] ... and the password had been changed ... I freaked out, recovered the account, and changed the security settings on the Gmail account to have 2-Step login verification.

 

Whoever changed the password did a really bad job, because they forgot to change the recovery Phone #, and the security question :-)

 

I'll see what I can do for next version to make it work with the application specific password ... still not sure how that works.

 

In the mean-time use your own STMTP provider, or make a Gmail account for yourself.

Where i can put the email account?

 

 

 

[Found it.. thanks :biggrin:]

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

Originally Posted by Mootart*:

 

Not sure what happened ... but I tried logging in to the [email protected] ... and the password had been changed ... I freaked out, recovered the account, and changed the security settings on the Gmail account to have 2-Step login verification.

 

Whoever changed the password did a really bad job, because they forgot to change the recovery Phone #, and the security question :-)

 

I'll see what I can do for next version to make it work with the application specific password ... still not sure how that works.

 

In the mean-time use your own SMTP provider, or make a Gmail account for yourself.

i had mad an account smtp.mail.yahoo.com port 465 yet it return same problem.. am i missing something?

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

Originally Posted by ProconNewbie*:

 

hi can you help me? Insane limits is spaming me the error: "bf3 does not support individual player messages."

i tried once to make a individual player message but im pretty sure that its in not in my limits anymore.

Now the problem: i cant set the evaluation to "onInterval". if i click at it it sets it each time to "OnIntervalPlayers" :/

how can i fix it?

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

Originally Posted by D3ad5hot*:

 

Suppose you wanted to kick players who join your server from Russia, India, or Iran.

 

Set limit to evaluate OnJoin, and set action to Kick

 

Set first_check to this Expression:

 

Code:

Regex.Match(player.CountryCode, "(RU|IR|IN)", RegexOptions.IgnoreCase).Success
Any player that joins the server, whose country code matches "RU", "IR", or "IN" will be kicked.

 

What if you want to setup a negative check ... like kick anyone that joins who is not from "US". In that case, you can do this:

 

Set limit to evaluate OnJoin, and set action to Kick

 

Set first_check to this Expression:

 

Code:

! Regex.Match(player.CountryCode, "(US)", RegexOptions.IgnoreCase).Success
how to set it to kick for Russian federation
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

how to set it to kick for Russian federation

...Code:
Regex.Match(player.CountryCode, "(RU)", RegexOptions.IgnoreCase).Success
Although as a server admin myself I would advise you not to implement this.
* 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.