Jump to content

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


ImportBot

Recommended Posts

Originally Posted by PapaCharlie9*:

 

Original Author: micovery

 

On-going support: PapaCharlie9

 

Contributors: Singh400, EBastard

 

Testers and supporters: dyn, EBastard, Singh400, ADKGamers, Hexacanon

 

==>Download and install instructions in the last section of post

This is an orphaned plugin! It is no longer supported by the original author. It is maintained by community contributors (see list above). Donations are purely voluntary, without minimum or maximum requirement, and go to the original author, not to the community contributors.

Description


 

This plugin is a customizable limits/rules enforcer. It allows you to setup and enforce limits based on player statistics, and server state.

 

It tracks extensive Battlelog stats and round stats. If you feel that there is a stat, or aggregate, or information that really needs to be included, post feedback on this thread. The plugin supports events like OnKill, OnTeamKill, OnJoin, OnSpawn, etc. You are able to perform actions triggered by those events.

 

Version 0.9.4.0 and later is optionally integrated with a MySQL server (using the Battlelog Cache plugin). This enables caching of Battlelog stats fetching, which over time should reduce the delay caused by restarting Procon/enabling Insane Limits when your server is full. This should also reduce load on Battlelog, which in turn will reduce the number of Web errors and exceptions. This version is compatible with TrueBalancer and other plugins that use stats fetching.

 

You can find limits ready to use in the Plugins forum.

 

You can request help for developing new limits in the Insane Limits Requests* thread.

 

By default, the plugin installs with virtual_mode set to True. This allows you to test your limits/rules without any risk of accidentally kicking or banning anyone. Once you feel your limits/rules are ready, you can disable virtual_mode.

 

Think this plugin is awesome? You can buy me a beer.

 

Posted Image

 

Twitter Live Feed


 

The live feed shows the plugin state, kicks, and bans for servers that elected to tweet this data.

 

https://myrcon.net/recovered/img/63287_b96182_4a299d754b010dfdc762290fecc05465.png_128

 

http://twitter.com/InsaneLimits

 

Video Demo


Note: the video shows an old version of the plugin. What you see may differ from the video, but the basic steps of creating a limit are the same.

 

type="application/x-shockwave-flash" wmode="transparent"

width="425" height="355">

 

Don't see a video player above? Then click on this sentence to see it on YouTube. Use high resolution and full screen.

 

Disclaimer


 

If you are careless with the rules, sometimes you can end up hurting more than helping. Having said that, it's not up to me or anyone to judge the merit of a limit/rule, otherwise this can become a flame war. Be polite when replying to posts in this thread, and don't flame others because you don't like their rules. I just give you the tool, and you (the server admin) make the rules.

 

My advise is, think creatively when coming up with the rules, and be open minded. If you do not know how to express your limit ideas in C#, ask in this thread. The data is there, available, ready to be consumed ... you just have to come up with the ideas.

 

Installation Instructions


 

  • Download the zip file containing the plugin source
  • Extract the source file InsaneLimits.cs
  • Copy the source file to ProCon's Plugins/BF3 directory

Minimum Requirements


 

This plugin requires you to have sufficient privileges for running the following commands:

 

  • serverInfo
  • mapList.list
  • mapList.getMapIndices
  • admin.listPlayers all
  • punkBuster.pb_sv_command pb_sv_plist
  • punkBuster.pb_sv_command pb_sv_ban
  • punkBuster.pb_sv_command pb_sv_kick

Additionaly, you need to have Read+Write file system permission in the following directories:

 

  • /
  • /Plugins/BF3
  • /Plugins/BF4

Supported Limit Evaluations


 

  • OnJoin - Limit evaluated when player joins
  • OnLeave - Limit evaluated when player leaves
  • OnSpawn - Limit evaluated when player spawns
  • OnKill - Limit evaluated when makes a kill (team-kills not counted)
  • OnTeamKill - Limit evaluated when player makes a team-kill
  • OnDeath - Limit evaluated when player dies (suicides not counted)
  • OnTeamDeath - Limit evaluated when player is team-killed
  • OnSuicide - Limit evaluated when player commits suicide
  • OnAnyChat - Limit evaluated when players sends a chat message
  • OnIntervalPlayers - Limit evaluated (for all players) every evaluation_interval number of seconds
  • OnIntervalServer - Limit evaluated once every evaluation_interval number of seconds
  • OnRoundOver - Limit evaluated when round over event is sent by PRoCon
  • OnRoundStart - Limit evaluated after round over event, when first player spawns
  • OnTeamChange - Limit evaluated after player switches team (admin move not counted as team-switch)

Note that limit evaluation is only performed after the plugin has fetched the player stats from Battlelog.

 

When you enable the plugin for the first time in a full server, it will take a couple of minutes to fetch all player stats

 

Limit Management


 

Creation - In order to create a new limit, you have to set new_limit variable to True.

 

This creates a new limit section with default values that you can change.

 

Deletion - In order to delete a limit, you have to set the variable delete_limit to the numerical id of the limit you want to delete.

 

Each limit has an id number, you can see the id number in the limit name, e.g. Limit #5.

Limit Definition


 

At its basic, there are four fields that determine the structure of a limit. These fields are state, action, and first_check, and second_check.

 

  • state

    Enabled - the limit will be used by the plugin thread

    Disabled - the limit will be ignored by the plugin thread

    Virtual - the limit will be used, but actions will be done in virtual_mode

     

    This field is useful if you want to temporarily disable a limit from being used, but still want to preserve its definition.

  • action

    (string, psv) - list of actions for this limit (Pipe separated ""|"")

     

    e.g. Say | PBBan | Mail

     

    These are all the allowed actions:

    • None - no action is performed against the player
    • Kick - player is kicked, if the limit evaluates to True
    • EABan - player is banned (using the BF3 ban-list), if the limit evaluates True
    • PBBan - player is banned (using PunkBuster ban-list), if the limit evaluates True
    • Kill - kills the player (delay optional), if the limit evaluates True
    • Say - sends a message the server (All, Team, Squad, or Player), if the limit evaluates True
    • Log - logs a message to a File, Plugin log, or both, if the limit evaluates True
    • Mail - sends an e-mail to specified address, if the limit evaluates True
    • SMS - sends an SMS message to the specified phone number, if the limit evaluates True
    • Tweet - posts a Twitter status update (default account is @InsaneLimits), if the limit evaluates True
    • PBCommand - executes the specified PunkBuster command, if the limit evaluates True
    • ServerCommand - executes the specified Server command, if the limit evaluates True
    • PRoConChat - sends the specified text to PRoCon's Chat-Tab, if the limit evaluates True
    • PRoConEvent - adds the specified event to PRoCon's Events-Tab, if the limit evaluates True
    • TaskbarNotify - sends a Windows Taskbar notification, if the limit evaluates True
    • SoundNotify - plays an audio notification, if the limit evaluates True
    • Yell - yells a message to the server (All, Team, or Player), if the limit evaluates True

    Depending on the selected action, other fields are shown to specify more information about the action.

     

    Supported PB ban-duration: Permanent, Temporary

    Supported PB ban-type: PB_GUID (default)

     

    Supported EA ban-duration: Permanent, Temporary, Round

    Supported EA ban-type: EA_GUID, IPAddress, Name

     

    Also note that each of these actions have a target player. You have to be careful on what target is for each action.

     

    For example, during a Kill event, the target of the action is the Killer. But, during a Death event, the target of the action is the player that was killed. You don't want to accidentally Kick/Ban the wrong player!

  • first_check

    Disabled - the limit does not evaluate anything in the first step of evaluation

    Expression - the limit uses a C# conditional expression during the first step of evaluation

    Code - the limit uses a C# code snippet (must return true/false) during the first step of evaluation

  • second_check

    Disabled - the limit does not evaluate anything in the second step of evaluation

    Expression - the limit uses a C# conditional expression during the second step of evaluation

    Code - the limit uses a C# code snippet (must return true/false) during the second step of evaluation

     

    Depending on the selected check type, an extra field will be shown for specifying the Expression, or Code text.

Both Expressions, and Code snippets must be syntactically correct in accordance to the C# language.The plugin compiles your Expression/Code in-memory with the Microsoft C# Compiler. If there are compilation errors, those are shown in the plugin log.

 

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 thread. Then, if you are still unclear, how to write an expression or a code snippet, ask for help in this thread.

 

Limit Evaluation


 

After compilation, limit evaluation is by far the most important of all steps this plugin goes through.

 

Limit evaluation is comprised of three steps:

 

  • first_check Evaluation

     

    During this step, the plugin executes the Expression/Code in first_check to get a True or False result.

     

    If the result is False, the plugin does not perform any action, and quits. But, if it's True, it keeps going to the next step

  • second_check Evaluation (optional)

     

    Next, the plugin runs the Expression/Code for the second_check, if it's enabled. If it's not enabled, it keeps going to next step.

  • action Execution

     

    If the final result of the limit evaluation is True, the plugin then executes the action associated with the limit.

     

    If the final result of the limit evaluation is False, no action is executed.

Objects


 

When writing a limit Expression or Code snippet, there are several globally defined objects that can be used. These are server, player, killer, victim, kill, plugin, team1, team2, team3, team4, and limit. These objects contain values, and functions that can be accessed from within the Expressions, or Code snippets.

 

Limit Object


 

The limit object represents the state the limit that was just activated. This object is only available during the second_check. The limit object implements the following interface:

 

Code:

