Jump to content

[Insane Limits V0.9.8.0] [0.2.1.1 Reserve Slot for Server Starter]


ImportBot

Recommended Posts

  • Replies 190
  • Created
  • Last Reply

Originally Posted by supermillhouse*:

 

Hi supermillhouse,

 

It still copy everyone to the templist. I want only who wears the platoon tag to be copied in the templist.

I had forgotten how this limit works :biggrin:

 

Replace in first check:

First line

if (!plugin.isInList(player.Tag, "Res")) return false;

 

This is just to get rid of double bracketing that I accidently got you to put in.

 

also

 

listofplayers.Add(p.Name); //this should be on line 26 I think

 

with

 

if (plugin.isInList(player.Tag, "Res"))listofplayers.Add(p.Name);

 

Try that:smile:

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

Originally Posted by moacco07*:

 

Hi supermillhouse,

 

I done the amendments as per below and no errors so far. I will monitor and let you know. Thanks for continuous support. i really appreciate it.

 

Limit #1 Add to Res

 

Set limit to evaluate OnJoin

 

Set first_check to this Code:

 

Code:

[b]//leaves limit if not a clan member
if (!plugin.isInList(player.Tag, "Res")) return false;[/b]
List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
players.AddRange(team1.players);
players.AddRange(team2.players);
if (team3.players.Count > 0) players.AddRange(team3.players);
if (team4.players.Count > 0) players.AddRange(team4.players);

int RSThresh = 3;    //When the player should get a reserve slot, when he has this number of days or more.
int numoftemps = 10;  //Number of players to be copied to reserve list
int triggertransfer = 60;  //When the players list is copied over
int RSCap = 30;      //Max number of reserve slot days
int rewarddays = 5;  //Number of days rewarded for helping to start the server once
int totaltcount = server.PlayerCount;
int i = 0;
string port = server.Port;
string host = server.Host;
string dir = "Plugins\\BF4\\TempList_" +host+ "_" +port+ ".txt";
string done = "Plugins\\BF4\\Done_" +host+ "_" +port+ ".txt";
string logdir = "Logs\\InsaneLimits\\ReserveList_" +host+ "_" +port+ "dump_file.txt";
if (!Directory.Exists(Path.GetDirectoryName(logdir))) Directory.CreateDirectory(Path.GetDirectoryName(logdir));

List<String> listofplayers = new List<String>();

foreach (PlayerInfoInterface p in players)
  {
  [b]if (plugin.isInList(player.Tag, "Res"))listofplayers.Add(p.Name);[/b]
  }


//check if server population is more than 4
if ((totaltcount >= 4) && (totaltcount <= triggertransfer) && (!File.Exists(done)))return true;
//if server population is less than 4 then delete temp file if it exists
else if(totaltcount < 4)
  {
  if (File.Exists(dir)) File.Delete(dir);
  if (File.Exists(done)) File.Delete(done);
  }
