Jump to content

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


ImportBot

Recommended Posts

  • 2 weeks later...

Originally Posted by Hodor*:

 

Hey @PapaCharlie9

 

Could you help me? Why path Insane Limits cheating?

 

Code:

] [Insane Limits] Thread(Threadpool worker): EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/layer/home/layer/Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf".
I dont know what happen but my layer located here /home/layer/ so Insane Limits is trying to find it here /home/layer/home/layer/

 

Linux ubuntu 14.04 x64

 

EDIT:

 

Well, I have created in the folder /home/layer folders /home/layer/Plugins/BF4 and now it looks like this /home/layer/home/layer/Plugins/BF4 and after this Insane Limits was able to create a file InsaneLimits_InsaneLimits_176.57.120.42_47200.conf , but after adding code to the new_limite procon was crashed

 

It is only one plugin which crashed my procon :mad:

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

Originally Posted by Balu00*:

 

Hey @PapaCharlie9

 

Could you help me? Why path Insane Limits cheating?

 

Code:

] [Insane Limits] Thread(Threadpool worker): EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path "/home/layer/home/layer/Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf".
I dont know what happen but my layer located here /home/layer/ so Insane Limits is trying to find it here /home/layer/home/layer/

 

Linux ubuntu 14.04 x64

 

EDIT:

 

Well, I have created in the folder /home/layer folders /home/layer/Plugins/BF4 and now it looks like this /home/layer/home/layer/Plugins/BF4 and after this Insane Limits was able to create a file InsaneLimits_InsaneLimits_176.57.120.42_47200.conf , but after adding code to the new_limite procon was crashed

 

It is only one plugin which crashed my procon :mad:

Hey Hodor

 

Activate use_custom_storage and change there the link from /home/layer/home/layer/Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf in Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf dan is the conf also correct in folders ,

 

 

If the layer still Crashen you need in Mono /Plugins/BF3 Create.

 

This is the phat:

/usr/lib/mono/2.0/Plugins/BF3/

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

Originally Posted by Hodor*:

 

Hey Hodor

 

Activate use_custom_storage and change there the link from /home/layer/home/layer/Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf in Plugins/BF4/InsaneLimits_176.57.120.42_47200.conf dan is the conf also correct in folders ,

 

 

If the layer still Crashen you need in Mono /Plugins/BF3 Create.

 

This is the phat:

/usr/lib/mono/2.0/Plugins/BF3/

Plugins/BF3/? hmmm i havent BF3 servers..
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Hodor*:

 

Yes i have only BF3. most simply if it goes

Thank you bud, no crashes anymore :smile: So maybe you know how to fix this problem myrcon.net/...advanced-in-game-admin-and-ban-enforcer-adkats#entry41072

 

And how to solve this privacy bug all the time after restart procon and Limits disappear after restart

1gfEbXQ.jpg

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

Originally Posted by ColColonCleaner*:

 

It's working okay now, maybe temporary outage?

 

https://github.com/PapaCharlie9/insane-limits/releases

Github was having a few issues. Some AdKats instances rebooted during the down time were failing to start because they couldn't pull needed libraries.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

Quick question, is it possible at all to disable ANY player fetching from Battlelog? I am currently using Insane Limits just for a !nextmap command limit, I don't need any player fetching.

 

Having Insane Limits enabled means AdKats gets problems connecting to Battlelog, and since I don't need ANY player fetching from Insane Limits, would be nice to disable that.

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

Originally Posted by Hodor*:

 

Quick question, is it possible at all to disable ANY player fetching from Battlelog? I am currently using Insane Limits just for a !nextmap command limit, I don't need any player fetching.

 

Having Insane Limits enabled means AdKats gets problems connecting to Battlelog, and since I don't need ANY player fetching from Insane Limits, would be nice to disable that.

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

Originally Posted by PetulkaCZ*:

 

Hi, please.. help..

I installed insane limits plugin 0.9.17.0 on procon layer 1.5.1.1 for BF4 server and when I swich on virtual mode and then I want to create a new limit and I choose TRUE, then I have problem with this report: [23:18:58 36] [insane Limits] ERROR: unable to dump information to file

[23:18:58 36] [insane Limits] EXCEPTION: System.Security.SecurityException: Fehler bei der Anforderung des Berechtigungstyps "System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral..

What can I do to make the plugin work?

 

Thank you for your help

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

Originally Posted by PapaCharlie9*:

 

Quick question, is it possible at all to disable ANY player fetching from Battlelog? I am currently using Insane Limits just for a !nextmap command limit, I don't need any player fetching.

 

Having Insane Limits enabled means AdKats gets problems connecting to Battlelog, and since I don't need ANY player fetching from Insane Limits, would be nice to disable that.

