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 


Automatically attach to proccesses name "X"

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

Joined: 26 Jan 2018
Posts: 58

PostPosted: Sat Aug 24, 2019 10:28 am    Post subject: Automatically attach to proccesses name "X" Reply with quote

When I use Cheat Engine and the program that I have attached to crashes (HARD) the process will remain in the task manger and can't be killed until I close down Cheat Engine.

Is there anyway around this? Often I will have several instances open of the same .exe when I am memory searching and the automatic attach stops working. My computer will even run out of memory if there are too many left in the task manger.

At that point I have to quit CE and kill each instance, then set up CE again to continue my searches.

Looks like the issue is caused by "Even autoattach when another process has already been selected." I like this feature, but it is flawed because CE will not release it fully when the app that is attached HARD crashes.

Can this be fixed? or is there a way to kill the processes from within CE?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Sat Aug 24, 2019 1:09 pm    Post subject: Reply with quote

open the lua engine or otherwise run the lua code system("taskkill /im " .. process .. " /f")
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Sat Aug 24, 2019 3:48 pm    Post subject: Reply with quote

Error:[string "system("taskkill /im ppssppWindows64.exe /f"..."]:1: attempt to call a nil value (global 'system')


Tried with Quotes too.. no luck.

Running if from CMD window also will not work until CE is closed.
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Sat Aug 24, 2019 4:45 pm    Post subject: Reply with quote

oh my bad, system is what C calls it CE uses shellExecute and it separates the executable name and arguments so shellExecute("taskkill", "/im " .. process .. " /f") (actually tested this time lol)
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Sat Aug 24, 2019 8:13 pm    Post subject: Reply with quote

thanks, that seemed to work at closing the current process, however if you have a HARD crash where the .exe closes on its own, you can't kill it in CMD or shell unless you quit CE first.

You can see this by crashing an emulator (for example) with a bad memory change, then use the killtask command in CMD, and see that its locked untill you close CE.
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Sun Aug 25, 2019 11:14 am    Post subject: Reply with quote

Any other ideas? Is this a bug that should be reported to the developers?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Sun Aug 25, 2019 11:53 am    Post subject: Reply with quote

/shrug DB and a few other contributors check the forums so maybe they'll have a better answer
_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 372

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

PostPosted: Sun Aug 25, 2019 12:06 pm    Post subject: Reply with quote

is this because mono is attached?
_________________
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
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Sun Aug 25, 2019 3:05 pm    Post subject: Reply with quote

What does mono mean, it could be? :shrug:
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Mon Aug 26, 2019 9:08 am    Post subject: Reply with quote

FreeER, any idea what he meant about mono?
Back to top
View user's profile Send private message
FreeER
Grandmaster Cheater Supreme
Reputation: 42

Joined: 09 Aug 2013
Posts: 1089

PostPosted: Mon Aug 26, 2019 11:32 am    Post subject: Reply with quote

The open source version of dot net basically I've got this bookmarked from when I looked into it a bit.
https://www.mono-project.com/docs/advanced/embedding/

_________________
https://github.com/FreeER/ has a few CE related repos
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Tue Aug 27, 2019 8:45 am    Post subject: Reply with quote

OK, I guess I don't have mono attached then. I have not compiled this or understand what its really for.

Chicken/Egg

If you have a .NET app which P/Invokes to an unmanaged library, which embeds Mono for basically 100% of its logic, bad things can happen:

I do have .net installed though.

Is there any other solution to the issue I reported?
Back to top
View user's profile Send private message
theboy181
Advanced Cheater
Reputation: 0

Joined: 26 Jan 2018
Posts: 58

PostPosted: Fri Aug 30, 2019 9:16 pm    Post subject: Reply with quote

Was something changed that fixed this in 7.0 ? oh NVM its not fixed. Sad
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