EarendelDevelopers / factorio-mods

This is a public repository for tracking issues with Earendel's factorio mods.
19 stars 3 forks source link

Space elevator power accumulation goes negative #263

Closed amoscao closed 1 year ago

amoscao commented 1 year ago

Disconnecting constructed space elevator results in Energy: X MJ / 10,000MJ, where X continues to decrease past 0.

Steps to reproduce:

  1. Set up space elevator with power connected to source in orbit and sink on planet surface. Space elevator settings prior to disconnect: image

  2. Disconnect space elevator from all power in orbit, allowing space elevator to start discharging accumulator: image

  3. Elevator will continue to discharge into a negative value: image

BurninSun commented 1 year ago

Gave this some testing. The electricity transfer doesn't matter. Its just after the elevator is fully built and functional, it has a scripted power draw. That power draw doesn't check for < 0 and just keeps going when disconnected from a power grid. Do we want the cable to break or just stop draining power when it hits 0? It already stops being usable by trains at 2500MJ and players at 0.

Wiwiweb commented 1 year ago

Fixed in 0.6.102