Page 1 of 1

Hide and disable some autoplace-controls

Posted: Fri Oct 07, 2016 11:30 am
by jkeywo
I'd like to be able to hide some autoplace controls and set them to 'none' by default.

The underlying problem is this... I've added some new autoplace-controls for use on different surfaces (new worlds), but I can't stop them from spawning on nauvis.

(I assume there is no existing way to solve this problem... I can't find one myself and viewtopic.php?f=25&t=33683 has had no replies)

Re: Hide and disable some autoplace-controls

Posted: Mon Nov 07, 2016 10:32 pm
by Danielv123
Changing mapgensettings after map creating is very unlikely to happen. RSOs way of working around it is to just delete all the defaults and do it by itself. I guess you won't be able to do that.

Re: Hide and disable some autoplace-controls

Posted: Tue Nov 08, 2016 4:51 am
by aubergine18
It seems somewhat cumbersome to have to delete all the default autoplace settings in data.raw and then create custom logic to manually create them via Lua. Likewise, it's also cumbersome to create a new surface and then have to destroy the autoplaced resources/entities (I've only scratched the surface on how surfaces work so it may already be possible to do this another way?).

Maybe if autoplace settings could define a category (or list?) and then surfaces could define which categories (or category) they support. A bit like how we can restrict certain recipes to certain assembling machines, etc.