Raised This Month: $32 Target: $400
 8% 

2048 Max Edict Change


Post New Thread Reply   
 
Thread Tools Display Modes
Mitchell
~lick~
Join Date: Mar 2010
Old 02-04-2015 , 13:25   Re: 2048 Max Edict Change
Reply With Quote #11

Quote:
Originally Posted by Kriax View Post
A solution to empty GetEntityCount?
I mean, a solution to avoid to 2048? : /
Code:
public OnEntityCreated(entity, const String:classname[]) {
    if(entity > 2000) {
        for(new i=MaxClients;i<2000;i++) {
            if(IsValidEntity(i)) {
                AcceptEntityInput(i, "Kill");
            }
        }
    }
}

Last edited by Mitchell; 02-04-2015 at 13:25.
Mitchell is offline
Potato Uno
Veteran Member
Join Date: Jan 2014
Location: Atlanta, Georgia
Old 02-04-2015 , 14:57   Re: 2048 Max Edict Change
Reply With Quote #12

Quote:
Originally Posted by Mitchell View Post
Code:
public OnEntityCreated(entity, const String:classname[]) {
    if(entity > 2000) {
        for(new i=MaxClients;i<2000;i++) {
            if(IsValidEntity(i)) {
                AcceptEntityInput(i, "Kill");
            }
        }
    }
}
Wouldn't that kill every single entity on the server and cause shit to horribly break?
Potato Uno is offline
Mitchell
~lick~
Join Date: Mar 2010
Old 02-04-2015 , 15:39   Re: 2048 Max Edict Change
Reply With Quote #13

Quote:
Originally Posted by Potato Uno View Post
Wouldn't that kill every single entity on the server and cause shit to horribly break?
possibly, but he never asked for a solution that didn't cause other issues.
The only solution is to be mindful of what you put on your server.
Like Every one keeps asking about the laser plugin using env_beams instead, i'd probably get more complaints of users spamming beams that don't dissipate that crash their server. how ever i could make that possible, then start to remove the oldest one or something, and instead of creating one every second I could just make it where you have to press it every time to start a new laser..
Mitchell is offline
Kriax
Senior Member
Join Date: Apr 2012
Old 02-14-2015 , 08:23   Re: 2048 Max Edict Change
Reply With Quote #14

My real question is:

How to Drain GetMaxEntities?

Exemple :
OnGetMaxEntities returns 1245 entities, with a command (!purge) it returns the empty feature on the server and returns 1000 entity.

My plugin created mass env_sprite, and easily go to 2048 (after 1 minutes) ...
Kriax is offline
St00ne
Veteran Member
Join Date: Jan 2011
Location: Annecy - France
Old 06-04-2017 , 20:55   Re: 2048 Max Edict Change
Reply With Quote #15

Hi, really sorry cuz this is an old post, but hey I might avoid creating a new topic.

Is it normal to have a negative number of edicts used?
It's on my Linux dedicated gungame server, using gungame here: https://forums.alliedmods.net/showthread.php?p=841990

I typed in status in console (map: gg_toon_groove_v2) and got edicts: -259 used of 2048 max

Thx

St00ne
__________________

*** *** ***
-My plugins-

Last edited by St00ne; 06-04-2017 at 20:57.
St00ne is offline
djded
Member
Join Date: Jul 2019
Location: Czech Republic
Old 11-22-2020 , 13:52   Re: 2048 Max Edict Change
Reply With Quote #16

Quote:
Originally Posted by St00ne View Post
Hi, really sorry cuz this is an old post, but hey I might avoid creating a new topic.

Is it normal to have a negative number of edicts used?
It's on my Linux dedicated gungame server, using gungame here: https://forums.alliedmods.net/showthread.php?p=841990

I typed in status in console (map: gg_toon_groove_v2) and got edicts: -259 used of 2048 max

Thx

St00ne
Now I check it, and have this one
edicts : -3301 used of 2048 max
And server work correctly
djded is offline
FroGeX
Senior Member
Join Date: Aug 2020
Old 11-22-2020 , 15:26   Re: 2048 Max Edict Change
Reply With Quote #17

interestingly
FroGeX is offline
Marttt
Veteran Member
Join Date: Jan 2019
Location: Brazil
Old 11-22-2020 , 16:20   Re: 2048 Max Edict Change
Reply With Quote #18

I filter some entities (with .mdl) on stripper, which seems to reduce, not confirmed but worked in 10 different server owners
__________________
Marttt is offline
Reply


Thread Tools
Display Modes

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 20:38.


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