Page 1 of 1

Dumping _G

Posted: Wed Mar 16, 2016 4:52 pm
by Scarjit
Hi,

is there a way to access io, or otherwise dump _G in Factorio ?
Cause im looking for a way to draw the Current Pollution on Screen in multiplayer, but the wiki is not very helpful for me.

Re: Dumping _G

Posted: Wed Mar 16, 2016 5:10 pm
by prg
There's no io module available in Factorio's Lua interpreter, but you can use game.write_file to get data out of Factorio (or maybe simply print() and redirect stdout)

Re: Dumping _G

Posted: Wed Mar 16, 2016 5:26 pm
by Scarjit
thanks that worked :)