View previous topic :: View next topic |
Author |
Message |
Meiyoh Master Cheater Reputation: 1
Joined: 14 Mar 2015 Posts: 400
|
Posted: Tue Jul 30, 2019 3:39 pm Post subject: Kill all timers script to prevetn CE from hanging |
|
|
Anyway to kill ALL damn timers fucking thing just enabled a script itself when i opened it and it started poping non stop messages about error causing me to loose all my recent work .
_________________
I am the forgotten one the dead one. |
|
Back to top |
|
|
ParkourPenguin I post too much Reputation: 140
Joined: 06 Jul 2014 Posts: 4297
|
Posted: Tue Jul 30, 2019 3:54 pm Post subject: |
|
|
Hook timer creation and make that functionality yourself.
e.g. this code I wrote a while ago stops a timer on an error (haven't tested this recently; caveat emptor):
Code: | createTimer_old = createTimer_old or createTimer
timer_hook_mt = {
__index = function(self, k)
return self.rawtimer[k]
end,
__newindex = function(self, k, v)
if string.lower(k) == 'ontimer' then
self.rawtimer.OnTimer = function(...)
local success, msg = pcall(v, ...)
if not success then
self.rawtimer.Enabled = false
error(msg)
end
end
else
self.rawtimer[k] = v
end
end,
}
createTimer = function(...)
return setmetatable({ rawtimer = createTimer_old(...) }, timer_hook_mt)
end |
_________________
I don't know where I'm going, but I'll figure it out when I get there. |
|
Back to top |
|
|
FreeER Grandmaster Cheater Supreme Reputation: 53
Joined: 09 Aug 2013 Posts: 1091
|
Posted: Tue Jul 30, 2019 4:07 pm Post subject: |
|
|
plus having an automatic backup script can help, though it's not a bad feature/extension request.
_________________
|
|
Back to top |
|
|
Meiyoh Master Cheater Reputation: 1
Joined: 14 Mar 2015 Posts: 400
|
Posted: Wed Jul 31, 2019 12:33 am Post subject: |
|
|
thank you both of you!
You are the people who help others and more shall be like you!
_________________
I am the forgotten one the dead one. |
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25294 Location: The netherlands
|
Posted: Wed Jul 31, 2019 12:51 am Post subject: |
|
|
if you mean it was printing text on the screen making it impossible to click anywhere then just turn of show on print 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 |
|
|
Meiyoh Master Cheater Reputation: 1
Joined: 14 Mar 2015 Posts: 400
|
|
Back to top |
|
|
|