Jump to content

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


ImportBot

Recommended Posts

Originally Posted by PapaCharlie9*:

 

Yes yell is working now for bf4! The bonuscode to alert people they have reserved slot is not working for yell? (Which it said it should be papa)

Doesn't work how, exactly? The bonus code was changed at some point to use chat messages instead of yells. Are you saying you are not seeing yells (expected, since code was changed) or that you are not seeing chat messages (not expected, that should work)?
* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 190
  • Created
  • Last Reply

Originally Posted by supermillhouse*:

 

Yes yell is working now for bf4! The bonuscode to alert people they have reserved slot is not working for yell? (Which it said it should be papa)

I will have to update this when I get back from holliday, I have also added a log so it is a bit easier to see who should have a reserve slot. Will try and have it done by tuesday
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Ralphvd*:

 

I will have to update this when I get back from holliday, I have also added a log so it is a bit easier to see who should have a reserve slot. Will try and have it done by tuesday

Enjoy your holiday! Will look forward to an update of this :biggrin:

 

Doesn't work how, exactly? The bonus code was changed at some point to use chat messages instead of yells. Are you saying you are not seeing yells (expected, since code was changed) or that you are not seeing chat messages (not expected, that should work)?

Im not seeing yells, but i didnt know the code was changed to msg. That explains alot :ohmy:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

Updated to 0.2.1.0

 

- Added in a log file in Logs\InsaneLimits\ to track daily function.

- Changed to Yell messages.

- Changed triggertransfer to 20

- Changed numoftemps to 10

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

Originally Posted by kcuestag*:

 

Updated to 0.2.1.0

 

- Added in a log file in Logs\InsaneLimits\ to track daily function.

- Changed to Yell messages.

- Changed triggertransfer to 20

- Changed numoftemps to 10

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

Originally Posted by JR8355*:

 

At the moment it doesn't great people, I will think about implementing it tho. Good call

 

Sent from my GT-N7000 using Tapatalk

Ok ty sm, so how would one know they are on the reserve list?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

It only starts telling people once they get their name on to my reserve list, ie if they helped they would be told, and they would then be reminded every time they came back to the server until their name is deleted

 

Sent from my GT-N7000 using Tapatalk

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

Originally Posted by BBDK*:

 

[bF4]

 

Getting this error:

 

[14:39:17 31] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:39:57 72] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:39:57 72] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:39:59 40] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:39:59 40] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:40:38 64] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:40:38 64] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

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

Originally Posted by BBDK*:

 

[bF4]

 

Getting this error:

 

[14:39:17 31] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:39:57 72] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:39:57 72] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:39:59 40] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:39:59 40] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

[14:40:38 64] [insane Limits] ERROR: unable to append data to file D:\UserFiles\*****\GameServers\TC46103210167347572 766706\Logs/InsaneLimits/GUID5-7-13.log

[14:40:38 64] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'D:\UserFiles\*****\GameServers\TC4610321016734757 2766706\Logs\InsaneLimits\GUID5-7-13.log'.

Fixed - now I wait on this piece of code to work. :-)
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

I want to remove the "Type !rules for Server Rules" in chat when you join/spawn the server, as it ...*.

 

Do I just remove these two lines?

 

Code:

//simple yell to start for type !rules for server rules
plugin.SendPlayerMessage(player.Name, "Type !rules for Server Rules");
Or do I have to remove something else too?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

I want to remove the "Type !rules for Server Rules" in chat when you join/spawn the server, as it ...*.

 

Do I just remove these two lines?

 

Code:

//simple yell to start for type !rules for server rules
plugin.SendPlayerMessage(player.Name, "Type !rules for Server Rules");
Or do I have to remove something else too?
Just delete both those lines or comment out the second one with // :smile:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

Just delete both those lines or comment out the second one with // :smile:

I just did, the message is no longer duplicated, but it's still shown ONCE in the chat, is that normal? :smile:

 

Here's my code after removing those 2 lines:

 

Code:

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

plugin.Log("Logs/InsaneLimits/GUID5-7-13.log", 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

// Closure bindings for the delegate
string port = server.Port;
string host = server.Host;
string yellMsg = null;
string dir = "Plugins\\BF4\\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;
Many thanks for the help.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

Looking at this it shouldn't be from this limit, probably another plugin or other limit.

 

Sent from my GT-N7000 using Tapatalk

It's no longer duplicated, so one message is okay for me. I'll have to figure out who's doing it. :tongue:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by supermillhouse*:

 

we just changed server hosts to hyperina and we don't have access to the Logs folder on the procon layer.. Is it possible to get it to log in the plugins folder?

Just Change:

 

string logdir = "Logs\\InsaneLimits\\ReserveList_" +host+ "_" +port+ "dump_file.txt";

 

to

 

string logdir = "Plugins\\BF4\\ReserveList_" +host+ "_" +port+ "dump_file.txt";

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

Originally Posted by )RAG()N*:

 

Just Change:

 

string logdir = "Logs\\InsaneLimits\\ReserveList_" +host+ "_" +port+ "dump_file.txt";

 

to

 

string logdir = "Plugins\\BF4\\ReserveList_" +host+ "_" +port+ "dump_file.txt";

I have changed the above line but I'm getting this error,,

 

[19:37:01 85] [insane Limits] ERROR: unable to append data to file C:\ClientInstalls\\Logs/InsaneLimits/GUID5-7-13.log

[19:37:01 87] [insane Limits] EXCEPTION: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\ClientInstalls\\Logs\InsaneLimits\GUID5-7-13.log'.

 

 

So I just changed this line in the Yell !Rules & Res

 

From this

plugin.Log("Logs/InsaneLimits/GUID5-7-13.log", plugin.R("[%date% %time%] [%p_ct% - %p_n%] >>EA GUID: %p_eg%>PB GUID: %p_pg%>IP: %p_ip%

 

to this

plugin.Log("Plugins/BF4/GUID5-7-13.log", plugin.R("[%date% %time%] [%p_ct% - %p_n%] >>EA GUID: %p_eg%>PB GUID: %p_pg%>IP: %p_ip%

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

Originally Posted by CDU-Rogue-Warrior*:

 

we just changed server hosts to hyperina and we don't have access to the Logs folder on the procon layer.. Is it possible to get it to log in the plugins folder?

you should, I have Hypernia, and I can see all the logs
* Restored post. It could be that the author is no longer active.
Link to comment
  • 2 weeks later...

Originally Posted by kcuestag*:

 

It stopped working for me after 1.4.2.2 Procon's update. Here's my settings:

 

http://i.imgur.com/I3NI6it.png

 

http://i.imgur.com/HqI7aNJ.png

 

Am I doing anything wrong? I copied everything from scratch again...and I am using my clan tag (Oaks) in the List #1, but it says I have 5 days left.

 

Edit:

 

It appears Battlelog is "down" (I can't log in now after logging out). So maybe that's why it wasn't fetching my clan tag? We'll see when it gets back online.

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

Originally Posted by supermillhouse*:

 

Nope, sadly it still tells me my VIP slot will be gone in 5 days. :sad:

After battlelog went down did your name get added to the ReserveList........txt. If so you will need to delete your name and the date bits. As far as I know, mine is still working fine after the update
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by kcuestag*:

 

After battlelog went down did your name get added to the ReserveList........txt. If so you will need to delete your name and the date bits. As far as I know, mine is still working fine after the update

My name is still in the ReservedSlot List, and I don't understand what do you mean by "date" bits. You mean the log/txt file that is made by this plugin?

 

Ignore that ninja edit, issue still happens.

 

PS: I have accepted your friend request.

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




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