//check if server population is more than 10 then transfer to ReserveList
else if((totaltcount > triggertransfer) && (File.Exists(dir)))
  {

  int runcount = 0;

  if(File.Exists(dir))
    {
    //read names on temp list
    string namecheck = File.ReadAllText(dir);
    //split names on temp list at ", "
    string[] tempnames = Regex.Split(namecheck, ", ");
    //check each split name and add to reserve slot list
    foreach (string tempname in tempnames)
      {
      //split the name at ":" in to array, 1st is player name, 2nd is date last updated
      string[] tempcount = tempname.Split(':');
      if ((listofplayers.Contains(tempcount[0]) && runcount < numoftemps))
        {runcount++;
        plugin.ConsoleWrite(tempname);
        DateTime now = DateTime.Now;
        string datestring = now.ToString("d");

        string dir2 = "Plugins\\BF4\\ReserveList_" +host+ "_" +port+ ".txt";
        if(File.Exists(dir2))
          {
          //read names on reserve list
          string resnamecheck = File.ReadAllText(dir2);
          plugin.ConsoleWrite(resnamecheck);
          //split names on temp list at ", "
          string[] resnames = Regex.Split(resnamecheck, ", ");
          //finds last entry
          string reslastitem = resnames[resnames.Length - 1];
          //check each split name that is in the reserve list and updates if it is in the temp list
          foreach (string resname in resnames)
            {
            //split the reserve name at ":" in to array, 1st is player name, 2nd is the last date participated in seeding, 3rd is the number of days reward if he is on the reserve list, 4th is a date used for expiry
            //the 4th entry is used to subtract 1 digit a day off of the 3rd entry
            string[] rescount = resname.Split(':');
              //checks if the reserve name equals the player name in temp
            if (rescount[0] == tempcount[0])
              {
              //stops multiple rewards per day
              if(rescount[1] != datestring)
                {
                //add on the reward
                int value = Convert.ToInt32(rescount[2]);
                value = value + rewarddays;
                //cap the reserve slot days at RSCap
                if (value > RSCap) value = RSCap;
                //save the new data
                string newlist = resnamecheck.Replace(resname, rescount[0]+":"+ datestring +":"+value.ToString()+":"+rescount[3]);
                File.WriteAllText(dir2, newlist);
                //adds player to reserve slot if the have helped enough and are not on it.
                if (value >= RSThresh)
                  {
                  if (!plugin.GetReservedSlotsList().Contains(rescount[0]))
                    {
                    plugin.ServerCommand("reservedSlotsList.add", rescount[0]);
                    plugin.ServerCommand("reservedSlotsList.save");
                    plugin.PRoConChat(rescount[0] + " got added to ReserveSlot successfully with " + value.ToString() + " day(s) remaining.");
                    plugin.Log(logdir, rescount[0] + " got added to the ReserveSlot successfully with " + value.ToString() + " day(s) remaining.");
                    }
                  //message player
                  plugin.SendPlayerYell(rescount[0], rescount[0] + ": You have been awarded a reserve slot for helping to start the server, it will expire in approximately "+value+" days unless you help again.", 5);
                  }
                }
              //notify you that a player tried to help twice or more on a day to start server 
              else {plugin.ConsoleWrite(rescount[0] + " helped on the same day with no second reward.");}
              break;
              } 
            //if not in reserve list adds player and info to end of list.
            else if (resname == reslastitem)
              {
              string newlist = resnamecheck + ", " + tempcount[0] +":" + datestring +":"+ rewarddays +":"+ datestring;
              File.WriteAllText(dir2, newlist);
              plugin.PRoConChat("New Player," + tempcount[0] + "added to end of the reserve slot list.");
              plugin.Log(logdir, "New Player," + tempcount[0] + "added to end of the reserve slot list with " + rewarddays.ToString() + " day(s) remaining.");
              }
            }
          }
        //if reserve list doesnt exist, creates list with first entry
        else 
          {
          string newlist = "Blank, "+tempcount[0] +":"+ datestring +":"+ rewarddays +":"+ datestring;
          File.WriteAllText(dir2, newlist);
          plugin.PRoConChat("Reserve slot list created with first player," + tempcount[0] + ".");
          plugin.Log(logdir, "Reserve slot list created with first player," + tempcount[0] + ".");
          }
        }
      else if (runcount >= numoftemps)break;
      }
    }
//deletes temp list after transfer to reserve list
  File.Delete(dir);
  File.WriteAllText(done, "DONE");
  }

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

Originally Posted by moacco07*:

 

Hi supermillhouse,

 

I got this. Is this right? They are not from my platoon.

 

Code:

[16:30:25] New Player,wonskissadded to end of the reserve slot list.
[16:30:25] New Player,sk76weeadded to end of the reserve slot list.
[16:30:25] New Player,Oldman227added to end of the reserve slot list.
[16:30:25] New Player,JetDohSauceManadded to end of the reserve slot list.
[16:30:25] New Player,joonbohshimadded to end of the reserve slot list.
[16:30:25] New Player,motimoti215added to end of the reserve slot list.
[16:30:25] New Player,raja_satanadded to end of the reserve slot list.
[16:30:25] New Player,piggyman95added to end of the reserve slot list.
[16:30:25] New Player,coffee_beans77added to end of the reserve slot list.
[16:30:25] New Player,ROK-wooseoklimadded to end of the reserve slot list.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by moacco07*:

 

