Jump to content

Insane Limits (0.9.17.0 - 30-MAR-2015) + BFHL


ImportBot

Recommended Posts

Originally Posted by BitterLooter*:

 

These may be your problem. Plugins in Procon execute in alphabetical order, the delay set in the limit needs to be long enough to ensure that it executes after UMM & xVotemap.

Ok, so as a test, I disabled those plugins, restarted the layer and put this command in the console to test it:

plugin.ServerCommand("mapList.runNextRound");

 

Didn't do anything. Map didn't change on the server.

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

Originally Posted by m1o2u3s4*:

 

I want to switch this code from kick To block All explosives

NOT KICK OR KILLING OR ROUND BAN

 

/* Version: V0.8/R1 */

String kCounter = killer.Name + "_TreatAsOne_Count";

TimeSpan time = TimeSpan.FromSeconds(5); // Activations within 5 seconds count as 1

 

int warnings = 0;

if (server.Data.issetInt(kCounter)) warnings = server.Data.getInt(kCounter);

 

/*

The first time through, warnings is zero. Whether this is an isolated

activation or the first of a sequence of activations in a short period

of time, do something on this first time through.

*/

String msg = "none";

if (warnings == 0) {

msg = plugin.R("Attention %k_n%! Do not use %w_n%!"); // First warning message

plugin.SendGlobalMessage(msg);

plugin.PRoConChat("ADMIN > " + msg);

server.Data.setInt(kCounter, warnings+1);

return false;

}

 

/*

The second and subsequent times through, check to make sure we are not

getting multiple activations in a short period of time. Ignore if

less than the time span required.

*/

 

if (limit.Activations(killer.Name, time) > 1) return false;

 

/*

We get here only if there was exactly one activation in the time span

*/

 

if (warnings == 1) {

msg = plugin.R("FINAL WARNING %k_n%! Do not use %w_n%!"); // Second warning message

plugin.SendGlobalMessage(msg);

plugin.PRoConChat("ADMIN > " + msg);

} else if (warnings >= 2) {

msg = plugin.R("Kicking %k_n% for ignoring warnings and killing with %w_n%!");

plugin.SendGlobalMessage(msg);

plugin.PRoConChat("ADMIN > " + msg);

plugin.PRoConEvent(msg, "Insane Limits");

plugin.KickPlayerWithMessage(killer.Name, msg);

}

server.Data.setInt(kCounter, warnings+1);

return false;

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

Originally Posted by Link4134*:

 

Ok, so as a test, I disabled those plugins, restarted the layer and put this command in the console to test it:

plugin.ServerCommand("mapList.runNextRound");

 

Didn't do anything. Map didn't change on the server.

If you type mapList.runNextRound in the console it works. plugin.ServerCommand("text_here") tells insane limits to put text_here in the console.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Chilace*:

 

Where do I find a list of weapon names to use when limiting them?

 

Thanks!

Open file "\Procon\Configs\BF4.def"

Search section where strings starts with "procon.protected.weapons"

There are weapons with names and categories

or

go there showthread....s-BF3-BF4-BFHL*

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

Originally Posted by spatieman*:

 

could use some help with a hacked code here.

 

To be sure that only platoon members can join our BF4 server i modded a kick script so that only players in the lists are able to

join the server.

Works like a charm ^^

 

evaluation: on join.

 

Code:

String msg = "This is a private platoon server, invite only,Have a nice day";
if (!plugin.isInList(player.Name, "private_list")) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
How ever...

i am not in for editing the perm memberlist,i added a seconds list as show below.

for guest players i made a seconds list, ehm, but if a member joins, he get kicked.

i am not that good, so what am i doing wrong so that both lists works properly.

list 1 for members

list 2 for guest players

 

Code:

String msg = "This is a private platoon server, invite only,Have a nice day";
if ((!plugin.isInList(player.Name, "private_list")) || (!plugin.isInList(player.Name, "private_list_guest"))) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by maxdralle*:

 

could use some help with a hacked code here.

 

To be sure that only platoon members can join our BF4 server i modded a kick script so that only players in the lists are able to

join the server.

Works like a charm ^^

 

evaluation: on join.

 

Code:

String msg = "This is a private platoon server, invite only,Have a nice day";
if (!plugin.isInList(player.Name, "private_list")) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
How ever...

i am not in for editing the perm memberlist,i added a seconds list as show below.

for guest players i made a seconds list, ehm, but if a member joins, he get kicked.

