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

Solved #GameUI_Disconnect_DeltaEntMessage | Disconnect Message


Post New Thread Reply   
 
Thread Tools Display Modes
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 02-14-2017 , 21:47   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #21

PS: That might be helpful in the future:

PHP Code:
sm_cvar sv_delta_entity_full_buffer_size 262144 
That's the buffer max size
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...
Totenfluch is offline
loveava
Junior Member
Join Date: Feb 2017
Old 03-06-2017 , 19:46   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #22

Hei man,i have the same problem like you.I have a hosted server with zombie plague 6.7 mod install on it. I receive this error:
Quote:
Host_Error: CL_ReadPreserveEnt: u.m_nNewEntity == MAX_EDICTS
This cvar will solve my problem?If yes,i need to put this cvar in my server.cfg,right?
Thank you and sorry for my bad english!
loveava is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-07-2017 , 15:27   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #23

If you want to count your Entities here's a snippet:

PHP Code:
#pragma semicolon 1
#include <sourcemod>
#include <sdktools>
#include <smlib>

public Plugin:myinfo =  {
    
name "Entity counter/Logger"
    
description "Logs entities to file or counts them"
    
author "Totenfluch"
    
version "1.0"
    
url "https://totenfluch.de"
};

public 
OnPluginStart()
{
    
RegServerCmd("sm_logentity"Command_LogEntities"Log all entities to a config file.");
    
RegAdminCmd("sm_count"cmdremoveindexADMFLAG_ROOT"Prints entity count in chat + bone followers");
}

public 
Action cmdremoveindex(int clientint args) {
    new 
TargetObject 0;
    new 
counter 0;
    new 
bonefollower 0;
    while ((
TargetObject FindEntityByClassname(TargetObject"*")) != -1)
    {
        if (
IsValidEdict(TargetObject)) {
            if (
IsValidEntity(TargetObject))
            {
                
char classname2[64];
                
GetEdictClassname(TargetObjectclassname232);
                
                if (
StrContains(classname2"phys_bone_follower") != -1)
                    
bonefollower++;
                
            }
        }
        
counter++;
    }
    
PrintToChatAll("ENTITYS: >%i<> %i <"counterbonefollower);
    return 
Plugin_Handled;
}

public 
Action:Command_LogEntities(args)
{
    
LogEntities();
    return 
Plugin_Handled;
}



LogEntities() {
    new 
TargetObject = -1;
    new 
counter 0;
    new 
String:classname[128];
    new 
Handle:classnames CreateArray(2048);
    new 
Handle:classnameCounts CreateArray();
    new 
index = -1;
    new 
String:path[PLATFORM_MAX_PATH];
    
BuildPath(Path_SMpathsizeof(path), "logs/entities2.log");
    new 
Handle:file OpenFile(path"w");
    
WriteFileLine(file"==== Entity List ====");
    
    while ((
TargetObject FindEntityByClassname(TargetObject"*")) != -1)
    {
        if (
IsValidEdict(TargetObject)) {
            if (
IsValidEntity(TargetObject))
            {
                
char ObjectName[255];
                
Entity_GetGlobalName(TargetObjectObjectNamesizeof(ObjectName));
                
char classname2[32];
                
GetEdictClassname(TargetObjectclassname232);
                
char ObjectName2[255];
                
GetEntPropString(TargetObjectProp_Data"m_iName"ObjectName2sizeof(ObjectName2));
                
                
char ObjectName3[255];
                
GetEntPropString(TargetObjectProp_Data"m_iParent"ObjectName3sizeof(ObjectName3));
                
                
char ObjectName4[255];
                if (
HasEntProp(TargetObjectProp_Data"m_SlaveName"))
                    
GetEntPropString(TargetObjectProp_Data"m_SlaveName"ObjectName4sizeof(ObjectName4));
                else
                    
Format(ObjectName4sizeof(ObjectName4), "NONE");
                
                
WriteFileLine(file"[%d] Object: ID: |%s| classname: |%s|%s|%s|%s"counterObjectNameclassname2ObjectName2ObjectName3ObjectName4);
            }
        }
        
counter++;
    }
    
    
    
CloseHandle(classnames);
    
CloseHandle(classnameCounts);
    
WriteFileLine(file"Total entities: %d."counter);
    
PrintToServer("%d entities have been logged to %s."counterpath);
    
FlushFile(file);
    
CloseHandle(file);

__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 03-07-2017 at 15:28.
Totenfluch is offline
loveava
Junior Member
Join Date: Feb 2017
Old 03-07-2017 , 16:36   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #24

When i try to compile this, i receive the followin error :
Read the errors below:
SourcePawn Compiler 1.7.1
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2014 AlliedModders LLC

/groups/sourcemod/upload_tmp/textJ4Dw3A.sp(4) : fatal error 182: cannot read from file: "smlib"

Compilation aborted.
1 Error.

What i need to do?
loveava is offline
sneaK
SourceMod Moderator
Join Date: Feb 2015
Location: USA
Old 03-07-2017 , 16:59   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #25

You need the smlib includes: https://github.com/bcserv/smlib
__________________
sneaK is offline
Totenfluch
AlliedModders Donor
Join Date: Jan 2012
Location: Germany
Old 03-20-2017 , 16:11   Re: #GameUI_Disconnect_DeltaEntMessage | Disconnect Message
Reply With Quote #26

As I'm getting a lot of steam messages about this

if you have to many entities and have no clue how to reduce them use:

https://forums.alliedmods.net/showthread.php?t=265902

(This may impact your gameplay)

Related: Host_Error: CL_ReadPreserveEnt: u.m_nNewEntity == MAX_EDICTS
__________________
Notable Projects:
Event Item Spawner | Scissors, Rock, Paper for ZephStore
tVip | Smart Link Remover
PLG & GGC - CS:GO Roleplay

and countless more...

I can make a helicopter shoot missles if you want me to...

Last edited by Totenfluch; 03-23-2017 at 13:14.
Totenfluch 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 11:57.


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