Jump to content

Insane Limits Requests


ImportBot

Recommended Posts

Originally Posted by Singh400*:

 

You just type the URL into your browser, save the HTML, use a text editor to search the HTML as recommended in the post for the link to the JSON and then type that URL into your browser. You should get a text page that is all the JSON stats.

Yeah, I couldn't make heads nor tail of that post - yours and micovery! They are aimed ait seasoned coders, not noob level coders.

 

Anyway, after some Googling I figured how to acces the JSON data:

 

Code:

http://battlelog.battlefield.com/bf3/overviewPopulateStats/241812808/bf3-us-assault/1/
Is mine.

 

Yes we can tell if a player is premium or not isStatsPremiumFeaturesEnabled which either returns true or false.

 

There are also several keys that begin rs* which I think means that it records before reset stats occurs.

* Restored post. It could be that the author is no longer active.
Link to comment
  • Replies 3.2k
  • Created
  • Last Reply

Originally Posted by hozerdude*:

 

Bummer about #2 request!! O'well

 

Now as far as request #1 you stated.............

 

1) the first time a player exceeds maxKills, kick them with specified reason

2) the second time the same player exceeds maxKills (either in the same round or ever -- but you have to specify which one), ban them with specified reason

 

2nd time person reaches max kills then ban them!!

 

on kick say "Warning! You have reached Max kills!

on ban say "You have been warned before about reaching MaxKillz...Banned!

Works for me!!

 

Ok great!! Works for me!!

 

PM me for your email address so I can send you a donation!

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

Originally Posted by PapaCharlie9*:

 

Bummer about #2 request!! O'well

 

Now as far as request #1 you stated.............

 

1) the first time a player exceeds maxKills, kick them with specified reason

2) the second time the same player exceeds maxKills (either in the same round or ever -- but you have to specify which one), ban them with specified reason

 

2nd time person reaches max kills then ban them!!

 

on kick say "Warning! You have reached Max kills!

on ban say "You have been warned before about reaching MaxKillz...Banned!

Works for me!!

 

Ok great!! Works for me!!

 

PM me for your email address so I can send you a donation!

No donation necessary.

 

So for the second time, is it the second time in the same round and start all over again with a clean slate in the next round, or is it the second time ever, regardless of which round?

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

Originally Posted by PapaCharlie9*:

 

Yeah, I couldn't make heads nor tail of that post - yours and micovery! They are aimed ait seasoned coders, not noob level coders.

 

Anyway, after some Googling I figured how to acces the JSON data:

 

Code:

http://battlelog.battlefield.com/bf3/overviewPopulateStats/241812808/bf3-us-assault/1/
Is mine.

 

Yes we can tell if a player is premium or not isStatsPremiumFeaturesEnabled which either returns true or false.

 

There are also several keys that begin rs* which I think means that it records before reset stats occurs.

Nice! Yes, that's what I needed to see.

 

Did you do a reset? Looking at your Singh400 profile in Battlelog I'd say no you haven't. So what I'd need to see is the JSON for a player who has done a reset and has some post reset scoring/kills. My guess is that the rs* stuff will increase from 0.

 

I don't think isStatsPremiumFeaturesEnabled necessarily tells you anything. You are Premium but your value is false!

 

More discussion in the other thread:

 

www.phogue.net/forumvb/showth...et-their-stats*

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

Originally Posted by hozerdude*:

 

it will be the 2nd tiime is for ever regardless of round.

 

example:

 

Lets say the user gets kick on day 1. then a week later the same user come back and he comes back and does the same thing again. This time I want the user to be banned so he can't come back.

 

Now I'm sure there will be a file of a list of names. On the 2nd violation you can have the script delete the name that is in the names list after the user has been banned. Just kinda cleans up after itself.

 

As far as the specified reasons: On Kick State say: "Warning! You have reached MaxKills Do It again

and you will be banned!" ( Something in that order )

 

As far as the specified reasons: On Ban State say "You were warned about your Max Kills You have

been be banned!" ( Something in that order )

 

As far a a donation I would fell better donating since you spent some time do this for me.

 

Note: The User that is kicked or banned does need to what the max kills are set at!

 

Thanks in advance

 

Have a good day bud! :ohmy:

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

Originally Posted by Hutchew*:

 

