Hello,
Is there a way to generate an export of the content of data.raw ?
I would like to generate the same type of output than this one : https://gist.githubusercontent.com/Bilk ... 3c1ae7/raw
I just need to do it with my mod activated, so I have also access to the data of my mod.
Thank you
Generate an export of data.raw?
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Generate an export of data.raw?
Code: Select all
log(serpent.block(data.raw))
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Generate an export of data.raw?
Without sorting:
Code: Select all
log(serpent.block(data.raw, {sortkeys=false}))
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Generate an export of data.raw?
The example linked by the @OP is clearly sorted.darkfrei wrote: Wed Nov 06, 2019 6:12 pmWithout sorting:https://github.com/pkulchenko/serpentCode: Select all
log(serpent.block(data.raw, {sortkeys=false}))
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Re: Generate an export of data.raw?
There is also the part where it says the mod name used to generate it in the first line.
I'm an admin over at https://wiki.factorio.com. Feel free to contact me if there's anything wrong (or right) with it.
- eradicator
- Smart Inserter
- Posts: 5211
- Joined: Tue Jul 12, 2016 9:03 am
- Contact:
Re: Generate an export of data.raw?
Very sharp of you to notice . Now hopefully nobody looks at the url ... /gotta go nowBilka wrote: Wed Nov 06, 2019 7:02 pmThere is also the part where it says the mod name used to generate it in the first line.
Author of: Belt Planner, Hand Crank Generator, Screenshot Maker, /sudo and more.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.
Mod support languages: 日本語, Deutsch, English
My code in the post above is dedicated to the public domain under CC0.