Jump to content

Insane Limits - High Ping + Missing Ping Kicker (working code)


ImportBot

Recommended Posts

Originally Posted by maxdralle*:

 

Insane Limits - High Ping + Missing Ping Kicker - (working code)

 

When players have a high ping or missing ping and your Server Plugin for checking player ping does not work correctly, then you can do this with Insane Limits and everythings works fine!

It is compatible with BF3, BF4 Server. Required Insane Limits Version 0.9.17.0 or later.

 

 

This limit check from all players the current ping. On high ping the player get a warning message. It kicks the player automaticly after 2 warning messages in a row (you can change the # of warning msg). On missing ping (-1ms or 0ms) it kicks the player directly after 3min playtime.

 

 

Whitelist

For the ping kicker you can create two seperate whitelists. One list for in-game-playernames. And one list for clan tags (all players with this clan tag are protected, no kick, no warnings).

IMPORTANT: For this whitelist feature you have to create two new custom lists in Insane Limits!

 

 

SETTINGS

In the code you have a SETTINGS area for customize the following values. the most important key value is the "MaximalPing" value.

 

SETTINGS

MaximalPing = 100 (max Ping in ms)

SmartMaxPing = true (variable max Ping. Players can have a higher ping on empty server. Per free slot +1ms higher ping)

HighPingWaring = 2 (# of warning message before kick)

MinPlayersOnServer = 6 (min players on server to enable ping kicker)

MinPlaytimeMinutes = 3 (min playtime in minutes before kick, only for missing ping)

WhitelistFunction = true (for extern whitelist for playernames and clan tags. required 2 custom lists in IL)

PutReservedSlotsInWhitelist = true (players with reserved slots are in whitelist)

ShowKickMsgForAllPlayers = true (when a player goes kick, it will show a msg in chat for all players)

UnlockPrivateSquads = true (true = unlock all private squads)

DebugINFO = false (true = show debug infos (ping warning etc.) in procon pc tool)

 

 

INSTALLATION

STEP 1 - Setup for Insane Limits (new limit)

Evaluation: OnIntervalPlayers

Evaluation_interval: 45

First_check: Code

First_check_code: put the code here

limit_action: none

 

 

STEP 2 (optional) - Setup for Ping Kicker Whitelist (custom list)

Insane Limits > Main Settings > "use_custom_lists" = TRUE

Create two custom lists:

custom list 1 - name: "ping_kicker_whitelist"

custom list 2 - name: "ping_kicker_whitelist_clantag"

 

 

 

Code:

// PING KICKER for Insane Limits   ( Missing Ping + High Ping Kicker) - Version 04.09.2016  by maxdralle //
// info > required lists: ping_kicker_whitelist, ping_kicker_whitelist_clantag    (you have to create this lists in insane limits)
// info > settings for insane limits: limit_evaluation: OnIntervalPlayers     ;     limit_evaluation_interval: 45        ;       limit_first_check: Code        ;        limit_action: none

// SETTINGS (you can change this values) //
int MaximalPing = 100;      // CUSTOMIZE: max Ping in ms   *HighPing*
bool SmartMaxPing = true;      // CUSTOMIZE: variable max Ping. Players can have a higher ping on empty server (per free slot +1ms higher ping)   *HighPing*
int HighPingWaring = 2;      // CUSTOMIZE: # of warning message before kick   *HighPing*
int MinPlayersOnServer = 6;      // CUSTOMIZE: min players on server to enable ping kicker   *Missing+HighPing*
double MinPlaytimeMinutes = 3;      // CUSTOMIZE: min playtime in minutes before kick   *MissingPing*
bool WhitelistFunction = true;      // CUSTOMIZE: true = for extern whitelist. required custom lists in IL: ping_kicker_whitelist, ping_kicker_whitelist_clantag
bool PutReservedSlotsInWhitelist = true;      // CUSTOMIZE: true = all players with reserved slots are in the whitelist
bool ShowKickMsgForAllPlayers = true;      // CUSTOMIZE: true = when a player goes kick, it will show a info msg in in-game-chat for all players
bool UnlockPrivateSquads = true;      // CUSTOMIZE: true = unlock all private squads
bool DebugINFO = false;      // CUSTOMIZE: true = show debug infos (ping warning etc.) in procon pc tool
// END SETTINGS


// WHITELIST //
if ((WhitelistFunction) && ((plugin.isInList(player.Tag, "ping_kicker_whitelist_clantag")) || (plugin.isInList(player.Name, "ping_kicker_whitelist")) || ((PutReservedSlotsInWhitelist) && (plugin.GetReservedSlotsList().Contains(player.Name)))))  { return false; }
if (player.Role != 0) {return false; }


// MISSING PING //
if ((player.Ping < 1) && (player.AveragePing < 1) && (player.TimeTotal > (MinPlaytimeMinutes * 60))) {
	if (server.PlayerCount >= MinPlayersOnServer) {
		plugin.PRoConChat("IL-Ping-Kicker > ^1^bMISSING PING:^0^n " + player.Name + " KICKED for missing ping (" + player.AveragePing + "ms)  Country: " + player.CountryName + " (" + player.CountryCode + ")");
		if (ShowKickMsgForAllPlayers) { plugin.SendGlobalMessage("PING KICKER: " + player.Name + " was KICKED for missing ping");}
		if (DebugINFO) {plugin.ConsoleWrite("IL-Ping-Kicker > ^1^bMISSING PING^0^n: " + player.Name + " KICKED for missing ping. Country: " + player.CountryName + " - Current Ping: " + player.Ping + " - Average Ping: " + player.AveragePing);}
		plugin.KickPlayerWithMessage(player.Name, plugin.R("KICKED for missing ping"));
		return false;
	}
}


// HIGH PING //
int tmpPlayerWaring = 0;
int tmpPlayerAvgPing = ((player.AveragePing + (player.Ping * 2)) / 3);
if (SmartMaxPing) {MaximalPing = MaximalPing + server.MaxPlayers - server.PlayerCount;}
if (player.Data.issetInt("PingWarning")) tmpPlayerWaring = player.Data.getInt("PingWarning");
if (((player.Ping > MaximalPing) || (tmpPlayerAvgPing > MaximalPing)) && (server.PlayerCount >= MinPlayersOnServer)) {
	if (tmpPlayerWaring >= HighPingWaring) {
		tmpPlayerWaring = 0;
		player.Data.setInt("PingWarning", tmpPlayerWaring);
		plugin.PRoConChat("IL-Ping-Kicker > ^1^bHIGH PING:^0^n " + player.Name + " KICKED for high ping (" + tmpPlayerAvgPing + "ms)  Country: " + player.CountryName + " (" + player.CountryCode + ")");
		if (DebugINFO) {plugin.ConsoleWrite("IL-Ping-Kicker > ^1^bHIGH PING:^0^n " + player.Name + " KICKED for high ping (" + tmpPlayerAvgPing + "ms)  Country: " + player.CountryName + " (" + player.CountryCode + ")");}
		if (ShowKickMsgForAllPlayers) { plugin.SendGlobalMessage("PING KICKER: " + player.Name + " was KICKED for high ping (" + tmpPlayerAvgPing + "ms)");}
		plugin.KickPlayerWithMessage(player.Name, plugin.R("KICKED for high ping (" + tmpPlayerAvgPing + "ms)"));
		return false;
	} else {
		tmpPlayerWaring++;
		player.Data.setInt("PingWarning", tmpPlayerWaring);
		if (tmpPlayerWaring == HighPingWaring) { plugin.SendPlayerYell(player.Name, player.Name + " WARNING - your ping is too high!", 4);}
		plugin.SendPlayerMessage(player.Name, plugin.R(player.Name + " > Your ping is too high (WARNING " + tmpPlayerWaring + "/" + HighPingWaring + ")"));
		if (DebugINFO) {plugin.ConsoleWrite("IL-Ping-Kicker > PlayerSay > " + player.Name + " > Your ping is too high (WARNING " + tmpPlayerWaring + "/" + HighPingWaring + ")  DEBUG Cur/Avg: " + player.Ping + "/" + tmpPlayerAvgPing + "ms");}
		if (DebugINFO) {plugin.PRoConChat("IL-Ping-Kicker > PlayerSay > " + player.Name + " > Your ping is too high (WARNING " + tmpPlayerWaring + "/" + HighPingWaring + ")  DEBUG Cur/Avg: " + player.Ping + "/" + tmpPlayerAvgPing + "ms");}
	}
} else {
	if (tmpPlayerWaring != 0) {
		tmpPlayerWaring = 0;
		player.Data.setInt("PingWarning", tmpPlayerWaring);
		if (DebugINFO) {plugin.ConsoleWrite("IL-Ping-Kicker > DEBUG > ^1^bHIGH PING:^0^n " + player.Name + "   DEBUG ping is ok. reset ping warning counter      Avg/Cur  (" + tmpPlayerAvgPing + "ms  " + player.Ping + "ms)");}
		if (DebugINFO) {plugin.PRoConChat("IL-Ping-Kicker > DEBUG > ^1^bHIGH PING:^0^n " + player.Name + "   DEBUG ping is ok. reset ping warning counter      AAvg/Cur  (" + tmpPlayerAvgPing + "ms  " + player.Ping + "ms)");}
	}
}


// UNLOCK PRIVATE SQUAD //
if (UnlockPrivateSquads) {
	if (plugin.IsSquadLocked(player.TeamId, player.SquadId)) { plugin.ServerCommand("squad.private", player.TeamId.ToString(), player.SquadId.ToString(), "false"); }
}
IMPORTANT: When you use this limit, dont forget to disable other Plugins for checking ping.

When you get a lot of spam msgs in the the procon plugin log console on pc (player xy not found in whitelist...) then set in IL > Main Settings > "use_white_list" to False

 

 

For kicking players with only a missing ping, you can use this limits: myrcon.net/.../insane-limits-missing-ping-kicker

 

 

CHANGELOG

04.09.2016 function: option to put players with reserved slots in whitelist

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

Originally Posted by Dete96*:

 

Hi!

 

I just tried your Limit. Something doesn't for me and I have absolutely no idea what I did wrong. Here is the error that is shown in ProCon chat after compiling:

 

[18:49:47 70] [insane Limits] ERROR: 1 error compiling Code

[18:49:47 70] [insane Limits] ERROR: (CS0117, line: 47, column: 24): PRoConEvents.PlayerInfoInterface enthält keine Definition für Role.

 

 

Could you please help me?

 

Thank you in advance!

Dete96

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

Originally Posted by Dete96*:

 

@Dete96

 

 

Do you have the new Insane Limits Version 0.9.17.0 ?

It is a BF4 Server?

Thank you for your quick reply!

We are running IL 09.14.0 on a BF 4 server. If I update to 0.9.17.0 will I have to set up all my limits again?

Thank you!

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

Originally Posted by BuRockK*:

 

I dont think so, as your limits are saved in your Procon Layer, you just gonna update your local client. If a limit was to not work with newer version of Procon, you would get an error in console. But its less likely to happen. Although Procon devs would know better.

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

Originally Posted by maxdralle*:

 

...If I update to 0.9.17.0 will I have to set up all my limits again?

I think you do not need to set up your old limits again. But an backup with all limits is always a good idea!

Update your IL. The new version is much better!

 

You can get the newest version here: page1/index.html*

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

Originally Posted by Chilace*:

 

Can I modify your limit for using only one "ping_kicker_whitelist" ?

Code:

// WHITELIST //
String tag = player.Tag;
if (tag.Length == 0) {
	// Maybe they are using [_-=]XXX[=-_]PlayerName format
	Match tm = Regex.Match(player.Name, @"^[=_\-]_([^=_\-]{2,4})[=_\-]");
	if (tm.Success) {
		tag = tm.Groups[1].Value;
	} else {
		tag = "no tag";
	}
}
if ((WhitelistFunction) && (plugin.isInList(player.Name, "ping_kicker_whitelist") || plugin.isInList(tag, "ping_kicker_whitelist"))) return false;
if (player.Role != 0) return false;
* Restored post. It could be that the author is no longer active.
Link to post

Originally Posted by BuRockK*:

 

Im guessing this:

if ((WhitelistFunction) && (plugin.isInList(player.Name, "ping_kicker_whitelist") || plugin.isInList(tag, "ping_kicker_whitelist"))) return false;

 

would create conflicts in code. You shouldnt have one list for both player.Name and player.Tag

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

Originally Posted by Chilace*:

 

Im guessing this:

if ((WhitelistFunction) && (plugin.isInList(player.Name, "ping_kicker_whitelist") || plugin.isInList(tag, "ping_kicker_whitelist"))) return false;

 

would create conflicts in code. You shouldnt have one list for both player.Name and player.Tag

It works in this limit:

myrcon.net/.../insane-limits-v08r3-pistols-onoff-command

So...

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

Originally Posted by maxdralle*:

 

@Chilace

it is possible, when you replace it with this:

 

Code:

// WHITELIST //
String tag = player.Tag;
if (tag.Length == 0) {
	// Maybe they are using [_-=]XXX[=-_]PlayerName format
	Match tm = Regex.Match(player.Name, @"^[=_\-]_([^=_\-]{2,4})[=_\-]");
	if (tm.Success) {
		tag = tm.Groups[1].Value;
	} else {
		tag = "no tag";
	}
}

if ((WhitelistFunction) && ((plugin.isInList(player.Name, "ping_kicker_whitelist")) || (plugin.isInList(tag, "ping_kicker_whitelist"))))  { return false; }
if (player.Role != 0) {return false; }
* Restored post. It could be that the author is no longer active.
Link to post

Originally Posted by Chilace*:

 

@Chilace

it is possible, when you replace it with this:

 

Code:

// WHITELIST //
String tag = player.Tag;
if (tag.Length == 0) {
	// Maybe they are using [_-=]XXX[=-_]PlayerName format
	Match tm = Regex.Match(player.Name, @"^[=_\-]_([^=_\-]{2,4})[=_\-]");
	if (tm.Success) {
		tag = tm.Groups[1].Value;
	} else {
		tag = "no tag";
	}
}

if ((WhitelistFunction) && ((plugin.isInList(player.Name, "ping_kicker_whitelist")) || (plugin.isInList(tag, "ping_kicker_whitelist"))))  { return false; }
if (player.Role != 0) {return false; }
Don't know why you prefer curly brackets, but anyway thanks
* Restored post. It could be that the author is no longer active.
Link to post

Originally Posted by BuRockK*:

 

I see now, okay. But what id do (actually i do) is to have a default custom list for any limits i may use in future that would require a list

 

Example default list names:

 

admins

whitelist

whitelist_clantag

mapnames

modes

..

etc..

 

but thats just me :smile:

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

Originally Posted by LCARSx64*:

 

I see now, okay. But what id do (actually i do) is to have a default custom list for any limits i may use in future that would require a list

 

Example default list names:

 

admins

whitelist

whitelist_clantag

mapnames

modes

..

etc..

 

but thats just me :smile:

Fyi, plugin.isInWhitelist will check both player names and tags in the lists, plugin.isInPlayerWhitelist and plugin.isInClanWhitelist check each of those lists separately.

 

Sent from my SM-G930F using Tapatalk

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

Originally Posted by BuRockK*:

 

Fyi, plugin.isInWhitelist will check both player names and tags in the lists, plugin.isInPlayerWhitelist and plugin.isInClanWhitelist check each of those lists separately.

 

Sent from my SM-G930F using Tapatalk

Oh yea , i just like to make lists :biggrin:
* Restored post. It could be that the author is no longer active.
Link to post
  • 1 month later...

Originally Posted by OneManArmy*:

 

Is it possible for the plugin to look at the reservedslotslist.txt at the server itself instead of placing every name into the custom list?

 

OneManArmy

SUPER@ [siC]

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

Originally Posted by maxdralle*:

 

Is it possible for the plugin to look at the reservedslotslist.txt at the server itself instead of placing every name into the custom list?

 

OneManArmy

SUPER@ [siC]

yes, it is possible.

i have updated the code in the first post. the option "PutReservedSlotsInWhitelist = true" is what you want...

showthread....orking-code%29*

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

Originally Posted by OneManArmy*:

 

Tested it @ my BF4 S7 Procon test server and works like a charm. what does the "TaskbarNoptify" do?

 

I presume this also works @ a BF3 server right? think commands did not change in BF4.

 

OneManArmy

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

Originally Posted by maxdralle*:

 

Tested it @ my BF4 S7 Procon test server and works like a charm. I presume this also works @ a BF3 server right? think commands did not change in BF4.

OneManArmy

nice!

for BF3 you have to delete this line: if (player.Role != 0) {return false; }

 

 

...what does the "TaskbarNoptify" do_...

i think the "TaskbarNotify" is a feature for the procon pc tool. it is a notification in the windows systray, but this function is not working...
* Restored post. It could be that the author is no longer active.
Link to post
  • 2 weeks later...

Originally Posted by AlcaGamerZ*:

 

Hi i get this error . can someone help me with it ? where did i go wrong ? thnks in advance

 

 

 

[11:28:57 94] [insane Limits] ERROR: 49 errors compiling Code

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 46, column: 58): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 46, column: 124): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 46, column: 240): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 47, column: 17): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 51, column: 18): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 51, column: 39): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 51, column: 67): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 53, column: 77): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 53, column: 122): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 53, column: 162): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 53, column: 190): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 54, column: 90): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 55, column: 95): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 55, column: 149): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 55, column: 192): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 55, column: 228): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 56, column: 44): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 64, column: 38): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 64, column: 60): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 66, column: 17): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 66, column: 72): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 67, column: 19): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 70, column: 15): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 71, column: 74): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 71, column: 154): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 71, column: 182): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 72, column: 92): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 72, column: 172): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 72, column: 200): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 73, column: 90): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 74, column: 44): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 78, column: 15): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 79, column: 78): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 79, column: 91): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 80, column: 40): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 80, column: 62): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 81, column: 85): The name 'player' does not exist in the current context

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 81, column: 202): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 82, column: 83): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 82, column: 200): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 87, column: 15): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 88, column: 100): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 88, column: 210): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 89, column: 98): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 89, column: 209): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 96, column: 39): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 96, column: 54): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 96, column: 111): The name 'player' does not exist in the current context