Hey guys. Help me out please. I need a fast & dirty on join kicker for no guid, with the reason being "EA has totally screwed the pooch again and you are not registering a usable guid to our servers. We apologize for the inconvenience"

 

 

Pretty please?

 

Thanks

Hutchew

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

Originally Posted by PapaCharlie9*:

 

it will be the 2nd tiime is for ever regardless of round.

 

example:

 

Lets say the user gets kick on day 1. then a week later the same user come back and he comes back and does the same thing again. This time I want the user to be banned so he can't come back.

 

Now I'm sure there will be a file of a list of names. On the 2nd violation you can have the script delete the name that is in the names list after the user has been banned. Just kinda cleans up after itself.

 

As far as the specified reasons: On Kick State say: "Warning! You have reached MaxKills Do It again

and you will be banned!" ( Something in that order )

 

As far as the specified reasons: On Ban State say "You were warned about your Max Kills You have

been be banned!" ( Something in that order )

 

As far a a donation I would fell better donating since you spent some time do this for me.

 

Note: The User that is kicked or banned does need to what the max kills are set at!

 

Thanks in advance

 

Have a good day bud! :ohmy:

Okay, here ya go:

 

www.phogue.net/forumvb/showth...nd-kick-banner*

 

Note: the memory for how many times the max kills have been exceeded is not written to a file. It only lasts for as long as PRoCon is running and connected and the Insane Limits plugin is enabled. If PRoCon disconnects or something else stops, the count will be forgotten.

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

Originally Posted by hozerdude*:

 

Sorry how do I install this not knowing what extension type this is? Sorry I'm a nOOb at this stuff. Can you send me a link to I can download the file? ( compile it please )

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

Originally Posted by PapaCharlie9*:

 

Sorry how do I install this not knowing what extension type this is? Sorry I'm a nOOb at this stuff. Can you send me a link to I can download the file? ( compile it please )

Go to the first post of the plugin thread (below), watch the Video embedded in that post. It shows how to copy & paste the code from my post into Insane Limits. You have to follow the step by step process, no automatic loading or downloading, it's all manual.

 

www.phogue.net/forumvb/showth...h-3-(beta-BF3)*

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

Originally Posted by PapaCharlie9*:

 

Hey guys. Help me out please. I need a fast & dirty on join kicker for no guid, with the reason being "EA has totally screwed the pooch again and you are not registering a usable guid to our servers. We apologize for the inconvenience"

 

 

Pretty please?

 

Thanks

Hutchew

Can you do some research for me first? I need to know what Insane Limits gets for PB and EA to know what to do.

 

Try this logging code. Create a limit that evaluates OnSpawn. Set the Action to None.

 

Set first_check to this Code:

 

Code:

if (String.IsNullOrEmpty(player.PBGuid)) plugin.ConsoleWrite("^b[PB]^n " + player.Name + " PB guid is null!");
if (String.IsNullOrEmpty(player.EAGuid)) plugin.ConsoleWrite("^b[EA]^n " + player.Name + " EA guid is null!");
return false;
Check your plugin.log file to see if you get any [PB] or [EA] log entries and post snippets if you do. If you get lots, see if you see cases of players guid appearing and disappearing in the same round, or is it that once they are gone, they are gone for good (or were never in the first place).

 

If you get your log flooded by entries, let me know and I can change the code to only show 1 in 10 or 1 in 50.

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

Originally Posted by hozerdude*:

 

Go to the first post of the plugin thread (below), watch the Video embedded in that post. It shows how to copy & paste the code from my post into Insane Limits. You have to follow the step by step process, no automatic loading or downloading, it's all manual.

 

www.phogue.net/forumvb/showth...h-3-(beta-BF3)*

I'm sorry I guess this 61 year old just cant figure it out. You have so many different versions of insane limits.

 

IE:

 

Insane Limits V0.8/R3: Vote to nuke

Insane Limits V0.8/R2: M26 exploit/M320

nsane Limits V0.8/R2: Zombie Infection

 

ETC ETC ETC

 

I see no link for the main program to install your plugin. Sorry Guess it's too complicated for this old fart to figure it out.

 

I had no problems installing these plugins: Spambot, server rules on request, True Balance. All I have to do was install these plugins in the bf3 folder and they worked. O'well guess your plugin are alot more complicated for at least for me it is.

 

