Migrating technology to a new name

Place to get help with not working mods / modding interface.
User avatar
PantherX
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Sep 03, 2016 6:26 am
Contact:

Migrating technology to a new name

Post 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?

Nexela
Smart Inserter
Smart Inserter
Posts: 1828
Joined: Wed May 25, 2016 11:09 am
Contact:

Re: Migrating technology to a new name

Post by Nexela »

in your migration.lua you could check if recipe.enabled then research tech (Assuming of course your tech has a recipe unlock)

User avatar
PantherX
Long Handed Inserter
Long Handed Inserter
Posts: 53
Joined: Sat Sep 03, 2016 6:26 am
Contact:

Re: Migrating technology to a new name

Post by PantherX »

Hmm thanks, I had tried variations of that but have finally managed to get it working!

Post Reply

Return to “Modding help”