i am not that good, so what am i doing wrong so that both lists works properly.

list 1 for members

list 2 for guest players

 

Code:

String msg = "This is a private platoon server, invite only,Have a nice day";
if ((!plugin.isInList(player.Name, "private_list")) || (!plugin.isInList(player.Name, "private_list_guest"))) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
Code:
String msg = "This is a private platoon server, invite only,Have a nice day";
if ((!plugin.isInList(player.Name, "private_list")) && (!plugin.isInList(player.Name, "private_list_guest"))) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by spatieman*:

 

Code:

String msg = "This is a private platoon server, invite only,Have a nice day";
if ((!plugin.isInList(player.Name, "private_list")) && (!plugin.isInList(player.Name, "private_list_guest"))) {
	plugin.KickPlayerWithMessage(player.Name, msg);
}
return false;
offcourse..

i had to know it, your the man Maxdralle !

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

Originally Posted by spatieman*:

 

so, i tried to pimp a working script so that it also logs action.

i revamped below code

 

Code:

name: making only headshots
evaluation: on kill

first_check_expression
( kill.Headshot == true)

second_check_code

String aimbotmsg = "banned for aimbot 10 headshots < 30 sec";

if ( limit.Activations(player.Name, TimeSpan.FromSeconds(30)) >  10 )
    return true;

	     plugin.PBBanPlayerWithMessage(PBBanDuration.Permanent, player.Name, 0, aimbotmsg);
             plugin.SendGlobalMessage(plugin.R("player.Name " + aimbotmsg));
	     plugin.Log("Plugins/insanelimits-aimbot.log", plugin.R("[%date% %time%] [%server_host%] [server.Name] [player.PBGuid] [%k_cn%] player.Name " + aimbotmsg));
             plugin.PRoConChat(player.Name + aimbotmsg);
return false;
well, the loging inc messaging works, but it bans players (in this case it me it banned) after making 3 normal kills

i am not a guru, but i have the feeling i make somewhere a mistake but cant see it.

any advice to point me in the right direction?

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

Originally Posted by Hodor*:

 

I probably found the problem. At all players in table BattlelogCache in overviewStats "kdRatio":null! Always null at all players. Any fix?

 

Fix for K/D:

Code:

(  player.Kills/player.Deaths > 1  )
SOLVED
* Restored post. It could be that the author is no longer active.
Link to comment
  • 7 months later...

Hi. Does anyone know why whitelist is not working on these guid?
 

(player.EAGuid != "EA_0EE7A4E0D6B830A6FF05DC99CA224672, EA_127B4FEA77014984D0F6E5DE2F35C9ED, EA_25CFDEDEB3ACF8D47B24CF9443BFB588") && ( player.Kills/player.Deaths > 10 || player.Time > 36000000 || player.Accuracy > 50 || player.Kills > 10000000 || player.Deaths > 10000000 || player.Spm > 4000 )
Edited by Hodor
Link to comment
  • Plugin Developer

@hodor

 

you have to check each eaguid separately.
 

((player.EAGuid != "EA_0EE7A4E0D6B830A6FF05DC99CA224672" && player.EAGuid != "EA_127B4FEA77014984D0F6E5DE2F35C9ED" && player.EAGuid != "EA_25CFDEDEB3ACF8D47B24CF9443BFB588")) && ( player.Kills/player.Deaths > 10 || player.Time > 36000000 || player.Accuracy > 50 || player.Kills > 10000000 || player.Deaths > 10000000 || player.Spm > 4000 )
Link to comment
  • Plugin Developer

you can use the "custom list" feature from insane limits. create a new list with the name "eaguid_whitelist". put all eaguids into this list (separated by " , ").

then create a limit with this "expression":

(!plugin.isInList(player.EAGuid, "eaguid_whitelist")) && ( player.Kills/player.Deaths > 10 || player.Time > 36000000 || player.Accuracy > 50 || player.Kills > 10000000 || player.Deaths > 10000000 || player.Spm > 4000 )

OR

just whitelist all vips:

(!plugin.GetReservedSlotsList().Contains(player.Name)) && ( player.Kills/player.Deaths > 10 || player.Time > 36000000 || player.Accuracy > 50 || player.Kills > 10000000 || player.Deaths > 10000000 || player.Spm > 4000 )
Edited by maxdralle
Link to comment
  • 3 months later...

Probably problems with IL on procon version 1.5.3.0
Code:

OnAnyChat

first_check_expression:  player.LastChat.StartsWith("/go")
second_check_code:

