Dumping _G

Place to get help with not working mods / modding interface.
Scarjit
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 16, 2016 3:56 pm
Contact:

Dumping _G

Post 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.
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Dumping _G

Post 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)
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Scarjit
Manual Inserter
Manual Inserter
Posts: 2
Joined: Wed Mar 16, 2016 3:56 pm
Contact:

Re: Dumping _G

Post by Scarjit »

thanks that worked :)
Post Reply

Return to “Modding help”