Hi Supermillhouse,

 

Can you explain what does this mean?

 

int RSThresh = 5; //When the player should get a reserve slot, when he has this number of days or more.

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

Originally Posted by crasht01*:

 

Hey,

 

Not sure if this is the right thread to post this error message I don't know whether its the limit or the plugin but after putting this limit in for Hardline I get the following error message, Still not sure if the limit works yet but I can say that the onspawn message does not show when spawning. I understand that there is a good chance this was not going to work with compatibility issues etc but I had to try because this limit works well and players on my BF4 server keep coming back, Some even have a competition going on who has the most days for vip

 

Code:

[10:34:37 15] [Insane Limits] Enabled!
[10:34:37 16] [Insane Limits] Battlelog Cache plugin is disabled; installing/updating and enabling the plugin is recommended for Insane Limits!
[10:34:37 24] [Insane Limits] Thread(activator): Compiling Limit #1 - 0.2.1.1 Reserve Slot for Server Starter - OnJoin
[10:34:37 27] [Insane Limits] Thread(activator): ERROR: 1 error compiling Code
[10:34:37 27] [Insane Limits] Thread(activator): ERROR: (CS0006, line: 0, column: 0):  Metadata file 'Plugins/BF3/InsaneLimits.dll' could not be found
[10:34:37 27] [Insane Limits] Thread(activator): Compiling Limit #2 - Get a V.I.P. slot for helping to start the server :) - OnSpawn
[10:34:37 29] [Insane Limits] Thread(activator): ERROR: 1 error compiling Expression
[10:34:37 29] [Insane Limits] Thread(activator): ERROR: (CS0006, line: 0, column: 0):  Metadata file 'Plugins/BF3/InsaneLimits.dll' could not be found
[10:34:37 29] [Insane Limits] Thread(activator): Waiting for privacy_policy_agreement value
[10:34:37 29] [Insane Limits] Thread(activator): Agreement received, activating plugin now!
[10:34:39 79] [Insane Limits] Thread(settings):  Version = 0.9.16.0
[10:34:45 30] [Insane Limits] Thread(fetch): DONE inserting 1 new players, 0 still in queue, took a total of 5 secs
[10:35:00 08] [xVotemap 1.5.7b.0] Info: Voting duration: 1 minutes, 11 seconds.
[10:35:09 81] [Insane Limits] Thread(delayed_comp): Compiling Limit #1 - 0.2.1.1 Reserve Slot for Server Starter - OnJoin
[10:35:09 83] [Insane Limits] Thread(delayed_comp): ERROR: 1 error compiling Code
[10:35:09 83] [Insane Limits] Thread(delayed_comp): ERROR: (CS0006, line: 0, column: 0):  Metadata file 'Plugins/BF3/InsaneLimits.dll' could not be found
[10:35:09 83] [Insane Limits] Thread(delayed_comp): Compiling Limit #2 - Get a V.I.P. slot for helping to start the server :) - OnSpawn
[10:35:09 86] [Insane Limits] Thread(delayed_comp): ERROR: 1 error compiling Expression
[10:35:09 86] [Insane Limits] Thread(delayed_comp): ERROR: (CS0006, line: 0, column: 0):  Metadata file 'Plugins/BF3/InsaneLimits.dll' could not be found
This is the code I used for BF4, I changed where it said BF4 to BFHL not sure if I should have just changed to BFH

 

 

Code:

//0.2.1.1 Reserve Slot for Server Starter
//Set limit to evaluate OnJoin

//Set first_check to this Code:
List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
players.AddRange(team1.players);
players.AddRange(team2.players);
if (team3.players.Count > 0) players.AddRange(team3.players);
if (team4.players.Count > 0) players.AddRange(team4.players);