plugin.SendGlobalMessage(plugin.R("Hello world"));

return false;



Error:

Version: InsaneLimits 0.9.17.0
Date: 28.12.2019 15:22:48
Data: 
System.IO.FileNotFoundException: Не удалось загрузить файл или сборку "InsaneLimits.dll, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null" либо одну из их зависимостей. Не удается найти указанный файл.

Stack Trace: 
   в System.Signature.GetSignature(Void* pCorSig, Int32 cCorSig, RuntimeFieldHandleInternal fieldHandle, IRuntimeMethodInfo methodHandle, RuntimeType declaringType)
   в System.Reflection.RuntimeMethodInfo.InvokeArgumentsCheck(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   в System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
   в PRoConEvents.InsaneLimits.executeLimitCheck(Limit limit, String method, PlayerInfoInterface player, PlayerInfoInterface killer, PlayerInfoInterface victim, KillInfoInterface kill)
   в PRoConEvents.InsaneLimits.evaluateLimitChecks(Limit limit, PlayerInfoInterface player, PlayerInfoInterface killer, PlayerInfoInterface victim, KillInfoInterface kill)

MSIL Stack Trace:
    Void GetSignature(Void*, Int32, System.RuntimeFieldHandleInternal, System.IRuntimeMethodInfo, System.RuntimeType), IL: 0xFFFFFFFF
    System.Object[] InvokeArgumentsCheck(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo), IL: 0x0
    System.Object Invoke(System.Object, System.Reflection.BindingFlags, System.Reflection.Binder, System.Object[], System.Globalization.CultureInfo), IL: 0x0
    Boolean executeLimitCheck(Limit, System.String, PRoConEvents.PlayerInfoInterface, PRoConEvents.PlayerInfoInterface, PRoConEvents.PlayerInfoInterface, PRoConEvents.KillInfoInterface), IL: 0x93
    Boolean evaluateLimitChecks(Limit, PRoConEvents.PlayerInfoInterface, PRoConEvents.PlayerInfoInterface, PRoConEvents.PlayerInfoInterface, PRoConEvents.KillInfoInterface), IL: 0x79

 

Edited by Hodor
Link to comment
  • Administrators
2 hours ago, tomopcver said:

same here

looks like new procon(1.530) is incompatible with IL

 

2 minutes ago, iamadeadpixel said:

i can confirm it.

we had last night a procon upgrade on the hoster to 1531

insane limits is not working any more,tought first i made some code isue, but even the simplest spam limit doesnt work.

Please see that. It's a known issue now.

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment
  • Plugin Developer

looks like the limit compiling is not working with the new procon 15311.

thats realy bad because g-portal updated all layers with this buggy version of procon. hopefully colcol finds a solution because insane limits is to important.

this line triggers the error:

 

Unbenannt.png

Link to comment
  • Administrators

So, only solution is to just run that last 3.5 NET version for insane limits. Something from framework switch caused it to not work anymore. Until we can figure out a solution.

The developer of the Battlefield Admin Control Panel (BFACP)

For BFACP support please post in the BFACP topic linked above.

Do not contact me via PM on the forums for help with procon. Please make a topic for it. Only PM's I will accept will revolve around any website issues.

spacer.png

Link to comment

I found temporary solution about this issue

1. launch procon 1.531

2. turn on the insane limits plugin

3.then shut down the procon( I recommend kill the task completely from task manager since it tends to stuck)

4.go to the Plugin/BF4 and replace the Insane Limit.dll for attached one

5.restart the procon and thats it
 

Important: once you enabled insane limit plugin at the step 2, please do not turn off it until all step will complete
Make sure you put the InsaneLimit.cs in the correct folder before trying this

InsaneLimits.dll

Edited by tomopcver
fix typo and add some line
Link to comment

How to execute command from IL? It wont work:
 

ExecuteCommand("procon.plugin.enable", "MULTIbalancer", "false");
return;

i got this error:
[04:55:33 84] [Insane Limits] Compiling Limit #1 - Name1 - OnIntervalServer
[04:55:33 87] [Insane Limits] ERROR: 2 errors compiling Code
[04:55:33 87] [Insane Limits] ERROR: (CS0103, line: 27, column: 13):  The name 'ExecuteCommand' does not exist in the current context
[04:55:33 87] [Insane Limits] ERROR: (CS0126, line: 28, column: 13):  An object of a type convertible to 'bool' is required
 

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.