One thing that is very lacking in the modding API is the way people have to make power generation. Either make a solar panel, add a new fuel/way to heat up water, or use a crap ton of scripts to modify how a steam engine-type functions. What I request is a new kind of prototype for fuel arrays, and an entity-type for a generator that can use any fuel array.
First off, fuel prototypes. This would more or less be a list of different items or fluids, depending on what you want to use, with values on how long they last. Any burner-type machines can use this as well, and maybe a "hybrid" type of energy where they need both a fuel set and energy. Next, make a basic "generator" entity type that can use any of these fuel arrays to generate power.
Please add this. There are very few types of power in vanilla, and at least adding the functionality for mods to make new power sources easily.
Support for creating new types of generators
- aubergine18
- Smart Inserter
- Posts: 1264
- Joined: Fri Jul 22, 2016 8:51 pm
- Contact:
Re: Support for creating new types of generators
I like the idea of fuel categories - lists of stuff that provide 'energy' to other entities (such as generators). I wouldn't limit it to just powering generators though - maybe also allow such fuels to power machines, vehicles, etc?
Better forum search for modders: Enclose your search term in quotes, eg. "font_color" or "custom-input" - it prevents the forum search from splitting on hypens and underscores, resulting in much more accurate results.
- bobingabout
- Smart Inserter
- Posts: 7352
- Joined: Fri May 09, 2014 1:01 pm
- Contact:
Re: Support for creating new types of generators
I know they added the power creation unit thing, but as far as I know, it just provides a constant power source. So it's okay if you want to create say, a building type similar to the fusion reactor in your power suit, but as something that consumes fuel, or is depending on a condition, such as wind, it just doesn't work.
Re: Support for creating new types of generators
You can adjust the amount of power it generates runtime. In fact you can adjust everything about it runtime: power production, consumption, output flow limit, input flow limit, buffer size, and so on.bobingabout wrote:I know they added the power creation unit thing, but as far as I know, it just provides a constant power source. So it's okay if you want to create say, a building type similar to the fusion reactor in your power suit, but as something that consumes fuel, or is depending on a condition, such as wind, it just doesn't work.
If you want to get ahold of me I'm almost always on Discord.