[Done] Migration Question

Place to get help with not working mods / modding interface.
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

[Done] Migration Question

Post by TheSAguy »

Hi,

I changed an item from "bi-charcoal" to "wood-charcoal".
I created a migration file: "Bio_Industries_0.17.19.json" with:

Code: Select all

{
  "item":
  [
    ["wood-charcoal", "bi-charcoal"]
  ]
}
I thought that this would prevent the items from being removed when you load a game, but all "bi-charcoal" still got removed.
Is this correct and if so, what is the purpose of the migration script I added?

Thanks.
Last edited by TheSAguy on Wed May 08, 2019 5:37 pm, edited 1 time in total.
User avatar
AmatorPhasma
Fast Inserter
Fast Inserter
Posts: 126
Joined: Sat Aug 05, 2017 8:20 pm
Contact:

Re: Migration Question

Post by AmatorPhasma »

TheSAguy wrote: Wed May 08, 2019 4:16 pm Hi,

I changed an item from "bi-charcoal" to "wood-charcoal".
I created a migration file: "Bio_Industries_0.17.19.json" with:

Code: Select all

{
  "item":
  [
    ["wood-charcoal", "bi-charcoal"]
  ]
}
I thought that this would prevent the items from being removed when you load a game, but all "bi-charcoal" still got removed.
Is this correct and if so, what is the purpose of the migration script I added?

Thanks.
You have to turn this around::

Code: Select all

["bi-charcoal", "wood-charcoal"]
TheSAguy
Smart Inserter
Smart Inserter
Posts: 1456
Joined: Mon Jan 13, 2014 6:17 pm
Contact:

Re: [Done] Migration Question

Post by TheSAguy »

Ah!
Thanks.
Post Reply

Return to “Modding help”