AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY]Security entity limit (0.5.4v) (https://forums.alliedmods.net/showthread.php?t=265902)

NoroHime 12-30-2021 16:44

Re: [ANY]Security entity limit (0.5.4v)
 
Quote:

Originally Posted by Marttt (Post 2763234)
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

Marttt 12-30-2021 18:26

Re: [ANY]Security entity limit (0.5.4v)
 
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.

`666 12-31-2021 19:08

Re: [ANY]Security entity limit (0.5.4v)
 
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);



NoroHime 01-01-2022 05:25

Re: [ANY]Security entity limit (0.5.4v)
 
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

king kong 07-13-2023 17:32

Re: [ANY]Security entity limit (0.5.4v)
 
I use this plugin caused me to crash, this plugin does not support l4d2

kochiurun119 09-22-2023 07:42

Re: [ANY]Security entity limit (0.5.4v)
 
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

Grey83 09-22-2023 09:16

Re: [ANY]Security entity limit (0.5.4v)
 
Quote:

Originally Posted by kochiurun119 (Post 2810393)
[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.

TBK Duy 10-19-2023 00:11

Re: [ANY]Security entity limit (0.5.4v)
 
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

SnapoRaz 01-01-2024 08:17

Re: [ANY]Security entity limit (0.5.4v)
 
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?


All times are GMT -4. The time now is 10:14.

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