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

Forward for plugin end?


Post New Thread Reply   
 
Thread Tools Display Modes
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 01-21-2017 , 05:50   Re: Forward for plugin end?
Reply With Quote #11

Quote:
Originally Posted by Neuro Toxin View Post
If you could add a forward and do the triggering before the handle is destroyed id be happy to send some paypal cash.
So you wont require people to run an extension, but you will require them to have a custom SM build? I fail to see how this is sane.
__________________
asherkin is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 01-21-2017 , 16:58   Re: Forward for plugin end?
Reply With Quote #12

Let me correct myself.

I was hoping to have it added to the proper builds.
__________________
Neuro Toxin is offline
KissLick
Veteran Member
Join Date: Nov 2012
Location: void
Old 01-21-2017 , 17:04   Re: Forward for plugin end?
Reply With Quote #13

Quote:
Originally Posted by Neuro Toxin View Post
I was hoping to have it added to the proper builds.
+1
__________________
Plugins: TeamGames
Includes: Menu stocks, ColorVariables, DownloadTableConfig

> No help through PM, make a topic.
KissLick is offline
blaacky
Senior Member
Join Date: Oct 2012
Old 01-21-2017 , 17:47   Re: Forward for plugin end?
Reply With Quote #14

Quote:
Originally Posted by Neuro Toxin View Post
Let me correct myself.

I was hoping to have it added to the proper builds.
Yes please
blaacky is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-21-2017 , 19:06   Re: Forward for plugin end?
Reply With Quote #15

Quote:
Originally Posted by Neuro Toxin View Post
Let me correct myself.

I was hoping to have it added to the proper builds.
Yes, and I would like an addition of 500 other superfluous features as well.

Unrelated note, my car has 2 spoilers, tractor wheels, 4 mufflers, and gets 6 miles per gallon.

.. On the freeway
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 01-21-2017 , 20:43   Re: Forward for plugin end?
Reply With Quote #16

It's not superfluous at all.

It's for Dynamic (in my footer): to stop the garbage collector from generating errors because plugins don't dispose of their objects when they unload. Peace-Maker was nice enough to give me a snippet that would resolve the issue, but go have a look: it's not very CPU friendly. Besides that snippet, SM DOESN'T SUPPORT WHAT I'M ASKING FOR HENCE IT NOT BEING SUPERFLUOUS.

You would probably say they should fix their plugins, end story, Dynamic shouldn't have it's garbage collector error out because of bad plugins.

PS: Maybe you should buy a new car
PPS: If someone is willing do it for a cash incentive wtf do you care and why be a rude @#$%?
__________________
Neuro Toxin is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-22-2017 , 03:37   Re: Forward for plugin end?
Reply With Quote #17

Objects are superfluous, method maps are superfluous, the new syntax is superfluous...

Pawn is procedural, not oop.
Making wrappers and whatnot to fake it is not really efficient.
While it may be slightly more user friendly, it is slow.
There is nothing you can do with "fake objects" or even the new syntax, which you can not do simply with the old...

Also, adding more and more superfluous things to SM (like useless callbacks) does have an effect on everyone. There is some cpu time used to evaluate each nonsense call. Also to maintain all of this stuff becomes even more work for the devs.

Anyhow, as stated previously, knowing the plugins name or handle wont help, as you can name a plugin whatever you want.. and load them multiple times. Again, this is why libraries exist. If its really important to you, you may just write your own loop to iterate plugins and do this... there are natives povided for getting plugin info.
__________________
Profile - Plugins
Add me on steam if you are seeking sp/map/model commissions.
friagram is offline
Fyren
FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren FyrenFyrenFyrenFyrenFyren
Join Date: Feb 2106
Old 01-22-2017 , 06:57   Re: Forward for plugin end?
Reply With Quote #18

Quote:
Originally Posted by Neuro Toxin View Post
because plugins don't dispose of their objects
The owner of a resource is responsible for it. If you have a problem, then it's likely that either the owner should be the other way around or you should be cloning the handle.

If you want to attempt to bring up a request, you should provide a specific use case. Just "because other plugins might not do the right thing" doesn't qualify.
Fyren is offline
Chdata
Veteran Member
Join Date: Aug 2012
Location: Computer Chair, Illinois
Old 01-22-2017 , 07:10   Re: Forward for plugin end?
Reply With Quote #19

My friends keep telling me I should abandon Sourcemod because it's not even written in a real language, like it was house built as part of a cave using tree branches for walls and it became too much of a hassle to change all of this and move to using bricks.

But I have nothing else to do in my free time ;p

I think your solution is to add documentation telling people to properly do shiz or else X will happen, and for people who don't read it to suffer.
__________________

Last edited by Chdata; 01-22-2017 at 07:11.
Chdata is offline
Neuro Toxin
Veteran Member
Join Date: Oct 2013
Location: { closing the void; }
Old 01-22-2017 , 07:33   Re: Forward for plugin end?
Reply With Quote #20

Quote:
Originally Posted by friagram View Post
There is nothing you can do with "fake objects" or even the new syntax, which you can not do simply with the old...
Not exactly true. Some uses of Dynamic turn complex code into simple code. You might lose a little efficiency, however, computers are getting more and more powerful, and to lose a few cycles for the gain of simplified code can be worth it. In some instances (sharing complex dataset's between plugins) Dynamic can be more efficient while simplifying code at the same time.

Everything else you've said I can agree with to some degree.

Quote:
Originally Posted by Fyren View Post
The owner of a resource is responsible for it. If you have a problem, then it's likely that either the owner should be the other way around or you should be cloning the handle.

If you want to attempt to bring up a request, you should provide a specific use case. Just "because other plugins might not do the right thing" doesn't qualify.
Solid. My base issue is GetPluginStatus fails when a stored plugin handle is destroyed from the plugin being unloaded, while not having an efficient way to validate the handle or detect the plugin has ended to invalidate the handle myself (besides forcing people to register libraries which is legit, but doesn't resolve my issue (bad plugins shouldn't stop Dynamic's garbage collection)).

Maybe I could request that PluginStatus have a new entry and that GetPluginStatus returns this status when an invalid handle is parsed as a parameter rather than throwing an error.

Peace-Maker provided great code to validate plugin handles that I've stored, the issue is it's really expensive on some servers.

Edit:

The error from a bad plugin
The code in Dynamic
__________________

Last edited by Neuro Toxin; 01-22-2017 at 07:37.
Neuro Toxin 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 09:47.


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