I truly want to thank you for taking the time to make this plugin. You are awesome.

 

Thanks in advance :smile:

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

Originally Posted by Hutchew*:

 

Can you do some research for me first? I need to know what Insane Limits gets for PB and EA to know what to do.

 

Try this logging code. Create a limit that evaluates OnSpawn. Set the Action to None.

 

Set first_check to this Code:

 

Code:

if (String.IsNullOrEmpty(player.PBGuid)) plugin.ConsoleWrite("^b[PB]^n " + player.Name + " PB guid is null!");
if (String.IsNullOrEmpty(player.EAGuid)) plugin.ConsoleWrite("^b[EA]^n " + player.Name + " EA guid is null!");
return false;
Check your plugin.log file to see if you get any [PB] or [EA] log entries and post snippets if you do. If you get lots, see if you see cases of players guid appearing and disappearing in the same round, or is it that once they are gone, they are gone for good (or were never in the first place).

 

If you get your log flooded by entries, let me know and I can change the code to only show 1 in 10 or 1 in 50.

Ok, done........looks like the EA GUID is missing from queue join until quit. Players who join before the queue starts show up with all GUID's (PB & EA) and IP. Also, the players missing GUID's don't show up as "alive" in the player tab, but they still turn red when dying and green when killing. No country shows up, and the PB GUID or IP in the lower screen sometimes populates, sometimes not when you click on their name....baffling.

 

[23:21:01] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:21:33] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:21:39] [insane Limits] [EA] warriorsavior EA guid is null!

[23:21:46] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:22:02] [insane Limits] [EA] warriorsavior EA guid is null!

[23:22:03] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:22:30] [insane Limits] [EA] IGarboo EA guid is null!

[23:22:35] [insane Limits] [EA] warriorsavior EA guid is null!

[23:23:37] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:24:29] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:24:55] [insane Limits] [EA] warriorsavior EA guid is null!

[23:25:11] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:25:11] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:25:23] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:25:25] [insane Limits] [EA] KushViper EA guid is null!

[23:25:44] [insane Limits] [EA] IGarboo EA guid is null!

[23:25:51] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:25:55] [insane Limits] [EA] warriorsavior EA guid is null!

[23:26:04] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:26:11] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:26:13] [insane Limits] [EA] warriorsavior EA guid is null!

[23:26:17] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:26:31] [insane Limits] [EA] warriorsavior EA guid is null!

[23:26:32] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:26:33] [insane Limits] [EA] KushViper EA guid is null!

[23:26:39] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:26:42] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:27:10] [insane Limits] [EA] KDLao EA guid is null!

[23:27:12] [insane Limits] [EA] KushViper EA guid is null!

[23:27:17] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:27:36] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:28:04] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:28:06] [insane Limits] [EA] KDLao EA guid is null!

[23:28:06] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:28:18] [insane Limits] [EA] KushViper EA guid is null!

[23:28:25] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:28:27] [insane Limits] [EA] warriorsavior EA guid is null!

[23:29:01] [insane Limits] [EA] KushViper EA guid is null!

[23:29:05] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:29:16] [insane Limits] [EA] IGarboo EA guid is null!

[23:29:22] [insane Limits] [EA] warriorsavior EA guid is null!

[23:29:31] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:29:46] [insane Limits] [EA] lokomarko EA guid is null!

[23:29:46] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:30:02] [insane Limits] [EA] KushViper EA guid is null!

[23:30:56] [insane Limits] [EA] KushViper EA guid is null!

[23:31:06] [insane Limits] [EA] warriorsavior EA guid is null!

[23:31:14] [insane Limits] [EA] IGarboo EA guid is null!

[23:31:37] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:31:51] [insane Limits] [EA] warriorsavior EA guid is null!

[23:31:56] [insane Limits] [EA] KushViper EA guid is null!

[23:32:26] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:32:40] [insane Limits] [EA] KushViper EA guid is null!

[23:32:53] [insane Limits] [EA] warriorsavior EA guid is null!

[23:33:06] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:33:17] [insane Limits] [EA] warriorsavior EA guid is null!

[23:33:19] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:33:40] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:33:40] [insane Limits] [EA] warriorsavior EA guid is null!

[23:33:47] [insane Limits] [EA] KushViper EA guid is null!

