Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
I am currently trying to implement Dynamic into a series of plugins, simply for allowing easy access to data tied to clients for each plugin. Thus I am trying to use the static player settings object. This seems to work so far, however the data is not cleared when a client disconnects.
The wiki mentions that "Player Settings members are reset during Sourcemod's OnClientDisconnect_Post forward". Contrary to that, set values persist for the clients, even after rejoining the server. Looking at the plugin code of dynamic.sp, this seems to be due to the OnClientDisconnect_Post forward not using public, but being declared as stock instead. PHP Code:
|
Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Quote:
It sounds like they had been referencing the disposed object elsewhere which was being disposed by its parent. |
Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Quote:
I need to push some updates so I will try patch it up in the next few days. |
Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
I tried to do that but faced some errors on compile which are probably due to me having left out a file when installing. I didn't bother afterwards and can't get around to trying it again at the moment. However I did try to just include Dynamic_ResetObject(client) on Disconnect_Post in my own plugin earlier, which did fix the issue.
|
Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
Hey, i hope the plugin still has support :D I use the plugin for an advertising plugin and wanted to have a look at the handles, can it be that these leaks has?
Code:
Plugin Handles Memory |
Re: Dynamic Objects and Properties - v.0.0.32 - [2018.05.08]
PHP Code:
I close my Dynamic at OnPluginEnd(), and create it at OnAllPluginsLoaded(). Should I just increase the timeout time, but this maybe will freeze the server on the map change? Edit: I have solved the error by closing the dynamic immediately after I am done with it. But sometimes Dynamics freezes the server OnPluginEnd without any operations performed. (I tried running just the default plugins and Dynamic) |
All times are GMT -4. The time now is 14:23. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.