Page 1 of 1

Generate an export of data.raw?

Posted: Wed Nov 06, 2019 4:15 pm
by Perlin
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

Re: Generate an export of data.raw?

Posted: Wed Nov 06, 2019 6:07 pm
by eradicator

Code: Select all

log(serpent.block(data.raw))

Re: Generate an export of data.raw?

Posted: Wed Nov 06, 2019 6:12 pm
by darkfrei
eradicator wrote: Wed Nov 06, 2019 6:07 pm

Code: Select all

log(serpent.block(data.raw))
Without sorting:

Code: Select all

log(serpent.block(data.raw, {sortkeys=false}))
https://github.com/pkulchenko/serpent

Re: Generate an export of data.raw?

Posted: Wed Nov 06, 2019 6:54 pm
by eradicator
darkfrei wrote: Wed Nov 06, 2019 6:12 pm
eradicator wrote: Wed Nov 06, 2019 6:07 pm

Code: Select all

log(serpent.block(data.raw))
Without sorting:

Code: Select all

log(serpent.block(data.raw, {sortkeys=false}))
https://github.com/pkulchenko/serpent
The example linked by the @OP is clearly sorted.

Re: Generate an export of data.raw?

Posted: Wed Nov 06, 2019 7:02 pm
by Bilka
eradicator wrote: Wed Nov 06, 2019 6:54 pm The example linked by the @OP is clearly sorted.
There is also the part where it says the mod name used to generate it in the first line.

Re: Generate an export of data.raw?

Posted: Wed Nov 06, 2019 7:29 pm
by eradicator
Bilka wrote: Wed Nov 06, 2019 7:02 pm
eradicator wrote: Wed Nov 06, 2019 6:54 pm The example linked by the @OP is clearly sorted.
There is also the part where it says the mod name used to generate it in the first line.
Very sharp of you to notice :lol:. Now hopefully nobody looks at the url ... /gotta go now