public interface LimitInfoInterface
{
   //Number of times the limit has been activated, (Current round)
    double Activations(String PlayerName);
    double Activations(int TeamId, int SquadId);
    double Activations(int TeamId);

    // Number of times player has activated this limit (Current round) in the given TimeSpan, e.g. last 10 seconds, etc
    double Activations(String PlayerName, TimeSpan time);
    double Activations();


    //Number of times the limit has been activated (All rounds)
    double ActivationsTotal(String PlayerName);
    double ActivationsTotal(int TeamId, int SquadId);
    double ActivationsTotal(int TeamId);
    double ActivationsTotal();

    // Number of times this limit has been activated by player
    /*
     * Kill, TeamKill: Spree value is reset when player dies
     * Death, TeamDeath, and Suicide: Spree value is reset whe player makes a kill
     *
     * Spawn, Join, Interval: Spree value is never reset, you may reset it manually.
     */

    double Spree(String PlayerName);

    // manually resets the Spree value for the player, (only for power-users)
    void ResetSpree(String PlayerName);

    /* Data Repository set/get custom data */
    DataDictionaryInterface Data { get; }
    DataDictionaryInterface RoundData { get; }   //this dictionary is automaticaly cleared OnRoundStart

    /* Other methods */
    String LogFile { get; }
}

Team Object (team1, team2, team3, team4)


 

The teamX object represents the state of the team with id X at the moment that the limit is being evaluated. The teamX object implements the following interface:

 

Code:

public interface TeamInfoInterface
{
    List<PlayerInfoInterface> players { get; }

    double KillsRound { get; }
    double DeathsRound { get; }
    double SuicidesRound { get; }
    double TeamKillsRound { get; }
    double TeamDeathsRound { get; }
    double HeadshotsRound { get; }
    double ScoreRound { get; }

    int TeamId { get; }
    double Tickets { get; }
    double RemainTickets { get; }
    double RemainTicketsPercent { get; }
    double StartTickets { get; }

    // BF4
    int Faction { get; } // US = 0, RU = 1, CN = 2
}

Server Object


 

The server object represents the state of the server at the moment that the limit is being evaluated. The server object implements the following interface:

 

Code:

public interface ServerInfoInterface
{
    /* Server State */
    int CurrentRound { get; }
    int TotalRounds { get; }
    int PlayerCount { get; }
    int MaxPlayers { get; }

    /* Current Map Data */
    int MapIndex { get; }
    String MapFileName { get; }
    String Gamemode { get; }

    /* Next Map Data */
    int NextMapIndex { get; }
    String NextMapFileName { get; }
    String NextGamemode { get; }
    double GameModeCounter { get; }
    double CTFRoundTimeModifier { get; }

    /* Map Rotation */
    List<String> MapFileNameRotation { get; }
    List<String> GamemodeRotation { get; }
    List<int> LevelRoundsRotation { get; }

    /* All players, Current Round, Stats */
    double KillsRound { get; }
    double DeathsRound { get; }   // kind of useless, should be same as KillsTotal (suicides not counted as death)
    double HeadshotsRound { get; }
    double SuicidesRound { get; }
    double TeamKillsRound { get; }

    /* All players, All rounds, Stats */
    double KillsTotal { get; }
    double DeathsTotal { get; }  // kind of useless, should be same s KillsTotal (suicides not counted as death)
    double HeadshotsTotal { get; }
    double SuicidesTotal { get; }
    double TeamKillsTotal { get; }

    /* Weapon Stats, Current Round, All Rounds (Total)*/
    WeaponStatsInterface this[String WeaponName] { get; }

    /* Other data */
    double TimeRound { get; }                // Time since round started
    double TimeTotal { get; }                // Time since plugin enabled
    double TimeUp { get; }                   // Time since last server restart
    double RoundsTotal { get; }              //Round played since plugin enabled

    /* Meta Data */
    String Port { get; }                     // Layer/Server port number
    String Host { get; }                     // Layer/Server Host
    String Name { get; }
    String Description { get; }
    String GameVersion { get; } // BF3 or BF4

    /* var.* value that is updated every update_interval seconds */
    int BulletDamage { get; }
    bool FriendlyFire { get; }
    int GunMasterWeaponsPreset { get; }
    double IdleTimeout { get; } // seconds
    int SoldierHealth { get; }
    bool VehicleSpawnAllowed { get; }
    int VehicleSpawnDelay { get; }
    // BF4
    bool Commander { get; }
    int MaxSpectators { get; }
    String ServerType { get; }
    int GetFaction(int TeamId); // US = 0, RU = 1, CN = 2

    /* Team data */
    double Tickets(int TeamId);              //tickets for the specified team
    double RemainTickets(int TeamId);        //tickets remaining on specified team
    double RemainTicketsPercent(int TeamId); //tickets remaining on specified team (as percent)

    double StartTickets(int TeamId);         //tickets at the begining of round for specified team
    double TargetTickets { get; }            //tickets needed to win

    int OppositeTeamId(int TeamId);          //id of the opposite team, 1->2, 2->1, 3->4, 4->3, *->0
    int WinTeamId { get; }                   //id of the team that won previous round

    /* Data Repository set/get custom data */
    DataDictionaryInterface Data { get; }
    DataDictionaryInterface RoundData { get; }   //this dictionary is automaticaly cleared OnRoundStart
}

Kill Object


 

The kill object represents information about the kill event. The kill object implements the following interface:

 

Code:

public interface KillInfoInterface
{
    String Weapon { get; }
    bool Headshot { get; }
    DateTime Time { get; }
    String Category { get; } // BF3.defs or BF4.defs weapon category, such as SniperRifle or VehicleAir
}

The KillReasonInterface object represents the friendly weapon name, broken down into separate fields:

 

Code:

public interface KillReasonInterface
{
    String Name { get; } // weapon name or reason, like Suicide
    String Detail { get; } // BF4: ammo or attachment
    String AttachedTo { get; } // BF4: main weapon when Name is a secondary attachment, like M320
    String VehicleName { get; } // BF4: if Name is Death, this is the vehicle's name
    String VehicleDetail { get; } // BF4: if Name is Death, this is the vehicle's detail (stuff after final slash)
}

Player, Killer, Victim Objects


 

The player object represents the state of player for which the current limit is being evaluated. The player object implements the following interface:

 

Code:

public interface PlayerInfoInterface
{
    /* Online statistics (battlelog.battlefield.com) */
    double Rank { get; }
    double Kdr { get; }
    double Time { get; }
    double Kills { get; }
    double Wins { get; }
    double Skill { get; }
    double Spm { get; }
    double Score { get; }
    double Deaths { get; }
    double Losses { get; }
    double Repairs { get; }
    double Revives { get; }
    double Accuracy { get; }
    double Ressuplies { get; }
    double QuitPercent { get; }
    double ScoreTeam { get; }
    double ScoreCombat{ get; }
    double ScoreVehicle{ get; }
    double ScoreObjective { get; }
    double VehiclesKilled { get; }
    double Kpm { get; }

    double KillAssists { get; }
    double ResetDeaths { get; }
    double ResetKills { get; }
    double ResetLosses { get; }
    double ResetWins { get; }
    double ResetScore { get; }
    double ResetShotsFired { get; }
    double ResetShotsHit { get; }
    double ResetTime { get; }

    double ReconTime { get; }
    double EngineerTime { get; }
    double AssaultTime { get; }
    double SupportTime { get; }
    double VehicleTime { get; }
    double ReconPercent { get; }
    double EngineerPercent { get; }
    double AssaultPercent { get; }
    double SupportPercent { get; }
    double VehiclePercent { get; }

    /* Player data */
    String Name { get; }
    String FullName { get; } // name including clan-tag
    String Tag { get; }
    String IPAddress { get; }
    String CountryCode { get ; }
    String CountryName { get; }
    String PBGuid { get; }
    String EAGuid { get; }
    int TeamId { get; }
    int SquadId { get; }
    int Ping { get; }
    int MaxPing { get; }
    int MinPing { get; }
    int MedianPing { get; } // of the last five samples
    int AveragePing { get; } // of two to five samples
    int Role { get; } // BF4: 0 = PLAYER, 1 = SPECTATOR, 2 = COMMANDER, 3 = MOBILE COMMANDER

    /* Current round, Player Stats */
    double KdrRound { get; }
    double KpmRound { get; }
    double SpmRound { get; }
    double ScoreRound { get; }
    double KillsRound { get; }
    double DeathsRound { get; }
    double HeadshotsRound { get; }
    double TeamKillsRound { get; }
    double TeamDeathsRound { get; }
    double SuicidesRound { get; }
    double TimeRound { get; }

    /* All rounds, Player Stats */
    double KdrTotal { get; }
    double KpmTotal { get; }
    double SpmTotal { get; }
    double ScoreTotal { get; }
    double KillsTotal { get; }
    double DeathsTotal { get; }
    double HeadshotsTotal { get; }
    double TeamKillsTotal { get; }
    double TeamDeathsTotal { get; }
    double SuicidesTotal { get; }
    double TimeTotal { get; }
    double RoundsTotal { get; }

    /* Weapon Stats, Current Round, All Rounds (Total) */
    WeaponStatsInterface this[String WeaponName] { get; }

    /* Battlelog Weapon Stats function: use kill.Weapon for WeaponName */
    BattlelogWeaponStatsInterface GetBattlelog(String WeaponName);

    /* Other Data */
    DateTime JoinTime { get; }
    String LastChat { get; }   // text of the last chat sent by player
    bool Battlelog404 { get; } // True - Player has no PC Battlelog profile
    bool StatsError { get; }   // True - Error occurred while processing player stats