Yes, it is possible, but it will be very, very noisy. It will complain in the debug log that it can't fetch anything for every player.

 

You have to do two things: 1) if it is installed, disable the Battlelog Cache plugin -- doesn't matter if it hasn't worked in months, it has to be disabled anyway, 2) set use_direct_fetch to False.

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

Originally Posted by PapaCharlie9*:

 

Hi, please.. help..

I installed insane limits plugin 0.9.17.0 on procon layer 1.5.1.1 for BF4 server and when I swich on virtual mode and then I want to create a new limit and I choose TRUE, then I have problem with this report: [23:18:58 36] [insane Limits] ERROR: unable to dump information to file

[23:18:58 36] [insane Limits] EXCEPTION: System.Security.SecurityException: Fehler bei der Anforderung des Berechtigungstyps "System.Security.Permissions.FileIOPermission, mscorlib, Version=2.0.0.0, Culture=neutral..

What can I do to make the plugin work?

 

Thank you for your help

If you are running on a Procon host, the permissions for file access are not set up correctly. Some hosters don't let you write files at all, so it may not be possible to change the permissions, but check anyway.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by VBK-Clan*:

 

It's working okay now, maybe temporary outage?

 

https://github.com/PapaCharlie9/insane-limits/releases

Hi at this link it work but when you klick at main Page Insane Limit Tray to open it giving 404 error

 

phogue.net/forumvb...imits-Examples*

 

If you do not know what C# is, or what an expression is, or what a code snippet is ... do not worry. Study the examples in the Insane Limits - Examples thread. Then, if you are still unclear, how to write an expression or a code snippet, ask for help in this thread.

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

Originally Posted by Jackineyerack*:

 

Hi there, new to this plugin, trying to figure it out, I am trying to run a OnJoin announces VIP has joined the server. I used the one from the front page changed it to a message instead of a yell

 

if (limit.Activations(player.Name) > 1) return false;

if (plugin.GetReservedSlotsList().Contains(player.Nam e)) {

plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");

}

return false;

 

That is the second check code,

 

the first check is List GetReservedSlotsList();.

 

Getting this error:

[insane Limits] Thread(settings): ERROR: 1 error compiling Code

[insane Limits] Thread(settings): ERROR: (CS1528, line: 27, column: 46): Expected ; or = (cannot specify constructor arguments in declaration)

 

Also it is showing for Limit1 that it is enabled, not compiled

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

Originally Posted by LCARSx64*:

 

Hi there, new to this plugin, trying to figure it out, I am trying to run a OnJoin announces VIP has joined the server. I used the one from the front page changed it to a message instead of a yell

 

if (limit.Activations(player.Name) > 1) return false;

if (plugin.GetReservedSlotsList().Contains(player.Nam e)) {

plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");

}

return false;

 

That is the second check code,

 

the first check is List GetReservedSlotsList();.

 

Getting this error:

[insane Limits] Thread(settings): ERROR: 1 error compiling Code

[insane Limits] Thread(settings): ERROR: (CS1528, line: 27, column: 46): Expected ; or = (cannot specify constructor arguments in declaration)

 

Also it is showing for Limit1 that it is enabled, not compiled

Firstly, I'm not too sure if this should be here or in the Insane Limits Requests thread.

Secondly, there is an error in your second_check code:

Code:

