[1.1.26] serpent.dump fails to dump recipe table
Posted: Sat Mar 06, 2021 6:34 pm
Factorio 1.1.26
/c game.player.print ( serpent.dump ( ( game.player.force.recipes ) )
Cannot execute command: Error: (serpent):85 bad argument #3 of 3 to '_ _index' (string expected, got number)
Probably not what I want to do as it will scroll a hundred lines off the screen. I want the output written to a file.
But I'm just here to report a bug. I'll figure out the correct LUA later.
,
EDIT: This is not a vanilla game, it's got a pile o' mods, so it's possible the mods are causing this? But supposedly this should be able to dump "whatever" is in any table?
/c game.player.print ( serpent.dump ( ( game.player.force.recipes ) )
Cannot execute command: Error: (serpent):85 bad argument #3 of 3 to '_ _index' (string expected, got number)
Probably not what I want to do as it will scroll a hundred lines off the screen. I want the output written to a file.
But I'm just here to report a bug. I'll figure out the correct LUA later.
,
EDIT: This is not a vanilla game, it's got a pile o' mods, so it's possible the mods are causing this? But supposedly this should be able to dump "whatever" is in any table?