Jump to content

Insane Limits - Examples


Recommended Posts

Originally Posted by droopie*:

 

any update/news on bringing the insane punisher to work inside limits? am still having conflicts with limits votekick and insane punish's votekick. if i am trying to vote kick someone on the other team insane punisher tells me only tkers can be voted. so all i really want is a kick tkers once an X number of !punish from that tker is reached

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

Originally Posted by sorinnana*:

 

Set use_custom_lists to True and create a new list with these parameters:

 

Code:

name = [b]admin_list[/b]
       data = player1, player2, player3, etc
Create a new limit to evaluate OnSpawn and set action to Say

 

Set first_check to this Expression:

 

Code:

plugin.isInList(player.Name, "[b]admin_list[/b]")
Set second_check to this Expression:

 

Code:

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

Code:

say_audience = All
             say_message = Admin %p_n% has logged in, everyone behave!
DOES NOT WORK FOR ME....

ERROR:

[03:15:00 91] [insane Limits] Thread(enforcer): EXCEPTION: : System.ArgumentException: Must specify valid information for parsing in the string.

[03:15:00 91] [insane Limits] Thread(enforcer): Extra information dumped in file InsaneLimits.dump

 

 

ANYBADY CAN HELP ME? PLS....

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

Originally Posted by sorinnana*:

 

This example uses two limits, one to announce admin's when they join, the other to provide an in-game command that allows players to ask for a list of admins with !adminlist. Requires 0.0.0.7 or later. Note: These examples compiled successfully, but I didn't try them to see if they worked.

 

Preparation

 

Set use_custom_lists to True and create a new list with these parameters:

 

Code:

name = admins
       data = name1, name2, name3, ...
Note: The names in the list must be spelled exactly as the soldier name of the player, without a tag. If the name is some crazy l337|

 

Admin Announcer Limit

 

Create a new limit to evaluate OnJoin and set action to Say

 

Set first_check to this Expression:

 

Code:

( plugin.isInList(player.Name, "admins") )
Leave second_check Disabled.

 

Set these action specific parameters:

 

Code:

say_message: Admin %p_fn% has just joined!
      say_audience: All
      say_delay: 60
There's a minimum of about a minute between the join and spawn, depending on how much load-out and squad changing the player does, so wait 60 seconds before issuing the say so that they can see the greeting too.

 

In-Game Admin List Command

 

Create a new limit to evaluate OnAnyChat and set action to None

 

Set first_check to this Expression:

 

Code:

( plugin.IsInGameCommand(player.LastChat) )
Set second_check to this Code:

 

Code:

/* Extract the command */
String command = plugin.ExtractInGameCommand(player.LastChat);

/* Sanity check the command */
if (null == command || command.Length == 0)
    return false;

/* Parse the command */
if (Regex.Match(command, "adminlist", RegexOptions.IgnoreCase).Success) {
    String adminList = "Admins: ";
    bool found = false;
    List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
    players.AddRange(team1.players);
    players.AddRange(team2.players);
    if (team3.players.Count > 0)
        players.AddRange(team3.players);
    if (team4.players.Count > 0)
        players.AddRange(team4.players);

    foreach (PlayerInfoInterface p in players) {
        if (plugin.isInList(p.Name, "admins")) {
            if (found)
               adminList = adminList + ", " + p.Name;
            else
               adminList = adminList + p.Name;
            found = true;
        }
    }
    if (found)
        plugin.SendSquadMessage(player.TeamId, player.SquadId, adminList);
}

return false;
For the example list of admins given above, the chat output will look like this:

 

Admins: name1, name2, name3

DOES NOT WORK FOR ME....

ERROR:

[03:15:00 91] [insane Limits] Thread(enforcer): EXCEPTION: : System.ArgumentException: Must specify valid information for parsing in the string.

[03:15:00 91] [insane Limits] Thread(enforcer): Extra information dumped in file InsaneLimits.dump

 

ANYBADY CAN HELP ME? PLS....

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

Originally Posted by HexaCanon*:

 

On TDM max players is 24, so 23 vs 1. Even that seems a bit impossible, so how about starting with 2 zombies that can rez each other?

 

Also, I'd turn friendly fire on and set to ultra hard core so that 2 shots with a pistol will kill.

 

Human players would have to agree to do no rezzing or med packs (no way to enforce automatically).

i think there is no limit to amount of players in TDM, you just need something like adaptive server size to set the amount of players to server max before round start.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by sorinnana*:

 

DOES NOT WORK FOR ME....

ERROR:

