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 


Runing a script in CE vs .EXE

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

Joined: 24 Aug 2018
Posts: 6

PostPosted: Sun Aug 26, 2018 9:37 pm    Post subject: Runing a script in CE vs .EXE Reply with quote

I have a problem using the MemScan. (firstScan method).
the same script runing on CE is giving me plenty of results for a gives String scan.
but when i compile it to .exe i get no results at all, its like it scans on a different region...

i will post the scan code here (its the same on both)

Code:
   
local yyyy= createMemScan(true);
 yyyy.setOnlyOneResult(false);
    yyyy.firstScan(soExactValue,vtString,rtRounded,CETrainer.ssss.text,nil,0,0xffffffffffffffff,"",fsmAligned,nil,false,true,false,true);
    yyyy.waitTillDone();

    local xxx=createFoundList(yyyy);
    xxx.initialize();
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Aug 27, 2018 12:21 am    Post subject: Reply with quote

don't name your .exe the same as the game, because the trainer will end up opening itself
_________________
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
itaibar
How do I cheat?
Reputation: 0

Joined: 24 Aug 2018
Posts: 6

PostPosted: Mon Aug 27, 2018 12:25 am    Post subject: Reply with quote

Its not the same names.
the game is XXXXYYY and the bot is XXXXBOT.
I have no idea why im getting zero results. altough there should be.
can you explain why is that happening?
I'm currently using the cheat engine trainer maker without exporting to exe. and it works perfectly
once i'm genrating exe out of it, it shows zero values all the time.

shall i open the game process out of my bot exe code?
currently my setup is to open the game and after that the bot exe by itself.
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

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

PostPosted: Mon Aug 27, 2018 6:54 am    Post subject: Reply with quote

do you use kernelmode memory access ?
did you set specific settings options like mem_mapped ?

_________________
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
itaibar
How do I cheat?
Reputation: 0

Joined: 24 Aug 2018
Posts: 6

PostPosted: Mon Aug 27, 2018 10:26 pm    Post subject: Reply with quote

Dark Byte wrote:
do you use kernelmode memory access ?
did you set specific settings options like mem_mapped ?

I haven't defined any flag at all. Actually I don't even know how to that
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