Joined: 25 Jan 2006 Posts: 8517 Location: 127.0.0.1
Posted: Tue Mar 19, 2019 1:58 pm Post subject:
If you are getting a stack overflow you are overriding incorrectly or causing a loop. Make sure that if you are re-calling an override that you use the original call and not your new override. For example:
Code:
local orig_print = print;
print = function(str)
-- Make sure to call orig_print here instead of you want to still print!
orig_print('[Override] ' .. tostring(str));
end
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