[03:15:00 91] [insane Limits] Thread(enforcer): EXCEPTION: : System.ArgumentException: Must specify valid information for parsing in the string.

[03:15:00 91] [insane Limits] Thread(enforcer): Extra information dumped in file InsaneLimits.dump

 

ANYBADY CAN HELP ME? PLS....

problem fixed: list comparison = CaseInsensitive
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

DOES NOT WORK FOR ME....

ERROR:

[03:15:00 91] [insane Limits] Thread(enforcer): EXCEPTION: : System.ArgumentException: Must specify valid information for parsing in the string.

[03:15:00 91] [insane Limits] Thread(enforcer): Extra information dumped in file InsaneLimits.dump

 

ANYBADY CAN HELP ME? PLS....

Please screenshot the portion of the Plugin Settings that shows your custom list for admin_list. If you can't screenshot, type EXACTLY what you have in that section. It should look something like this (with possibly a different number):

 

Code:

List #1 - admin_list (Enabled)
list_1_hide		...
list_1_state		Enabled
list_1_name		admin_list
list_1_comparison	CaseSensitive
list_1_data		micovery, droopie, HexaCanon
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Hi,

I am looking for something like this:

 

onRoundOver

ProconChat & Log

"Mapduration for map y was x Minutes."

 

Maybe somebody can help me.

Thx!

Rucki

evaluation OnRoundOver

 

first check expression :

Code:

( true )
edit : made a fast tweak to limit, try removing the actions and place this code in your second check

 

Code:

/* BF3 friendly map names, including B2K */
    Dictionary<String, String> Maps = new Dictionary<String, String>();
    Maps.Add("MP_001", "Grand Bazaar");
    Maps.Add("MP_003", "Teheran Highway");
    Maps.Add("MP_007", "Caspian Border");
    Maps.Add("MP_011", "Seine Crossing");
    Maps.Add("MP_012", "Operation Firestorm");
    Maps.Add("MP_013", "Damavand Peak");
    Maps.Add("MP_017", "Noshahr Canals");
    Maps.Add("MP_018", "Kharg Island");
    Maps.Add("MP_Subway", "Operation Metro");
    Maps.Add("XP1_001", "Strike At Karkand");
    Maps.Add("XP1_002", "Gulf of Oman");
    Maps.Add("XP1_003", "Sharqi Peninsula");
    Maps.Add("XP1_004", "Wake Island");
    
    /* BF3 friendly game modes, including B2K */
    Dictionary<String, String> Modes = new Dictionary<String, String>();    
    Modes.Add("ConquestLarge0", "Conquest64");
    Modes.Add("ConquestSmall0", "Conquest");
    Modes.Add("ConquestSmall1", "Conquest Assault");
    Modes.Add("RushLarge0", "Rush");
    Modes.Add("SquadRush0", "Squad Rush");
    Modes.Add("SquadDeathMatch0", "Squad Deathmatch");
    Modes.Add("TeamDeathMatch0", "Team Deathmatch");

if ( true ) {
    if (Maps.ContainsKey(server.NextMapFileName) && Modes.ContainsKey(server.NextGamemode))
		plugin.PRoConChat("Admin > All: " + plugin.R("[%date% %time%] Map duration for " + Maps[server.NextMapFileName]+" "+ Modes[server.NextGamemode] + " was " + server.TimeRound/60 + " minutes."));
		plugin.SendGlobalMessage(plugin.R("[%date% %time%] Map duration for " + Maps[server.NextMapFileName]+" "+ Modes[server.NextGamemode] + " was " + server.TimeRound/60 + " minutes."));
		plugin.Log("Plugins/roundduration.log", plugin.R("[%date% %time%] Map duration for " + Maps[server.NextMapFileName]+" "+ Modes[server.NextGamemode] + " was " + server.TimeRound/60 + " minutes."));
}
else

return false;
first check stays the same.

 

it will give you a message like this one

 

[sunday, February 26, 2012 5:43 PM] Map duration for Noshahr Canals Conquest64 was 1.61666666666667 minutes.

 

it will be said in chat and will be logged in Plugins/roundduration.log

 

if you want even more details just ask :smile:

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

Originally Posted by Rucki*:

 

[sunday, February 26, 2012 5:25 PM] Mapduration for MP_017 was 91 seconds.

 

if you want a more detailed and better message just tell me.

Thanks a lot, is working perfect, and detailed enough for me. :smile:

Ok, real mapname and Minutes/Seconds would be nice, but only, if you are really bored. :cool:

 

---edit---

