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

Module: Custom Entity Data


Post New Thread Reply   
 
Thread Tools Display Modes
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 02-24-2017 , 04:13   Re: Module: Custom Entity Data
Reply With Quote #11

Quote:
Originally Posted by PRoSToTeM@ View Post
There are two kinds of functions in API that you can call (they are located in engfuncs) and that you can hook (events) (I mean original API from engine, not metamod, they are located in EntityAPI(2) and NewDLLFunctions). PrecacheModel is that you can call, so basically you can hook it to customize gamedll behaviour only. FreeEntPrivateData has two versions FreeEntPrivateData that you can call (engfunc) and OnFreeEntPrivateData event (NewDllFunction). FreeEntPrivateData engfunc calls OnFreeEntPrivateData (you can see that in ReHLDS). So, you can hook OnFreeEntPrivateData via API without any problems. Emulating OnFreeEntPrivateData can break some code in gamedll, this is like undefined behaviour (I mean fakecall from some plugin).
Oh right, thanks for elaborating. I totally missed that there's OnFreeEntPrivateData too.

EDIT:
Done. Thanks for help.

Quote:
Originally Posted by meTaLiCroSS View Post
I was thinking on doing something like this, I complained because I thought it would be slow. Good job, this kind of addons will have a big impact if is integrated in the main AMXX package.
Thanks.

Last edited by klippy; 02-24-2017 at 05:17.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-12-2017 , 07:39   Re: Module: Custom Entity Data
Reply With Quote #12

I have one question tho
Why didn't you make so that if an entity is deleted the handles get cleared ?
__________________
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-12-2017 , 09:51   Re: Module: Custom Entity Data
Reply With Quote #13

Unless you input a handle that has to be destroyed explicitely (like a Trie), no additional work has to be done.
You have to free handlers on your own, the module can't do it for you. It applies to any container (Tries, Arrays...).
klippy is offline
PRoSToTeM@
Veteran Member
Join Date: Jan 2010
Location: Russia, Ivanovo
Old 07-12-2017 , 15:31   Re: Module: Custom Entity Data
Reply With Quote #14

Quote:
Originally Posted by KliPPy View Post
Unless you input a handle that has to be destroyed explicitely (like a Trie), no additional work has to be done.
You have to free handlers on your own, the module can't do it for you. It applies to any container (Tries, Arrays...).
So, then there should be an event (forward) to catch this.
__________________
PRoSToTeM@ is offline
Send a message via ICQ to PRoSToTeM@ Send a message via Skype™ to PRoSToTeM@
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-12-2017 , 15:49   Re: Module: Custom Entity Data
Reply With Quote #15

It's been on TODO for a while. Forgot about that, got lazy. I'm on a vacation now, but I may do it soon then.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 07-12-2017 , 16:48   Re: Module: Custom Entity Data
Reply With Quote #16

I still think you should really make it free the handlers automatically on entity removal, less fuss for us, and push it into the dev version
__________________

Last edited by Depresie; 07-12-2017 at 16:49.
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 07-12-2017 , 17:59   Re: Module: Custom Entity Data
Reply With Quote #17

It can't be done that way.
klippy is offline
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 07-22-2017 , 12:57   Re: Module: Custom Entity Data
Reply With Quote #18

Server is crashing whenever the map restarts or changes.

Code:
*** Error in `./svends_i686': free(): invalid pointer: 0x0ae64d94 ***
__________________

Last edited by gabuch2; 07-22-2017 at 14:46.
gabuch2 is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 01-30-2022 , 04:37   Re: Module: Custom Entity Data
Reply With Quote #19

Unofficial Updated.
Code:
Fixed: [META] WARNING: Plugin didn't set meta_result
Fixed: free(): invalid pointer.
https://github.com/AoiKagase/Amxx-Mo...ases/tag/1.0.3
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
grs4
Senior Member
Join Date: Dec 2010
Location: Poland
Old 08-23-2022 , 18:31   Re: Module: Custom Entity Data
Reply With Quote #20

@+ARUKARI-

1. .dll for windows is win32/wactac.H!ml.



https://ctrl.vi/i/YUW-nGuNH

I hope this is false positive. Please fix it asap.

2`.so` file is broken.

"failed to load: Module/Library "customentdata" required for plugin. Check modules.ini."
modules.ini:
...
csx
hamsandwich
customentdata

on official release works fine.

Last edited by grs4; 08-23-2022 at 18:44. Reason: add pctr
grs4 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 04:46.


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