Page 1 of 1
Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Wed Aug 11, 2021 2:29 pm
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
Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Wed Aug 11, 2021 2:54 pm
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
Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Thu Aug 12, 2021 12:59 am
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).
Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Thu Aug 19, 2021 3:02 pm
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!
Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Fri Aug 20, 2021 7:33 am
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
Re: Unity Engine 'crashing on closing' if there's a table with an active AoB script
Posted: Mon Aug 30, 2021 2:44 pm
by Eric
Code: Select all
MainForm.registerCloseCallback(function(sender, ca)
if monopipe then
monopipe.destroy()
monopipe=nil
end
return ca
end)