demipixel / factorio-generators

Generators for blueprints like outposts in factorio, used by autotorio.com
51 stars 14 forks source link

Include Solar option #50

Open PirateIncognito opened 5 years ago

PirateIncognito commented 5 years ago

Add option to include solar+accumulator farm for outpost. Useful for truly remote outposts that you don't want to run power to.

Power requirement calculations are simple enough.

I would be willing to give it a shot if you point in the right direction (i.e. which file should the code segment be located?)

demipixel commented 5 years ago

Presumably you would create a new file called solar.js or something in /tools/lib so that both oilOutpost and outpost (ore) could use them. That being said, the bigger issue with this is the customizability (people would likely want a max width/max height, you'd have to be able to set which side of the outpost the solar panels were on, and possibly other things like whether to use substations or medium electric poles). You're free to add it if you'd like, but the main reason I avoid these kinds of ideas is because it's already easy enough to take a blueprint of solar panels/accumulators and plop 4 of em down next to your outpost and call it a day.