made a fast tweak to limit, try removing the actions and place this code in your second check

I'm speechless. :o

Thank you!

 

Regards!

Rucki

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

Originally Posted by HexaCanon*:

 

Thanks a lot, is working perfect, and detailed enough for me. :smile:

Ok, real mapname and Minutes/Seconds would be nice, but only, if you are really bored. :cool:

 

Regards!

Rucki

i did an edit to the previous post :smile:

 

edit : i will make it something like hours:Minutes:seconds format later after my clan meeting is done

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

Originally Posted by Rucki*:

 

it will give you a message like this one

 

[sunday, February 26, 2012 5:43 PM] Map duration for Noshahr Canals Conquest64 was 1.61666666666667 minutes.

Yes, it does!

The minutes are right, but the Text shows me "next map" and "next gamemode". :ohmy:

I will try to delete the "next´s" in your code.

 

---edit---

Done, and it seems to work. I am a coder! :P

---edit---

 

Thanks!

Rucki

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

Originally Posted by PapaCharlie9*:

 

Anyone help me make a limit where if someone types "@TS3" it posts the TS3 IP, and port Information in Chat

Added new example thread: Insane Limits V0.8/R1: Simple Command For Information*, which uses your "@TS3" request as the basis of the example. If you really want "@TS3", all caps, and you want to use the No Code example, change "@teamspeak" to "@TS3".

 

micovery, I suggest adding this one to the Patterns section.

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

Originally Posted by HexaCanon*:

 

Yes, it does!

The minutes are right, but the Text shows me "next map" and "next gamemode". :ohmy:

I will try to delete the "next´s" in your code.

 

---edit---

Done, and it seems to work. I am a coder! :P

---edit---

 

Thanks!

Rucki

yes it was copy/paste from a different limit :P
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Yes, it does!

The minutes are right, but the Text shows me "next map" and "next gamemode". :ohmy:

I will try to delete the "next´s" in your code.

 

---edit---

Done, and it seems to work. I am a coder! :P

---edit---

 

Thanks!

Rucki

Well done, both HexaCanon and Rucki! We'll make coders out of both of you yet!

 

To do the hh:mm:ss thing, try this:

 

Code:

TimeSpan time = TimeSpan.FromSeconds(server.TimeRound);
String hhmmss = time.Hours.ToString("D2") + ":" + time.Minutes.ToString("D2") + ":" + time.Seconds.ToString("D2");
Then you can + hhmmss + in the message wherever you want.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by sorinnana*:

 

Please screenshot the portion of the Plugin Settings that shows your custom list for admin_list. If you can't screenshot, type EXACTLY what you have in that section. It should look something like this (with possibly a different number):

 

Code:

List #1 - admin_list (Enabled)
list_1_hide		...
list_1_state		Enabled
list_1_name		admin_list
list_1_comparison	CaseSensitive
list_1_data		micovery, droopie, HexaCanon
Posted Image

 

is working now....just changed the comparison to Insensitve

 

Attached Files:

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

Originally Posted by sorinnana*:

 

how can i save our servers setings? every time after i restart one server all the settings:tickets,may players etc.... are going back to the default servers setings.

i know rconnet was overwriting the server setings but we use procon layer now and we have this problem after restarting the server every 2-3 days....

 

sorry if this is in wrong thread

 

 

cheers

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

Originally Posted by GitSum*:

 

how can i save our servers setings? every time after i restart one server all the settings:tickets,may players etc.... are going back to the default servers setings.

i know rconnet was overwriting the server setings but we use procon layer now and we have this problem after restarting the server every 2-3 days....

 

sorry if this is in wrong thread

 

 

cheers

Procon can overwrite the map list kept on your game server, but it can not write to the startup.txt file - which contains the actual game config settings that you are talking about. Open up that file on your game server, make any necessary changes and then save it. When you restart the server, this will be your new "default" config.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by IGOR55285*:

 

My question is to restrict the rank players on the server, how to limit the rank that would be able to access the server only players with 30 levels of this skill or higher, and 30 did not limit the maximum rank mogli.Kak I saw and did, but here's how to make the minimum rank I do not understand.Sorry for my English.:smile:

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

Originally Posted by QUACK-Major-Pain*:

 

My question is to restrict the rank players on the server, how to limit the rank that would be able to access the server only players with 30 levels of this skill or higher, and 30 did not limit the maximum rank mogli.Kak I saw and did, but here's how to make the minimum rank I do not understand.Sorry for my English.:smile:

Onjoin

 

First check expression

 

Code:

