mod-settings.dat -> mod-settings.json (not in C# %) )

Place to post guides, observations, things related to modding that are not mods themselves.
Post Reply
betrok
Fast Inserter
Fast Inserter
Posts: 101
Joined: Wed Feb 28, 2018 12:08 pm
Contact:

mod-settings.dat -> mod-settings.json (not in C# %) )

Post by betrok »

Github
Basically, drop binary into mod directory and run it to obtain mod-settings.json from current mod-settings.dat.
Factorio converts mod-settings.json to .dat at startup if the .dat file does not exist.

Btw there was a legit reason why file format was changed, conversion back and forth might result in difference in float values in some cases.

User avatar
steinio
Smart Inserter
Smart Inserter
Posts: 2633
Joined: Sat Mar 12, 2016 4:19 pm
Contact:

Re: mod-settings.dat -> mod-settings.json (not in C# %) )

Post by steinio »

A lua based converter would be nice, but yours is also nice because of readable code.

Which fool would download a binary from the internet without knowing what it does ;)
Image

Transport Belt Repair Man

View unread Posts

Post Reply

Return to “Modding discussion”