int RSThresh = 5;    //When the player should get a reserve slot, when he has this number of days or more.
int numoftemps = 10;  //Number of players to be copied to reserve list
int triggertransfer = 20;  //When the players list is copied over
int RSCap = 30;      //Max number of reserve slot days
int rewarddays = 5;  //Number of days rewarded for helping to start the server once
int totaltcount = server.PlayerCount;
int i = 0;
string port = server.Port;
string host = server.Host;
string dir = "Plugins\\BFHL\\TempList_" +host+ "_" +port+ ".txt";
string done = "Plugins\\BFHL\\Done_" +host+ "_" +port+ ".txt";
string logdir = "Logs\\InsaneLimits\\ReserveList_" +host+ "_" +port+ "dump_file.txt";
if (!Directory.Exists(Path.GetDirectoryName(logdir))) Directory.CreateDirectory(Path.GetDirectoryName(logdir));

List<String> listofplayers = new List<String>();

foreach (PlayerInfoInterface p in players)
  {
  listofplayers.Add(p.Name);
  }


//check if server population is more than 4
if ((totaltcount >= 4) && (totaltcount <= triggertransfer) && (!File.Exists(done)))return true;
//if server population is less than 4 then delete temp file if it exists
else if(totaltcount < 4)
  {
  if (File.Exists(dir)) File.Delete(dir);
  if (File.Exists(done)) File.Delete(done);
  }
//check if server population is more than 10 then transfer to ReserveList
else if((totaltcount > triggertransfer) && (File.Exists(dir)))
  {

  int runcount = 0;

  if(File.Exists(dir))
    {
    //read names on temp list
    string namecheck = File.ReadAllText(dir);
    //split names on temp list at ", "
    string[] tempnames = Regex.Split(namecheck, ", ");
    //check each split name and add to reserve slot list
    foreach (string tempname in tempnames)
      {
      //split the name at ":" in to array, 1st is player name, 2nd is date last updated
      string[] tempcount = tempname.Split(':');
      if ((listofplayers.Contains(tempcount[0]) && runcount < numoftemps))
        {runcount++;
        plugin.ConsoleWrite(tempname);
        DateTime now = DateTime.Now;
        string datestring = now.ToString("d");

        string dir2 = "Plugins\\BFHL\\ReserveList_" +host+ "_" +port+ ".txt";
        if(File.Exists(dir2))
          {
          //read names on reserve list
          string resnamecheck = File.ReadAllText(dir2);
          plugin.ConsoleWrite(resnamecheck);
          //split names on temp list at ", "
          string[] resnames = Regex.Split(resnamecheck, ", ");
          //finds last entry
          string reslastitem = resnames[resnames.Length - 1];
          //check each split name that is in the reserve list and updates if it is in the temp list
          foreach (string resname in resnames)
            {
            //split the reserve name at ":" in to array, 1st is player name, 2nd is the last date participated in seeding, 3rd is the number of days reward if he is on the reserve list, 4th is a date used for expiry
            //the 4th entry is used to subtract 1 digit a day off of the 3rd entry
            string[] rescount = resname.Split(':');
              //checks if the reserve name equals the player name in temp
            if (rescount[0] == tempcount[0])
              {
              //stops multiple rewards per day
              if(rescount[1] != datestring)
                {
                //add on the reward
                int value = Convert.ToInt32(rescount[2]);
                value = value + rewarddays;
                //cap the reserve slot days at RSCap
                if (value > RSCap) value = RSCap;
                //save the new data
                string newlist = resnamecheck.Replace(resname, rescount[0]+":"+ datestring +":"+value.ToString()+":"+rescount[3]);
                File.WriteAllText(dir2, newlist);
                //adds player to reserve slot if the have helped enough and are not on it.
                if (value >= RSThresh)
                  {
                  if (!plugin.GetReservedSlotsList().Contains(rescount[0]))
                    {
                    plugin.ServerCommand("reservedSlotsList.add", rescount[0]);
                    plugin.ServerCommand("reservedSlotsList.save");
                    plugin.PRoConChat(rescount[0] + " got added to ReserveSlot successfully with " + value.ToString() + " day(s) remaining.");
                    plugin.Log(logdir, rescount[0] + " got added to the ReserveSlot successfully with " + value.ToString() + " day(s) remaining.");
                    }
                  //message player
                  plugin.SendPlayerYell(rescount[0], rescount[0] + ": You have been awarded a reserve slot for helping to start the server, it will expire in approximately "+value+" days unless you help again.", 5);
                  }
                }
              //notify you that a player tried to help twice or more on a day to start server 
              else {plugin.ConsoleWrite(rescount[0] + " helped on the same day with no second reward.");}
              break;
              } 
            //if not in reserve list adds player and info to end of list.
            else if (resname == reslastitem)
              {
              string newlist = resnamecheck + ", " + tempcount[0] +":" + datestring +":"+ rewarddays +":"+ datestring;
              File.WriteAllText(dir2, newlist);
              plugin.PRoConChat("New Player," + tempcount[0] + "added to end of the reserve slot list.");
              plugin.Log(logdir, "New Player," + tempcount[0] + "added to end of the reserve slot list with " + rewarddays.ToString() + " day(s) remaining.");
              }
            }
          }
        //if reserve list doesnt exist, creates list with first entry
        else 
          {
          string newlist = "Blank, "+tempcount[0] +":"+ datestring +":"+ rewarddays +":"+ datestring;
          File.WriteAllText(dir2, newlist);
          plugin.PRoConChat("Reserve slot list created with first player," + tempcount[0] + ".");
          plugin.Log(logdir, "Reserve slot list created with first player," + tempcount[0] + ".");
          }
        }
      else if (runcount >= numoftemps)break;
      }
    }
//deletes temp list after transfer to reserve list
  File.Delete(dir);
  File.WriteAllText(done, "DONE");
  }

