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 


Can Cheat Engine 'listen' for a game that isn't running yet?

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

Joined: 29 Jul 2013
Posts: 39

PostPosted: Sun May 21, 2017 4:04 am    Post subject: Can Cheat Engine 'listen' for a game that isn't running yet? Reply with quote

Is there a way to do this (and if not, it would be REALLY useful in future).

Can you load a table, tell Cheat Engine the EXE to 'listen' for, and have it apply the cheats as soon as it sees that EXE running? Kind of like how trainers say 'Game not detected', but can then apply the cheats after the game is running?

This would be useful when streaming games to Steam Link, for instance.
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 May 21, 2017 4:24 am    Post subject: Reply with quote

Code:

getAutoAttachList().add('tutorial-i386.exe')  --ce will now watch the process

function onOpenProcess(pid)
  local t=createTimer()
  t.OnInterval=10000 --wait 10 seconds to let the game load (change this accordingly. If it's a cheat that needs to be activated after loading a game, set it to a minute or two)

  t.OnTimer=function(x)
    local al=getAddressList()
    al.getMemoryRecordByDescription('Some kind of cheat').Active=true
    al.getMemoryRecordByDescription('Another kind of cheat').Value=1000
    x.destroy() --the timer is not needed anymore
  end
end

_________________
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
daninthemix
Cheater
Reputation: 0

Joined: 29 Jul 2013
Posts: 39

PostPosted: Sun May 21, 2017 4:29 am    Post subject: Reply with quote

So, I:

1) Load a Cheat Table
2) Add the above as a Lua Script and click Execute Script

?

Sorry, bit of a noob here..
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 May 21, 2017 4:48 am    Post subject: Reply with quote

yes, you can add that script to your table's lua script section and load it each time your table loads

just make a few adjustments for your situation. (Like speed of your system, e.g how long it takes for the game to be fully loaded and your cheats will work, and the name of the cheats, what you want to do, etc...)

tip: Test it out in the lua engine window

_________________
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
daninthemix
Cheater
Reputation: 0

Joined: 29 Jul 2013
Posts: 39

PostPosted: Sun May 21, 2017 4:54 am    Post subject: Reply with quote

Awesome - thanks a lot Very Happy
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