Page 1 of 1
[solved] How to match resource placement with terrain?
Posted: Thu Sep 29, 2016 7:22 am
by aubergine18
Is there a way to tell the chunk generator to only place a resource on specific terrain?
I've got a 'clay' resource that I want autoplaced on the map, but ideally only on 'dirt-dark' terrain.
Re: How to match resource placement with terrain?
Posted: Thu Sep 29, 2016 4:21 pm
by LuziferSenpai
I think the only way to get that is by placing it with control.lua ^^
Re: How to match resource placement with terrain?
Posted: Thu Sep 29, 2016 4:27 pm
by Ranakastrasz
I would suggest looking a the Homeworld Mod.
I seem to recall it filling the desert with sand ore.
---
I would increase resource frequency significantly, and then via script, on chunk generation, delete any offending resource patches.
Re: How to match resource placement with terrain?
Posted: Thu Sep 29, 2016 5:02 pm
by aubergine18
Ranakastrasz wrote:I would suggest looking a the Homeworld Mod.
Excellent info, it does indeed restrict to sand in that mod, here's how:
Code: Select all
tile_restriction = {"sand", "sand-dark"},
So I can do same in my mod. Problem solved! Thanks Ranakastrasz!

Re: [solved] How to match resource placement with terrain?
Posted: Thu Sep 29, 2016 5:08 pm
by Ranakastrasz
Oh. Really? I didn't expect that. Interesting to know.
Thought it was a script.