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: 457

Joined: 09 May 2003
Posts: 25262
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.

Like my help? Join me on Patreon so i can keep helping
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 Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1667

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:  4531 Time(s)

Capture.JPG



_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 31

Joined: 16 Feb 2017
Posts: 1234

PostPosted: Tue Oct 09, 2018 6:34 pm    Post subject: Reply with quote

Corroder wrote:
@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 ?


Thanks @Corroder
I've added Aobs and String Replace to a trainer. Wink
But I want:
It can be listed; First and Next Scan!
My problem is in this forum.
https://forum.cheatengine.org/viewtopic.php?t=608717

The above code gives the closest result.
But I could not use it in a form. Rolling Eyes

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
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 Visit poster's website MSN Messenger
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