Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


[Question] About "newmem" at scripts

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
ovann
Advanced Cheater
Reputation: 0

Joined: 18 May 2006
Posts: 73

PostPosted: Thu Mar 27, 2008 12:13 pm    Post subject: [Question] About "newmem" at scripts Reply with quote

What different about all of them?

alloc(newmem,50)
alloc(newmem,128)
alloc(newmem,256)
alloc(newmem,1024)
alloc(newmem,2048)
etc...

I think have more like 512 and 50 should be 64 but it's nevermind...

I just wanna know what everything do, and how do you all choose them when your making scripts...

Thank you =]
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Thu Mar 27, 2008 12:17 pm    Post subject: Reply with quote

Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste)
Back to top
View user's profile Send private message
ovann
Advanced Cheater
Reputation: 0

Joined: 18 May 2006
Posts: 73

PostPosted: Thu Mar 27, 2008 12:30 pm    Post subject: Reply with quote

Symbol wrote:
Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste)

If I want make a own script...
How should I know how many bytes type there?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 475

Joined: 09 May 2003
Posts: 25999
Location: The netherlands

PostPosted: Thu Mar 27, 2008 12:40 pm    Post subject: Reply with quote

Just try it.
4096 is usually more than enough for your own scripts, but if you need more, you can just add more.

_________________
Tools give you results. Knowledge gives you control.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
24653187
Expert Cheater
Reputation: 0

Joined: 19 Aug 2007
Posts: 214
Location: 218.255.97.194/61.18.170.???

PostPosted: Thu Mar 27, 2008 7:42 pm    Post subject: Reply with quote

ovann wrote:
Symbol wrote:
Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste)

If I want make a own script...
How should I know how many bytes type there?


you probably don't need to inject lots of address, ya?

if you just inject a code or something 4096 is far enough

_________________
newbies post these threads:
1. all capital letters
2. lots of exclamation marks

and these posts:
1. no punctuation marks
2. not enough information
3. post on wrong forum

and these attitudes:
1. unformal words
2. say "thanks" in 90% post
3. angry when got pissed
Back to top
View user's profile Send private message
Symbol
I'm a spammer
Reputation: 0

Joined: 18 Apr 2007
Posts: 5094
Location: Israel.

PostPosted: Fri Mar 28, 2008 8:14 am    Post subject: Reply with quote

ovann wrote:
Symbol wrote:
Its the size. (in bytes)
And the more bytes you use is the more bytes you will have to allocate. (you could also allocate 2000 bytes for 2 bytes, but thats just a waste)

If I want make a own script...
How should I know how many bytes type there?

And avarage opcode (not something too long, like "lock imul eax,edx,00456789" Surprised ) has about 2-6 bytes. (some might take 1 and some might even take 20, I think 20 is about the largest ammount of bytes for a single opcode)

For a small script 100 should be more than enough, but as Dark Byte said, you could also use 4098. Rolling Eyes
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites