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.




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