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.

×
×
  • 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.