return false;

Set second_check to this Code:
List<PlayerInfoInterface> players = new List<PlayerInfoInterface>();
players.AddRange(team1.players);
players.AddRange(team2.players);
if (team3.players.Count > 0) players.AddRange(team3.players);
if (team4.players.Count > 0) players.AddRange(team4.players);

string port = server.Port;
string host = server.Host;

foreach (PlayerInfoInterface p in players)
  {
  // New tag extraction code by PapaCharlie9
  String tag = p.Tag;

    if (String.IsNullOrEmpty(tag)) {
        // Maybe they are using [_-=]XXX[=-_]PlayerName[_-=]XXX[=-_] format
        Match tm = Regex.Match(p.Name, @"^[=_\-]*([^=_\-]{2,4})[=_\-]");
        if (tm.Success) {
            tag = tm.Groups[1].Value;
        } else {
            tm = Regex.Match(p.Name, @"[^=_\-][=_\-]([^=_\-]{2,4})[=_\-]*$");
            if (tm.Success) { 
                tag = tm.Groups[1].Value;
            } else {
                tag = String.Empty;
            }
        }
    }

//This stops your clan members and any other clan friends in the "Res" list being added to the reward and them possibly later getting removed

  if ((!plugin.isInList(p.Name, "Res")) && (!plugin.isInList(tag, "Res")))
    {
    string dir = "Plugins\\BFHL\\TempList_" +host+ "_" +port+ ".txt";
    if(File.Exists(dir))
      {
      string namecheck = File.ReadAllText(dir);
//    plugin.ConsoleWrite(namecheck);
      string[] tempnames = Regex.Split(namecheck, ", ");
      string templastitem = tempnames[tempnames.Length - 1];
      //stops the names being repeatedly entered in to the list every time it runs
      foreach (string tempname in tempnames)
        {
        string[] tempcount = tempname.Split(':');
        if (tempcount[0] == p.Name)
          {
          break;
          }    
        else if (tempname == templastitem)
          {
          //add new player
          plugin.ConsoleWrite("Templist New Player: " + p.FullName);
          DateTime now = DateTime.Now;
          string datestring = now.ToString("d");
          string newlist = namecheck + ", " + p.Name +":" + datestring;
          File.WriteAllText(dir, newlist);
          }
        }
      }
    else
      {
      //create new temp file with player
      plugin.ConsoleWrite("Tempfile New Player: " + p.FullName);
      DateTime now = DateTime.Now;
      string datestring = now.ToString("d");
      string newlist = "Blank, "+p.Name +":"+ datestring;
      File.WriteAllText(dir, newlist);
      }
    }
  }
