ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by PapaCharlie9*: 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. Full details here: showthread....-MAR-2013)-BF3* Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by IAF-SDS*: Papa, does this 0.9.10.0 work with ProCon v 1.4.0.6 ? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by PapaCharlie9*: Papa, does this 0.9.10.0 work with ProCon v 1.4.0.6 ?Nope. From 9.9 on, 1.4.0.7 or later is required. Since 1.4.0.9 is now available, I didn't think it would be a problem. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by IAF-SDS*: Okay thanks. Im waiting a few days to make sure 1.4.0.9 is stable because 1.4.0.7 threw my servers into a mess and I just had all of the admins downgrade to 1.4.0.6. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by supermillhouse*: __? Not using what in a limit? That error can only happen in a limit ... that is, some limit, whether you remember adding it or not, is using server.MapFileName and server.Gamemode in some replacement somewhere. I need the exact limit code to reproduce the problem, so I can fix it. I looked at the code around the error and I'm certain it doesn't care what map/mode is being used. That said, the limit itself may care, which is why they seem connected. What version of IL are you using? version 0.9.9.0. I only use server.MapFileName in 2 limits and both of them have been disabled for months. And even then it is not for a replacement. Our server just emptied out so I put it back on to conquest and I don't get the error. Never mind, sorry for wasting your time, don't know what happened there. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by PapaCharlie9*: Interested in minute to minute updates on changes to Insane Limits? Follow me on Twitter (@PapaCharlie9 #InsaneLimits): https://twitter.com/PapaCharlie9 Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by Dudenell*: It's best to keep in mind that Procon in general and Insane Limits specifically wasn't designed to run on Linux. Mono is amazing, but it isn't perfect and it often falls down on file path handling. Windows is just plain evil when it comes to file paths and since Linux is less evil, it suffers in comparison. Looks like the thread local storage stuff is also not quite right. I never see "Threadpool worker" in my errors. It ought to have the thread name, which in this case is set to "settings". Here's the relevant code in Insane Limits. Maybe you can file a bug against Mono and get them to fix their handling of one of these objects or functions? Code: // called with "InsaneLimits_[i]ip_port[/i].conf" public static String makeRelativePath(String file) { String exe_path = Directory.GetParent(Application.ExecutablePath).FullName; String dll_path = Directory.GetParent(Assembly.GetExecutingAssembly().Location).FullName; String rel_path = dll_path.Replace(exe_path, ""); rel_path = Path.Combine(rel_path.Trim(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }), file); return rel_path; }Note that what Insane Limits is expecting is a path relative to Procon.exe. The output of that function should have been "Plugins/BF3/InsaneLimits_173.234.245.67_47000.conf", but for some reason you are getting double the full path to the procon folder. For the bug report, you should verify that: Procon.exe is located at /home/procon/Procon.exe InsaneLimits.dll is located at /home/procon/Plugins/BF3/InsaneLimits.dll The input parameter would have been "InsaneLimits_173.234.245.67_47000.conf" Thanks for the help so far. I guess my next question is A. Would I be able to print the exe_path and the dll_path to the insane limits debug window when started? B. Could I just give the relative path without having it search. EX, instead of Code: rel_path = Path.Combine(rel_path.Trim(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }), file);just put Code: rel_path = /home/procon/Plugins/BF3As a possible temporary fix until I figure this out? Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by PapaCharlie9*: Thanks for the help so far. I guess my next question is A. Would I be able to print the exe_path and the dll_path to the insane limits debug window when started? B. Could I just give the relative path without having it search. EX, instead of Code: rel_path = Path.Combine(rel_path.Trim(new char[] { Path.DirectorySeparatorChar, Path.AltDirectorySeparatorChar }), file);just put Code: rel_path = /home/procon/Plugins/BF3As a possible temporary fix until I figure this out?You can patch it if you want, but you'll have to redo the patch every time you pick up a new version. You would use this (your B is the full path, not the relative path): Code: rel_path = Path.Combine("Plugins/BF3", file); // Mono patch!Just add that line, don't change anything else. Add it right before the return, like this: Code: rel_path = Path.Combine("Plugins/BF3", file); // Mono patch! return rel_path; Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 17, 2013 Author Share Posted March 17, 2013 Originally Posted by EBassie*: Okay thanks. Im waiting a few days to make sure 1.4.0.9 is stable because 1.4.0.7 threw my servers into a mess and I just had all of the admins downgrade to 1.4.0.6. Hey IAF SDS, 1.4.0.9 is as stable is it can get. @PC9: Thanks for the update again Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 18, 2013 Author Share Posted March 18, 2013 Originally Posted by p19blo*: hi, i set up the twitter like told to, all came back fine, but it isnt posting my kicks bans on my twitter, it is however posting on insane limits twitter still. any ideas ? thanks Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 18, 2013 Author Share Posted March 18, 2013 Originally Posted by HexaCanon*: hi, i set up the twitter like told to, all came back fine, but it isnt posting my kicks bans on my twitter, it is however posting on insane limits twitter still. any ideas ? thanks change "use_custom_twitter" from "false" to "true". below you will find a new section for custom twitter, first option there is "twitter_setup_account", make that true and then you will be given a website link (you will find it below in the plugin chat/console), copy the website link and paste it into your browser, and follow the instruction. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 18, 2013 Author Share Posted March 18, 2013 Originally Posted by p19blo*: change "use_custom_twitter" from "false" to "true". below you will find a new section for custom twitter, first option there is "twitter_setup_account", make that true and then you will be given a website link (you will find it below in the plugin chat/console), copy the website link and paste it into your browser, and follow the instruction. Ive done this and it still doesnt work. did the pin etc it said the right twitter name and id. setting as current in this screen shot. 2rfpix0.png Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by PapaCharlie9*: Insane Limits doesn't automatically tweet kicks/bans to a custom tweet account, only to the "default", which is micovery's. The custom tweet account setup is for your own limits that you write, when you use the Tweet action. The default tweets are controlled by tweet_my_server_bans, tweet_my_server_kicks and twee_my_plugin_state. Your own custom tweets are controlled by your limits. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by p19blo*: Insane Limits doesn't automatically tweet kicks/bans to a custom tweet account, only to the "default", which is micovery's. The custom tweet account setup is for your own limits that you write, when you use the Tweet action. The default tweets are controlled by tweet_my_server_bans, tweet_my_server_kicks and twee_my_plugin_state. Your own custom tweets are controlled by your limits. I have a limits i set up on max kills. Or is this not what you mean. I do apologise if I sound simple but I'm rather confused. Edit** Ah right. Think I understand now. Ill post back if I struggle. Thanks guys Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by PapaCharlie9*: I have a limits i set up on max kills. Or is this not what you mean. I do apologise if I sound simple but I'm rather confused.Does your max kills limit use a Tweet action? If it does, and you are still not seeing tweets, set your debug_level to 4 and watch for error messages when a tweet should happen. Post the errors. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by Dudenell*: Had one of my admins spend time trying to fix this with mono, was finally successful but had to change some of the code. They added a check for linux and fix the directory issues https://github.com/PapaCharlie9/insane-limits/pull/41 Edit: already found a bug with that... Doesn't checkmark nor accepts the agreement on start, but everything else is saved. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by p19blo*: Does your max kills limit use a Tweet action? If it does, and you are still not seeing tweets, set your debug_level to 4 and watch for error messages when a tweet should happen. Post the errors.started from scratch [18:36:29 57] [insane Limits] Restoring default Twitter account settings for @InsaneLimits [18:36:35 61] [insane Limits] oauth_callback_confirmed=true [18:36:35 61] [insane Limits] oauth_token=*** [18:36:35 61] [insane Limits] oauth_token_secret=*** [18:36:35 61] [insane Limits] Please visit the following site to obtain the twitter_verifier_pin [18:36:35 61] [insane Limits] http://api.twitter.com/oauth/authorize_oauth_token=*** [18:37:01 20] [insane Limits] Access token, and secret obtained. Twitter setup is now complete. [18:37:01 20] [insane Limits] Twitter User-Id: *** [18:37:01 20] [insane Limits] Twitter Screen-Name: TheBanHammerUK [18:37:01 20] [insane Limits] access_token=*** [18:37:01 20] [insane Limits] access_token_secret=*** ive only starred 3 digits as i dont know if this is privvy info. twitter2.png Nothings shown up on the log. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by PapaCharlie9*: Had one of my admins spend time trying to fix this with mono, was finally successful but had to change some of the code. They added a check for linux and fix the directory issues https://github.com/PapaCharlie9/insane-limits/pull/41 Edit: already found a bug with that... Doesn't checkmark nor accepts the agreement on start, but everything else is saved. I responded to the pull request with this rejection comment: I'm willing to work with you to make this easier to use with Mono, but I'm not going to accept this change as written, unless the following questions or issues are addressed: * For IsRunningOnLinux, wouldn't it be easier to just compare with PlatformID.Unix? Why all the (int) magic number stuff? * For CustomList, it appears that the change would work for Windows and Mono, yes? * In SaveSettings and LoadSettings, why must the file path begin with "/" to work on Mono? The default value of this variable is "InsaneLimits_ip_port.conf", that is, it is just a file name, not even a path. If a "/" is necessary, it seems to me that the functions that turn that file name into a path, like FixLimitsFilePath, should be the ones that are changed. * The DumpData changes are a bit too intrusive. I'd want to leave as much Windows-working code unchanged as possible and only change the absolute minimum required to work on Mono. In your testing, if you can provide me with what the functions makeRelativePath and FixLimitsFilePath return **without** your changes, that would help me figure out how best to accommodate. If you can break it down to individual return values for each invocation of Directory.GetParent.FullName, that would be even better. Give me the full path for the setup, e.g., /home/procon, so I can analyze the results. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 19, 2013 Author Share Posted March 19, 2013 Originally Posted by PapaCharlie9*: Nothings shown up on the log.Let's try this. Make a new limit to evaluate OnIntervalServer, call it "test", set the interval to 10 seconds, set the Action to Log | Tweet. Set first_check to this Expression: Code: (true)Leave second_check disabled. Set the log_destination to Plugin. Set the tweet_status and log_message to: TheBanHammerUK: Activated %l_id% %l_n% Run that for about a minute and then post the log, debug_level 4. Also, check http://twitter.com/InsaneLimits to see if your tweets are still going there instead of to your account. EDIT: The player you are testing the ban with wouldn't be on your whitelist, would he? The ban is not executed and the tweet is not sent if the player is on the whitelist. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 20, 2013 Author Share Posted March 20, 2013 Originally Posted by p19blo*: this is what im getting [20:18:25 35] [insane Limits] Thread(enforcer): TheBanHammerUK: Activated 2 test [20:18:25 35] [insane Limits] Thread(enforcer): sending Tweet (@TheBanHammerUK): "TheBanHammerUK: Activated 2 test" [20:18:25 72] [insane Limits] Thread(enforcer): EXCEPTION: Twitter UpdateStatus Request(HTTP/1.1) failed, Twitter Error: Status is a duplicate., System.Net.WebException: The remote server returned an error: (403) Forbidden. [20:18:35 41] [insane Limits] Thread(enforcer): TheBanHammerUK: Activated 2 test [20:18:35 41] [insane Limits] Thread(enforcer): sending Tweet (@TheBanHammerUK): "TheBanHammerUK: Activated 2 test" [20:18:35 97] [insane Limits] Thread(enforcer): EXCEPTION no one on the whitelist. still going through @insanelimits Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 20, 2013 Author Share Posted March 20, 2013 Originally Posted by PapaCharlie9*: EDIT: Dude! It's working, look at your stream: https://twitter.com/TheBanHammerUK You don't really need to do anymore testing, ignore the stuff below unless you really want to try it. It's working as is. What about the very first tweet? The error "Status is a duplicate" is correct, the message is the same and Twitter is rejecting it, but the first one might have worked. I don't see any of these test tweets on InsaneLimits stream. Try making these changes to the test: Remove all the Actions, delete the "Log | Tweet" text in the setting. It should say None when you are done. Add this second_check Code: Code: Random r = new Random(); String msg = "R" + r.Next(10000) + " test on " + server.TimeTotal; plugin.ConsoleWrite(msg); plugin.Tweet(msg); return false; Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 20, 2013 Author Share Posted March 20, 2013 Originally Posted by p19blo*: thank you for your help. much appreciated edit This is what i mean by its still on insane limits Insane Limits @InsaneLimits #Kick Horse4Horse, @"Battlefield Tweaks FlagRun Fun AutoBan=On", for ignoring warnings and killing more than once 8:37 PM - 19 Mar 13 Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 22, 2013 Author Share Posted March 22, 2013 Originally Posted by shadow2k1*: hello all im having an issue with my plugin i requested to have my plugin updated thru my hosting company but for right now i on an old version. anyway i dont know if it because of the game update but i have this error [insane Limits] ERROR: unable to dump information to file [19:17:47 98] [insane Limits] EXCEPTION: System.UnauthorizedAccessException: Access to the path 'c:\games\208_167_240_130_17110\710045\procon\Plug ins\BF3\InsaneLimits_64.94.238.163_47200.conf' is denied. this is my version im using Insane Limits - 0.0.0.8-patch-4 i have full admin right to it but i get that error can anyone tell me why? thanks Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 22, 2013 Author Share Posted March 22, 2013 Originally Posted by Singh400*: hello all im having an issue with my plugin i requested to have my plugin updated thru my hosting company but for right now i on an old version. anyway i dont know if it because of the game update but i have this error [insane Limits] ERROR: unable to dump information to file [19:17:47 98] [insane Limits] EXCEPTION: System.UnauthorizedAccessException: Access to the path 'c:\games\208_167_240_130_17110\710045\procon\Plug ins\BF3\InsaneLimits_64.94.238.163_47200.conf' is denied. this is my version im using Insane Limits - 0.0.0.8-patch-4 i have full admin right to it but i get that error can anyone tell me why? thanks You don't have full read/write permissions to your \procon\ directory. Also, please upgrade to the latest version of IL ASAP. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 25, 2013 Author Share Posted March 25, 2013 Originally Posted by IAF-SDS*: Hey Papa. If I wanted to change the stats request rate of Insane Limits to match that of Cheat Detector and True Balancer where they make 1 request every 30 seconds (instead of IL's 7.5 requests every 30 seconds where 5/20 x 30 = 7.5), would I change it as shown below or is there more involved? Change ? DateTime since = DateTime.Now; // lower bound double minSecs = 4.0; // min between fetches double maxSecs = 10.0; // max between fetches double lowerBound = minSecs; to ? DateTime since = DateTime.Now; // lower bound double minSecs = 30.0; // min between fetches double maxSecs = 75.0; // max between fetches double lowerBound = minSecs; Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 25, 2013 Author Share Posted March 25, 2013 Originally Posted by PapaCharlie9*: Hey Papa. If I wanted to change the stats request rate of Insane Limits to match that of Cheat Detector and True Balancer where they make 1 request every 30 seconds (instead of IL's 7.5 requests every 30 seconds where 5/20 x 30 = 7.5), would I change it as shown below or is there more involved? Change ? DateTime since = DateTime.Now; // lower bound double minSecs = 4.0; // min between fetches double maxSecs = 10.0; // max between fetches double lowerBound = minSecs; to ? DateTime since = DateTime.Now; // lower bound double minSecs = 30.0; // min between fetches double maxSecs = 75.0; // max between fetches double lowerBound = minSecs; First let me say that while I can't stop you, I strongly recommend against customizing your copy of Insane Limits. I can only afford to do support on "factory original" versions. As soon as I discover someone has altered their copy, I won't be able to help until they can reproduce a problem on the unchanged original. Second, as I have tried to inform you, all of this stuff is much more complicated than you think. If I thought it would be useful for people to change these values, I would have made them plugin settings. The changes you propose will not have the impact you think they will have, particularly if Battlelog Cache is in play. Furthermore, if you succeed at reducing the rate that dramatically, your total time for IL to be in a working state after enabling on a full 64 player server will be 32 minutes. IL will not work properly for that entire time. Does that seem like a good idea to you? Third, at a higher level, why are you worrying about this so much? Is there a problem you are trying to solve? Maybe if we talk about the higher level goal we can figure out something useful for you to do, which these proposed changes are not. You can start by doing some logging on an unchanged version of IL and measure your average fetch time. Set debug_level to 5 and run half a day or so on a full server. It will show log entries with TIME for each fetch in seconds. If your average time is greater than 4 seconds (likely), your effective rate is already lower than the defaults programmed into the original code. Calculate your average rate based on these log entries and then we can go from there. Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 26, 2013 Author Share Posted March 26, 2013 Originally Posted by glenn82*: hey PapaCharlie9 can you pleas help me to a code for A ping kick i search the whole forum bot nothing plz help me Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 26, 2013 Author Share Posted March 26, 2013 Originally Posted by PapaCharlie9*: hey PapaCharlie9 can you pleas help me to a code for A ping kick i search the whole forum bot nothing plz help me I could do that, but wouldn't you rather use a plugin that has already been created for ping kicking that everyone else is using? Latency Manager* Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 26, 2013 Author Share Posted March 26, 2013 Originally Posted by glenn82*: tnx papa Quote * Restored post. It could be that the author is no longer active. Link to comment
ImportBot Posted March 26, 2013 Author Share Posted March 26, 2013 Originally Posted by IAF-SDS*: Third, at a higher level, why are you worrying about this so much? Is there a problem you are trying to solve?I didn't see why Cheat Detector can function effectively at 1 request per 30 seconds but not Insane Limits, especially when the only reason I would turn on stats fetching for IL is for the Bad TAG kicker. I figured if CD and TB are doing their job at 1 per 30, then I certainly didn't need IL to be at 7.5 per 30. A delay of 30 minutes for Bad TAG Kicker to work when ProCon is restarted is arguably better than having it disabled and thus not working at all. That was the thinking behind it. But I'll leave IL default and not mess with it. It's not a big deal, I just won't use Bad TAG kicker because that is the only limit for me that requires IL to make 7.5 times more requests than the other plugins, and I prefer staying far away from the 15 per 20 limit. Quote * Restored post. It could be that the author is no longer active. Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.