Command to change the power output of solar panels?

Don't know how to use a machine? Looking for efficient setups? Stuck in a mission?
User avatar
MalcolmCooks
Filter Inserter
Filter Inserter
Posts: 253
Joined: Mon Apr 06, 2015 8:32 pm
Contact:

Command to change the power output of solar panels?

Post by MalcolmCooks »

I would like to know if it is possible using the command line to change the power output of solar panels? I have seen that the command line can be very flexible but I don't know enough to try work it out myself
User avatar
prg
Filter Inserter
Filter Inserter
Posts: 947
Joined: Mon Jan 19, 2015 12:39 am
Contact:

Re: Command to change the power output of solar panels?

Post by prg »

You'd need to change the solar panel's prototype definition for that, which is read-only during the game. Something like

Code: Select all

data.raw["solar-panel"]["solar-panel"].production = "100GW"
in a data-updates.lua should do it.
Automatic Belt (and pipe) Planner—Automate yet another aspect of constructing your factory!
Post Reply

Return to “Gameplay Help”