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

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
jurgy
Inserter
Inserter
Posts: 28
Joined: Wed Feb 27, 2019 5:55 pm
Contact:

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

Post 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 316 times
i142857
Inserter
Inserter
Posts: 22
Joined: Mon Nov 04, 2024 9:56 am
Contact:

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

Post 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.
jurgy
Inserter
Inserter
Posts: 28
Joined: Wed Feb 27, 2019 5:55 pm
Contact:

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

Post 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.
Post Reply

Return to “Modding interface requests”