View previous topic :: View next topic |
Author |
Message |
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Sat Aug 24, 2019 10:28 am Post subject: Automatically attach to proccesses name "X" |
|
|
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 |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sat Aug 24, 2019 1:09 pm Post subject: |
|
|
open the lua engine or otherwise run the lua code system("taskkill /im " .. process .. " /f")
_________________
|
|
Back to top |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Sat Aug 24, 2019 3:48 pm Post subject: |
|
|
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 |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sat Aug 24, 2019 4:45 pm Post subject: |
|
|
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)
_________________
|
|
Back to top |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Sat Aug 24, 2019 8:13 pm Post subject: |
|
|
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 |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Sun Aug 25, 2019 11:14 am Post subject: |
|
|
Any other ideas? Is this a bug that should be reported to the developers?
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Sun Aug 25, 2019 11:53 am Post subject: |
|
|
/shrug DB and a few other contributors check the forums so maybe they'll have a better answer
_________________
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25283 Location: The netherlands
|
Posted: Sun Aug 25, 2019 12:06 pm Post subject: |
|
|
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 |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Sun Aug 25, 2019 3:05 pm Post subject: |
|
|
What does mono mean, it could be? :shrug:
|
|
Back to top |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Mon Aug 26, 2019 9:08 am Post subject: |
|
|
FreeER, any idea what he meant about mono?
|
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
|
Back to top |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Tue Aug 27, 2019 8:45 am Post subject: |
|
|
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 |
|
|
theboy181 Advanced Cheater Reputation: 0
Joined: 26 Jan 2018 Posts: 90
|
Posted: Fri Aug 30, 2019 9:16 pm Post subject: |
|
|
Was something changed that fixed this in 7.0 ? oh NVM its not fixed.
|
|
Back to top |
|
|
|