[23:34:03] [insane Limits] [EA] warriorsavior EA guid is null!

[23:34:11] [insane Limits] [EA] IGarboo EA guid is null!

[23:34:26] [insane Limits] [EA] KushViper EA guid is null!

[23:34:37] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:34:41] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:34:53] [insane Limits] [EA] IGarboo EA guid is null!

[23:34:55] [insane Limits] [EA] KushViper EA guid is null!

[23:35:01] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:35:13] [insane Limits] [EA] KushViper EA guid is null!

[23:35:45] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:36:00] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:36:04] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:36:31] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:36:31] [insane Limits] [EA] warriorsavior EA guid is null!

[23:36:35] [insane Limits] [EA] KushViper EA guid is null!

[23:36:41] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:37:09] [insane Limits] [EA] KushViper EA guid is null!

[23:37:25] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:37:48] [insane Limits] [EA] KushViper EA guid is null!

[23:37:55] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:38:12] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:38:35] [insane Limits] [EA] IGarboo EA guid is null!

[23:38:41] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:39:13] [insane Limits] [EA] KDLao EA guid is null!

[23:39:15] [insane Limits] [EA] IGarboo EA guid is null!

[23:39:30] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:39:35] [insane Limits] [EA] warriorsavior EA guid is null!

[23:39:48] [insane Limits] [EA] lokomarko EA guid is null!

[23:39:59] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:40:08] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:40:10] [insane Limits] [EA] lokomarko EA guid is null!

[23:40:18] [insane Limits] [EA] KushViper EA guid is null!

[23:40:28] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:40:38] [insane Limits] [EA] warriorsavior EA guid is null!

[23:40:43] [insane Limits] [EA] KushViper EA guid is null!

[23:40:50] [insane Limits] [EA] lokomarko EA guid is null!

[23:41:14] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:41:18] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:41:31] [insane Limits] [EA] KushViper EA guid is null!

[23:41:59] [insane Limits] [EA] KushViper EA guid is null!

[23:42:01] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:42:09] [insane Limits] [EA] warriorsavior EA guid is null!

[23:42:33] [insane Limits] [EA] KushViper EA guid is null!

[23:42:43] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:42:48] [insane Limits] [EA] lokomarko EA guid is null!

[23:42:55] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:42:57] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:43:10] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:43:22] [insane Limits] [EA] KushViper EA guid is null!

[23:43:35] [insane Limits] [EA] lokomarko EA guid is null!

[23:43:42] [insane Limits] [EA] warriorsavior EA guid is null!

[23:43:50] [insane Limits] [EA] BubbaLife EA guid is null!

[23:43:55] [insane Limits] [EA] Ben69428 EA guid is null!

[23:44:16] [insane Limits] [EA] Blunt911-BK- EA guid is null!

[23:44:24] [insane Limits] [EA] lokomarko EA guid is null!

[23:44:36] [insane Limits] [EA] Ben69428 EA guid is null!

[23:44:38] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:44:44] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:44:58] [insane Limits] [EA] BubbaLife EA guid is null!

[23:45:02] [insane Limits] [EA] KDLao EA guid is null!

[23:45:07] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:45:29] [insane Limits] [EA] lokomarko EA guid is null!

[23:45:36] [insane Limits] [EA] Ben69428 EA guid is null!

[23:45:42] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:46:07] [insane Limits] [EA] warriorsavior EA guid is null!

[23:46:10] [insane Limits] [EA] BubbaLife EA guid is null!

[23:46:11] [insane Limits] [EA] lokomarko EA guid is null!

[23:46:15] [insane Limits] [EA] Ben69428 EA guid is null!

[23:46:19] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:46:19] [insane Limits] [EA] BL00DKIL EA guid is null!

[23:46:57] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:47:16] [insane Limits] [EA] Ben69428 EA guid is null!

[23:47:17] [insane Limits] [EA] IGarboo EA guid is null!

[23:47:18] [insane Limits] [EA] warriorsavior EA guid is null!

[23:47:20] [insane Limits] [EA] lokomarko EA guid is null!

[23:47:21] [insane Limits] [EA] KDLao EA guid is null!

[23:47:24] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:47:41] [insane Limits] [EA] warriorsavior EA guid is null!

[23:47:45] [insane Limits] [EA] BubbaLife EA guid is null!

