Milestones

by Wiwiweb

Keep track of your progress in a fun way by finding out how fast you created key items. Look back on your factory's history, compare with your friends, or challenge yourself. Supports any list of items and comes with presets for popular big mods. Can be added to existing games.

Utilities
9 days ago
1.1 - 2.0
257K

g Exporting uses wrong syntax

24 days ago
(updated 24 days ago)

To reproduce: Export settings, copy paste into a lua code checker, immediate errors. Ignoring the errors and attempting to add the preset via custom mod crashes on load.

The issue seems to be exporting puts double quotes around everything, and the colons instead of equal signs? For example what should look like:
[
{type="group", name="foobar"},
{type="item", name="foo", quantity=[number], next="x[number]", quality="bar"}
]
Instead is printed like:
[
{"type":"group", "name":"foobar"},
{"type":"item", "name":"foo", "quantity":1, "next":"x[number]", "quality":"bar"}
]

Took me far longer than I'd like to admit to sort out what was incorrect with the preset I was trying to import. It likely wouldn't be a huge fix, but would save the clueless end user a lot of time fixing their code.

(clueless referring to me, probably should actually learn lua syntax at some point)

24 days ago

Thanks for the report!
The export/import function uses JSON rather than Lua. I can see the confusion. I'll think about whether it's possible to change it.

24 days ago

Oh! Well in that case, it may not be an issue at all. It would be nice for it to be standardized to reduce confusion, but if it's working as intended then no worries.

New response