Page 1 of 1

Migrating technology to a new name

Posted: Sun May 14, 2017 12:56 am
by PantherX
When using a JSON migration file to migrate a technology it doesn't seem to migrate the "researched" status of that technology. Is this the expected behaviour?

Code: Select all

	"technology":
	[
		["tech-name", "new-tech-name"]
	]
I understand that I can also provide a lua script to research items based upon enabled recipes, etc, but my recipes have also been renamed in this version so there's nothing I can attach to, unless I'm missing something?

Re: Migrating technology to a new name

Posted: Sun May 14, 2017 2:48 am
by Nexela
in your migration.lua you could check if recipe.enabled then research tech (Assuming of course your tech has a recipe unlock)

Re: Migrating technology to a new name

Posted: Sun May 14, 2017 8:04 am
by PantherX
Hmm thanks, I had tried variations of that but have finally managed to get it working!