SA-MP Forums Archive
[Plugin] PAWN memory access plugin - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] PAWN memory access plugin (/showthread.php?tid=645166)

Pages: 1 2


Re: PAWN memory access plugin - BigETI - 31.03.2018

"MEM_new" and "MEM_copy" should do the trick.


Re: PAWN memory access plugin - Gammix - 31.03.2018

Quote:
Originally Posted by BigETI
View Post
"MEM_new" and "MEM_copy" should do the trick.
Oh i only saw MEM_clone, must have missed MEM_copy!


Re: PAWN memory access plugin - BigETI - 01.04.2018

Update 2.1 contains "MEM_send()", so you can send now data from your server's memory through the internet. Encryption is not required, because it adds unneeded overhead to the function.


Re: PAWN memory access plugin - TommyB - 02.04.2018

Quote:
Originally Posted by BigETI
View Post
Update 2.1 contains "MEM_send()", so you can send now data from your server's memory through the internet. Encryption is not required, because it adds unneeded overhead to the function.
nice feature thanks a lot!


Re: PAWN memory access plugin - Zeus666 - 16.04.2018

HTML Code:
[22:03:19]    Error: Function not registered: 'MEM_get_val'
[22:03:19]    Error: Function not registered: 'MEM_get_arr'
[22:03:19]    Error: Function not registered: 'MEM_new'
[22:03:19]    Error: Function not registered: 'MEM_set_val'
[22:03:19]    Error: Function not registered: 'MEM_delete'
[22:03:19]    Error: Function not registered: 'MEM_set_arr'
Why?

I have put inc file inside of include, but I dont know what to put at pluging folder


Re: PAWN memory access plugin - BigETI - 17.04.2018

Take a look at https://github.com/BigETI/pawn-memory/releases


Re: PAWN memory access plugin - JR_Junior - 11.05.2018

The problem is that this plugin is for those who know what to do with it.

I would very much like to use it if I knew how.

In the wiki does not have a clear explanation of how to use, in what part of the GM put, what does each function, what the benefit.

I would like to use it to reduce the memory consumption of the computer, if this is possible, how will I do it?
Thank you.


Re: PAWN memory access plugin - BigETI - 11.05.2018

Quote:
Originally Posted by JR_Junior
View Post
The problem is that this plugin is for those who know what to do with it.

I would very much like to use it if I knew how.
If you are familiar with runtime memory allocation and pointers, then you should know how to use it.

Quote:
Originally Posted by JR_Junior
View Post
In the wiki does not have a clear explanation of how to use, in what part of the GM put, what does each function, what the benefit.
The wiki https://github.com/BigETI/pawn-memory/wiki explains every function that is implemented in that plugin.

Quote:
Originally Posted by JR_Junior
View Post
I would like to use it to reduce the memory consumption of the computer, if this is possible, how will I do it?
Thank you.
This is not a magic memory consumption reducing tool. It's the job of the programmer to optimize their code.


Re: PAWN memory access plugin - JR_Junior - 11.05.2018

Quote:
Originally Posted by BigETI
View Post
If you are familiar with runtime memory allocation and pointers, then you should know how to use it.


The wiki https://github.com/BigETI/pawn-memory/wiki explains every function that is implemented in that plugin.


This is not a magic memory consumption reducing tool. It's the job of the programmer to optimize their code.
I understand now. I have no problems with overuse of memory, my GM is well optimized, but I thought this plugin would further reduce memory consumption.

It seems to be a great plugin, but for now I have no use for it.
Thank you!


Re: PAWN memory access plugin - Kaperstone - 27.05.2018

Code:
MEM_new_arr
Can I save enums and/or multi dimensional arrays?


Quote:
Originally Posted by JR_Junior
View Post
I understand now. I have no problems with overuse of memory, my GM is well optimized, but I thought this plugin would further reduce memory consumption.

It seems to be a great plugin, but for now I have no use for it.
Thank you!
What you're looking for then, are bits and packed strings

Packed strings: https://sampforum.blast.hk/showthread.php?tid=480529 (be aware that you tradeoff some performance here, so its up to you where to use it)
rBits: https://sampforum.blast.hk/showthread.php?tid=275142
y_bit: https://sampforum.blast.hk/showthread.php?tid=489897

Difference between rBits and y_bit: http://forum.sa-mp.com/showpost.php?...20&postcount=2


Re: PAWN memory access plugin - BigETI - 28.05.2018

Quote:
Originally Posted by Kaperstone
View Post
[...] Can I save enums [...] ?
What do mean by that? A PAWN enumerator is a list of integers. If you are looking for structuring data, you can use MEM_struct, which is literally a PAWN enumerator with its tag disabled.
Definition: https://github.com/BigETI/pawn-memor.../memory.inc#L9
Example: https://github.com/BigETI/pawn-map/b...de/map.inc#L14

Quote:
Originally Posted by Kaperstone
View Post
[...] Can I save [...] multi dimensional arrays?
If you know how to map a multi dimensional array to a contiguous memory block, then yes.
Either with MEM_new, MEM_new_zero, MEM_new_arr or MEM_clone.


Re: PAWN memory access plugin - BigETI - 16.08.2018

I just want to announce a bug fix update for pawn-memory. Anyone who uses sampctl should be covered with the latest version, if there is no tag or tag 2.0.1 specified in pawn.json for pawn-memory.


Re: PAWN memory access plugin - RichKiez - 21.08.2018

I can not find the memory.dll file in your gifthub. Help me


Re: PAWN memory access plugin - [WSF]ThA_Devil - 21.08.2018

Quote:
Originally Posted by RichKiez
View Post
I can not find the memory.dll file in your gifthub. Help me
Go to releases tab, just above the files.


Re: PAWN memory access plugin - PGaming - 08.09.2018

solved


Re: PAWN memory access plugin - Dayrion - 08.09.2018

Quote:
Originally Posted by PGaming
View Post
There's no download link for plugin?
please fix the link.
There is: https://github.com/BigETI/pawn-memory -> "2 releases"


Re: PAWN memory access plugin - cuber - 24.01.2020

Quote:
Originally Posted by Kalen
View Post



Re: PAWN memory access plugin - PaulinSAMP - 16.06.2020

Quote:
Originally Posted by Locky_
View Post
Error on Linux CentOS 7. :/

Code:
/lib/libstdc++.so.6: version `CXXABI_1.3.8' not found
#Edit
I compiled the plugin by CentOS (7) itself and it is now functional.
For others needing it, attach a compiled version of the plugin.
I'm having this same error in centos 7, does anyone know how to fix?