Raised This Month: $51 Target: $400
 12% 

[ANY]Security entity limit (0.5.4v)


Post New Thread Reply   
 
Thread Tools Display Modes
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 12-30-2021 , 16:44   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #61

Quote:
Originally Posted by Marttt View Post
as much as the plugin has good intentions it is probably not the best solution (at least for L4D) and I wouldn't recommend using it.

Some entities on L4D series (since is a campaign mode) are created while advancing through map and it is quite easy for the plugin to return some false positives about which entity should be deleted or not.

I recommend using it together with [DEV] Entity Limits Logger, and trying to track if is some map specific problem (like c1m3_mall, which is the most common map that crashes the server because entity limits)

A solution that I already shared somewhere is deleting some "unused" entities with stripper on map load to release more slots. Still may have some bad optimized plugin that is not deleting the entities as should and leading to your server crashes.
im annotated "[SEL]No old entities in the map, the entity %i(%s) has been deleted" feature then plugin wont crash my custom map server and keep delete older entities
__________________
NoroHime is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 12-30-2021 , 18:26   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #62

It's still not 100% guaranteed, some entities may be created during the map with VScript or other workarounds.
Anyway use at your own risk.
__________________
Marttt is offline
`666
AlliedModders Donor
Join Date: Jan 2006
Old 12-31-2021 , 19:08   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #63

I use this to kill "env_sprite" for insurgency maps that crash from the entity limit. Works np, it just removes some glow effects around light sources. It may differ in other games/maps.
PHP Code:
#pragma semicolon 1
#pragma newdecls required

#include <sourcemod>
#include <sdktools>

public Plugin myinfo = {
    
name "remove_entities",
    
author "",
    
description "remove map entities",
    
version "1.0"
};

public 
void OnMapStart() {
    
char sMapname[64];
    
GetCurrentMap(sMapnamesizeof(sMapname));
    if (
StrEqual(sMapname"embassy_coop")
    || 
StrEqual(sMapname"congress_coop")
    || 
StrEqual(sMapname"frequency_open_coop")
    || 
StrEqual(sMapname"prospect_coop_b6")
    || 
StrEqual(sMapname"congress_open_coop")) {
        
KllAllEntities("env_sprite");
    }
}

void KllAllEntities(char[] sEnt) {
    
int iCount 0;
    
char sClassName[32];
    for (
int i MaxClients<= GetMaxEntities(); i++) {
        if (!
IsValidEntity(i))
            continue;
        if (
GetEntityClassname(isClassNamesizeof(sClassName))) {
            if (
StrEqual(sEntsClassNamefalse)/* && (i & 1)*/) {
                
AcceptEntityInput(i"Kill");
                
iCount++;
            }
        }
    }
    
PrintToServer("!!! KILLED %i %s !!!"iCountsEnt);

`666 is offline
NoroHime
Veteran Member
Join Date: Aug 2016
Location: bed
Old 01-01-2022 , 05:25   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #64

i have no way on there,wait entities full until no free edict error or try kill entities before crash, any way i doesny known some entity name real mean in running
__________________

Last edited by NoroHime; 01-01-2022 at 05:26.
NoroHime is offline
king kong
Member
Join Date: Oct 2021
Old 07-13-2023 , 17:32   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #65

I use this plugin caused me to crash, this plugin does not support l4d2

Last edited by king kong; 07-13-2023 at 18:07.
king kong is offline
kochiurun119
BANNED
Join Date: Sep 2014
Location: GB
Old 09-22-2023 , 07:42   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #66

L 09/22/2023 - 18:40:49: [SM] Exception reported: Game event "teamplay_round_start" does not exist
L 09/22/2023 - 18:40:49: [SM] Blaming: security_entity_limit.smx
L 09/22/2023 - 18:40:49: [SM] Call stack trace:
L 09/22/2023 - 18:40:49: [SM] [0] HookEvent
L 09/22/2023 - 18:40:49: [SM] [1] Line 43, D:\SteamLibrary\steamapps\common\Left 4 Dead 2\left4dead2\addons\sourcemod\scripting\secur ity_entity_limit.sp::OnPluginStart
L 09/22/2023 - 18:40:49: [SM] Unable to load plugin "security_entity_limit.smx": Error detected in plugin startup (see error logs)
Game l4d2
kochiurun119 is offline
Send a message via ICQ to kochiurun119 Send a message via AIM to kochiurun119 Send a message via Yahoo to kochiurun119 Send a message via Skype™ to kochiurun119
Grey83
Veteran Member
Join Date: Dec 2014
Location: Ukraine
Old 09-22-2023 , 09:16   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #67

Quote:
Originally Posted by kochiurun119 View Post
[SM] Exception reported: Game event "teamplay_round_start" does not exist
...
[SM] [1] Line 43, security_entity_limit.sp::OnPluginStart
Just remove line 43 with the "teamplay_round_start" event hook.
__________________
Grey83 is online now
TBK Duy
Member
Join Date: Jun 2017
Location: Vietnam
Old 10-19-2023 , 00:11   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #68

I wouldn't recommend using this for L4D2, I've got crashes with some maps (Buried Deep map 2 for example), only have this plugin installed. I think its delete the necessary entities or something important for the map to work
TBK Duy is offline
SnapoRaz
New Member
Join Date: Oct 2020
Location: Italy
Old 01-01-2024 , 08:17   Re: [ANY]Security entity limit (0.5.4v)
Reply With Quote #69

Tested in Insurgency server but the counter is not being shown.. (used the "sm_sel_show_counter" command and it seems that the plugin is active) any suggestion?
SnapoRaz is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:46.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode