Page 1 of 1

[0.17.47] Lua: Crash when call a function that overrides print

Posted: Fri Jun 07, 2019 5:53 pm
by nskobelevs
Lua is not my language so the title isn't perfect.

How to reproduce:
/c print = game.player.print
/c print("Whatever")

Apologies if it's my lack of Lua knowledge that's causing this and not game code.

Log:
factorio-current.log
(17.35 KiB) Downloaded 95 times

Re: [0.17.47] Lua: Crash when call a function that overrides print

Posted: Fri Jun 07, 2019 6:26 pm
by Rseding91
Thanks for the report. That is a known crash and the fix is: don't do that.

I could "fix" it so it doesn't crash but it will slow literally the entire mod API and all usage of it down just so this one scenario doesn't crash.

So, it stays like that.