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 


Difference for searching process over network?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
theplayer03
How do I cheat?
Reputation: 0

Joined: 15 Apr 2018
Posts: 2

PostPosted: Sun Apr 15, 2018 1:32 pm    Post subject: Difference for searching process over network? Reply with quote

Hi there,

as i try to experiment with lua and CE a little bit i solved the tutorial with lua.
So far so good.
BUT when i try to do the same with a process over network the search result is always zero.

Funny side note: If i readInteger with a adress found by "hand" my lua script returns the correct value.
Only the searching finds nothing.

I am using ceserver_x86 on a bluestacks if this helps solving this riddle.
Maybe you know what i maybe did wrong?

Easy Code down below:
Code:

searchvalue = inputQuery('Value Prompt', "What it the current value?",'')

startadress = 0
endadress = 0x7fffffffffffffff
protectflags = '+W-X-C'
alignparam = 0x04   -- use this for fsmAligned instead of fsmLastDigits

ms = createMemScan(MainForm.Progressbar)

-- do first scanner
ms.firstScan(soExactValue, vtDword, rtRounded, searchvalue, nil, startadress, endadress, protectflags, fsmAligned, alignparam, false, true, false, false)
-- wait till scan is done
ms.waitTillDone()
-- create and associate with memscan
local fl = createFoundList(ms)
fl.initialize()
print('count is: ', tostring(ms.FoundList.Count))
while fl.Count > 1 do
   fl.deinitialize()
   searchvalue = inputQuery('Value Prompt', "What it the current value?",'')
   if not searchvalue then break end -- nil on cancel
   ms.nextScan(soExactValue,  rtRounded, searchvalue, nil, false, true, false, false, false)
   fl.initialize()
   print('count is: ', tostring(ms.FoundList.Count))
   if fl.Count < 5 then
      for i=0, fl.Count-1 do
         print('  ', fl[i], readInteger(fl[i]))
      end   
   end
end
-- clean up our objects
fl.destroy()
ms.destroy()


Any ideas?
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 357

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

PostPosted: Sun Apr 15, 2018 1:41 pm    Post subject: Reply with quote

not sure, perhaps the memory is skipped.

instead of +W-X-C try *W*X*C

alignparam 1

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Back to top
View user's profile Send private message MSN Messenger
Aylin
Expert Cheater
Reputation: 2

Joined: 16 Feb 2017
Posts: 154

PostPosted: Sun Apr 15, 2018 3:57 pm    Post subject: Re: Difference for searching process over network? Reply with quote

theplayer03 wrote:
Hi there,

as i try to experiment with lua and CE a little bit i solved the tutorial with lua.
So far so good.
BUT when i try to do the same with a process over network the search result is always zero.

Funny side note: If i readInteger with a adress found by "hand" my lua script returns the correct value.
Only the searching finds nothing.

I am using ceserver_x86 on a bluestacks if this helps solving this riddle.
Maybe you know what i maybe did wrong?

Easy Code down below:
Code:

searchvalue = inputQuery('Value Prompt', "What it the current value?",'')

startadress = 0
endadress = 0x7fffffffffffffff
protectflags = '+W-X-C'
alignparam = 0x04   -- use this for fsmAligned instead of fsmLastDigits

ms = createMemScan(MainForm.Progressbar)

-- do first scanner
ms.firstScan(soExactValue, vtDword, rtRounded, searchvalue, nil, startadress, endadress, protectflags, fsmAligned, alignparam, false, true, false, false)
-- wait till scan is done
ms.waitTillDone()
-- create and associate with memscan
local fl = createFoundList(ms)
fl.initialize()
print('count is: ', tostring(ms.FoundList.Count))
while fl.Count > 1 do
   fl.deinitialize()
   searchvalue = inputQuery('Value Prompt', "What it the current value?",'')
   if not searchvalue then break end -- nil on cancel
   ms.nextScan(soExactValue,  rtRounded, searchvalue, nil, false, true, false, false, false)
   fl.initialize()
   print('count is: ', tostring(ms.FoundList.Count))
   if fl.Count < 5 then
      for i=0, fl.Count-1 do
         print('  ', fl[i], readInteger(fl[i]))
      end   
   end
end
-- clean up our objects
fl.destroy()
ms.destroy()


Any ideas?


-----------------------------

I would like to do this with a form (UDF1 and CEEdit and CEButton etc)
It's a project I've been asking for a while, but I can not find an answer.
If you do not want to share, I respect, respect.
but if you write this scenario into a Form, I'll be happy.
Thank you in advance.

I also congratulate you, it's a nice code.

_________________
See Hitler ! This Trainer is for you!
http://forum.cheatengine.org/viewtopic.php?t=606786
Enthusiastic people: Always one step ahead!
Do not underestimate me Master: You were a beginner in the past!
Back to top
View user's profile Send private message MSN Messenger
theplayer03
How do I cheat?
Reputation: 0

Joined: 15 Apr 2018
Posts: 2

PostPosted: Mon Apr 16, 2018 12:50 pm    Post subject: Reply with quote

Hi,

so i got my code to work,
and Dark Byte, you were correct!
It was the *w*x*c

Thank you for this help and i'm sorry that i overlooked this easy solution!

@aylin: do the youtube videos about CE and LUA with GUI not cover what you wanted to do? Also the thank you for the code is not for me, i just took this as a simple code for showing the problem, my real code looks a little more messy.
Back to top
View user's profile Send private message
Corroder
Grandmaster Cheater
Reputation: 17

Joined: 10 Apr 2015
Posts: 647

PostPosted: Tue Apr 17, 2018 8:32 am    Post subject: Reply with quote

@Aylin
Code:
I would like to do this with a form (UDF1 and CEEdit and CEButton etc)
It's a project I've been asking for a while, but I can not find an answer.


Did you meant something like this ?



Capture.JPG
 Description:
VCL CE Manual Scanner Tool for Trainer
 Filesize:  31.91 KB
 Viewed:  2462 Time(s)

Capture.JPG



_________________
Singapore Sling + Johnnie Walker + Some Peanuts....
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 Lua Scripting 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