    /* Whitelist information */
    bool inClanWhitelist { get; }
    bool inPlayerWhitelist { get; }
    bool isInWhitelist { get; }

    /* Data Repository set/get custom data */
    DataDictionaryInterface Data { get; }
    DataDictionaryInterface RoundData { get; }   //this dictionary is automaticaly cleared OnRoundStart
}

Plugin Object


 

The plugin represents this plugin itself. It gives you access to important functions for executing server commands, and interacting with ProCon. The plugin object implements the following interface:

 

Code:

public interface PluginInterface
{
    /*
     * Methods for sending messages
     */
    bool SendGlobalMessage(String message);
    bool SendTeamMessage(int teamId, String message);
    bool SendSquadMessage(int teamId, int squadId, String message);
    bool SendPlayerMessage(String name, String message);

    bool SendGlobalMessage(String message, int delay);
    bool SendTeamMessage(int teamId, String message, int delay);
    bool SendSquadMessage(int teamId, int squadId, String message, int delay);
    bool SendPlayerMessage(String name, String message, int delay);

    bool SendGlobalYell(String message, int duration);
    bool SendTeamYell(int teamId, String message, int duration);
    bool SendPlayerYell(String name, String message, int duration);

    bool SendMail(String address, String subject, String body);
    bool SendSMS(String country, String carrier, String number, String message);

    /*
     * Methods used for writing to the Plugin console
     */
    void ConsoleWrite(String text);
    void ConsoleWarn(String text);
    void ConsoleError(String text);
    void ConsoleException(String text);

    /*
     * Methods for getting whitelist information
     *
     */
    bool isInWhitelist(String PlayerName);
    bool isInPlayerWhitelist(String PlayerName);
    bool isInClanWhitelist(String PlayerName);
    bool isInWhiteList(String PlayerName, String list_name);

    /* Method for checking custom lists */
    bool isInList(String item, String list_name);

    List<String> GetReservedSlotsList();

    /*
     * Methods getting and setting the Plugin's variables
     */
    bool setPluginVarValue(String variable, String value);
    String getPluginVarValue(String variable);

    /*
     *  Method: R
     *
     *  Replaces tags like %p_n% (Player Name), %k_n% (Killer Name), %v_n% (Victim Name), etc
     */
    String R(String message);

    /*
     * Methods for actions
     */

    bool KickPlayerWithMessage(String name, String message);
    bool KillPlayer(String name);  /* deprecated, do not use */
    bool KillPlayer(String name, int delay);
    bool EABanPlayerWithMessage(EABanType type, EABanDuration duration, String name, int minutes, String message);
    bool PBBanPlayerWithMessage(PBBanDuration duration, String name, int minutes, String message);
    bool PBCommand(String text);
    bool MovePlayer(String name, int TeamId, int SquadId, bool force);
    bool SendTaskbarNotification(String title, String messagge);
    bool Log(String file, String message);
    bool Tweet(String status);
    bool PRoConChat(String text);
    bool PRoConEvent(String text, String player);
    bool SendSoundNotification(String soundfile, String soundfilerepeat);

    void ServerCommand(params String[] arguments);

    /* Other Methods */
    String FriendlySpan(TimeSpan span);       //converts a TimeSpan into a friendly formatted string e.g. "2 hours, 20 minutes, 15 seconds"
    String BestPlayerMatch(String name);      //looks in the internal player's list, and finds the best match for the given player name

    bool IsInGameCommand(String text);          //checks if the given text start with one of these characters: !/@_
    bool IsCommand(String text);                //checks if the given text start with one of these characters: !/@_

    String ExtractInGameCommand(String text);   //if given text starts with one of these charactets !/@_ it removes them
    String ExtractCommand(String text);         //if given text starts with one of these charactets !/@_ it removes them

    String ExtractCommandPrefix(String text);   //if given text starts with one of these chracters !/@_ it returns the character

    /* This method checks if the currently in-game player with matching name has
       a Procon account on the Procon instance controlling this game server. Returns
       False if the name does not match any of the players currently joined to the game server,
       OR the name does not match any of the accounts on the Procon instance.
       The canBan value is set to true if the player can temporary ban or permanently ban.
    */
    bool CheckAccount(String name, out bool canKill, out bool canKick, out bool canBan, out bool canMove, out bool canChangeLevel);

    double CheckPlayerIdle(String name); // -1 if unknown, otherwise idle time in seconds

    /* Updated every update_interval seconds */
    bool IsSquadLocked(int teamId, int squadId); // False if unknown or open, True if locked
    String GetSquadLeaderName(int teamId, int squadId); // null if unknown, player name otherwise

    /* This method looks in the internal player's list for player with matching name.
     * If fuzzy argument is set to true, it will find the player name that best matches the given name
     */
    PlayerInfoInterface GetPlayer(String name, bool fuzzy);

    /*
     * Creates a file in ProCOn's directory  (InsaneLimits.dump)
     * Detailed information about the exception.
     */
    void DumpException(Exception e);

    /* Data Repository set/get custom data */
    DataDictionaryInterface Data { get; }
    DataDictionaryInterface RoundData { get; }   //this dictionary is automaticaly cleared OnRoundStart

    /* Friendly names */
    String FriendlyMapName(String mapFileName);  //example: "MP_001" -> "Grand Bazaar"
    String FriendlyModeName(String modeName);    //example: "TeamDeathMatch0" -> "TDM"
    KillReasonInterface FriendlyWeaponName(String killWeapon); 
        // BF3 example: "Weapons/XP2_L86/L86" => KillReasonInterface("L86", null, null)
        // BF4 example: "U_AK12_M320_HE" => KillReasonInterface("M320", "HE", "AK12")
}

Data and RoundData Objects


 

The Data object is a nested dictionary of key/value pairs that you can use to store custom data inside the plugin, server, limit, player, killer, and victim objects. The Data object implements the following interface:

 

Code:

public interface DataDictionaryInterface
{
    /* String Data */
    String setString(String key, String value);
    String getString(String key);
    String unsetString(String key);
    bool issetString(String key);
    List<String> getStringKeys();

    /* Boolean Data */
    bool setBool(String key, bool value);
    bool getBool(String key);
    bool unsetBool(String key);
    bool issetBool(String key);
    List<String> getBoolKeys();

    /* Double Data */
    double setDouble(String key, double value);
    double getDouble(String key);
    double unsetDouble(String key);
    bool issetDouble(String key);
    List<String> getDoubleKeys();

    /* Int Data */
    int setInt(String key, int value);
    int getInt(String key);
    int unsetInt(String key);
    bool issetInt(String key);
    List<String> getIntKeys();

    /* Object Data */
    object setObject(String key, object value);
    object getObject(String key);
    object unsetObject(String key);
    bool issetObject(String key);
    List<String> getObjectKeys();

    /* Generic set/get methods */
    Object set(Type type, String key, Object value);
    Object get(Type type, String key);
    Object unset(Type type, String key);
    bool isset(Type type, String key);
    List<String> getKeys(Type type);

    /* Other methods */
    void Clear();  /* clear/unset all data from repository */

}

Simple (Traditional) Replacements


 

This plugin supports an extensive list of message text replacements. A replacement is a string that starts and ends with the percent character %. When you use them in the text of a message, the plugin will try to replace it with the corresponding value. For example:

 

The message

Code:

%k_n% killed %v_n% with a %w_n%

becomes

Code:

micovery killed NorthEye with a PP-2000

Below is a list of all the replacements supported. Some replacements are not available for all types of events. For example, Killer-Name replacement is not available for OnSpawn event.

 

Code:

// Killer Replacements (Evaluations:  OnKill, OnDeath, OnTeamKills, and OnTeamDeath)

    /* Legend:
     * k   - killer
     * n   - name
     * ct  - Clan-Tag
     * cn  - Country Name
     * cc  - Country Code
     * ip  - IPAddress
     * eg  - EA GUID
     * pg  - Punk Buster GUID
     */

    %k_n%    Killer name
    %k_ct%   Killer clan-Tag
    %k_cn%   Killer county-name
    %k_cc%   Killer county-code
    %k_ip%   Killer ip-address
    %k_eg%   Killer EA GUID
    %k_pg%   Killer Punk-Buster GUID
    %k_fn%   Killer full name, includes Clan-Tag (if any)

    // Victim Replacements (Evaluations:  OnKill, OnDeath, OnTeamKills, and OnTeamDeath)

    /* Legend:
     * v   - victim
     */

    %v_n%    Victim name,
    %v_ct%   Victim clan-Tag
    %v_cn%   Victim county-name
    %v_cc%   Victim county-code
    %v_ip%   Victim ip-address
    %v_eg%   Victim EA GUID
    %v_pg%   Vitim Punk-Buster GUID
    %v_fn%   Victim full name, includes Clan-Tag (if any)

    // Player Repalcements (Evaluations: OnJoin, OnSpawn, OnAnyChat, OnTeamChange, and OnSuicide)

    /* Legend:
     * p   - player
     * lc  - last chat
     */

    %p_n%    Player name
    %p_ct%   Player clan-Tag
    %p_cn%   Player county-name
    %p_cc%   Player county-code
    %p_ip%   Player ip-address
    %p_eg%   Player EA GUID
    %p_pg%   Player Punk-Buster GUID
    %p_fn%   Player full name, includes Clan-Tag (if any)
    %p_lc%   Player, Text of last chat

    // Weapon Replacements (Evaluations: OnKill, OnDeath, OnTeamKill, OnTeamDeath, OnSuicide)

    /* Legend:
     * w   - weapon
     * n   - name
     * p   - player
     * a   - All (players)
     * x   - count
     */

    %w_n%    Weapon name,
    %w_p_x%  Weapon, number of times used by player in current round
    %w_a_x%  Weapon, number of times used by All players in current round

    // Limit Replacements for Activations & Spree Counts, Current Round (Evaluations: Any)

    /* Legend:
     * th  - ordinal count suffix e.g. 1st, 2nd, 3rd, 4th, etc
     * x   - count, 1, 2, 3, 4, etc
     * p   - player
     * s   - squad
     * t   - team
     * a   - All (players)
     * r   - SpRee
     */

    %p_x_th%  Limit, ordinal number of times limit has been activated by the player
    %s_x_th%  Limit, ordinal number of times limit has been activated by the player's squad
    %t_x_th%  Limit, ordinal number of times limit has been activated by the player's team
    %a_x_th%  Limit, ordinal number of times limit has been activated by all players in the server
    %r_x_th%  Limit, ordinal number of times limit has been activated by player without Spree value being reset
    %p_x%     Limit, number of times limit has been activated by the player
    %s_x%     Limit, number of times limit has been activated by the player's squad
    %t_x%     Limit, number of times limit has been activated by the player's team
    %a_x%     Limit, number of times limit has been activated by all players in the server
    %r_x%     Limit, number of times limit has been activated by player without Spree value being reset

    // Limit Replacements for Activations, All Round (Evaluations: Any)
    /* Legend:
     * xa - Total count, for all rounds
     */
    %p_xa_th%  Limit, ordinal number of times limit has been activated by the player
    %s_xa_th%  Limit, ordinal number of times limit has been activated by the player's squad
    %t_xa_th%  Limit, ordinal number of times limit has been activated by the player's team
    %a_xa_th%  Limit, ordinal number of times limit has been activated by all players in the server
    %p_xa%     Limit, number of times limit has been activated by the player
    %s_xa%     Limit, number of times limit has been activated by the player's squad
    %t_xa%     Limit, number of times limit has been activated by the player's team
    %a_xa%     Limit, number of times limit has been activated by all players in the server

    // Other replacements
    %date%    Current date, e.g. Sunday December 25, 2011,
    %time%    Current time, e.g. 12:00 AM

    %server_host%  Server/Layer host/IP
    %server_port%  Server/Layer port number

    %l_id% Limit numeric id"
    %l_n%  Limit name""

Advanced Replacements


 

In addition to the simple %key% replacments, this plugin also allows you to use a more advanced type of replacement. Within strings, you can use replacements that match properties in known objects. For example, if you use player.Name within a string, the plugin will detect it and replace it appropriately.

 

A common usage for advanced replacements is to list player stats in the Kick/Ban reason. For example:

 

The message

 

Code:

player.Name you were banned for suspicious stats: Kpm: player.Kpm, Spm: player.Spm, Kdr: player.Kdr

becomes

 

Code:

micovery you were banned for suspicious stats: Kpm: 0.4, Spm: 120, Kdr: 0.61

Settings


 

  • use_direct_fetch

    True - if the cache is not available, fetch stats directly from Battlelog

    False - disable direct fetches from Battlelog

     

    If the Battlelog Cache plugin is installed, up-to-date and enabled, it will be used for player stats regardless of the setting of this option. If the Battlelog Cache plugin is not installed, not up-to-date or disabled, setting use_direct_fetch to True will act as a fallback system, fetching stats directly from Battlelog. Otherwise, stats fetching will fail since the cache is not available and this setting is False. In other words, when Battlelog Caches is available, it is used for stats fetching always. When it is not available, you can enable or disable fetching of stats directly from Battlelog with this setting.

  • use_slow_weapon_stats

    True - fetch weapon stats for new players

    False - skip fetching weapon stats for new players

     

    Visible only if use_direct_fetch is set to True. Fetching weapon stats from Battlelog takes a long time, 15 seconds or more per player. By default, this slow fetch is disabled (False), so that your Procon restart or initial plugin enable time on a full server won't be delayed or bogged down while fetching weapon stats. However, if you have limits that use the GetBattlelog() function, you must set this value to True, or else stats will not be available. Also, see rcon_to_battlelog_codes.

     

    NOTE: by default, use_slow_weapon_stats is set to False. If you set use_direct_fetch to False also, you will not see this setting. If you are using Battlelog Cache, you will not get per player weapon stats unless you do the following: temporarily set use_direct_fetch to True, set use_slow_weapon_stats to True, then set use_direct_fetch back to False.

  • use_stats_log

    True - log Battlelog stats to the battle.log file

    False - do not log Battlelog stats to the battle.log file

     

    If set to True and stats fetching is enabled and stats are fetched successfully, all the stats that were fetched will be logged in a file that follows the standard logging file name pattern: procon/Logs/_/YYYYMMDD_battle.log (text file).

  • player_white_list

    (string, csv) - list of players that should never be kicked or banned

  • clan_white_list

    (string, csv) - list of clan (tags) for players that should never be kicked or banned

  • virtual_mode

    true - limit actions (kick, ban) are simulated, the actual commands are not sent to server

    false - limit actions (kick, ban) are not simulated

  • console

    (string) - you can use this field to run plugin commands

     

    For example: !stats micovery will print the player statistic for the current round in the plugin console.

     

    Note that plugin commands, are currently supported only inside ProCon, and not In-Game.

  • rcon_to_battlelog_codes

    String[] Array - syntax: RCON=Battlelog, e.g., U_XBOW=WARSAW_ID_P_WNAME_CROSSBOW

     

    Visible only if use_slow_weapon_stats is True. Lets you define mappings from RCON weapon codes to Battelog weapon stats codes. Useful when new unlocks or DLC are released and in-use before the next update of this plugin is available. You can also override incorrect mappings built-in to the plugin, if any.

  • smtp_port

    (String) - Address of the SMTP Mail server used for Mail action

  • smtp_port

    (integer > 0) - port number of the SMTP Mail server used for Mail action

  • smtp_account

    (Stirng) - mail address for authenticating with the SMTP Mail used for Mail action

  • smtp_mail

    (Stirng) - mail address (Sender/From) that is used for sending used for Mail action

     

    This is usually the same as smtp_account ... depends on your SMTP Mail provider.

  • smtp_ssl

    true - mail sent using secure socket (use this only if your SMTP provider requires it)

    false - mail sent without using secure socket

  • say_interval

    (float) - interval in seconds between say messages. Default value is 0.05, which is 50 milli-seconds

     

    The point of this setting is to avoid spam, but you should not set this value too large. Ideally it should be between 0 and 1 second.

  • update_interval

    (float) - interval in seconds between updates to certain player and server properties

     

    In order to avoid lagging your Procon client or layer, certain values like plugin.IsSquadLocked and server.FriendlyFire are only updated every update_interval seconds, which must be 60 or more.

  • auto_hide_sections

    true - when creating a new section, it will be hidden by default

    false - when creating a new section, it will not be hidden

  • twitter_reset_defaults

    true - resets the Twitter's access_token, and access_token_secret back to default values

  • twitter_setup

    true - initiates the Twitter configuration, it will show a link that you have to visit to get the verification PIN

  • twitter_verifier_pin

    (String) - this field is displayed for you to enter the Twitter verification PIN, it disappears as soon as you enter it

     

    After entering your PIN, the plugin will try to exchange the PIN for a Twitter access_token, and access_token_secret. If the verifcation stage fails, you must re-initiate the Twitter setup process.

  • wait_timeout

    (int) - interval in seconds to wait for a response from the game server

     

    If you get several Timeout(xx seconds) expired, while waiting for ... exceptions in plugin.log, try increasing the wait_timeout value by 10 seconds. Repeat until the exceptions stop, but you should not exceed 90 seconds.

Plugin Commands

 


 

These are the commands supported by this plugin. You can run them from within the console field. Replies to the commands are printed in the plugin log.

Plugin Commands:

 

 

 

 

  • !round stats

    Aggregate stats for all players, current round

     

    !total stats

    Aggregate stats for all players, all rounds

     

    !weapon round stats

    Weapon-Level aggregate stats for all players, current round

     

    !weapon total stats

    Weapon-Level aggregate stats for all players, all rounds

     

    !web stats {player}

    Battlelog stats for the current player

     

    !round stats {player}

    Aggregate stats for the current player, current round

     

    !total stats {player}

    Aggregate stats for the current player, all rounds

     

    !weapon round stats {player}

    Weapon-Level stats for the current player, current round

     

    !weapon total stats {player}

    Weapon-Level stats for the current player, all round

     

    These are the most awesome of all the commands this plugin provides. Even if you are not using this plugin to enforce any limit, you could have it enabled for just monitoring player stats.

     

    When calling player specific statistic commands, if you misspell, or only type part of the player name, the plugin will try to find the best match for the player name.

  • !dump limit {id}

     

    This command creates a file in ProCon's directory containing the source-code for the limit with the specified id

     

    For example, the following command

     

    !dump limit 5

     

    Creates the file LimitEvaluator5.cs inside ProCon's directory.

     

    This command is very useful for debugging compilation errors, as you can see the code inside the file exactly as the plugin sees it (with the same line and column offsets).

  • !set {variable} {to|=} {value}

    !set {variable} {value}

    !set {variable}

     

    This command is used for setting the value of this plugin's variables.

    For the last invocation syntax the value is assumed to be True.

  • !get {variable}

     

    This command prints the value of the specified variable.

 

 

 

GitHub Project Page


 

Wishlist items and bugs that need fixing are staged in the Issues section of the Insane Limits project page.

Download


This version REQUIRES Procon 1.4.2.1 or later!

 

The plugin will fail to load and will not show up in your Plugins list unless you use Procon 1.4.2.1 or later.

 

Before downloading, read these IMPORTANT Frequently Asked Questions:

 

If you post a question that is answered by this FAQ section, then I know you didn't take the time to read this #1 post, so why should I take the time to reply to you? Fair is fair, you need to put effort into helping yourself first if you want me to put effort into helping you.

 

Q: I downloaded the ZIP, but how do I install it?

A: Extract the InsaneLimits.cs file from the zip, that is the only file you need. Upload/copy it into either (or both) procon/Plugins/BF3 or procon/Plugins/BF4. Restart Procon. I you use a layer, all of the above must happen on your layer host, not on your local client.

 

Q: I get EXCEPTION: System.Security.SecurityException! Why?

A: Insane Limits is a plugin that needs to run without restrictions. Change your Procon settings as follows:

 

(Menu) Tools -> Options -> Plugins tab, Plugin security, Run plugins with no restrictions

 

If you already have that set, make sure your Procon layer host has write permission for the entire Procon installation folder.

 

Q: I get ERROR: X errors compiling Expression! Why?

A: Probably because you set first_check to Expression instead of what the instructions in the post told you to set it to, probably Code.

 

Q: All my limits are gone after I restarted Procon! -or- Why does it keep asking me to accept permissions after I restart Procon, I already accepted them!?

A: See this post for details about what you should and should not do when you are in this situation: myrcon.net/...insane-limits-bfhl#entry31005

 

Download Instructions

 

Download the ZIP archive from here: Insane Limits - Plugins - MyRCON

 

On that page, click on the "zip" link below the version with the highest number (latest).

SEE THE NEXT THREE POSTS FOR ADDITIONAL DETAILS THAT WOULDN'T FIT IN THIS POST!

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

Originally Posted by PapaCharlie9*:

 

NOTE: I've changed the version numbering scheme to allow for pre-release testing (last digit). From now on versions will be 0.Major.Minor.TestRevision, where TestRevision is 0 for a released version. If at some point backwards compatibility with existing limits is broken, the first digit will be 1 instead of 0.

 