[23:47:47] [insane Limits] [EA] Ben69428 EA guid is null!

[23:47:53] [insane Limits] [EA] KellerAndrew EA guid is null!

[23:48:01] [insane Limits] [EA] Mastermuffin77 EA guid is null!

[23:48:19] [insane Limits] [EA] KushViper EA guid is null!

[23:48:22] [insane Limits] [EA] KellerAndrew EA guid is null!

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

Originally Posted by Phil_K*:

 

Hi.

 

Ok, done........looks like the EA GUID is missing from queue join until quit. Players who join before the queue starts show up with all GUID's (PB & EA) and IP.

Jip, that's also confirmed by DICE.

It's primary related to the joinQueue mechanism which at the moment does not trigger an onJoin event.

It seems also some server internal methods require that to process the players data.

 

Greets

Phil.

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

Originally Posted by Hutchew*:

 

I'm sorry I guess this 61 year old just cant figure it out. You have so many different versions of insane limits.

 

IE:

 

Insane Limits V0.8/R3: Vote to nuke

Insane Limits V0.8/R2: M26 exploit/M320

nsane Limits V0.8/R2: Zombie Infection

 

ETC ETC ETC

 

I see no link for the main program to install your plugin. Sorry Guess it's too complicated for this old fart to figure it out.

 

I had no problems installing these plugins: Spambot, server rules on request, True Balance. All I have to do was install these plugins in the bf3 folder and they worked. O'well guess your plugin are alot more complicated for at least for me it is.

 

I truly want to thank you for taking the time to make this plugin. You are awesome.

 

Thanks in advance :smile:

You only have to install insane limits once, then build the limits (vote to nuke, m26 exploit, zombie infection, etc....) inside that program.

You may have better luck with proconrulz plugin, it is simpler but a bit less functional. You still have to build the limits, or rulz, though.

 

Otherwise, install insanelimits.cs just like you did the others. You have to agree to the terms (top line in plugin settings tab) before you can do anything else. Then find a simple limit you wish to install and watch the video for the how-to.

 

Simply complicated.

 

Hutchew

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

Originally Posted by hozerdude*:

 

You only have to install insane limits once, then build the limits (vote to nuke, m26 exploit, zombie infection, etc....) inside that program.

You may have better luck with proconrulz plugin, it is simpler but a bit less functional. You still have to build the limits, or rulz, though.

 

Otherwise, install insanelimits.cs just like you did the others. You have to agree to the terms (top line in plugin settings tab) before you can do anything else. Then find a simple limit you wish to install and watch the video for the how-to.

 

Simply complicated.

 

Hutchew

I Get Errors Like This

================

 

08:14:10 03] [insane Limits] ERROR: 18 errors compiling Code

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 20, column: 17): The name 'limit' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 20, column: 35): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 22, column: 40): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0117, line: 25, column: 24): 'PRoConEvents.PluginInterface' does not contain a definition for 'Data'

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 25, column: 39): The name 'kMaxKills' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 25, column: 51): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 27, column: 67): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 28, column: 37): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0117, line: 30, column: 21): 'PRoConEvents.PluginInterface' does not contain a definition for 'PRoConChat'

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 31, column: 88): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0117, line: 37, column: 20): 'PRoConEvents.PluginInterface' does not contain a definition for 'Data'

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 37, column: 33): The name 'kMaxKills' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 37, column: 45): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 39, column: 62): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 40, column: 36): The name 'killer' does not exist in the current context

[08:14:10 03] [insane Limits] ERROR: (CS0117, line: 42, column: 20): 'PRoConEvents.PluginInterface' does not contain a definition for 'PRoConChat'

[08:14:10 03] [insane Limits] ERROR: (CS0117, line: 43, column: 20): 'PRoConEvents.PluginInterface' does not contain a definition for 'KickPlayer'

[08:14:10 03] [insane Limits] ERROR: (CS0103, line: 43, column: 31): The name 'killer' does not exist in the current context

==========================

 

 

Well i appreciate your help. It is just very frustrating for me. I have spent 2 hours trying to figure this crap out and I just cant get it to work. So I give up. Thanks for the help. I dont have a programmers mentality. So I will do without the new plugin. :sad:

 

Sorry but, it just aint worth the aggravation. I'll just stick to the plug & play plugins!

 

