Resource Spawner Overhaul

by orzelek

Makes resources more sparse than base game. You will need to use trains much earlier to get resources. Game will be more difficult especially with higher enemy settings.

Tweaks
a day ago
0.14 - 2.0
143K
Environment

g Placement not affected by resource collision box

7 years ago
(updated 7 years ago)

The vanilla autoplace controls respect the collision box of a resource. Increasing this is a nice way of spacing out resources. I know that surface.create_entity does respect collision boxes, but for some reason your spawn_resource_ore doesn't even though it uses the same function. Ideas?

7 years ago

(edited)

7 years ago

Ok, scratch that. surface.create_entity does NOT respect collision boxes.. off to the API bugs section :D

7 years ago
(updated 7 years ago)

It is actually my problem I think.
What you see happens because code checks first for all resource piles if they can be placed at rolled locations then it places them. So resource to resource collisions are not checked by me.
Atm I'd rather not fix it - it's a rare case and it would double amount of collision checks. And then I would need to handle somehow what should happen if half of resource patch did not spawn - you would end up with much less ore in patch most likely.

New response