return false;

//Limit #2 Remove from Reserve slot list
//Set limit to evaluate OnIntervalServer, set evaluation_interval to 1800
//Set first_check to this Code:

int RSOffThresh = 0;   //Remove Reserve slot on number of days
int RSDellThresh = -1; //Remove from Reserve list on number of days

string port = server.Port;
string host = server.Host;
string dir = "Plugins\\BFHL\\ReserveList_" +host+ "_" +port+ ".txt";
if(File.Exists(dir))
  {
  string namecheck = File.ReadAllText(dir);
  plugin.ConsoleWrite(namecheck);
  string[] resnames = Regex.Split(namecheck, ", ");
  DateTime now = DateTime.Now;
  string datestring = now.ToString("d");
  foreach (string resname in resnames)
    {
    if (resname != "Blank")
      {
      string[] rescount = resname.Split(':');
      if (rescount[3] != datestring)
        {
        int value = Convert.ToInt32(rescount[2]);
        value--;
        if ((value == RSOffThresh) && (plugin.GetReservedSlotsList().Contains(rescount[0])))
          {
          plugin.ServerCommand("reservedSlotsList.remove", rescount[0]);
          plugin.ServerCommand("reservedSlotsList.save");
          plugin.ConsoleWrite(value.ToString());
          namecheck = namecheck.Replace(resname, rescount[0]+":"+ rescount[1] +":"+value.ToString()+":"+ datestring);
          plugin.ConsoleWrite(namecheck);
          File.WriteAllText(dir, namecheck);
          }
        else if(value <= RSDellThresh)
          {
          plugin.ConsoleWrite(value.ToString());
          namecheck = namecheck.Replace(", "+resname, "");
          plugin.ConsoleWrite(namecheck);
          File.WriteAllText(dir, namecheck);
          }
          else
          {
          plugin.ConsoleWrite(value.ToString());
          namecheck = namecheck.Replace(resname, rescount[0]+":"+ rescount[1] +":"+value.ToString() +":"+ datestring);
          plugin.ConsoleWrite(namecheck);
          File.WriteAllText(dir, namecheck);
          }
        }
      }
    }
  }
return false;

//Set list_1_name to Res
//Set list_1_comparison to CaseSensitive
//list_1_data is to contain a list of clan tags or soldier names that should be excluded from this reward, separated by commas, for example:

Code:
SLAG, SL4G, PapaCharlieNiner

//Get a V.I.P. slot for helping to start the server :)
//Set limit to evaluate OnSpawn
//Set first_check to this Expression:

(  true  )

//Set Secont_check to this Code:

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

string path = "Logs/InsaneLimits/GUID.log";
if (!Directory.Exists(Path.GetDirectoryName(path))) Directory.CreateDirectory(Path.GetDirectoryName(path));

plugin.Log(path, plugin.R("[%date% %time%] [%p_ct% - %p_n%]    >>EA GUID:    %p_eg%<<         and         >>PB GUID:    %p_pg%<<     and      >>IP:    %p_ip%<<"));
//The thread code below allows me to delay the reward message on first spawn because directly below this text is a !rules yell. It then yells the reward message 5 seconds later

//simple yell to start for type Get a V.I.P. slot for helping to start the server :)
plugin.SendPlayerMessage(player.Name, "Get a V.I.P. slot for helping to start the server :)");

// Closure bindings for the delegate
string port = server.Port;
string host = server.Host;
string yellMsg = null;
string dir = "Plugins\\BFHL\\ReserveList_" +host+ "_" +port+ ".txt";
if(File.Exists(dir))
  {
  //read names on reserve list
  string namecheck = File.ReadAllText(dir);
  //plugin.ConsoleWrite(namecheck);
  //split names on Reserve list at ", "
  string[] resnames = Regex.Split(namecheck, ", ");
  //check each split name 
  foreach (string resname in resnames)
    {
    //split the name at ":" in to array, 1st is player name, 2nd is date last updated, 3rd can be ignored, was extra code in second check
    string[] rescount = resname.Split(':');
    if (rescount[0] == player.Name)
      {
      if (plugin.GetReservedSlotsList().Contains(rescount[0]))
        {
        int value = Convert.ToInt32(rescount[2]);
        yellMsg = "You have a reserve slot for helping to start the server, it will expire in approximately "+value+" day(s) unless you help again.";
        break;
        }
      }
    }
  }

