LuaGameScript.write_file during data.lua

User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Thu Jul 19, 2018 1:27 am
Contact:

LuaGameScript.write_file during data.lua

Post by kizrak »

Hello Engineers!

I would like something like LuaGameScript.write_file but available during data.lua prototyping phase. I'm aware of log() but that has a lot of noise.

Thank you,
-Kizrak
User avatar
DaveMcW
Smart Inserter
Smart Inserter
Posts: 3749
Joined: Tue May 13, 2014 11:06 am
Contact:

Re: LuaGameScript.write_file during data.lua

Post by DaveMcW »

Related discussion: viewtopic.php?t=71506
User avatar
kizrak
Long Handed Inserter
Long Handed Inserter
Posts: 77
Joined: Thu Jul 19, 2018 1:27 am
Contact:

Re: LuaGameScript.write_file during data.lua

Post by kizrak »

DaveMcW wrote: Sat May 16, 2020 10:09 pm Related discussion: viewtopic.php?t=71506
Thanks so much!

Re: Fixing data stage spam
Bilka
Factorio Staff
Factorio Staff
Posts: 3619
Joined: Sat Aug 13, 2016 9:20 am
Contact:

Re: LuaGameScript.write_file during data.lua

Post by Bilka »

This was added as LuaHelpers::write_file.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
Post Reply

Return to “Implemented mod requests”