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

[CS:S] Anti Team Flash (v1.2.3)


Post New Thread Reply   
 
Thread Tools Display Modes
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 10-07-2010 , 09:44   Re: [CS:S] Anti Team Flash
Reply With Quote #21

Again I'm getting an error on server shutting down:

Code:
L 10/07/2010 - 15:22:09: SourceMod error session started
L 10/07/2010 - 15:22:09: Info (map "cs_office") (file "errors_20101007.log")
L 10/07/2010 - 15:22:09: [SM] Native "CloseHandle" reported: Handle 44a0036 is invalid (error 3)
L 10/07/2010 - 15:22:09: [SM] Displaying call stack trace for plugin "sm_anti_team_flash.smx":
L 10/07/2010 - 15:22:09: [SM]   [0]  Line 69, sm_anti_team_flash.sp::OnPluginEnd()
L 10/07/2010 - 15:22:09: Error log file session closed.
But it would be better, if someone could confirm this, so we will know it's not only my server's issue.

It's happening sometimes, when I'm shutting down my server and brings NO other consequences (SRCDS is NOT crashing).

Except this one thing, the plugin is working perfect.
__________________
GrO is offline
CRNOGORAC
Junior Member
Join Date: Sep 2010
Old 10-07-2010 , 10:01   Re: [CS:S] Anti Team Flash
Reply With Quote #22

Can you post the final result after the latest update?

I mean does the player who throws the flashbang get flashed or not?

What about the delay time when flash is fading out?
CRNOGORAC is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-07-2010 , 11:20   Re: [CS:S] Anti Team Flash
Reply With Quote #23

Here, try this version Gro. I forgot that dynamic arrays were handles, and I wasn't treating them as such! What's happening is your map is ending first, clearing the array, then you're shutting down the server, which tries to clear the array again (which doesn't exist anymore).
__________________

Last edited by thetwistedpanda; 10-07-2010 at 20:01.
thetwistedpanda is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 10-07-2010 , 19:50   Re: [CS:S] Anti Team Flash
Reply With Quote #24

Quote:
Originally Posted by thetwistedpanda View Post
Here, try this version Gro. I forgot that dynamic arrays were handles, and I wasn't treating them as such! What's happening is your map is ending first, clearing the array, then you're shutting down the server, which tries to clear the array again (which doesn't exist anymore).
This version gives no errors. Nice job ;]

Plugin should be approved.
__________________
GrO is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-07-2010 , 20:03   Re: [CS:S] Anti Team Flash
Reply With Quote #25

Thanks for testing that. Updated the original post with the attachment.
__________________
thetwistedpanda is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 10-08-2010 , 10:59   Re: [CS:S] Anti Team Flash
Reply With Quote #26

After longer tests we've discovered, that ATF funcionality isn't constant and is not working all the time for everyone.

All glitches are appearing during sm_anti_team_flash_time. Additionally ATF func. isn't always working for sm_anti_team_flash_dead "1" and sm_anti_team_flash_spec "1" after sm_anti_team_flash_time.

No errors in logs.
__________________

Last edited by GrO; 10-08-2010 at 11:02.
GrO is offline
CRNOGORAC
Junior Member
Join Date: Sep 2010
Old 10-08-2010 , 10:59   Re: [CS:S] Anti Team Flash
Reply With Quote #27

Does the player who throws the flashbang get flashed now?
CRNOGORAC is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 10-08-2010 , 11:06   Re: [CS:S] Anti Team Flash
Reply With Quote #28

Quote:
Originally Posted by CRNOGORAC View Post
Does the player who throws the flashbang get flashed now?

Quote:
  • sm_anti_team_flash_owner ~ If disabled, flashbangs will flash their owners.
__________________
GrO is offline
thetwistedpanda
Good Little Panda
Join Date: Sep 2008
Old 10-08-2010 , 11:18   Re: [CS:S] Anti Team Flash
Reply With Quote #29

A simple plugin like this shouldn't be causing so many troubles! I'll look at the code later today and see if I can see what's causing the glitches. It may be an issue with the information being sent to the client, rather than the script itself.

*Edit* Alright I've looked over the code top to bottom several times and I can find no issue that would cause the issues you reported. This leaves me to believe that the event is firing a little later than it should for some clients ~ the only thing I know to do to help resolve this is to Pre-Hook the events rather then hooking the events as they fire.

Quote:
Additionally ATF func. isn't always working for sm_anti_team_flash_dead "1" and sm_anti_team_flash_spec "1" after sm_anti_team_flash_time.
The problem with this is sm_anti_team_flash_time isn't used in the segment of code which governs those two convars, nor would it affect it, which leaves me to the idea above.

I've attached the pre-hooked version, so give this one a shot. If it doesn't work, then I don't think a 100% functional plugin will be possible without an extension.
__________________

Last edited by thetwistedpanda; 10-09-2010 at 12:40.
thetwistedpanda is offline
GrO
Veteran Member
Join Date: Jun 2010
Location: Poland
Old 10-09-2010 , 12:29   Re: [CS:S] Anti Team Flash
Reply With Quote #30

Now this happened, while server was running:

Code:
L 10/08/2010 - 22:37:15: SourceMod error session started
L 10/08/2010 - 22:37:15: Info (map "cs_italy") (file "errors_20101008.log")
L 10/08/2010 - 22:37:15: [SM] Native "RemoveFromArray" reported: Invalid index 0 (count: 0)
L 10/08/2010 - 22:37:15: [SM] Displaying call stack trace for plugin "sm_anti_team_flash.smx":
L 10/08/2010 - 22:37:15: [SM]   [0]  Line 146, sm_anti_team_flash.sp::OnFlashBoom()
L 10/08/2010 - 23:18:36: Error log file session closed.
I didn't discover any consequences in that time, but I can't say there were none and the plugin seem to work fine at all times.
__________________
GrO is offline
Reply


Thread Tools
Display Modes

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 10:58.


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