Interested in minute to minute updates on changes to Insane Limits? Follow me on Twitter (@PapaCharlie9 #InsaneLimits):

https://twitter.com/PapaCharlie9

 

As I make design and implementation decisions, I'll tweet them. Feel free to give immediate feedback, but don't no promises that I'll change anything.

 

Changes made for 0.9.17.0 (REQUIRES Procon 1.5.1.1 or later!)

Added initial support for Battlefield: Hardline. Support is not complete and testing was done on only a few modes.

 

NOTE: I did NOT update the documentation in post #1 nor in the plugin. You will find no references to BFHL in the docs yet.

 

NOTE: As of R1/R2, there is a known game server bug where game modes other than Conquest do not report ticket counts. Don't blame Insane Limits, it is DICE's fault.

 

  • Fixed clan tag and Battlelog stats fetching
  • Fixed InsaneLimits.dll location for compilation
  • Removed commands used only by BF4
  • Used 0 instead of NaN for stats that failed to fetch
  • Fixed ratio function

Changes made for 0.9.16.0 (REQUIRES Procon 1.4.2.1 or later!)

Added a Category field to KillInfoInterface. For OnKill, OnDeath, etc., limits, in addition to kill.Weapon, you can now test for kill.Category. The category is taken from BF3.defs and BF4.defs. This should make it easier to limit entire categories of weapons, like all sniper rifles, all handguns (pistols), all explosives, etc.

 

For example, for a BF4.defs entry like this:

Code:

procon.protected.weapons.add Recon "U_L96A1" Primary SniperRifle
The kill.Weapon would be the String "U_L96A1" and the kill.Category would be the String "SniperRifle".

 

Also improved plugin.FriendlyWeaponName by extending the KillReasonInterface object to include VehicleName and VehicleDetail. These fields are always null for BF3, but for BF4, if the reason.Name is "Death", you can check the reason.VehicleName and reason.VehicleDetail to see if they have friendly names. For example, for this rather gnarly and long weapon code "Gameplay/Vehicles/RU_FJET_T-50_Pak_FA/RU_FJET_T-50_Pak_FA", the plugin.FriendlyWeaponName function would return a KillReasonInterface object with reason.VehicleName set to "Jet T-50 Pak FA". Much shorter and easier to read in chat. The replacement code %w_n% will always use the reason.VehicleName for BF4 if the kill.Weapon is a vehicle.

 

See detailed usage examples here: kill.Category and plugin.FriendlyWeaponName usage*

 

Other improvements:

  • Fixed #48, Twitter 403 Forbidden errors due to API 1.1 requirements change
  • Fixed occasional UnauthorizedAccessException errors when trying to update the InsaneLimits...conf file.

Changes made for 0.9.15.0 (REQUIRES Procon 1.4.1.5 or later!)

The biggest improvement is that Insane Limits will no longer cause a long delay when Procon is shutdown. Other improvements:

  • BF4 weapon updates
  • BF4 fixed missing killAssists stat
  • Added support for player type: player, commander, specatator, etc. See player.Role
  • Added support for factions: See teamX.Faction or server.GetFaction(TeamId)
  • Added support for calling another plugin from a limit: IsOtherPluginEnabled, CallOtherPlugin
  • Added support for calling back into Insane Limits: GetLastPluginDataUpdate, UpdatePluginData
  • Added support for checking if Insane Limits is loaded: check for registered commmand "InsaneLimits", "UpdatePluginData".
UpdatePluginData expects to be called with String params[] as follows:

parms[0]: Name of caller (plugin class)

parms[1]: Name of the dictionary type: "bool", "double", "int", "string" (not possible to pass object type)

parms[2]: Key

parms[3]: Stringification of value

For example, a call with {"Test", "double", "TestFloat", "3.14"} would have the same effect as this line of code in a limit:

Code:

plugin.Data.setDouble("TestFloat", 3.14);

Old change log:

 

 

Changes made for 0.9.14.0

Improved support for BF4 Battlelog stats. Now at the same level of detail as BF3, including all weapon stats. Also switched to using a more efficient player ping system. Added the following BF4 properties to the server object:

  • GameVersion - either "BF3" or "BF4", so you can tell which version the game server is
  • Commander - for vars.commander
  • MaxSpectators - for vars.maxSpectators
  • ServerType - for vars.serverType

IMPORTANT NOTE: Since it is still early in the release of BF4, not all of the RCON weapon codes have been matched up with their corresponding Battleog weapon code names for weapon stats. At this writing, China Rising weapon unlocks (e.g,, MTAR-21, MP7, L85A2, L96A1, etc.) are available to some players, but since the DLC has not been officially released yet, there are no corresponding Battlelog stats yet. Also, since the code names are different and not always obvious, some matches may be incorrect. To deal with this situation, a new plugin setting, rcon_to_battlelog_codes has been added. You can use this table to assign RCON codes to Battlelog codes, either when new weapons are available and the plugin hasn't been updated yet, or if the plugin's definition is later found to be incorrect. Your settings override the plugin's built-in definitions. The format of the String[] Array setting is a simple RCON=BATTLELOG code assignment, one per line/item. For example:

Code:

U_LIGHTSABER=WARSAW_ID_P_INAME_LUKE
U_BFG=WARSAW_ID_P_WNAME_DOOM
Changes made for 0.9.13.0

Ported to BF4. Stats fetching updated to BF4 format. Added FriendlyWeaponName function to plugin, works for both BF3 and BF4. Details of the function signature are in post #1. The definition of the KillReasonInterface object is:

 

Code:

public interface KillReasonInterface
    {
        String Name { get; } // weapon name or reason, like "Suicide"
        String Detail { get; } // BF4: ammo or attachment
        String AttachedTo { get; } // BF4: main weapon when Name is a secondary attachment, like M320
    }
Changes made for 0.9.12.0

Fixed problem with tweets returning the GONE error. Twitter has updated their web API, so Insane Limits had to be updated also. Details here: https://dev.twitter.com/blog/plannin...-v1-retirement

 

Changes made for 0.9.11.0

Due to changes in Battlelog stats around June 15, 2013, Insane Limits needs to be updated. The kdRatio property is being returned as null, where before it had the KDR. Now Insane Limits ignores the kdRatio value and computes the ratio from kills/deaths.

 

  • Fixes NullReferenceException during stats fetch of overviewStats
  • Make player.idleDuration check respect update_interval

Changes made for 0.9.10.0

  • Fixed problems with player.Ping
  • Added player.MaxPing
  • Added player.MinPing
  • Added player.AveragePing, from 2 to 5 samples
  • Added player.MedianPing, of 5 samples
  • Added a new plugin setting, update_interval, which specifies the number of seconds between updates for certain new properties and player/squad values that have been added (see below). The minimum value is 60 seconds. The update_interval insures that your client and layer are not overloaded or lagged by too many requests.
  • Added server.BulletDamage (vars.bulletDamage)
  • Added server.FriendlyFire (vars.friendlyFire)
  • Added server.GunMasterWeaponsPreset (vars.gunMasterWeaponsPreset)
  • Added server.IdleTimeout (vars.idleTimeout)
  • Added server.SoldierHealth (vars.soldierHealth)
  • Added server.VehicleSpawnAllowed (vars.vehicleSpawnAllowed)
  • Added server.VehicleSpawnDelay (vars.vehicleSpawnDelay)
  • Added plugin.IsSquadLocked function
  • Added plugin.GetSquadLeaderName function
All of the new properties and functions are read-only. In order to set them for your server, use the plugin.ServerCommand function. Keep in mind that until the OnJoin limit for the player has been evaluated, the player and squad properties will not be updated. Even after that time, it will take at least update_interval seconds before the value is updated. If you just enabled Insane Limits, it will take several minutes before everything catches up.

 

Changes made for 0.9.9.0

 

Incorporated some new features of BF3 R-38 and Procon 1.4.0.7.

 

  • Added player.Ping (returns int)
  • Added server.GameModeCounter (returns double)
  • Added server.CTFRoundTimeModifier (returns double)
  • Added plugin.CheckPlayerIdle(String name) function (returns double)

Note about the use of plugin.CheckPlayerIdle

 

This function is a bit tricky to use. In order to reduce load on the game server and layer, a player's idle is only checked if their current round Score is 0 and their current round Deaths is 0. This check is performed periodically (OnListPlayers). For all other cases, the idle is returned as 0. This means that a player who started to play the round and then went idle will have an idle time of 0. If the name of the player is not recognized, -1 is returned.

 

Each call to CheckPlayerIdle that returns 0 will request an update from the server, so that the next time you call the function for the same player, you will have an updated idle time. That said, it doesn't do any good to do this in a single limit:

 

Code:

double time = plugin.CheckPlayerIdle(player.Name);
if (time == 0) time = plugin.CheckPlayerIdle(player.Name);
The second call will also return 0, because the game server hasn't had a chance to process the request yet.

 

Instead, this function is best used in OnIntervalServer limits. Each interval, you can check a list of players, calling plugin.CheckPlayerIdle just once. Eventually, the call will return an updated value -- which may be 0 if the player is indeed not idle!

 

Changes made for 0.9.8.0:

 

  • Added plugin.GetReservedSlotList function
  • Added plugin.CheckAccount function
  • Added use_stats_log plugin setting
  • Fixed NullReferenceException errors when using Battlelog Cache. In general, reduced the amount of logging spam when using Battlelog Cache for debug_level 3 or lower.

NOTE: since logging of error messages has been reduced, you have to increase your debug_level in order to see warnings and errors that you used to see at level 3. If you want to see why stats fetching is failing, you have to set your debug_level to 4.

 

Usage of plugin.GetReservedSlotList()

 

Code:

List<String> GetReservedSlotsList();
You can now use your reserved slots list in your limit code. You can use it instead of whitelist or custom lists. For example, the first time a player on the reserved slots lists spawns, send a yell to all players with this OnSpawn second_check Code:

 

Code:

if (limit.Activations(player.Name) > 1) return false;
if (plugin.GetReservedSlotsList().Contains(player.Name)) {
    plugin.SendGlobalYell("VIP " + player.FullName + " is in the house!");
}
return false;
NOTE: The list is only fetched once, at plugin activation time. If you edit the reserved slots list in the middle of a game session while Insane Limits is active, the update will not be recognized unless you disable Insane Limits, wait a few seconds, and then enable Insane Limits again. Alternatively, if you don't want to disable Insane Limits, you can go to the Console tab in Procon and type this RCON command to the game server:

Code:

reservedSlotsList.list
That will update Insane Limits.

 

Usage of plugin.CheckAccount() function

 

Code:

bool CheckAccount(String name, out bool canKill, out bool canKick, out bool canBan, out bool canMove, out bool canChangeLevel);
You can now check to see if a player has an account on your Procon instance and what privileges they have. A player with an account that has canKick privilege may be treated as an admin from your limit code. If the function returns False, the player is not currently joined on the server or the player does not have an account in your Procon instance.

 

This OnSpawn first_check Code example kicks all Rank 145 (100 Colonel) players, unless they are admins:

 

Code:

if (player.StatsError) return false; // Can't determine rank, so ignore
if (player.Rank < 145) return false; // Ignore everyone else
bool canKill = false;
bool canKick = false;
bool canBan = false;
bool canMove = false;
bool canChangeLevel = false;

bool hasAccount = plugin.CheckAccount(player.Name, out canKill, out canKick, out canBan, out canMove, out canChangeLevel);

if (hasAccount && canKick) return false; // don't kick admins

plugin.KickPlayerWithMessage(player.Name, "GTFO, we don't need any 100 Colonel hackers here!");
Changes made for 0.9.7.0:

 

  • Fixed "overviewStats not found" WARNING for players with ps3 or xbox profiles
  • Added failed url to StatsException error message

NOTE: since logging of error messages has been reduced, you have to increase your debug_level in order to see warnings and errors that you used to see at level 3. If you want to see why stats fetching is failing, you have to set your debug_level to 4.

 

 

Changes made for 0.9.6.0:

 

  • Fixed a serious problem with moving players introduced in 9.5
  • Fixed OnLevelLoaded spurious log of aborted round reset
  • Fixed round start and round end detection problems

NOTE: since logging of error messages has been reduced, you have to increase your debug_level in order to see warnings and errors that you used to see at level 3. If you want to see why stats fetching is failing, you have to set your debug_level to 4.

 

Changes made for 0.9.5.0:

 

  • Stats fetching speed-up, shaved 3 to 5 seconds off of every fetch
  • Added plugin.FriendlyMapName to convert "MP_001" to "Grand Bazaar"
  • Added plugin.FriendlyModeName to convert "TeamDeathMatch0" to "TDM"
  • Reduced logging spam, particularly for stats fetch errors
  • Major overhaul of handling of TeamChange events/limits
  • Tons of minor bug fixes
  • General clean-up

NOTE: since logging of error messages has been reduced, you have to increase your debug_level in order to see warnings and errors that you used to see at level 3. If you want to see why stats fetching is failing, you have to set your debug_level to 4.

 

 

Changes made for 0.9.4.0:

 

  • Added Yell action
  • Enabled player Say action (was already present, but would show an error if attempted to be used -- now it works without an error)
  • Added plugin.SendPlayerMessage functions
  • Added plugin.SendGlobalYell, plugin.SendTeamYell and plugin.SendPlayerYell functions
  • Fixed long-standing problem with advanced replacements, e.g., player.Spm being used when player.SpmRound was specified
  • Fixed problems with detecting OnRoundOver when round is ended by admin command or Procon GUI
  • Added use_direct_fetch plugin setting
  • Pre-release of Battlelog Cache capability (see below)

NOTE: A future version of Procon will enable optional integration with a MySQL database server. When the future version of Procon is released, this version (0.9.4.0) of Insane Limits will be able to take advantage of that integration, by way of a new plugin (yet to be released) called Battlelog Cache. Stay tuned for more details about MySQL integration and Battlelog Cache.

 

In the mean time, if your debug_level is set to 3 or higher, you may see messages logged in plugin.log that look like this:

 

[Insane Limits] Battlelog Cache plugin is disabled; installing/updating and enabling the plugin is recommended for Insane Limits!

 

Simply ignore these messages for now. If you don't like seeing them, reduce your debug_level to 2 or lower.

 

Insane Limits 0.9.4.0 is completely compatible with the current version of Procon (1.4.0.4) and has been tested against pre-release versions of the future version of Procon.

 

When used with the current version of Procon (1.4.0.4), the new use_direct_fetch setting may be used to disable stats fetching altogether. Setting use_direct_fetch to False without the presence of Battlelog Cache amounts to disabling stats fetching. This means that no player will have a clan tag, since clan tags are fetched from Battlelog. Be sure you know what you are doing if you set this to False.

 

 

 

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

Originally Posted by PapaCharlie9*:

 

The developers wish to acknowledge the following individuals and communities for their extensive and steady support.

 

Singh400 - Contributor and Collaborator

EBastard - Contributor and Tester

dyn & CMW gaming community - Testers and Supporters

ADKGamers - Tester

Hexacanon - Community supporter and limit developer

supermillhouse - Community supporter and limit developer

 

... and many others that have helped support Insane Limits.

 

Overflow from post #1

 

The following text no longer fits in post #1, so moved here for safe-keeping.

 

ALL USERS OF INSANE LIMITS SHOULD UPGRADE TO THIS VERSION!


Version 0.0.0.8 and earlier will no longer be supported.


In-Game Commands

In-Game Commands:

 

 


These are the In-Game commands supported by this plugin. You can run them only from within the game. Replies to the commands are printed in the game chat.

 

  • !stats

    List the available stats, Battlelog

     

    !stats [web|battlelog]

    List the available stats, Battlelog

     

    !stats round

    List the available stats, current round

     

    !stats total

    List the available stats, all rounds

     

    These commands are used as a shortcut for players to view what type of stats they can query. The plugin will try to fit all stat types into a single chat message.

  • !my {type}

    Print Battlelog stat of the specified type for the player that executed the command

     

    !my round {type}

    Print current round stat of the specified type for the player that executed the command

     

    !my total {type}

    Print all rounds stat of the specified type for the player that executed the command

     

    _{player} {type}

    Print Battlelog stat of the specified type for the specified player

     

    _{player} round {type}

    Print current round stat of the specified type for the specified player

     

    _{player} total {type}

    Print all rounds stat of the specified type for the specified player

     

    The player name can be a sub-string, or even misspelled. The plugin will find the best match.

     

    These are the allowed stat types:

  • Battlelog: kdr, kpm, time, kills, wins, skill, spm, score, deaths, losses, repairs, accuracy, quit pecent, team score, combat socre, objective score, vehicles killed, recon time, engineer time, assault time, support time, vehicle time, engineer percent, assault percent, vehicle percent
  • Round: kdr, kpm, spm, score, kills, deaths, headshots, team kills, team deaths, suicides, time
  • Total: kdr, kpm spm, score, kills, deaths, headshots, team kills, team deaths, suicides, time, rounds

Here are some example commands:

 

!my kdr

!my spm

!my engineer percent

!micovery recon time

 

 

 

 

 


Architecture


Architecture:

 

 

When the plugin is enabled, it starts two threads:

 

  • The fetch thread is in charge of monitoring the players that join the server. It fetches player statistics from battlelog.battlefield.com
  • The enforcer thread is in charge of evaluating Interval limits. When the enforcer thread finds that a player violates a limit, it performs an action (Kick, Ban, etc) against that player.

The two threads have different responsibilities, but they synchronize their work.

 

Fetch-thread Flow


When players join the server, they are added the stats queue. The fetch thread is constantly monitoring this queue. If there is a player in the queue, it removes him from the queue, and fetches the battlelog stats for the player.

 

The stats queue can grow or shrink depending on how fast players join, and how long the web-requests take. If you enable the plugin on a full server, you will see that almost immediately all players are queued for stats fetching. Once the stats are fetched for all players in the queue, they are added to the internal player's list.

 

Enforcer-thread Flow


The enforcer thread runs on a timer (every second). It checks if there are any interval limits ready to be executed. If there are, it will evaluate those limits.

 

Each time around that the enforcer checks for the available limits is called an iteration. If there are no players in the server, or there are no limits available, the enforcer skips the current iteration and sleeps until the next iteration.

 

The enforcer is only responsible for Limits that evaluate OnIterval, events. Enforcing for other types of events like OnKill, and OnSpawn, is done in the main thread when procon sends the event information.

 

 

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

Originally Posted by PapaCharlie9*:

 

HOW TO CLONE YOUR SETTINGS TO A NEW GAME SERVER


Update for Procon 1.4.2.1 or later

 

If you add a new server or move your server to a new host (new IP address) and you don't want to re-enter all of your Insane Limits settings and long limits all over again, follow these steps.

 

In all of the following, ip_port refers to the numbers in file names that correspond to your game server's IP address and port number, respectively. For example, if your game server's IP address is 65.122.92.255 and your port number is 48500, your ip_port would be 65.122.92.25_48500.

 

The way Insane Limits works is that its general plugin settings are stored in procon/Configs/ip_port/InsaneLimits.cfg, like all other plugins. In those settings is a variable called "limits_file". That is the pointer to your limits and custom lists. By default, the name of that file is procon/Plugins/BF*/InsaneLimits?ip_port.conf, where BF* is either BF3 or BF4. The general objective here is to copy and rename your old .conf file to a new .conf file and make the new .cfg file point at the new .conf file.

 

1) Make sure you have plugin logging enabled (Tools > Options > Basics tab > Logging: Enable plugin logging (checked)). Then quit Procon.

 