// Thread delegate

ThreadStart AdminYell = delegate  {
//5 second delay before yelling the reward message
  Thread.Sleep(5*1000);
  plugin.SendPlayerYell(player.Name, yellMsg, 5);
  };

// Main thread code
if (yellMsg != null)
  {
  Thread t = new Thread(AdminYell);
  t.Start();
  Thread.Sleep(10);
  }
return false;
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

Did you get this to work for BFHL?

I have temporarily modified my copy of insane limits to work, well enough for me anyway, and I can confirm this does work ok, you just need to change any references to "BF4" to "BFHL". The errors you are seeing are because of Insane limits compatibility with Hardline, I do believe PC9 is planning on fixing it though. :biggrin:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

Hi Supermillhouse,

 

Can you explain what does this mean?

 

int RSThresh = 5; //When the player should get a reserve slot, when he has this number of days or more.

After the initial addition of the player any further participation will add another 5 days to their quota, this value can be changed.

so lets say rewarddays = 5 days for participation and starting the server and the RSThresh = 12 days before they get a reserve slot

So lets say "Bob" joined and got the initial 5 days

Bob has 5 days,

next day bob has 4 days because is depreciates by 1 over night

bob joins again and gets another 5 days

bob has 9 days

next day bob has 8 days because is depreciates by 1 over night

bob misses a day on the server

next day bob has 7 days because is depreciates by 1 over night

bob joins again and gets another 5 days

bob has 12 days

bob would now get added to the procon reserve list and be on there for 12 days

next day bob has 11 days because is depreciates by 1 over night

bob joins again and gets another 5 days

bob has 16 days

and so on

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

Originally Posted by UnstoppableStorm*:

 

[bF4]

 

List #1 Res

 

Set list_1_name to Res

Set list_1_comparison to CaseSensitive

list_1_data is to contain a list of clan tags or soldier names that should be excluded from this reward, separated by commas, for example:

 

Code:

SLAG, SL4G, PapaCharlieNiner
Where should i add this list in the insane limits?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by LCARSx64*:

 

Where should i add this list in the insane limits?

In Insane Limits settings, section 1. Settings, change use_custom_lists to True. You will now have a new settings section named 2. Lists Manager, this section is used to create and delete custom lists. When you create a new list, it will appear at the bottom.
* Restored post. It could be that the author is no longer active.
Link to comment
  • 1 month later...

Originally Posted by Mamba334*:

 

Can you guys tell me if this works correctly? I used the code Papa Charlie done. When people come into the server, it's not advising them of this at all. I added myself to this "res" list also and it's not saying upon onspawn anything to me about being a reserver.

 

Thanks!

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

Originally Posted by supermillhouse*:

 

If you are on about the tag extraction code from PC9, it is all ready in post 1 ?

 

FYI, I am unable to help much as I don't have a server anymore.

 

Sent from my HTC One_M8 using Tapatalk

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

Originally Posted by supermillhouse*:

 

If you are in the Res list you won't get yells, because you should be perminently reserved and know it. Why would you want to be yelled at if you are permanently reserved I.e. clan remember?

 

Sent from my HTC One_M8 using Tapatalk

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

Originally Posted by Mamba334*:

 

If you are in the Res list you won't get yells, because you should be perminently reserved and know it. Why would you want to be yelled at if you are permanently reserved I.e. clan remember?

 

Sent from my HTC One_M8 using Tapatalk

Noted.

 

No, the players that aren't on the Res List or white list whatever, they're not seeing anything.

 

I'm using papa's code, so I need to use the code you yourself done first?

 

