AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [L4D2] Burners Announce (https://forums.alliedmods.net/showthread.php?t=257136)

foxhound27 10-06-2019 15:48

Re: [L4D2] Burners Announce
 
only works for molotov many errors on console when gascan show both versions

any fix? ty

foxhound27 10-18-2019 21:36

Re: [L4D2] Burners Announce
 
3 Attachment(s)
Fresh Release

https://i.imgur.com/zZ1htTD.png

strikeraot 10-22-2019 13:06

Re: [L4D2] Burners Announce
 
Quote:

Originally Posted by Marttt (Post 2669244)
Try this version.

Quote:

L 10/22/2019 - 23:33:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 23:33:16: [SM] Call stack trace:
L 10/22/2019 - 23:33:16: [SM] [0] FindValueInArray
L 10/22/2019 - 23:33:16: [SM] [1] Line 160, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityDestroyed
L 10/22/2019 - 23:33:16: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 10/22/2019 - 23:33:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 23:33:16: [SM] Call stack trace:
L 10/22/2019 - 23:33:16: [SM] [0] GetArraySize
L 10/22/2019 - 23:33:16: [SM] [1] Line 266, /groups/sourcemod/upload_tmp/textF2DvT9.sp::GasCansHook
L 10/22/2019 - 23:33:16: [SM] [2] Line 234, /groups/sourcemod/upload_tmp/textF2DvT9.sp::RefreshThem
L 10/22/2019 - 23:33:16: [SM] [3] Line 134, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityCreated
L 10/22/2019 - 23:33:16: [SM] Exception reported: Invalid Handle 0 (error: 4)
L 10/22/2019 - 23:33:16: [SM] Blaming: Gascan.smx
L 10/22/2019 - 23:33:16: [SM] Call stack trace:
L 10/22/2019 - 23:33:16: [SM] [0] FindValueInArray
L 10/22/2019 - 23:33:16: [SM] [1] Line 160, /groups/sourcemod/upload_tmp/textF2DvT9.sp::OnEntityDestroyed
L 10/22/2019 - 23:36:39: [SM] Exception reported: Client index 0 is invalid

strikeraot 10-23-2019 01:17

Re: [L4D2] Burners Announce
 
oh i used old version xd. Sorry

Tonblader 01-04-2020 14:43

Re: [L4D2] Burners Announce
 
Can you add a cvar so you can tell the plugin what ad you will consider?
gascan 1/0
gascan (scavenge) 1/0
Fireworks 1/0
molotov 1/0
explosive barrel 1/0
acid spitter 1/0

Edit:
I forgot 1 more condition, the problem is that if I destroy several things at the same time, the message spam a lot.
I would like it to be just 1 "announce of burners" and now go into time-out for a while before launching another "announce of burners", except that they are different people who destroy.

lightphoenix2 01-05-2020 01:10

Re: [L4D2] Burners Announce
 
Quote:

Originally Posted by Marttt (Post 2669244)
Try this version.

[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] GetArraySize
[SM] [1] Line 257, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::GasCansHook
[SM] [2] Line 225, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::RefreshThem
[SM] [3] Line 133, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityCreated
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] FindValueInArray
[SM] [1] Line 177, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityDestroyed

Base on the code, it refresh on map start and round start. You will get this when the map is loaded and when the round start. It throws a Exception at GetArraySize(gascanArray), the gascanArray is either not created or pointing to a INVALID_HANDLE

foxhound27 03-14-2020 08:33

Re: [L4D2] Burners Announce
 
Quote:

Originally Posted by lightphoenix2 (Post 2679017)
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] GetArraySize
[SM] [1] Line 257, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::GasCansHook
[SM] [2] Line 225, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::RefreshThem
[SM] [3] Line 133, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityCreated
[SM] Exception reported: Invalid Handle 0 (error: 4)
[SM] Blaming: burners_announcements.smx
[SM] Call stack trace:
[SM] [0] FindValueInArray
[SM] [1] Line 177, \left4dead2\addons\sourcemod\scripting\burner s_announcements.sp::OnEntityDestroyed

Base on the code, it refresh on map start and round start. You will get this when the map is loaded and when the round start. It throws a Exception at GetArraySize(gascanArray), the gascanArray is either not created or pointing to a INVALID_HANDLE


the problem is at map end both arrays get closed + invalid handle

PHP Code:

public void OnMapEnd()
{
    
mapStarted false;
    
    
CloseHandle(gascanArray);
    
gascanArray INVALID_HANDLE;
    
    
CloseHandle(hitterArray);
    
hitterArray INVALID_HANDLE;


and never created again, so on mapstart replace the current function with


PHP Code:

public void OnMapStart()
{
    if(
gascanArray == INVALID_HANDLEgascanArray CreateArray();
    if(
hitterArray == INVALID_HANDLEhitterArray CreateArray();
    
mapStarted true;


but still im not sure if its even needed to close these handle since they refresh get cleaned not sure why need this

so maybe this enough

PHP Code:

public void OnMapEnd()
{
    
mapStarted false;
    
    
ClearArray(gascanArray);
    
ClearArray(hitterArray);




All times are GMT -4. The time now is 19:26.

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