Jump to content

Insane Limits V0.8/R2: Melee/Knife Death Shame From Message List


ImportBot

Recommended Posts

  • Replies 132
  • Created
  • Last Reply

Originally Posted by Madbrit*:

 

The most likely explanation is that you set first_check to Code instead of Expression. Check that first before trying to download the file.

 

If it's not that, I'll have to look at the file. Make sure you ZIP the file before trying to attach it to a post, apparently this forum doesn't like .cs files.

HI PapaCharlie

 

I set the first check to Expression...and the errors dissapeared ([19:54:15 42] [insane Limits] Compiling Limit #1 - Knife - OnKill)...yeah!!!

 

I went in with some buddies... and it wasnt working.

 

I sat and watched the chat for about half hour... with 3 knife kills , and no announcement. I asked the guys in game.

 

I did notice this message at the bottom of the parent layer control:-

 

[20:32:53 46] [insane Limits] shetbagels activated Limit #1

 

It seems to trigger... but no announcement. Do I need a Chat Plugin (Server has one called BF3 Chat,GUID,stats...)? ANy other settings somewhere?

 

Cheers

 

Martin

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

Originally Posted by PapaCharlie9*:

 

HI PapaCharlie

 

I set the first check to Expression...and the errors dissapeared ([19:54:15 42] [insane Limits] Compiling Limit #1 - Knife - OnKill)...yeah!!!

 

I went in with some buddies... and it wasnt working.

 

I sat and watched the chat for about half hour... with 3 knife kills , and no announcement. I asked the guys in game.

 

I did notice this message at the bottom of the parent layer control:-

 

[20:32:53 46] [insane Limits] shetbagels activated Limit #1

 

It seems to trigger... but no announcement. Do I need a Chat Plugin (Server has one called BF3 Chat,GUID,stats...)? ANy other settings somewhere?

 

Cheers

 

Martin

Check your YYYYMMDD_plugin.log for a line that looks like this:

 

[Knife Shame] public: Some player knifed some victim, what a shame, bro!

 

Or some similar insult.

 

If you don't see it, make sure your Debug level is set to at least 2 and make sure Insane Limits is not in Virtual mode and that the limit itself is Enabled and not in Virtual mode.

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

Originally Posted by Madbrit*:

 

Check your YYYYMMDD_plugin.log for a line that looks like this:

 

[Knife Shame] public: Some player knifed some victim, what a shame, bro!

 

Or some similar insult.

 

If you don't see it, make sure your Debug level is set to at least 2 and make sure Insane Limits is not in Virtual mode and that the limit itself is Enabled and not in Virtual mode.

Hi PapaCharlie,

 

The debug Limit is at 3 , Insane Limit Virtual mode is FALSE , and the Limit #1 is set to enabled.

 

We are also interested in running the Zombie mode Plugin. If you accept paypal... I would send you $50 and our hosted server details for you to set them up for us? I think it is probably something easy... but may take me many hours to work this out.

 

Let me know... and many thanks for the assistance :smile:

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

Originally Posted by Bl1ndy*:

 

Hi PapaCharlie,

 

The debug Limit is at 3 , Insane Limit Virtual mode is FALSE , and the Limit #1 is set to enabled.

 

We are also interested in running the Zombie mode Plugin. If you accept paypal... I would send you $50 and our hosted server details for you to set them up for us? I think it is probably something easy... but may take me many hours to work this out.

 

Let me know... and many thanks for the assistance :smile:

I do it for 40! :cool:
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

I do it for 40! :cool:

I'd take him up on that offer. You can't afford my hourly. :smile: Seriously, he's probably closer to your timezone too.

 

Is the limit still not sending messages? Anything in plugin.log?

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

Originally Posted by Madbrit*:

 

I'd take him up on that offer. You can't afford my hourly. :smile: Seriously, he's probably closer to your timezone too.

 

Is the limit still not sending messages? Anything in plugin.log?

I went into my FTP tool... pointed it to the server... under the BF# Plugin Directory.. and there is no file that is called anything close to what your suggesting.

 

I looked under ALL of the other directories... and nothing in there with any .LOG or date type prefix.

 

I think I will contact the person making the offer, and get him to have a look. Once we have come up with the resolution, I will post back... I am sure it is simple... (bit like me :smile: )

 

Cheers Martin

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

Originally Posted by PapaCharlie9*:

 

You probably looked below where you needed to. I don't use a layer host so I'm not sure, but the location of my logs on my local instance is:

 

procon/Logs/

 

For example: procon/Logs/46.163.65.3_27263/20120411_plugin.log

 

Your IP address and port and date will differ, that's just an example.

 

The BF3 directory you were looking in is in procon/Plugins, which is the wrong place.

 

Of course, you have to enable logging in PRoCon to generate the log file in the first place. The setting (again, in the local instance) is in Tools -> Basics / Logging : Enable plugin logging

 

Sorry mate, for me, looking in the log files is the easiest way to see that something is working. Maybe it's easier for you to just stab someone in the game and see if some funny chat shows up?

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

Originally Posted by Madbrit*:

 

You probably looked below where you needed to. I don't use a layer host so I'm not sure, but the location of my logs on my local instance is:

 

procon/Logs/

 

For example: procon/Logs/46.163.65.3_27263/20120411_plugin.log

 

Your IP address and port and date will differ, that's just an example.

 

The BF3 directory you were looking in is in procon/Plugins, which is the wrong place.

 

Of course, you have to enable logging in PRoCon to generate the log file in the first place. The setting (again, in the local instance) is in Tools -> Basics / Logging : Enable plugin logging

 

Sorry mate, for me, looking in the log files is the easiest way to see that something is working. Maybe it's easier for you to just stab someone in the game and see if some funny chat shows up?

Hi PapaCharlie,

 

Will look at this again on Sunday morning. Will ensure the Logging piece is set to "on"... and look at the root directory to see what the file says. We will want a few things over time... and Bl1ndy seems willing ( Yeah!)... so will continue to trouble shoot, but good to have someone who is willing to put some time into our server who knows what they are doing.

 

Will post back the log on Sunday sometime. Cheers PapaCharlie

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

Originally Posted by PapaCharlie9*:

 

What piece of the code would I need to change so I can have it YELL the message instead?

Look here first:

 

Insane Limits: How to yell and how to send chat to one player*

 

Then find the plugin.SendGlobalMessage and plugin.SendSquadMessage lines in the knife shamer and make the changes suggested.

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

Originally Posted by dwysywd*:

 

I seem to be getting multiple yells for first blood. First timer, so here is what i went with:

 

if (limit.Activations() == 1) {

Match m = Regex.Match(kill.Weapon, @"/[^/]+$");

String wn = kill.Weapon;

if (m.Success) wn = m.Groups[1].Value;

String msg = killer.FullName + " just killed " + victim.FullName + " for first blood!!!! ";

plugin.ServerCommand("admin.yell", msg);

}

return false;

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

Originally Posted by PapaCharlie9*:

 

I seem to be getting multiple yells for first blood. First timer, so here is what i went with:

 

if (limit.Activations() == 1) {

Match m = Regex.Match(kill.Weapon, @"/[^/]+$");

String wn = kill.Weapon;

if (m.Success) wn = m.Groups[1].Value;

String msg = killer.FullName + " just killed " + victim.FullName + " for first blood!!!! ";

plugin.ServerCommand("admin.yell", msg);

}

return false;

Tip: Post code in [ code ] and [ /code ] markup, but without the spaces. Makes it easier to read.

 

Tip: Post general example questions in the Example thread. This thread is specifically abut the knife name and shame example.

 

That looks correct, though you can get rid of the m and wn stuff, since you don't use wn in your message. What event are you evaluating on? Should be OnKill. Also, what version of Insane Limits are you using?

 

What exactly happens? Does it yell for every kill? Exactly some number greater than 1? What number?

 

Change the code to this and make sure you have Enabled plugin logging to track activations in your plugin.log file:

 

Code:

if (limit.Activations() == 1) {
    String msg = killer.FullName + " just killed " + victim.FullName + " for first blood!!!! ";
    plugin.ServerCommand("admin.yell", msg);
    plugin.ConsoleWrite("^b[First blood]^n " + msg);
}
return false;
Do how many lines in plugin.log do you see?
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by dwysywd*:

 

Yeah, sry about that. Had to many forum pages opened up searching for the answer and just posted in the wrong one.

 

Tried the code first and works like a champ!!

 

Thanks!!

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

Originally Posted by analog414*:

 

Very much a newbie in this. I just figured out how to install a plug-in. I did install Insane limits .8, I only want to install the knife shame enhancement with a single quote (or change myself later). But I am exhausted after an hour trying to figure this our. I could not even figure out the OnKill setting and such. Get me squared away with this and i most certain to buy you a beer. :smile:

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

Originally Posted by Dudenell*:

 

see where it says

Code:

shame.Add("%k_fn% just sliced %v_n%'s throat, what a shame, bro!");
shame.Add("%v_n% was shanked by %k_fn%!");
shame.Add("%k_fn% just took %v_n%'s tags and made him cry!");
shame.Add("%k_fn% slipped a shiv into %v_n%'s back!");
shame.Add("%k_fn% knifed %v_n% and Insane Limits approves!");
shame.Add("%v_n%, you gonna let %k_fn% get away with taking your tags_");
shame.Add("%k_fn% just Tweeted about knifing %v_n%!");
shame.Add("%k_fn% just posted %v_n%'s tags on Facebook!");
shame.Add("%k_fn%: 'Just die already, %v_n%'"); // From BC2
shame.Add("%k_fn%: 'Hey %v_n%, you want summa this_'"); // From BC2
shame.Add("%v_n% took a gun to a knife fight with %k_fn%, and LOST!");
shame.Add("Did you see the YouTube of %k_fn% knifing %v_n%_");
shame.Add("%k_fn% just added +1 knife kills to his Battlelog stats, thanks to %v_n%");
shame.Add("%k_fn%: 'Hey %v_n%, check your six next time!'");
shame.Add("%v_n%, go tell your momma you lost your tags to %k_fn%!");
// Add additional messages here with shame.Add("...");
find the quote you want, or create your own and remove all the other lines.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Very much a newbie in this. I just figured out how to install a plug-in. I did install Insane limits .8, I only want to install the knife shame enhancement with a single quote (or change myself later). But I am exhausted after an hour trying to figure this our. I could not even figure out the OnKill setting and such. Get me squared away with this and i most certain to buy you a beer. :smile:

Did you watch the video in the Examples or Insane Limits thread? It shows step by step how to set up a limit.

 

If you did and are still stuck, post a screen shot showing the entire limit setup. Like if your limit is Limit #1, show all of the limit #1 section of Plugin Settings.

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

Originally Posted by PapaCharlie9*:

 

well then what does for BFBC2

Yeah, sorry, none of this stuff works for BC2. Unless it specifically says BC2 in the post, you ought to assume it's BF3.

 

Search through the Plugins forum. I know there used to be a knife shame plugin for BC2. It's probably still there, but buried under all the new BF3 stuff.

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

Originally Posted by analog414*:

 

Yeah, sorry, none of this stuff works for BC2. Unless it specifically says BC2 in the post, you ought to assume it's BF3.

 

Search through the Plugins forum. I know there used to be a knife shame plugin for BC2. It's probably still there, but buried under all the new BF3 stuff.

I beleive insane limits will work as there are two folder, BC2 and BF3.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by cc*:

 

Is there a limit on how many lines can be added? I have 30 shame messages added, but only really ever see the first 15, I've never once seen the rest of them.

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

Originally Posted by PapaCharlie9*:

 

Is there a limit on how many lines can be added? I have 30 shame messages added, but only really ever see the first 15, I've never once seen the rest of them.

Which version of the code are you using, the original post or the randomized one?

 

If the original version, there's no limit on the number of messages, but there may be a limit on the number of activations. Also, the count resets every round, so if your rounds aren't very long, you may never see the later messages.

 

One thing you can try is just to edit the list and put the bottom 15 at the top. If you only see those 15 and never the ones moved to the bottom, there's something going wrong with limit.ActivationsTotal count.

 

Or find this line of code, based on the original post:

 

Code:

int next = Convert.ToInt32(limit.ActivationsTotal());
and change it to this (add the line in red):

 

Code:

int next = Convert.ToInt32(limit.ActivationsTotal());
plugin.ConsoleWrite("^b[Shame]^n next = " + next);
Then copy & paste the plugin.log file output to a post and we'll see where the count resets to 0.

 

Or, you can just switch to the random version. Make sure you save a copy of your list of shame.Add lines and paste them back into the new code.

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

Originally Posted by cc*:

 

Sorry I should have been more specific, I'm using the random version...

 

Code:

/* Version: V0.8/R1 */
List<String> shame = new List<String>();
shame.Add("%k_fn% blah blah");
shame.Add("%k_fn% blah blah");
shame.Add("%k_fn% blah blah");
// Add additional messages here with shame.Add("...");

int level = 2;

try {
	level = Convert.ToInt32(plugin.getPluginVarValue("debug_level"));
} catch (Exception e) {}

int next = Convert.ToInt32(limit.ActivationsTotal());

next = next % shame.Count; // Ensure rotation of messages
String msg = plugin.R(shame[next]);

/*
To keep a lid on spam, only the first activation per player per
round is sent to all players. Subsequent shames are only sent
to the killer's squad.
*/
bool squadOnly = (limit.Activations(killer.Name) > 100);

if (level >= 2) plugin.ConsoleWrite("^b[Knife Shame]^n " + ((squadOnly)_"^8private^0: ":"^4public^0: 

") + msg);
if (squadOnly) {
	plugin.SendSquadMessage(killer.TeamId, killer.SquadId, msg);
} else {
	plugin.SendGlobalMessage(msg);
}
plugin.PRoConChat("ADMIN > " + msg);
return false;
I will try to add that text once our server becomes populated.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Sorry I should have been more specific, I'm using the random version...

 

Code:

/* Version: V0.8/R1 */
List<String> shame = new List<String>();
shame.Add("%k_fn% blah blah");
shame.Add("%k_fn% blah blah");
shame.Add("%k_fn% blah blah");
// Add additional messages here with shame.Add("...");

int level = 2;

try {
	level = Convert.ToInt32(plugin.getPluginVarValue("debug_level"));
} catch (Exception e) {}

int next = Convert.ToInt32(limit.ActivationsTotal());

next = next % shame.Count; // Ensure rotation of messages
String msg = plugin.R(shame[next]);

/*
To keep a lid on spam, only the first activation per player per
round is sent to all players. Subsequent shames are only sent
to the killer's squad.
*/
bool squadOnly = (limit.Activations(killer.Name) > 100);

if (level >= 2) plugin.ConsoleWrite("^b[Knife Shame]^n " + ((squadOnly)_"^8private^0: ":"^4public^0: 

") + msg);
if (squadOnly) {
	plugin.SendSquadMessage(killer.TeamId, killer.SquadId, msg);
} else {
	plugin.SendGlobalMessage(msg);
}
plugin.PRoConChat("ADMIN > " + msg);
return false;
I will try to add that text once our server becomes populated.
That's not the random version, that's the original version.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Athlon*:

 

Is it possible for Insane Limits to issue a command that another plugin will act upon?

 

I'm not trying to pass a variable to another plugin, just some in-game chat that the other plugin will recognize.

 

The reason for this would be that the other plugin does not recognize a Knife/Melee TeamKill, but Insane Limits does. The other plugin will, however, react to in-game '!commands' from in-game admin.

 

So, if Insane Limits can be programmed to see a Knife/Melee TK and issue the chat the other plugin will recognize - my idea will work.

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

Originally Posted by PapaCharlie9*:

 

Is it possible for Insane Limits to issue a command that another plugin will act upon?

 

I'm not trying to pass a variable to another plugin, just some in-game chat that the other plugin will recognize.

 

The reason for this would be that the other plugin does not recognize a Knife/Melee TeamKill, but Insane Limits does. The other plugin will, however, react to in-game '!commands' from in-game admin.

 

So, if Insane Limits can be programmed to see a Knife/Melee TK and issue the chat the other plugin will recognize - my idea will work.

Not easily. Two plugins can cooperate if they have a communication channel, through a net connection or shared file or something like that. Both plugins would have to be modified to do that. I can't think of any way offhand that any "built-in" communication channel, like to the game server, could be used for two plugins to communicate with each other.

 

You are probably better off just modifying the other plugin to recognize Knife/Melee TK. Or use Insane Limits exclusively for all your admin needs. :smile:

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