Skip to content

Power & solar tracking

Keep your solar panel facing the sun

Reviewed September 28, 2026 · Public reference build 441ad76; check your generator’s in-game docs

The short answer

Set the panel tilt to 90 minus the sun’s elevation, then keep updating it in the Solar Generator’s own script. For a sun elevation of 60°, the target panel tilt is 30°.

Check which tilt command your installed build lists before copying the script below. Zero output at night is not a broken tracker, and falling efficiency near the horizon is not by itself proof of a script error.

A 60-degree sun elevation needs a 30-degree panel tiltIllustrative side view. The incoming sunlight is perpendicular to the panel when elevation plus tilt equals 90 degrees.Sun 60°60°30°Panel 30°
Angle example—not an in-game screenshot. 60° + 30° = 90°; this illustrates alignment, not guaranteed power at every time of day.
On this page

1. Open the generator—not the uplink script

Code: Terraform Power screen with solar panel tilt, sun elevation, efficiency and battery charge
Compare tilt, sun elevation and efficiency in the Power screen. Manage opens the device controls. Official Steam screenshot; displayed values are examples.Open full image ↗

If no generator is deployed, follow the opening objective to buy the Solar Generator and Battery from the Shop and deploy them through Inventory. Then open Infrastructure → Power and use Manage beside the generator.

The general editor button can return you to a different script. Confirm the script belongs to the panel you want to control: the example uses self, meaning its host generator, not whichever component you last looked at.

Open that generator’s docs or autocomplete and look up its tilt setter. If your UI differs, use its current device-management entry rather than editing the old uplink.py file.

2. Run the in-game tracker

Check the method name first. The public reference for build 441ad76 lists set_tilt(degrees). An older tutorial uses set_tilt_degrees(degrees). That discrepancy does not establish when an API changed. Use the spelling your generator actually documents; do not run both calls.

In-game script: paste this into the Solar Generator’s script only if its docs list set_tilt. This changes that panel’s angle; it does not buy or deploy equipment.

clock = get_component("clock")

while True:
    elevation = clock.get_elevation()
    self.set_tilt(90 - elevation)

If your build instead lists set_tilt_degrees, replace only the last line with self.set_tilt_degrees(90 - elevation). Keep the clock reading inside the loop: a value read only once cannot follow a moving sun.

Use capital True and indent the two loop lines. First resolve any missing-component, unknown-method, or syntax error. A correct formula cannot help if the script never reaches the tilt call.

3. Check the angle before judging the power

Illustrative daylight readings—not measurements from your save
Sun elevationTarget tiltCalculation
30°60°90 − 30
60°30°90 − 60
90°0° (flat)90 − 90

Compare the current clock elevation with the panel’s angle. The referenced API exposes tilt() and get_output() for angle and watts; use your build’s equivalent readouts if it differs.

The useful check is that the script stays running, the angle follows changing daylight elevation, and the generator produces power when sunlight is available. You do not need to rewrite the loop just because output varies across the day.

Zero output or less than 100%? Choose the right fix

  • Night: the reference documents zero solar output. Check the clock’s phase and battery reserve; pointing the panel differently will not create sunlight.
  • A stopped script or an unchanged angle: check the first console error, the script’s host, the setter name, and whether the clock read is inside the loop.
  • Low output near sunrise or sunset: September 17–19 players reported efficiency falling toward the horizon even with tracking. That is a community observation, not a verified formula for your build. Check alignment at a brighter part of the day before treating it as a failed script.
  • The panel works but the base still loses energy: tracking and supplying the whole base are different checks. Inspect total demand and stored energy before assuming the angle calculation is wrong.

No source here establishes an exact overnight battery count, a universal charging time, or 100% efficiency all day. Size storage from your own load rather than copying an unrelated base’s numbers.

See the editor and solar automation in context

Watch the game

Use Code to Terraform Distant Planets

Kerbo’s Early Access first look shows the game’s editor and solar automation. Use it to recognize the interface; use your installed generator’s docs for method names. It is not a step-by-step proof of the script above.

By Kerbo

Return to the tracker steps →

Playing connects to YouTube. Open on YouTube ↗

Sources for this guide