if (plugin.GetReservedSlotsList().Contains(player.Na[b]m e[/b])) {
this should be:

Code:

if (plugin.GetReservedSlotsList().Contains(player.Na[b]me[/b])) {
Note the removed space from player.Nam e.

 

Thirdly, your first_check makes no sense, the semi-colon (;) indicates that the first_check would be code, however this has three problems:

 

  • You have: Code:
    List<String> GetReservedSlotsList();
    you are missing the plugin object: Code:
    List<String> [b]plugin.[/b]GetReservedSlotsList();
  • With the plugin object added, this still has the problem of not being assigned to a variable, so it should be something like: Code:
    List<String> [b]mylist = [/b]plugin.GetReservedSlotsList();
  • Even after the above fixes, this is useless since it is never referenced and cannot be used by the second_check.

So to fix your limit:-

 

  • Change the first_check to this Expression: Code:
    (true)
  • Change the second_check to this Code: Code:
    if (limit.Activations(player.Name) == 1)
    {
        if (plugin.GetReservedSlotsList().Contains(player.Name))
        {
            plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");
        }
    }
    
    return false;

Since this is evaluated OnJoin then it's kind of pointless checking how many times the limit has been activated by the player(s), you could therefore disable the second_check and change the first_check to this Code:

Code:

if (plugin.GetReservedSlotsList().Contains(player.Name))
{
    plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");
}

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

Originally Posted by MrSnakie*:

 

Hello,

 

I have created a limit to display information about Kdr, Kpm, Spm, ... when a player say !stats in chat.

I use "player.KpmRound" and "player.SpmRound", but I get number like 0,4568713125. I do not want to show too many numbers, for example: 0,45. :ohmy:

 

Is there a way to change this? :huh:

 

PS: Sorry for my english, I'm french.

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

Originally Posted by Jackineyerack*:

 

I must of pasted it wrong there wasn't the space in the "name" part, I tried both of the ones you posted one on each server and joined both of them and it didn't seem to work. I really dont understand all this stuff tho, I am sure I am messing it up some where What I have right now.

 

1st server:

State: Enabled

 

name: VIP

 

evaluation: OnJoin

 

first_check: Code

 

first_check_code:

if (plugin.GetReservedSlotsList().Contains(player.Nam e))

{

plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");

}

 

return false;

 

 

Second_check : Disabled

 

 

 

 

2nd Server:

State: Enabled

 

name: VIP

 

evaluation: OnJoin

 

first_check: Expression

 

first_check_expression: (true)

 

Second_check: code

 

Second_check_code:

if (limit.Activations(player.Name) == 1)

{

if (plugin.GetReservedSlotsList().Contains(player.Nam e))

{

plugin.SendGlobalMessage("VIP " + player.FullName + " is in the house!");

}

}

 

return false;

 

 

 

 

 

Appreciate the help on this by the way.

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

Originally Posted by westyjoe*:

 

Having a problem with our gunmaster gun randomizing working since the community map update. We are running on Fragnet (1.5.1.2) and have insane limits (0.9.17.0). We do not use troll (4) and want the night maps to use only night guns (5). The night guns setting is not working. Please advise where this code is having a problem if you can figure it out. In the startup.txt we have the following setting vars.gunMasterWeaponsPreset "3"

 

thanks in advance!

 

limit_1_state Enabled

limit_1_name BF4 Gunmaster Random Presets

limit_1_evaluation OnRoundOver

limit_1_first_check Code

limit_1_first_check_code

Thread gmrnd = new Thread(

new ThreadStart(

delegate

{

try

{

// USER SETTINGS

//

int iDelay = 0;

int lastPreset = 3;

bool ensureNight = true;

bool allowStandard = true;

bool allowClassic = true;

bool allowPistol = false;

bool allowDLC = true;

bool allowTroll = false;

bool allowNight = true;

bool showChat = false;

bool showYell = false;

bool showProcon = true;

//

// END OF USER SETTINGS

if (iDelay > 0)

{

Thread.Sleep(iDelay * 1000);

}

if (server.NextGamemode == "GunMaster0" || server.NextGamemode == "GunMaster1")

{

bool bGetting = true;

int nextPreset = 0;

int maxPreset = 6;

Random rnd = new Random();

String lastKey = "_LASTGM_";

String[] presets = { "Standard",

"Classic",

"Pistol",

"DLC",

"Troll",

"Night" };

String msg = "Next GunMaster preset will be: ";

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);

nextPreset = rnd.Next(maxPreset);

if (ensureNight && server.NextMapFileName == "XP5_Night_01")

{

nextPreset = 5;

}

else

{

while (bGetting)

{

nextPreset = rnd.Next(maxPreset);

if (!allowStandard && nextPreset == 0) nextPreset = lastPreset;

if (!allowClassic && nextPreset == 1) nextPreset = lastPreset;

if (!allowPistol && nextPreset == 2) nextPreset = lastPreset;

if (!allowDLC && nextPreset == 3) nextPreset = lastPreset;

if (!allowTroll && nextPreset == 4) nextPreset = lastPreset;

if (!allowNight && nextPreset == 5) nextPreset = lastPreset;

if (nextPreset != lastPreset) bGetting = false;

}

}

plugin.ServerCommand("vars.gunMasterWeaponsPreset" , nextPreset.ToString());

if (showChat) plugin.SendGlobalMessage(msg + presets[nextPreset]);

if (showYell) plugin.SendGlobalYell("\n" + msg + presets[nextPreset], 8);

if (showProcon) plugin.PRoConChat(msg + "^b^1" + presets[nextPreset] + "^0^n.");

server.Data.setInt(lastKey, nextPreset);

}

}

catch (Exception e)

{

plugin.ConsoleException(e.ToString());

}

}

)

);

 

gmrnd.Name = "GMPresetRandomizer";

gmrnd.Start();

 

return false;

 

limit_1_second_check disabled

limit_1_new_action ...

limit_1_action None

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

Originally Posted by LCARSx64*:

 

Having a problem with our gunmaster gun randomizing working since the community map update. We are running on Fragnet (1.5.1.2) and have insane limits (0.9.17.0). We do not use troll (4) and want the night maps to use only night guns (5). The night guns setting is not working. Please advise where this code is having a problem if you can figure it out. In the startup.txt we have the following setting vars.gunMasterWeaponsPreset "3"

 

thanks in advance!

 

limit_1_state Enabled

limit_1_name BF4 Gunmaster Random Presets

limit_1_evaluation OnRoundOver

limit_1_first_check Code

limit_1_first_check_code

Thread gmrnd = new Thread(

new ThreadStart(

delegate

{

try

{

// USER SETTINGS

//

int iDelay = 0;

int lastPreset = 3;

bool ensureNight = true;

bool allowStandard = true;

bool allowClassic = true;

bool allowPistol = false;

bool allowDLC = true;

bool allowTroll = false;

bool allowNight = true;

bool showChat = false;

bool showYell = false;

bool showProcon = true;

//

// END OF USER SETTINGS

if (iDelay > 0)

{

Thread.Sleep(iDelay * 1000);

}

if (server.NextGamemode == "GunMaster0" || server.NextGamemode == "GunMaster1")

{

bool bGetting = true;

int nextPreset = 0;

int maxPreset = 6;

Random rnd = new Random();

String lastKey = "_LASTGM_";

String[] presets = { "Standard",

"Classic",

"Pistol",

"DLC",

"Troll",

"Night" };

String msg = "Next GunMaster preset will be: ";

if (server.Data.issetInt(lastKey)) lastPreset = server.Data.getInt(lastKey);

nextPreset = rnd.Next(maxPreset);

if (ensureNight && server.NextMapFileName == "XP5_Night_01")

{

nextPreset = 5;

}

else

{

while (bGetting)

{

nextPreset = rnd.Next(maxPreset);

if (!allowStandard && nextPreset == 0) nextPreset = lastPreset;

if (!allowClassic && nextPreset == 1) nextPreset = lastPreset;

if (!allowPistol && nextPreset == 2) nextPreset = lastPreset;

if (!allowDLC && nextPreset == 3) nextPreset = lastPreset;

if (!allowTroll && nextPreset == 4) nextPreset = lastPreset;

if (!allowNight && nextPreset == 5) nextPreset = lastPreset;

if (nextPreset != lastPreset) bGetting = false;

}

}

plugin.ServerCommand("vars.gunMasterWeaponsPreset" , nextPreset.ToString());

if (showChat) plugin.SendGlobalMessage(msg + presets[nextPreset]);

if (showYell) plugin.SendGlobalYell("\n" + msg + presets[nextPreset], 8);

if (showProcon) plugin.PRoConChat(msg + "^b^1" + presets[nextPreset] + "^0^n.");

server.Data.setInt(lastKey, nextPreset);

}

}

catch (Exception e)

{

plugin.ConsoleException(e.ToString());

}

}

)

);

 

gmrnd.Name = "GMPresetRandomizer";

gmrnd.Start();

 

return false;

 

limit_1_second_check disabled

limit_1_new_action ...

limit_1_action None

This is the wrong place to ask, please post (in this case) in the BF4 Gunmaster Random Presets thread: myrcon.net/.../insane-limits-bf4-gunmaster-random-presets

Also please use [CODE] [/CODE] tags around the code.

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

Originally Posted by Grovax*:

 

I have a problem with detection of vehicle kills. I use a protection script for no vehicle kills under 16 players on server. normally vehicle kills logged as "Death" or "Roadkill", but this rarely works.

 

i see the kills at procon events (@ pic), but when i use event name as weapon name it dont work

vehicle kills.png

 

expression like:

Code:

( (kill.Weapon == "Death" || kill.Weapon == "Roadkill" || kill.Weapon == "M1 Abrams MBT" || kill.Weapon == "BTR-90 APC") && server.PlayerCount < 16 )
PS:

sry for my english :ohmy:

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

Originally Posted by moacco07*:

 

Hello,

 

Need help, my insane limits not working and all scripts not complied and this happen today. Never had this problem before. And the error shows as below. Can anyone provide solutions. All other plugins are working fine tho except for insane limits.

 

Code:

[01:48:11 21] [Insane Limits] Thread(settings): ERROR: 1 error compiling Code
[01:48:11 21] [Insane Limits] Thread(settings): ERROR: (CS1583, line: 0, column: 0):  'd:\localuser\g465465\Plugins\BF3\CSC48F6.tmp' is not a valid Win32 resource file
* 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.
Note: Your post will require moderator approval before it will be visible.

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.