[14.22] Minor Migration error, Possible sollutions
Posted: Thu Apr 20, 2017 2:09 am
Error is either a frozen loading save bar, or an actual error message Entity ID is not in dictionary
Reproduction ->
In mod Create an entity of any type
Create a game and place the entity in the world
Save
Change the entity to a different TYPE
Change mod version
Save won't load or loads and errors depending on how you try to migrate, no migration is just a loading bar freeze
*******
The problem is not that it isn't allowed, its that the only way to fix it is to either remove the mod or change the entity name or destroy() all before updating mods.
The solution that would be easiest as my best guess would be allowing us to migrate an entity to nothing (remove it from the save all together) allowing us to keep the same entity name for a different type
******
migration.json
{
"entity":
[
["my-name", ""]
]
}
To reproduce easily if needed
https://mods.factorio.com/mods/Nexela/N ... /downloads
download and install 1.7.0
build and place a roboport-interface
save
update to 1.7.3
Save won't load (stuck on loading bar)
Workaround for now is use a different entity name, internal migration will remove the old one
Reproduction ->
In mod Create an entity of any type
Create a game and place the entity in the world
Save
Change the entity to a different TYPE
Change mod version
Save won't load or loads and errors depending on how you try to migrate, no migration is just a loading bar freeze
*******
The problem is not that it isn't allowed, its that the only way to fix it is to either remove the mod or change the entity name or destroy() all before updating mods.
The solution that would be easiest as my best guess would be allowing us to migrate an entity to nothing (remove it from the save all together) allowing us to keep the same entity name for a different type
******
migration.json
{
"entity":
[
["my-name", ""]
]
}
To reproduce easily if needed
https://mods.factorio.com/mods/Nexela/N ... /downloads
download and install 1.7.0
build and place a roboport-interface
save
update to 1.7.3
Save won't load (stuck on loading bar)
Workaround for now is use a different entity name, internal migration will remove the old one