2) Navigate to your procon/Configs folder and make backup copies of all of your ip_port/*.cfg files. Personally, I just make a backup copy of the whole Configs folder. Navigate to your procon/Plugins/BF* folder and make backup copies of all of your InsaneLimits?ip_port.conf files. Personally, I just make a backup copy of the whole Plugins folder.

 

3) Copy your old procon/Configs/OLDip_port/InsaneLimits.cfg file to a new procon/Configs/ip_port/InsaneLimits.cfg file for the new game server connection. This will clone all of your settings for all plugins from the old server to the new.

 

4) Open your new (cloned) procon/Configs/ip_port/InsaneLimits.cfg file in Notepad (Vista or Server 2008 or later, must be a Unicode-aware text editor).

 

5) Find this line and delete it:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "limits_file" "BASE64:UGx1Z2luc1xCRjNcSW5zYW5lTGltaXRzXzY3LjIxNS4yNDQuMTk4XzQ3MjAwLmNvbmY="
Note: The value of the BASE64 will be different for you, that's fine.

 

Note: it doesn't matter if you leave a blank line or not after deleting it, just make sure you don't accidentally delete anthing else.

 

6) Save the file and close Notepad.

 

7) Navigate back to procon/Plugins/BF*. Find the InsaneLimits?OLDip_port.conf file and copy it to a new file. Name the new file InsaneLimits?ip_port.conf of the new game server. If there is already a file with the new connection name, replace it with the copy.

 

10) Restart Procon. Now all your old limits and custom lists should appear in the new game server settings.

 

If you get asked for the Privacy Policy at any step and you are sure you have already accepted it for that game server connection, disable Insane Limits, wait 60 seconds, enable it again. That should clear it. Alternatively, make sure you have some other plugin highlighted, like the one just above Insane Limits in the list. The settings or details for that other plugin should be showing in the right hand panel. Now click on the check box next to Insane Limits to enable it, without highlighting Insane Limits itself. That should skip the privacy policy check.

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

Originally Posted by Dudenell*:

 

I guess I'll start off with the first question.

 

Assuming I wanted to deploy my limits to multiple servers (brand new). Is there an easy way to just copy over the configs?

 

This is for separate layers if that makes any difference.

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

Originally Posted by Singh400*:

 

I guess I'll start off with the first question.

 

Assuming I wanted to deploy my limits to multiple servers (brand new). Is there an easy way to just copy over the configs?

 

This is for separate layers if that makes any difference.

Yes, in \plugins\ you'll see see a *.conf file. Back that up. Initialize the new layer, let IL create the new CONF file. Then rename the old one to the new one, and replace it. Limits transferred :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by EBassie*:

 

Yes, in \plugins\ you'll see see a *.conf file. Back that up. Initialize the new layer, let IL create the new CONF file. Then rename the old one to the new one, and replace it. Limits transferred :ohmy:

But you must enable this option first with the setting "use_custom_storage".
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

yeah just copy paste, usually i do limit changes on one server only, test them. if i am satisfied then i will copy the .conf content to all the other servers and manually load them again from IL plugin load file option.

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

Originally Posted by PapaCharlie9*:

 

I'm having issues deleting old lists and old limits. When I go to delete, it seems like its gone. But the next day or a few hours later they are back.

What are the details of your setup? Are you on a layer? Where is the location of the .conf file (are you using custom storage)? Is there more than one admin that accesses the layer?

 

If you are on a layer, is it possible that someone else, another admin or your hoster, is restoring the .conf file that contains the limits and lists?

 

I don't use a layer and I'm not seeing this problem. I just deleted a limit yesterday and it is still deleted today. I don't use custom storage, though.

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

Originally Posted by HexaCanon*:

 

WISH : changing the custom lists so that names get in this format

Code:

player1
player2
player3
instead of this format

Code:

player1, player2, player3
makes it alot easier to copy paste from an excel sheet.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Legate*:

 

Hi,

 

I have a Insane Limits plugins' error when we run the plugins in sandbox:

 

 

Code:

16:49:15 92] [Insane Limits] Thread(activator): EXCEPTION: : System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
We have the console running on our win 2003 server with all system permission on /procon and procon/plugins/bf3 folders and set the .net requirements at minimums ¿? but is not the solution...

 

Any idea or suggestion?

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

Originally Posted by PapaCharlie9*:

 

Hi,

 

I have a Insane Limits plugins' error when we run the plugins in sandbox:

 

 

Code:

16:49:15 92] [Insane Limits] Thread(activator): EXCEPTION: : System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.
We have the console running on our win 2003 server with all system permission on /procon and procon/plugins/bf3 folders and set the .net requirements at minimums ¿? but is not the solution...

 

Any idea or suggestion?

Insane Limits won't work in sandbox mode. You must Run plugins with no restrictions.

 

If you are running TrueBalancer and need to set a longer timeout, set Procon to sandbox mode, increase the timeout, then set it back to Run plugins with no restrictions. The increased timeout will still be remembered.

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

Originally Posted by HexaCanon*:

 

WISH : changing the custom lists so that names get in this format

Code:

player1
player2
player3
instead of this format

Code:

player1, player2, player3
makes it alot easier to copy paste from an excel sheet.
stressing on this point again. i would give alot for this to happen.

 

i have 9 servers where players constantly apply to the Royal plan. very frustrating to deal with a lot of lists, if this can happen then i can remove one list from my files -.-

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

Originally Posted by PapaCharlie9*:

 

stressing on this point again. i would give alot for this to happen.

 

i have 9 servers where players constantly apply to the Royal plan. very frustrating to deal with a lot of lists, if this can happen then i can remove one list from my files -.-

I have a different idea. What do you think of this?

 

If the first character in the custom list value is @, the rest of the value is a file name located in procon/Configs. The names for the custom list will be read from the file, one name per line.

 

Example: if you define a custom list called "royal_plan" and the value in the list is "@royal.txt", whose contents is:

 

player1

player2

player3

 

Insane Limits will read the file, one name per line, as the contents of the list. If you want the same list for all servers, you only have one file and you use the same royal.txt file name in each custom list. If you want different lists for different servers, use different file names, like royal1.txt, royal2.txt, etc., and put the corresponding values in each custom list, e.g., @royal1.txt in server #1, @royal2.txt in server #2, etc.

 

In the mean time, with the version you have now, you can copy & paste the raw list from one .conf file to another, which should be easier than what you are doing now. Suppose you are using list_1_name of "royal_plan" on one of your servers and it is up to date. Look in the InsaneLimits_sss_ppp.conf file for that server and find the line:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "list_1_data" "BASE64:...encoded...data...=="
Then find the .conf file for the next server and figure out which list number royal_plan is in. Ideally you will have set them up to have the same list number for "royal_plan", in which case you just copy over the "list_1_data" for each server. If the list number is different, however, you have to change the number before you do the paste. For example, if your third server has royal_plan as list #3, you should change the text to:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "list_3_data" "BASE64:...encoded...data...=="
before you paste it and make sure you are replacing list_3_data in the .conf file of the third server.

 

Back up all your .conf files before you do this, in case you make a mistake!

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

Originally Posted by HexaCanon*:

 

I have a different idea. What do you think of this?

 

If the first character in the custom list value is @, the rest of the value is a file name located in procon/Configs. The names for the custom list will be read from the file, one name per line.

 

Example: if you define a custom list called "royal_plan" and the value in the list is "@royal.txt", whose contents is:

 

player1

player2

player3

 

Insane Limits will read the file, one name per line, as the contents of the list. If you want the same list for all servers, you only have one file and you use the same royal.txt file name in each custom list. If you want different lists for different servers, use different file names, like royal1.txt, royal2.txt, etc., and put the corresponding values in each custom list, e.g., @royal1.txt in server #1, @royal2.txt in server #2, etc.

 

In the mean time, with the version you have now, you can copy & paste the raw list from one .conf file to another, which should be easier than what you are doing now. Suppose you are using list_1_name of "royal_plan" on one of your servers and it is up to date. Look in the InsaneLimits_sss_ppp.conf file for that server and find the line:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "list_1_data" "BASE64:...encoded...data...=="
Then find the .conf file for the next server and figure out which list number royal_plan is in. Ideally you will have set them up to have the same list number for "royal_plan", in which case you just copy over the "list_1_data" for each server. If the list number is different, however, you have to change the number before you do the paste. For example, if your third server has royal_plan as list #3, you should change the text to:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "list_3_data" "BASE64:...encoded...data...=="
before you paste it and make sure you are replacing list_3_data in the .conf file of the third server.

 

Back up all your .conf files before you do this, in case you make a mistake!

it is indeed a great idea, but the style of list i mentioned is used in different plugins as well. so if i update my list, all i have to do is copy paste it in the different plugins.

 

the idea is to make IL use same style of lists as other plugins.

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

Originally Posted by PapaCharlie9*:

 

it is indeed a great idea, but the style of list i mentioned is used in different plugins as well. so if i update my list, all i have to do is copy paste it in the different plugins.

 

the idea is to make IL use same style of lists as other plugins.

Sorry, I'm not going to change the UI. I'll add the file option, but I like the UI the way it is. I find array lists harder to work with.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by HexaCanon*:

 

Sorry, I'm not going to change the UI. I'll add the file option, but I like the UI the way it is. I find array lists harder to work with.

i understand, but just want to give a notice that it is not about likability but about usability.

 

i think most admins uses at least somekind of plugin that uses the array style. and since you are the one of the few active developers for procon plugins at this moment i thought it might be better if you make IL the same as voteban and votemap and truebalancer (3 plugins i use).

 

and that style is easier to use at least for me.

 

the idea is to make the plugins use the same type of list. it is confusing already the amount of work i do to keep up with the current type of list used in IL.

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

Originally Posted by PapaCharlie9*:

 

it is confusing already the amount of work i do to keep up with the current type of list used in IL.

From a usability stand-point, the file option is superior, right? Let's say I changed the UI to be the way you wanted but did not include the file option. This would enable you to easily copy and paste a array list from a non-IL plugin to an IL plugin, but you would still have to do the copy 9 times for each IL instance (assuming 9 game server connections).

 

If you instead copy the list of names from the non-IL plugin to a file one time that 9 different IL instances then read from, you cover all 9 instances of IL with one copy & paste. From a usability point of view, that seem 8 times easier to me.

 

Am I missing something?

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

Originally Posted by HexaCanon*:

 

From a usability stand-point, the file option is superior, right? Let's say I changed the UI to be the way you wanted but did not include the file option. This would enable you to easily copy and paste a array list from a non-IL plugin to an IL plugin, but you would still have to do the copy 9 times for each IL instance (assuming 9 game server connections).

 

If you instead copy the list of names from the non-IL plugin to a file one time that 9 different IL instances then read from, you cover all 9 instances of IL with one copy & paste. From a usability point of view, that seem 8 times easier to me.

 

Am I missing something?

in terms of time consumption, i will have to access 9 different layers through FTP and load 9 files, update them , upload, and then manually load the updated list on procon again.

 

my suggestion will just share the same list with other plugins.

 

 

beside i do not give layer access to other admins, it is only me who have access and your change just means more work for me.

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

Originally Posted by PapaCharlie9*:

 

in terms of time consumption, i will have to access 9 different layers through FTP and load 9 files, update them , upload, and then manually load the updated list on procon again.

 

my suggestion will just share the same list with other plugins.

 

 

beside i do not give layer access to other admins, it is only me who have access and your change just means more work for me.

Are you running 9 separate layer instances each with one game server connection now? In an earlier post I recall that you said you had 9 game server connections on a single layer, which probably wasn't a good idea. If you truly are running separate layer instances, that's a fair point with respect to the file option. I had assumed just one layer, where it should be possible to FTP to procon/Configs, which is shared by all plugins and game connections.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

Need help!!!!

We have recently changed server ip addresses. and have tried to migrate the insane limits settings over to the new server but I keeps saving the limits to the old server ip config file. Have changed the limits_file" "BASE64: encode to the new server ip file name and renamed the config file to the new ip but when you edit a limit it saves it to the old ip file config, or in our case generates a new file as I have deleted the old one. Where else does it reference the ip address in any file configs, I also deleted the dll but still no work

 

new server is 193.93.45.215

 

[12:09:19 71] [insane Limits] Thread(settings): 13 limits and 2 lists loaded from Plugins\BF3\InsaneLimits_193.93.47.113_47500.conf

[12:09:39 99] [insane Limits] Thread(enforcer): Evaluating Limit #10 - OnIntervalServer

 

this is where it keeps saving, to the old ip

 

using 0.0.9.2

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

Originally Posted by PapaCharlie9*:

 

Need help!!!!

We have recently changed server ip addresses. and have tried to migrate the insane limits settings over to the new server but I keeps saving the limits to the old server ip config file. Have changed the limits_file" "BASE64: encode to the new server ip file name and renamed the config file to the new ip but when you edit a limit it saves it to the old ip file config, or in our case generates a new file as I have deleted the old one. Where else does it reference the ip address in any file configs, I also deleted the dll but still no work

 

new server is 193.93.45.215

 

[12:09:19 71] [insane Limits] Thread(settings): 13 limits and 2 lists loaded from Plugins\BF3\InsaneLimits_193.93.47.113_47500.conf

[12:09:39 99] [insane Limits] Thread(enforcer): Evaluating Limit #10 - OnIntervalServer

 

this is where it keeps saving, to the old ip

 

using 0.0.9.2

First of all, how about upgrading to 9.3? :smile:

 

Are you using custom storage (use_custom_storage True) or not?

 

I assume you are on a layer. I don't use a layer, so I'll let someone who has done this on a layer give you the authoritative answer. But here's what should be true, assuming you are not using custom storage.

 

All plugins store their plugin variables in procon/Configs/ip_port.cfg files. In the file that corresponds to your new server ip_port, you should find a variable for Insane Limits that looks like this:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "limits_file" "BASE64:...."
That value points at a file in procon/Plugins/BF3/InsaneLimits?ip_port.conf (again, assuming you are not using custom storage ... if you are using custom storage, the path to the .conf file will be whatever you defined).

 

If you copy & pasted the .cfg value from the old ip_port into the new .cfg, it will still point at the old .conf file.

 

After backing up all files, something you can try is simply deleting the "limits_file" line altogether. I think Insane Limits will regenerate it using the new ip and port (again, assuming you are not using custom storage). Then just make sure you have a matching .conf file (which can have the same contents as the old, in other words, just rename the file to the new ip and port).

 

All of the above is how a directly connected client works. Your mileage may vary with a layer.

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

Originally Posted by supermillhouse*:

 

First of all, how about upgrading to 9.3? :smile:

 

Are you using custom storage (use_custom_storage True) or not?

 

I assume you are on a layer. I don't use a layer, so I'll let someone who has done this on a layer give you the authoritative answer. But here's what should be true, assuming you are not using custom storage.

 

All plugins store their plugin variables in procon/Configs/ip_port.cfg files. In the file that corresponds to your new server ip_port, you should find a variable for Insane Limits that looks like this:

 

Code:

procon.protected.plugins.setVariable "InsaneLimits" "limits_file" "BASE64:...."
That value points at a file in procon/Plugins/BF3/InsaneLimits?ip_port.conf (again, assuming you are not using custom storage ... if you are using custom storage, the path to the .conf file will be whatever you defined).

 

If you copy & pasted the .cfg value from the old ip_port into the new .cfg, it will still point at the old .conf file.

 

After backing up all files, something you can try is simply deleting the "limits_file" line altogether. I think Insane Limits will regenerate it using the new ip and port (again, assuming you are not using custom storage). Then just make sure you have a matching .conf file (which can have the same contents as the old, in other words, just rename the file to the new ip and port).

 

All of the above is how a directly connected client works. Your mileage may vary with a layer.

Got it to work in the end. What i was doing was copying over my modified file to the layer host and restarting. As th layer shut down it would overwrite the file back to the old settings. I had to stop the layer then copy to get it to work. Oops

 

Thanks for the help tho

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