Page 2 of 2

Re: [0.17.x] demo-resource-autoplace.lua sucks

Posted: Mon Jun 17, 2019 6:14 am
by Therax
eradicator wrote:
Thu Jun 13, 2019 6:53 am
How would that work in cases where the new resources are derived off the old ones? I.e. as a rough example i need a deravative resource for *every* resource. Let's call it "contaminated xyz-ore". As i need every other ore to exist, data-updates is the earliest place i can create these resources in. Currently contaminated ore isn't being auto-placed for game-mechanic reasons, but i'd prefer if it wasn't completely impossible to auto-place it if i later find that the current mechanic doesn't work.
There could be something called "reindex_autoplace" in core/lualib, and for the relatively rare cases like yours where a mod has to create new resources in data-updates, a mod can call the function. I'd honestly like something like that for barrelling recipes too.