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. Compatible out-of-the-box with most overhaul mods, and can be customized to work with any mod. Can be added to existing games.

Utilities
a month ago
1.1 - 2.1
334K

b [Fixed] 1.3.20 migration crash

9 months ago
(updated 9 months ago)

Hello. I've been trying to update my older save, but Milestones gives me error on launch.
I'm updating from Factorio 1.1.80-0 to 2.0.69, and Milestones from 1.3.17 to 1.4.6.

Edit: unfortunately I forgot to finish the title, I am sorry.

Error while running event Milestones::on_configuration_changed
__Milestones__/scripts/milestones_util.lua:200: bad argument #1 of 2 to 'pairs' (table expected, got userdata)
stack traceback:
    [C]: in function 'pairs'
    __Milestones__/scripts/milestones_util.lua:200: in function <__Milestones__/scripts/milestones_util.lua:198>
    (...tail calls...)
    __Milestones__/scripts/milestones_util.lua:432: in function <__Milestones__/scripts/milestones_util.lua:420>
    (...tail calls...)
    __Milestones__/scripts/milestones_util.lua:399: in function 'backfill_completion_times'
    __Milestones__/scripts/migrations.lua:152: in function 'func'
    __flib__/migration.lua:70: in function 'run'
    __flib__/migration.lua:97: in function 'on_config_changed'
    __Milestones__/control.lua:145: in function <__Milestones__/control.lua:143>
8 months ago

Sorry for the delay, I think this should be fixed now.
It was caused by migrating Milestones from a mod version older than 1.3.20.

New response