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

l4d gives an error for AcceptEntityInput


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 01-05-2020 , 19:44   l4d gives an error for AcceptEntityInput
Reply With Quote #1

hi all. How to fix this error?
PHP Code:
L 01/05/2020 20:16:54: [SMException reportedNot enough space on the stack
L 01
/05/2020 20:16:54: [SMCall stack trace:
L 01/05/2020 20:16:54: [SM]   [1Line 948C:\Users\Алексей\Desktop\Сборка сервера\scripting\l4d2_lastboss.sp::GetEntSendPropOffs
L 01/05/2020 20:16:54: [SM]   [2Line 796C:\Users\Алексей\Desktop\Сборка сервера\scripting\l4d2_lastboss.sp::LittleFlower
L 01/05/2020 20:16:54: [SM]   [3Line 438C:\Users\Алексей\Desktop\Сборка сервера\scripting\l4d2_lastboss.sp::SkillCometStrike
L 01/05/2020 20:16:54: [SM]   [4Line 350C:\Users\Алексей\Desktop\Сборка сервера\scripting\l4d2_lastboss.sp::Event_Player_Hurt
L 01/05/2020 20:16:54: [SM]   [6AcceptEntityInput 

PHP Code:
if(client 0)
    {
        static 
float pos[3];
        
GetClientAbsOrigin(clientpos);
        
int entity CreateEntityByName("prop_physics");
        {
            if (
IsValidEntity(entity))
            {
                
pos[2] += 10.0;
                if (
type == 0DispatchKeyValue(entity"model"ENTITY_GASCAN);
                else 
DispatchKeyValue(entity"model"ENTITY_PROPANE);
                
DispatchSpawn(entity);
                
SetEntData(entityGetEntSendPropOffs(entity"m_CollisionGroup"), 11true);
                
TeleportEntity(entityposNULL_VECTORNULL_VECTOR);
                
AcceptEntityInput(entity"break");
            }
        }
    } 
Alexmy is offline
Silvers
SourceMod Plugin Approver
Join Date: Aug 2010
Location: SpaceX
Old 01-06-2020 , 07:19   Re: l4d gives an error for AcceptEntityInput
Reply With Quote #2

AcceptEntityInput isn't the problem, it stems from here. There should be a [0] line where the error occurs, but since that's not the case the last the line before/where an error occurred is [1]. Without the code in that section we're unable to determine the problem. Post full plugin source or something.

Possible problems include:
1. Infinite recursion from a loop.
2. Declaring a string larger than the default pragma dynamic stack space (4096 I think).
__________________
Silvers is offline
Alexmy
Senior Member
Join Date: Oct 2014
Location: Russian Federation
Old 01-06-2020 , 10:47   Re: l4d gives an error for AcceptEntityInput
Reply With Quote #3

Quote:
Originally Posted by Silvers View Post
AcceptEntityInput isn't the problem, it stems from here. There should be a [0] line where the error occurs, but since that's not the case the last the line before/where an error occurred is [1]. Without the code in that section we're unable to determine the problem. Post full plugin source or something.

Possible problems include:
1. Infinite recursion from a loop.
2. Declaring a string larger than the default pragma dynamic stack space (4096 I think).
I also thought that the code is called too often, at least I added a check and today I no longer see this error.
Alexmy is offline
Dragokas
Veteran Member
Join Date: Nov 2017
Location: Ukraine on fire
Old 01-10-2020 , 11:02   Re: l4d gives an error for AcceptEntityInput
Reply With Quote #4

Or indirect recursion, like when you call AcceptEntityInput that subsequently call some hook that call the same function again and again.

AFAIK, I already faced with LittleFlower() crash in ztar plugins.
That recurse caused by specific method he tried to increase detonation effect:
like hurt -> create explosion -> cause 'hurt' -> new explosion ... infinite.

I don't remember exactly how did I fix that. You can compare lethal weapon plugin with my fork in same topic.
__________________
Expert of CMD/VBS/VB6. Malware analyst. L4D fun (Bloody Witch & FreeZone)
[My plugins] [My tools] [GitHub] [Articles] [HiJackThis+] [Donate]

Last edited by Dragokas; 01-10-2020 at 11:03.
Dragokas 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 12:04.


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