[11:28:57 95] [insane Limits] ERROR: (CS0103, line: 96, column: 137): The name 'player' does not exist in the current context

[11:31:52 71] [insane Limits] Compiling Limit #6 - High Ping + Missing Ping Kicker - OnIntervalServer

[11:31:52 76] [insane Limits] ERROR: 49 errors compiling Code

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 46, column: 58): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 46, column: 124): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 46, column: 240): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 47, column: 17): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 51, column: 18): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 51, column: 39): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 51, column: 67): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 53, column: 77): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 53, column: 122): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 53, column: 162): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 53, column: 190): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 54, column: 90): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 55, column: 95): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 55, column: 149): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 55, column: 192): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 55, column: 228): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 56, column: 44): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 64, column: 38): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 64, column: 60): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 66, column: 17): The name 'player' does not exist in the current context

[11:31:52 76] [insane Limits] ERROR: (CS0103, line: 66, column: 72): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 67, column: 19): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 70, column: 15): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 71, column: 74): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 71, column: 154): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 71, column: 182): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 72, column: 92): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 72, column: 172): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 72, column: 200): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 73, column: 90): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 74, column: 44): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 78, column: 15): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 79, column: 78): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 79, column: 91): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 80, column: 40): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 80, column: 62): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 81, column: 85): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 81, column: 202): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 82, column: 83): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 82, column: 200): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 87, column: 15): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 88, column: 100): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 88, column: 210): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 89, column: 98): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 89, column: 209): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 96, column: 39): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 96, column: 54): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 96, column: 111): The name 'player' does not exist in the current context

