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

Things that has been reported already before.
nskobelevs
Manual Inserter
Manual Inserter
Posts: 2
Joined: Fri Jun 07, 2019 5:36 pm
Contact:

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

Post 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
Rseding91
Factorio Staff
Factorio Staff
Posts: 14627
Joined: Wed Jun 11, 2014 5:23 am
Contact:

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

Post 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.
If you want to get ahold of me I'm almost always on Discord.
Post Reply

Return to “Duplicates”