( player.Rank < 30 )
Action Kick
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by sorinnana*:

 

Procon can overwrite the map list kept on your game server, but it can not write to the startup.txt file - which contains the actual game config settings that you are talking about. Open up that file on your game server, make any necessary changes and then save it. When you restart the server, this will be your new "default" config.

we runn the servers whit LeetServers and i have access to control panle but nothing i can change or maybe i do?

what i have to add for Player Limit,Banner URL,Description,Number of Tickets...etc

 

Posted Image

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

Originally Posted by Singh400*:

 

we runn the servers whit LeetServers and i have access to control panle but nothing i can change or maybe i do?

what i have to add for Player Limit,Banner URL,Description,Number of Tickets...etc

 

Posted Image

Best way to do it is configure it in ProCon and then use the Config Generator inside ProCon. All you then have to do is copy that from ProCon and paste it into your Control Panel.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Rucki*:

 

Hi,

maybe this limit is somewhere in this thrad, but my "search" failed.

 

My wish;

Serverrules on request.

Thats what i have found. :ohmy:

 

But we play MIXED Mode.

 

If gamemode ist TDM and

OnAnyChat

!rules

Say

My TDMRules

 

If gamemode ist Conq and

OnAnyChat

!rules

Say

My ConqRules

 

If gamemode ist Rush and

OnAnyChat

!rules

Say

My RushRules

 

Hoping for your help.

Rucki

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

Originally Posted by HexaCanon*:

 

Hi,

maybe this limit is somewhere in this thrad, but my "search" failed.

 

My wish;

Serverrules on request.

Thats what i have found. :ohmy:

 

But we play MIXED Mode.

 

If gamemode ist TDM and

OnAnyChat

!rules

Say

My TDMRules

 

If gamemode ist Conq and

OnAnyChat

!rules

Say

My ConqRules

 

If gamemode ist Rush and

OnAnyChat

!rules

Say

My RushRules

 

Hoping for your help.

Rucki

OnAnyChat

 

first check expression

Code:

( player.LastChat.StartsWith("!rules") )
second check Code

 

Code:

// Edit rules here
List<String> TDMRules = new List<String>();
TDMRules.Add("----- MAP RULES -----");
TDMRules.Add("player commands : !votekick | !slap | !insult | !feedback");
TDMRules.Add("player commands : !help | top | rank | !calladmin");
TDMRules.Add("No RPG/SMAW/M320");
TDMRules.Add("No M67 grenade/Usas-12");
// Try not to add more TDMRules.Add because it won't fit in the chat box.



// Edit rules here
List<String> ConqRules = new List<String>();
ConqRules.Add("----- SERVER RULES -----");
ConqRules.Add("player commands : !votekick | !slap | !insult | !feedback");
ConqRules.Add("player commands : !help | top | rank | !calladmin");
// Try not to add more ConqRules.Add because it won't fit in the chat box.



// Edit rules here
List<String> RushRules = new List<String>();
RushRules.Add("----- SERVER RULES -----");
RushRules.Add("player commands : !votekick | !slap | !insult | !feedback");
RushRules.Add("player commands : !help | top | rank | !calladmin");
// Try not to add more RushRules.Add because it won't fit in the chat box.




if (server.GameMode.StartsWith("TeamDeathMatch")) {
	foreach(string Rule in TDMRules) 
		plugin.SendSquadMessage(player.TeamId, player.SquadId, Rule);

		
} else if(server.GameMode.StartsWith("Conquest")) {
	foreach(string Rule in ConqRules) 
		plugin.SendSquadMessage(player.TeamId, player.SquadId, Rule);

		
} else if(server.GameMode.StartsWith("Rush")) {
	foreach(string Rule in RushRules) 
		plugin.SendSquadMessage(player.TeamId, player.SquadId, Rule);
}

return false;
remember to edit the rules in the code to suit your needs, test it and tell me if there is an issue because i did not test it.

 

edit : also the rules will be displayed into the squad only not the whole server.

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

Originally Posted by sorinnana*:

 

any chance i can use some server control panel commands like:

reservedSlotsList.add

reservedSlotsList.clear

reservedSlotsList.list

reservedSlotsList.load

reservedSlotsList.remove

reservedSlotsList.save

just to eliminate a few slots from the server,we have a 64 slots server on metro,sometimes is to much and we want to put it on 48 but the server to show up 64 slots if anybady browse the server,but only 48 to be able to join,like 16 fake players...

so i found that commands but i don't know how to use them or if they are the right ones.

anybady can help me whit this problem _pls

* 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.