Help - Search - Members - Calendar
Full Version: can you use matrix with actool
AC Tools Everything Macro > AC Tool > AC Tool Discussion
quicksilver

hello all , i tried to write a procedure that using a lot of cords and changing them a lot of times during it ,and i just thought : can i use matrix with AC-TOOL? i didn't found any information about it in help file or forums so i guess i cant :< but if anyone could confirm that or help me i will be gratefully.



thanks in advance
lior
DaMOB
QUOTE(quicksilver @ May 21 2009, 01:16 PM) *
hello all , i tried to write a procedure that using a lot of cords and changing them a lot of times during it ,and i just thought : can i use matrix with AC-TOOL? i didn't found any information about it in help file or forums so i guess i cant :< but if anyone could confirm that or help me i will be gratefully.



thanks in advance
lior

Not exactly sure what it is you are after but a dataset can simulate multi-dimensional arrays which are key to any matrix I have ever seen. Read up on datasets and think outside of the box to get it to work. btw, datasets are fast.
quicksilver
thanks a lot for the answer , i just read the Primer and started to play with DSs but now i got new questions i didn't found an answer to them.

i saw that after you create a DS you cant uncreate it ( i know you can empty it but not to delete it) so it give me few more Qs:

1) when the DS are uncreated ? when the macro stop running or when you exit ACTOOL ? does resting the macro will delete it?

2) how match memory unused DS taking vs constants ? the reason im asking is that my macro is designate to work long hours with a self-crashing game (by eating memory till windows crashing- its instability is known issue) so what i think to do is to reboot the comp every 2-4 hours
so i prefer that the macro will be memory efficient as match as i can


3)i see the advantage of DS for large amount of data organization , but does it faster/batter memory use then constants for sorts cods

4) maybe i repeat myself but whats batter to use for ex : 40 constants system or DS , and why?



i have only small background in programing and it just started to be my hobby , the macro im working on now is my first complicated macro and i pretty satisfied with it till now but just wondered about the above

thanks in advance
lior
DaMOB
QUOTE(quicksilver @ May 24 2009, 04:32 PM) *
4) maybe i repeat myself but whats batter to use for ex : 40 constants system or DS , and why?



i have only small background in programing and it just started to be my hobby , the macro im working on now is my first complicated macro and i pretty satisfied with it till now but just wondered about the above

thanks in advance
lior

DS will be slower on the creation part but once the fields have been initialized it is faster on manipulating them.

Give you an example:

In Asherons Call, now this was 6 or 7 years ago, I had a fletchbot that I wrote and it would keep people in the dataset that it would see on radar. It constantly was removing and adding hundreds of people (it also kept track if it had seen you in the last few minutes so as to say hi) and without the DS it was horribly slow but with the DS it was almost as fast as anything I could do in C++. The reason is that datasets are as pure as you are going to get. It is native to delphi (what actool was written in) therefor it will be lightning fast since it is native and in highly optimized code.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.