Fixed effect for beacons as prototype

Place to ask discuss and request the modding support of Factorio. Don't request mods here.
User avatar
Dustine
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Tue Mar 31, 2015 4:52 pm
Contact:

Fixed effect for beacons as prototype

Post by Dustine »

What I want to do: A beacon entity that projects a pollution-clearing effect by itself, not requiring (or allowing) modules to do so.

As in, how you can do fixed_recipe on assemblers to lock them into one specific recipe that the player can't change, I'd hope that there would be a prototype property to fix beacons to project effect(s) from the get-go, without using modules.

Right now to replicate this effect I'd had to insert module items inside this beacon entity when placed on the world, somehow avoid players from being able to take the modules out (disable interface, no idea how to go about inserters), and destroy the beacon's inventory when you deconstruct or remove it. Possible in script but very hacky.

Final note, I don't mean using allowed_effects to filter what effects this beacon entity can emit, I mean outright projecting a predetermined effect (or several, I only need one for my usecase). As if you crafted the module into the beacon before placing it, if that makes sense?
Rseding91
Factorio Staff
Factorio Staff
Posts: 15875
Joined: Wed Jun 11, 2014 5:23 am
Contact:

Re: Fixed effect for beacons as prototype

Post by Rseding91 »

Is there a reason you don't use an entity with a negative pollution value in the prototype? Similar to how trees work?
If you want to get ahold of me I'm almost always on Discord.
User avatar
Dustine
Long Handed Inserter
Long Handed Inserter
Posts: 60
Joined: Tue Mar 31, 2015 4:52 pm
Contact:

Re: Fixed effect for beacons as prototype

Post by Dustine »

Rseding91 wrote:Is there a reason you don't use an entity with a negative pollution value in the prototype? Similar to how trees work?
Because as far as I know pollution, once created, counts for the evolution factor. And that's okay, but it means I don't want to clear pollution, but reduce how much of it is produced.
Osmo
Long Handed Inserter
Long Handed Inserter
Posts: 94
Joined: Wed Oct 23, 2024 12:08 pm
Contact:

Re: Fixed effect for beacons as prototype

Post by Osmo »

base_effect on a beacon would be great since its already a thing on crafting machines
protocol_1903
Filter Inserter
Filter Inserter
Posts: 270
Joined: Fri Sep 09, 2022 4:33 pm
Contact:

Re: Fixed effect for beacons as prototype

Post by protocol_1903 »

Dustine wrote: Fri Jun 22, 2018 1:54 pm Right now to replicate this effect I'd had to insert module items inside this beacon entity when placed on the world, somehow avoid players from being able to take the modules out (disable interface, no idea how to go about inserters), and destroy the beacon's inventory when you deconstruct or remove it. Possible in script but very hacky.
You can disable inserters by using the flags "disable-automatic-item-insertion" and "disable-automatic-item-removal"

If nothing else, the script shouldn't be too hacky.
If you need to reach me, message me on discord.

I make qol mods. Check them out, maybe.
https://mods.factorio.com/user/protocol_1903
If you have a mod idea, I can look into it.
Post Reply

Return to “Modding interface requests”