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

Showing results 1 to 17 of 17
Search took 0.00 seconds.
Search: Posts Made By: Chief149
Forum: Snippets and Tutorials 09-28-2016, 15:12
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

That would be nice.

I have found that somewhere in my plugin is a memory leak, so I just added an object registration system. Every object my plugin makes goes to two lists. One list is used by my...
Forum: Snippets and Tutorials 09-26-2016, 20:23
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

Well I currently do not use any other plugins that use dynamic, and I do actually keep up with all of the dynamics.

I am not denying that I failed somewhere to clean up after myself as far as me...
Forum: Snippets and Tutorials 09-26-2016, 19:06
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

Ok so I can confirm that I did not break the version of your plugin that I am using. All I did was comment out the if statement that contains the code for disposing a dynamic object's members (if...
Forum: Snippets and Tutorials 09-26-2016, 18:30
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

YES!

I have personally been trying to figure out a solution myself after finding out it was happening, but because I could never see the actual error message, I couldn't think of anything to do...
Forum: Snippets and Tutorials 09-26-2016, 10:58
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

There appears to be a very rare memory leak going on where SourceMod closes your plugin. This might just be Sourcemod being dumb, but I wanted to mention this.

Why no copy/paste of the error, you...
Forum: Snippets and Tutorials 08-26-2016, 23:03
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

I do set each and every single member in the initializer.

The problem I found:
For some reason the menu system keeps calling the menu handler function twice. First with the valid client index,...
Forum: Snippets and Tutorials 08-26-2016, 22:07
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

I am in the process of writing a quick script that tests every get/set of my BClient class and logs to the console.

EDIT: I guess you were right about me passing an invalid dynamic object. Odd...
Forum: Snippets and Tutorials 08-26-2016, 21:34
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

I will try the WriteKeyValues thing to see what is up, but it appears to be "GetMemberType" where the failure is originating.

To be specific, it's GetMemberType which includes GetArrayCell which...
Forum: Snippets and Tutorials 08-26-2016, 21:03
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

I suspected that there may have been updates to your plugin, so I downloaded the latest version. This didn't fix the problem.

The constructor initializes every single member. Even if it doesn't, I...
Forum: Snippets and Tutorials 08-26-2016, 17:22
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

So I've been having an issue with setting some properties. dynamic.smx throws an exception basically.

The relevant part of my object's constructor:
public BClient(char steamid[64], int Client,...
Forum: Snippets and Tutorials 07-25-2016, 11:34
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

Well there's a little too much code to post, but here's the basics.

My plugin has two arrays:
any g_Entity[2049];
EntityType g_EntityType[2049];

When the map starts, every entity on the map...
Forum: Snippets and Tutorials 07-24-2016, 17:15
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.16 - [2016.07.14]

I seem to be getting the following error when trying to call this.GetMemberOffset in one of my dynamic classes:

[SM] Exception reported: Unable to access dynamic handle 5767256

I've traced back...
Forum: Snippets and Tutorials 06-20-2016, 11:38
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.15 - [2016.06.08]

Well, one thing you should note is that SourcePawn is NOT a modern day object oriented language. It is a modern-day procedural language just like C (not C++).

It just happens that we've figured...
Forum: Snippets and Tutorials 06-16-2016, 16:57
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.15 - [2016.06.08]

Honestly this should be a sticky! Or maybe even part of SM's included libraries. This is probably one of the most essential things for the transitional syntax of sourcemod to be uploaded.
Forum: Snippets and Tutorials 06-09-2016, 20:29
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.15 - [2016.06.08]

Oh nice. Now I can precisely calculate the blocksize for my objects! Every class member requires 2 cells. Strings require 2 cells like any other class member, plus maxlength/4 cells.

I've been...
Forum: Snippets and Tutorials 06-09-2016, 14:57
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.15 - [2016.06.08]

Now let's say I call something like:

myclass.SetString("SomeString", "", 256);

Technically I am providing a string of length 0, but am specifying a length of 256. Does this mean that I can set...
Forum: Snippets and Tutorials 06-08-2016, 20:20
Replies: 285
Views: 108,552
Posted By Chief149
Re: Dynamic Objects and Properties - v.0.0.15 - [2016.06.08]

Out of curiosity how would block size/size affect performance versus memory usage?

Can strings be longer than the set blocksize? Is there a limit to the number of class members versus block size?...
Showing results 1 to 17 of 17

 
Forum Jump

All times are GMT -4. The time now is 07:46.


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