Page 1 of 1

AutoplaceControl.hidden = true to hide the control from the map generation screen

Posted: Fri Jan 03, 2025 11:41 pm
by jurgy
I'm trying to get a resource to show up in the Factoriopedia as appearing on a specific planet, but not be present during map gen or ever being naturally spawned on the planet, but instead placed by my mod during runtime

One thing I encountered while trying to accomplish that was that AutoplaceControl.hidden = true doesn't seem to do anything. Can this be implemented to hide the resource controls from the map generation screen?

Thanks!

For clarity, I mean this screen:
01-04-2025, 00-43-42.png
01-04-2025, 00-43-42.png (200.7 KiB) Viewed 426 times

Re: AutoplaceControl.hidden = true to hide the control from the map generation screen

Posted: Sat Jan 04, 2025 4:32 pm
by i142857
But if you don't want it to be auto placed, why do you need an AutoplaceControl? You can define the prototype and just place it with create_entity.

Re: AutoplaceControl.hidden = true to hide the control from the map generation screen

Posted: Sat Jan 04, 2025 9:51 pm
by jurgy
i142857 wrote: Sat Jan 04, 2025 4:32 pm But if you don't want it to be auto placed, why do you need an AutoplaceControl? You can define the prototype and just place it with create_entity.
So Factoriopedia still shows it as appearing on the planet.