Unity Engine 'crashing on closing' if there's a table with an active AoB script

Anything Cheat Engine related, bugs, suggestions, helping others, etc..
Post Reply
Algester
Expert Cheater
Expert Cheater
Posts: 291
Joined: Sun Mar 04, 2018 9:48 am
Reputation: 63

Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by Algester »

So I have been wondering why are unity engine built games seemingly feel like 'crashing' when you close the game with a table attached to the game where in the table said AoB scan script has been activated during the session

I have noticed this in Akiba's Trip 1, LOST EPIC and Mini Metro

User avatar
PeaceBeUponYou
Expert Cheater
Expert Cheater
Posts: 75
Joined: Sat Dec 12, 2020 8:09 am
Reputation: 125

Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by PeaceBeUponYou »

this happens when mono dll is still injected but you try to close the game. To prevent it click Mono->Activate Mono Features and make sure it is unchecked

gideon25
Table Makers
Table Makers
Posts: 1389
Joined: Mon Mar 20, 2017 1:42 am
Reputation: 2328

Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by gideon25 »

PeaceBeUponYou wrote:
Wed Aug 11, 2021 2:54 pm
this happens when mono dll is still injected but you try to close the game. To prevent it click Mono->Activate Mono Features and make sure it is unchecked
Alternately what ive been doing lately is just closing cheat engine (which I think detaches mono) before closing the game. Seems to work MOST of the time (with some games maybe not).

gideon25
Table Makers
Table Makers
Posts: 1389
Joined: Mon Mar 20, 2017 1:42 am
Reputation: 2328

Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by gideon25 »

PeaceBeUponYou wrote:
Wed Aug 11, 2021 2:54 pm
this happens when mono dll is still injected but you try to close the game. To prevent it click Mono->Activate Mono Features and make sure it is unchecked
Hey check out what I just found over in this script:
viewtopic.php?t=15366

Code: Select all

function onMemRecPreExecute(memoryrecord, newstate)
  if memoryrecord.Type == vtAutoAssembler then LaunchMonoDataCollector()end
end
function onMemRecPostExecute(memoryrecord, newState, succeeded )
  if memoryrecord.Type == vtAutoAssembler then
    miMonoActivateClick(sender)
  end
end
I added it to the main top script of a couple of my unity games, played game, activated other scripts and then just closed out the game and BAM game closes normally without hanging or anything! I think Im going to add this to all my unity tables from now on!

User avatar
PeaceBeUponYou
Expert Cheater
Expert Cheater
Posts: 75
Joined: Sat Dec 12, 2020 8:09 am
Reputation: 125

Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by PeaceBeUponYou »

yes it is better to do if (monopipe) then miMonoActivateClick() end at the end of lua scripts than monopipe=nil, cuz i dont think making monopipe nill actually ejects the dll

Eric
Hall of Famer
Hall of Famer
Posts: 174
Joined: Thu Mar 02, 2017 11:01 pm
Reputation: 90

Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script

Post by Eric »

Code: Select all

MainForm.registerCloseCallback(function(sender, ca)
  if monopipe then
    monopipe.destroy()
    monopipe=nil
  end

  return ca
end)

Post Reply

Who is online

Users browsing this forum: vithai