I enabled it and created the list and followed the directions to a T. Nothing in return.

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

Originally Posted by supermillhouse*:

 

Hm, should work. Like I said I have nothing to test on if Procon functions differently now. Is insane limits plugin able to create the files in the plugin\bf4 folder?

 

Sent from my HTC One_M8 using Tapatalk

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

Originally Posted by Mamba334*:

 

Hm, should work. Like I said I have nothing to test on if Procon functions differently now. Is insane limits plugin able to create the files in the plugin\bf4 folder?

 

Sent from my HTC One_M8 using Tapatalk

This is in the plugin/bf4 folder ..

 

reserve list.txt

 

Blank, BakedFireman:8/12/2015:5:8/12/2015, Mamba334:8/12/2015:5:8/12/2015, FungisFeeR:8/12/2015:5:8/12/2015, BrowningA5-12g:8/12/2015:5:8/12/2015, iLL3RKiLL3R:8/12/2015:5:8/12/2015, chessplyr:8/12/2015:5:8/12/2015

 

But it never advised them that they were added to the list. So I guess I'm halfway there?

 

I'm about to head to Autozone to grab some parts for my tuneup. I'll check back in about an hour. Thanks for any help. Sorry to take up your time.

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

Originally Posted by supermillhouse*:

 

They only get added on to the reserve slot on the second day of helping and get a yell when they are added. Your file has a load of :5: and the same dates which means they have been on once and not came back yet. The bonus code on first spawn also yells at them if they currently have a reserve slot and how many days they have remaining. But again 2nd day at least before they will be given a slot and the yell kicks of when the server pop reaches "int RSThresh"

 

Sent from my HTC One_M8 using Tapatalk

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

Originally Posted by Mamba334*:

 

They only get added on to the reserve slot on the second day of helping and get a yell when they are added. Your file has a load of :5: and the same dates which means they have been on once and not came back yet. The bonus code on first spawn also yells at them if they currently have a reserve slot and how many days they have remaining. But again 2nd day at least before they will be given a slot and the yell kicks of when the server pop reaches "int RSThresh"

 

Sent from my HTC One_M8 using Tapatalk

So I rushed it? Ok. Thanks brother. I'll wait about 5 days and just see how it goes. Great job making this! It's so amazing what you guys can code and do in all these servers. Super cool.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

Ok, the stats logging works fine. I went through all the steps and it does created a list and let the guys know how many days and such they have left.

 

Ok, now here's the issue: The people that are on the res list are still like 4 in que, and have it set to aggressive.Join (true) so it should kick someone out and allow those on the Res list to come on in right?

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

Originally Posted by ColColonCleaner*:

 

Ok, the stats logging works fine. I went through all the steps and it does created a list and let the guys know how many days and such they have left.

 

Ok, now here's the issue: The people that are on the res list are still like 4 in que, and have it set to aggressive.Join (true) so it should kick someone out and allow those on the Res list to come on in right?

FYI this is all also fixed through the setup stuff i'll be doing for you.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Mamba334*:

 

FYI this is all also fixed through the setup stuff i'll be doing for you.

Ok, great! You got time to do this today? Need me to list all the plugins I have to be sure none of them are conflicting with each other?

 

Also, when they are added to the Reserve List, it places them on the White List also, and then the White List is excluded in cheat scans. Might want to look into that.

 

I don't know when you'll reply, so would getting on teamspeak 3 with me help better or you can email me.

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

Originally Posted by ColColonCleaner*:

 

Ok, great! You got time to do this today? Need me to list all the plugins I have to be sure none of them are conflicting with each other?

 

Also, when they are added to the Reserve List, it places them on the White List also, and then the White List is excluded in cheat scans. Might want to look into that.

 

I don't know when you'll reply, so would getting on teamspeak 3 with me help better or you can email me.

I replied to you yesterday saying to open a PM with your teamspeak/layer/database connection info. Please do that. We can discuss exactly what you all want set up then.
* Restored post. It could be that the author is no longer active.
Link to comment

Archived

This topic is now archived and is closed to further replies.




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