SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Plugin Development

Reply
 
Thread Tools Display Modes
Old 31/03/2018, 12:24 AM   #21
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 981
Reputation: 282
Default Re: PAWN memory access plugin

"MEM_new" and "MEM_copy" should do the trick.
BigETI is offline   Reply With Quote
Old 31/03/2018, 01:28 AM   #22
Gammix
High-roller
 
Gammix's Avatar
 
Join Date: Jan 2015
Location: Canada
Posts: 1,752
Reputation: 805
Default Re: PAWN memory access plugin

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!
__________________
Gammix is online now   Reply With Quote
Old 01/04/2018, 07:42 PM   #23
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 981
Reputation: 282
Default Re: PAWN memory access plugin

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.
BigETI is offline   Reply With Quote
Old 02/04/2018, 06:17 AM   #24
TommyB
Beta Tester
 
TommyB's Avatar
 
Join Date: Sep 2010
Location: Texas, USA.
Posts: 153
Reputation: 133
Default Re: PAWN memory access plugin

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!
__________________
TommyB is offline   Reply With Quote
Old 16/04/2018, 07:14 PM   #25
Zeus666
Huge Clucker
 
Join Date: Mar 2015
Posts: 460
Reputation: 42
Default Re: PAWN memory access plugin

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
Zeus666 is offline   Reply With Quote
Old 17/04/2018, 01:28 AM   #26
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 981
Reputation: 282
Default Re: PAWN memory access plugin

Take a look at https://github.com/BigETI/pawn-memory/releases
BigETI is offline   Reply With Quote
Old 11/05/2018, 01:06 AM   #27
JR_Junior
Huge Clucker
 
Join Date: Nov 2011
Location: Brazil
Posts: 228
Reputation: 52
Default Re: PAWN memory access plugin

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.
JR_Junior is offline   Reply With Quote
Old 11/05/2018, 09:06 AM   #28
BigETI
Gangsta
 
BigETI's Avatar
 
Join Date: Mar 2010
Location: Germany
Posts: 981
Reputation: 282
Default Re: PAWN memory access plugin

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.
BigETI is offline   Reply With Quote
Old 11/05/2018, 03:30 PM   #29
JR_Junior
Huge Clucker
 
Join Date: Nov 2011
Location: Brazil
Posts: 228
Reputation: 52
Default Re: PAWN memory access plugin

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!
JR_Junior is offline   Reply With Quote
Old 27/05/2018, 11:21 PM   #30
Kaperstone
High-roller
 
Kaperstone's Avatar
 
Join Date: May 2011
Location: Russia
Posts: 3,353
Reputation: 822
Default Re: PAWN memory access plugin

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: http://forum.sa-mp.com/showthread.php?t=480529 (be aware that you tradeoff some performance here, so its up to you where to use it)
rBits: http://forum.sa-mp.com/showthread.php?t=275142
y_bit: http://forum.sa-mp.com/showthread.php?t=489897

Difference between rBits and y_bit: http://forum.sa-mp.com/showpost.php?...20&postcount=2
__________________
Kaperstone is offline   Reply With Quote
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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] Memory access plugin BigETI Plugin Development 54 23/11/2017 03:23 PM
Invalid Memory access Dayrion Scripting Help 11 08/08/2016 06:35 PM
How much random access memory Manowar Scripting Help 5 05/03/2013 07:47 AM
Invalid memory access Littl3j0hNy Scripting Help 5 03/12/2011 03:51 PM
Invalid memory access wouter0100 Scripting Help 4 17/09/2011 11:28 PM


All times are GMT. The time now is 03:07 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.