[11:31:52 77] [insane Limits] ERROR: (CS0103, line: 96, column: 137): The name 'player' does not exist in the current context

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

Originally Posted by maxdralle*:

 

[11:28:57 94] [insane Limits] ERROR: 49 errors compiling Code

[11:28:57 94] [insane Limits] ERROR: (CS0103, line: 46, column: 58): The name 'player' does not exist in the current context

...

do not use the evaluation "OnIntervalServer". you have to set the evaluation "OnIntervalPlayer". then the limit works fine...

 

Evaluation: OnIntervalPlayers

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

Originally Posted by Checka_Wiemi*:

 

Hey maxdralle,

 

first of all thanks for the plugin but I have some questions or better said I get an error.

I'm using Version 0.9.17.0 of InsaneLimits and I use it for a BF3 Server.

So therefore I've deleted the line "if (player.Role != 0) {return false; }" as you've mentioned above.

But I always get this error:

"[09:42:09 58] [insane Limits] Thread(delayed_comp): Compiling Limit #1 - PingKicker - OnIntervalPlayers

[09:42:09 59] [insane Limits] Thread(delayed_comp): ERROR: 1 error compiling Code

[09:42:09 59] [insane Limits] Thread(delayed_comp): ERROR: (CS1513, line: 105, column: 10): ) erwartet."

 

Can't find out where this problem come from.

Would be very nice if someone could help me in this case.

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

Originally Posted by maxdralle*:

 

Hey maxdralle,

 

first of all thanks for the plugin but I have some questions or better said I get an error.

I'm using Version 0.9.17.0 of InsaneLimits and I use it for a BF3 Server.

So therefore I've deleted the line "if (player.Role != 0) {return false; }" as you've mentioned above.

But I always get this error:

"[09:42:09 58] [insane Limits] Thread(delayed_comp): Compiling Limit #1 - PingKicker - OnIntervalPlayers

[09:42:09 59] [insane Limits] Thread(delayed_comp): ERROR: 1 error compiling Code

[09:42:09 59] [insane Limits] Thread(delayed_comp): ERROR: (CS1513, line: 105, column: 10): ) erwartet."

 

Can't find out where this problem come from.

Would be very nice if someone could help me in this case.

hey checka,

 

okay i think it is a copy paste error. maybe a " } " is missing in the last line...

copy the complete code again, then it works

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

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.