Again Thanks for trying! :smile:

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

Originally Posted by PapaCharlie9*:

 

I'll just stick to the plug & play plugins!

 

Again Thanks for trying! :smile:

Probably best. For what it's worth, I think the problem you were having is that you had the old version 0.7 of Insane Limits. The one you want is this one (ZIP of the R24 patch):

 

http://www.phogue.net/forumvb/attach...8&d=1338959276

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

Originally Posted by Kugelfaenger*:

 

This limit will warn the player in squad-chat, if more than 60% of the characters are Uppercase.

 

Set limit to evaluate OnAnyChat, set action to None

 

Set first_check to this Code

 

Code:

double max_percent = 60;
double min_words = 2;

/* Count words */
double wcount = (double) Regex.Split(player.LastChat, @"\s+").Length;

/* Make sure there at at least min_words in chat */
if (wcount < min_words)
   return false;
   
/* Remove Spaces First */
String chat = Regex.Replace(player.LastChat, @"\s", "");

if (chat.Length == 0)
    return false;

/* Count Uppercase Characters */
double count = (double) Regex.Matches(player.LastChat, @"[A-Z]").Count;


/* Calculate Percentage */
double percent = Math.Round((count/(double)chat.Length) * 100.0);

if (percent > max_percent )
   plugin.SendSquadMessage(player.TeamId, player.SquadId, player.Name+" are you mad_  " + percent + "% of your chat is Uppercase!");

return false;
Spaces are removed from the chat text before calculating the percentage.
I would like to add the admin_white_list, could someone help me with the code?

Only no-admin players should get the uppercase warning

 

thx a lot for help

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

Originally Posted by Learning-Curve*:

 

I'm sorry I guess this 61 year old just cant figure it out. You have so many different versions of insane limits.

 

IE:

 

Insane Limits V0.8/R3: Vote to nuke

Insane Limits V0.8/R2: M26 exploit/M320

nsane Limits V0.8/R2: Zombie Infection

 

ETC ETC ETC

 

I see no link for the main program to install your plugin. Sorry Guess it's too complicated for this old fart to figure it out.

 

I had no problems installing these plugins: Spambot, server rules on request, True Balance. All I have to do was install these plugins in the bf3 folder and they worked. O'well guess your plugin are alot more complicated for at least for me it is.

 

I dont have a programmers mentality. So I will do without the new plugin.

Well I certainly understand High expections not being met can become very frustrating. This plugin only has a couple of short commings but appears its just not possible to overcome at this time. Papa would know best and he suggested you most likely are using old version of IL. If you download the highest numbered zip file (which is the most recent) it will work. His latest link is includes the R24 patch but I am not receiving "null" errors so I have stuck with version 8 patch 3.

 

What I did to learn this is just to compile basic things. like I want to know when a player joins if his kdr is higher than 5. So I set it to evaluate "OnJoin" "first check" expression (player.kdr > 5) if IL finds a player with a lower kdr than 5 it will return false and not go any further. If a players kdr is higher than 5 it will return true and move to the next step which in this case will be the action i want. There is a simple list of items to choose from.

 

Keep it simple that way you start to understand what IL is trying to do and you gain confidence with each successful limit which inturn grows your expectations...

 

It took me 2 weeks before I was stuck - singh & papa helped me with the couple of road blocks. Hope you try and give it another shot its really worth it...peace

 

ps the above 3 items you mentioned are actual Limits you add to Insane Limits, its not the actual Insane Limits plugin

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

Originally Posted by GSMACK*:

 

I am having a problem with the Max Kills plugin found here:

http://www.phogue.net/forumvb/showth...2163#post52163*

 

In his code:

Code:

/* Version 0.8/R1 */
int maxKills = 100; // CUSTOMIZE, maximum number of kills per round

if (limit.Activations(killer.Name) <= maxKills) return false;

String key = "MaxKills_" + killer.Name;
String msg = null;

if (plugin.Data.issetBool(kMaxKills + killer.Name)) {
	// Second time, ban this sucker!
	plugin.ConsoleWrite("^b[MAX KILLS]^n ^8BANNING^0 " + killer.FullName + " for exceeding max kills of " + maxKills + " for a second time!");
	msg = "*** Banning " + killer.FullName + " for exceeding max kills!";
	plugin.SendGlobalMessage(msg);
	plugin.PRoConChat(msg);
	plugin.EABanPlayerWithMessage(EABanType.EA_GUID, EABanDuration.Permanent, killer.Name, 0, "ignoring warning about max kills, appeal at xxx.clan.com");
	return false;
}

// Otherwise, warn and kick

plugin.Data.setBool(kMaxKills + killer.Name, true);

plugin.ConsoleWrite("^b[MAX KILLS]^n WARNING " + killer.FullName + " for exceeding max kills of " + maxKills + " for the first time!");
msg = "*** Kicking " + killer.FullName + " for exceeding max kills of " + maxKills + "!";
plugin.SendGlobalMessage(msg);
plugin.PRoConChat(msg);
plugin.KickPlayer(killer.Name, "Final warning! Do not exceed max kills of " + maxKills + " or be banned!");
return false;
I am returning the following errors:

Code:

[09:39:36 12] [Insane Limits] ERROR: 3 errors compiling Expression
[09:39:36 14] [Insane Limits] ERROR: (CS0103, line: 43, column: 39): The name 'kMaxKills' does not exist in the current context
[09:39:36 14] [Insane Limits] ERROR: (CS0103, line: 55, column: 33): The name 'kMaxKills' does not exist in the current context
[09:39:36 15] [Insane Limits] ERROR: (CS0117, line: 61, column: 20): 'PRoConEvents.PluginInterface' does not contain a definition for 'KickPlayer'
Looks like kMaxKills is not defined

 

if (plugin.Data.issetBool(kMaxKills + killer.Name)) {

 

and here

 

plugin.Data.setBool(kMaxKills + killer.Name, true);

 

 

and it doesn't like the call to plugin.KickPlayer()

 

 

Can anybody help?

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

Originally Posted by GSMACK*:

 

No expert, but try changing kMaxKills to MaxKills.

Actually set "maxKills" since its already defined earlier in the code. Also changed KickPlayer() to a lower case k as in plugin.kickPlayer().

 

Appears to be working now.

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

Originally Posted by slayersghost*:

 

hello.I am looking for the codes/expressions to add to the no rpg/m320/smaw.im looking for no clays nades and shotguns.Yep it going on another 24/7 metro server

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

Originally Posted by PapaCharlie9*:

 

I would like to add the admin_white_list, could someone help me with the code?

Only no-admin players should get the uppercase warning

 

thx a lot for help

Here you go:

 

This limit will warn the player in squad-chat, if more than 60% of the characters are Uppercase.

 

If you haven't already, using the List Manager section of the Insane Limits Plugin Settings tab, create a custom list called admin_white_list. Set it Enabled and set the comparison to CaseSensitive. Set its value to a comma separated list of player names without tags. Make sure the names are correct for case. For me, "PapaCharlieNiner" would be correct, "papacharlieniner" would be incorrect.

 

Set limit to evaluate OnAnyChat, set Action to None.

 

Set first_check to this Code

 

Code:

if (plugin.isInList(player.Name, "admin_white_list")) return false;

double max_percent = 60;
double min_words = 2;

/* Count words */
double wcount = (double) Regex.Split(player.LastChat, @"\s+").Length;

/* Make sure there at at least min_words in chat */
if (wcount < min_words) return false;
   
/* Remove Spaces First */
String chat = Regex.Replace(player.LastChat, @"\s", "");

if (chat.Length == 0)
    return false;

/* Count Uppercase Characters */
double count = (double) Regex.Matches(player.LastChat, @"[A-Z]").Count;


/* Calculate Percentage */
double percent = Math.Round((count/(double)chat.Length) * 100.0);

if (percent > max_percent ) plugin.ServerCommand("admin.say", player.Name+" umad bro_  " + percent + "% of your chat is UPPERCASE!", "player", player.Name);

return false;
Spaces are removed from the chat text before calculating the percentage
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by PapaCharlie9*:

 

Actually set "maxKills" since its already defined earlier in the code. Also changed KickPlayer() to a lower case k as in plugin.kickPlayer().

 

Appears to be working now.

Uh ... I replied in the thread with the limit code. The problem was you were using Expression instead of Code for second_check. The changes you made won't make things work better. I'm surprised it works at all.

 

@Singh400: Look for "errors compiling Expression" in posted log excerpts for limits then check the limit second_check to see if it is Code. That's 99% of the problems I see in the forums for IL. Not really the user's fault, since Expression comes before Code for second_check drop-down, which is wrong 99% of the time. :ohmy:

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

Originally Posted by NSGod*:

 

We're trying to create a pistols-and-knife-only server that disallows the fully automatic weapons like the G18 and 93R.

 

I've tried basically combining the knife-only and pistol-only examples to create the following Expression:

 

Code:

!Regex.Match(kill.Weapon, @"(M1911|M9|Taurus|MP412REX|MP443|Melee|Knife|Knife_RazorBlade|BF Premium Knife)", RegexOptions.IgnoreCase).Success
This works, except that it ends up allowing the "Baretta M93R". I assume that's because of the M9 in the regular expression. I've tried messing around with different values (like using 'M9 Pistol') but haven't been able to find a way to allow the M9 while disallowing the M93R. I guess I don't really know enough about Regular expressions but I'm pretty sure there's got to be a way to do it.

 

I'm also not sure what weapon name string it is that we're trying to match to (or not match to). For example, is it the following from BF3.def:

 

procon.protected.weapons.add None "M9" Auxiliary Handgun

procon.protected.weapons.add None "M93R" Auxiliary Handgun

 

Or the following from au.loc (or other localized strings):

 

global.Weapons.m9=M9 Pistol

global.Weapons.m93r=Baretta M93R

 

Oh, and I'm wondering what the purpose of the @ at the beginning of that string is, and what not having it would do. Coming from 10 years of Objective-C and C development, it's kinda throwing me off, as it's a shortcut way to make an Objective-C string (NSString):

 

Code:

const char *cString = "here's a C string";

NSString *objCString = @"here's an NSString";
Thanks in advance...
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Phil_K*:

 

Hi.

 

We're trying to create a pistols-and-knife-only server that disallows the fully automatic weapons like the G18 and 93R.

 

I've tried basically combining the knife-only and pistol-only examples to create the following Expression:

 

Code:

!Regex.Match(kill.Weapon, @"(M1911|M9|Taurus|MP412REX|MP443|Melee|Knife|Knife_RazorBlade|BF Premium Knife)", RegexOptions.IgnoreCase).Success
This works, except that it ends up allowing the "Baretta M93R".
i would assume the regex match is done on the weapon strings coming with an onKill event and not on the localized names. regex.Match returns the position of the first occurrence of the pattern. Because of that it hits "M9" like "M93R" because the first two chars.

 

You would have to make the regex part for M9 more precise and try this one as string for your pattern:

Code:

(M1911|M9(_!3)|Taurus|MP412REX|MP443|Melee|Knife|Knife_RazorBlade|BF Premium Knife)
It uses a negative lookahead which makes M9 a valid match but not M93R even so it only checks if there is a 3 behind the 9 because it is enough to block that. If it would be (_!3R) a M93 would give a match.

 

Oh, and I'm wondering what the purpose of the @ at the beginning of that string is, and what not having it would do. Coming from 10 years of Objective-C and C development, it's kinda throwing me off, as it's a shortcut way to make an Objective-C string (NSString):

The @ is only a little helper eliminating the need to have a not so good readable string by masking chars with \.

 

Greets

Phil.

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

Originally Posted by GSMACK*:

 

Can anybody provide a list or link to a reference to alll the available weapon names that can be used onKill?

 

in an expression like this:

Code:

Regex.Match(kill.Weapon, @"(_:Melee|Knife)", RegexOptions.IgnoreCase).Success
I am specificly looking for the correct way to check for the Repair Tool, Defibrillator, Claymore, C4, and Mines, however I'd like to see a list of all possible weapon names if such a resource is available.
* Restored post. It could be that the author is no longer active.
Link to comment

Originally Posted by Singh400*:

 

Can anybody provide a list or link to a reference to alll the available weapon names that can be used onKill?

 

in an expression like this:

Code:

Regex.Match(kill.Weapon, @"(_:Melee|Knife)", RegexOptions.IgnoreCase).Success
I am specificly looking for the correct way to check for the Repair Tool, Defibrillator, Claymore, C4, and Mines, however I'd like to see a list of all possible weapon names if such a resource is available.
Open BF3.def in a text editor. It's all there.
* 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.