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

[BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps


Post New Thread Reply   
 
Thread Tools Display Modes
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 13:51   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #21

Listen server

I will post a video ^^
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 13:53   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #22

No need. -_-" ; nobody has said that you say a lie. I'm always testing on my dedicated server, not listen server. If 2 persons say that it crashs on listenserver, it may can be true.
__________________

Last edited by Arkshine; 09-20-2008 at 13:57.
Arkshine is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-20-2008 , 13:58   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #23

No crash.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 14:01   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #24

Too late ^^ i've made the video :

Look : http://rapidshare.com/files/146925967/sample2.avi
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 14:06   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #25

Can you give me your compiled plugin ???
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 14:07   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #26

Arkshine ; dedicated server : No crash.
Connor ; listen server : No crash.

Next round ?

Here the code to use :

Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta>

#define PLUGIN "TryIt"
#define VERSION "1.0"
#define AUTHOR "Hebusletroll"

#define modeltype "models/boid.mdl"

public plugin_init()
{
	register_plugin(PLUGIN, VERSION, AUTHOR)
	register_clcmd("dotest","cmd_dotest")
	register_forward(FM_Touch,"Forward_Touch")
}

public plugin_precache()
{
	precache_model(modeltype)
}

public cmd_dotest(id)
{
	static Float:origin[3],Float:velocity[3],Float:angles[3]
	if(is_user_alive(id))
	{
		new entity = engfunc(EngFunc_CreateNamedEntity,engfunc(EngFunc_AllocString,"info_target"))
		if(entity)
		{
			pev(id,pev_origin,origin)
			pev(id,pev_angles,angles)
			velocity_by_aim(id,750,velocity)
			set_pev(entity,pev_classname,"try")
			set_pev(entity,pev_model,modeltype)
			engfunc(EngFunc_SetModel, entity, modeltype)
			set_pev(entity,pev_velocity,velocity)
			set_pev(entity,pev_solid,SOLID_BBOX)
			set_pev(entity,pev_movetype,MOVETYPE_FLY)
			set_pev(entity,pev_owner,id)
			set_pev(entity,pev_origin,origin)
			set_pev(entity,pev_angles,angles)
            set_pev(entity,pev_iuser1, 1 );
		}
	}
	return FMRES_HANDLED
}

public Forward_Touch ( const i_Ent, const i_Other )
{
    if ( pev_valid ( i_Ent ) && pev ( i_Ent, pev_iuser1 ) && i_Other != pev ( i_Ent, pev_owner ) )
    {
        static Float:vf_Origin[ 3 ], i_Victim;
        pev ( i_Ent, pev_origin, vf_Origin ); i_Victim = -1;
        
        while ( ( i_Victim = engfunc ( EngFunc_FindEntityInSphere, i_Victim, vf_Origin, 2000.0 ) ) )
        {
            log_amx ( "Entity ID = %d", i_Victim );
        }
        
        set_pev ( i_Ent, pev_flags, FL_KILLME );
    }
}
Would be nice if other people can test.
__________________
Arkshine is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 14:18   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #27

Damn !

Trying on dedicated server !

Crashing again

[EDIT]

Tested with your code = crashing
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x

Last edited by hebusletroll; 09-20-2008 at 14:20.
hebusletroll is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-20-2008 , 14:20   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #28

Are you sure that you're running only this plugin and nothing else ?! ( powerweapons seems to be installed in your video... ). I will try to find another buddy to test.
__________________
Arkshine is offline
hebusletroll
Senior Member
Join Date: Apr 2006
Old 09-20-2008 , 14:27   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #29

Either powerweapons plugin enabled or not, my both listened and dedicated (without powerweapons) will crash

Here the log attached.



I'm deseperate

But hope you can help me
Attached Files
File Type: rar L20080920.rar (8.8 KB, 97 views)
__________________
Boring about playing same weapons ? PowerWeapons is available !
PowerWeapon v1.0 released !
Play up to 70 new weapons and create your own weapons !
Tested on Windows Server 2003, 2008/R2, 2012 and Linux Ubuntu 10.x and CentOs 6.x
hebusletroll is offline
solidsnake
Member
Join Date: Jul 2006
Old 09-20-2008 , 14:53   Re: [BUG - RESOLVED] Infinite loop EngFunc_FindEntityInSphere for some maps
Reply With Quote #30

It seem that you have an infinite loop.
solidsnake 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 01:56.


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