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

Edict Overflow Prevention v2.9 (18/12/15)


Post New Thread Reply   
 
Thread Tools Display Modes
winged_box
Senior Member
Join Date: Aug 2013
Location: Singapore
Old 09-06-2015 , 01:17   Re: Edict Overflow Fix v2.6 (10/03/15)
Reply With Quote #71

After installed this on my L4D2 12 players server, players keep getting kicked with the error:

Disconnect: Kicked by Console : CBaseEntity::InputKill().

Last edited by winged_box; 09-06-2015 at 01:18.
winged_box is offline
B_CANSIN
Senior Member
Join Date: Aug 2011
Location: B_CANSIN's SERVERS
Old 09-25-2015 , 07:24   Re: Edict Overflow Fix v2.6 (10/03/15)
Reply With Quote #72

hmm it delete so much things in map after installed this like doors resupy thnigs props but doors still working but they are invisible also I had 500 plunig I think but its delete map things I think is this normal?
363
B_CANSIN is offline
lingzhidiyu
Senior Member
Join Date: Mar 2014
Old 09-25-2015 , 09:59   Re: Edict Overflow Fix v2.6 (10/03/15)
Reply With Quote #73

add player check
Attached Files
File Type: sp Get Plugin or Get Source (edictoverflowfix.sp - 339 views - 4.9 KB)
lingzhidiyu is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 09-29-2015 , 06:51   Re: Edict Overflow Fix v2.6 (10/03/15)
Reply With Quote #74

Updated, Changed name, Simplified plugin, Just add to server and no configuration needed.

Quote:
Originally Posted by lingzhidiyu View Post
add player check
I don't believe that is needed, as I don't think a player entity can be as high as the critical number.
SM9 is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 10-01-2015 , 19:31   Re: Edict Overflow Prevention v2.8 (02/10/15)
Reply With Quote #75

Updated, Fixed some logic errors. Should be final version now.
SM9 is offline
lingzhidiyu
Senior Member
Join Date: Mar 2014
Old 10-02-2015 , 09:11   Re: Edict Overflow Prevention v2.8 (02/10/15)
Reply With Quote #76

Entity is start on 0. for (int iEntity = 0; iEntity < 2048; iEntity++).
And OnGameFrame() is not a good choice.
PHP Code:
    for (int iEntityiEntity <= 2048iEntity++) {
        if (
iEntity 2047 || !IsValidEnt(iEntity)) {
            continue;
        }
        
        
AcceptEntityInput(iEntity"Kill");
    } 
When OnEntityCreated The entity has not spawned. If you kill it,server carshed.
You need hook SDKHook(entity, SDKHook_SpawnPost, OnEntitySpawnPost).
PHP Code:
public void OnEntityCreated(int iEntity)
{
    if (
iEntity 2047 || !IsValidEnt(iEntity)) {
        return;
    }
    
    
AcceptEntityInput(iEntity"Kill");

I will code like

PHP Code:
public void OnEntityCreated(int entity, const char[] classname) {
    
SDKHookEx(entitySDKHook_SpawnPostOnEntitySpawnPost);
}

public 
void OnEntitySpawnPost(int entity) {
    if (
entity 2000) {
        if (
IsValidEntity(entity)) {
            
AcceptEntityInput(entity"kill");
        }
    }


Last edited by lingzhidiyu; 10-02-2015 at 09:12.
lingzhidiyu is offline
ijam_j
Member
Join Date: Mar 2007
Old 12-08-2015 , 20:43   Re: Edict Overflow Prevention v2.8 (02/10/15)
Reply With Quote #77

im looking for a solution for insurgency no free edicts crash. can this plugin fix that?
ijam_j is offline
ijam_j
Member
Join Date: Mar 2007
Old 12-10-2015 , 09:32   Re: Edict Overflow Prevention v2.8 (02/10/15)
Reply With Quote #78

tested on insurgency. crashed the server.
ijam_j is offline
ph
AlliedModders Donor
Join Date: Mar 2006
Old 12-15-2015 , 17:34   Re: Edict Overflow Prevention v2.8 (02/10/15)
Reply With Quote #79

Is there an updated version?
__________________
ph is offline
SM9
Veteran Member
Join Date: Sep 2013
Location: United Kingdom
Old 12-18-2015 , 08:17   Re: Edict Overflow Prevention v2.9 (18/12/15)
Reply With Quote #80

Updated to hopefully fix crashes.
SM9 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 22:06.


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