[Plugin] PAWN memory access plugin
#21

"MEM_new" and "MEM_copy" should do the trick.
Reply
#22

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!
Reply
#23

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.
Reply
#24

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!
Reply
#25

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
Reply
#26

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

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.
Reply
#28

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.
Reply
#29

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!
Reply
#30

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
Reply
#31

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.
Reply
#32

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.
Reply
#33

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

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.
Reply
#35

solved
Reply
#36

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"
Reply
#37

Quote:
Originally Posted by Kalen
View Post
Reply
#38

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)