{"action":"created","issue":{"url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/464","labels_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/464/labels{/name}","comments_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/464/comments","events_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/464/events","html_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/issues/464","id":123988914,"number":464,"title":"Solar panel current output is not updated correctly","user":{"login":"FKuerten","id":2907324,"avatar_url":"https://avatars.githubusercontent.com/u/2907324?v=3","gravatar_id":"","url":"https://api.github.com/users/FKuerten","html_url":"https://github.com/FKuerten","followers_url":"https://api.github.com/users/FKuerten/followers","following_url":"https://api.github.com/users/FKuerten/following{/other_user}","gists_url":"https://api.github.com/users/FKuerten/gists{/gist_id}","starred_url":"https://api.github.com/users/FKuerten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FKuerten/subscriptions","organizations_url":"https://api.github.com/users/FKuerten/orgs","repos_url":"https://api.github.com/users/FKuerten/repos","events_url":"https://api.github.com/users/FKuerten/events{/privacy}","received_events_url":"https://api.github.com/users/FKuerten/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-27T17:25:46Z","updated_at":"2015-12-27T17:48:29Z","closed_at":null,"body":"# Description\r\nThe detailed info text for the SolarPanel is not updated when only the current power changes.\r\nInstead it is only updated whenever the maximum power changes.\r\nChanges to maximum power happen frequently if the sun rotates or ships (but not players) fly between the sun and the panel. \r\nHowever if sun rotation is disabled it is quite likely that the maximum power does not change and thus the detailed text will not be updated.\r\nThis is problematic because the text also displays the current output which will be outdated.\r\n\r\n# To reproduce:\r\n1. Create a new empty world without sun rotation.\r\n2. Add one solar panel, a control panel, and a thruster. \r\n3. Turn thrust override on. \r\n4. Observe that the solar panel does not display any current output.\r\n\r\n# Possible cause / fix\r\nThe info text is updated in the `UpdateDisplay` method in `MySolarPanel` but only if the maximum power changed:\r\n\r\n    public override void UpdateBeforeSimulation100()\r\n    {\r\n        base.UpdateBeforeSimulation100();\r\n        if (CubeGrid.Physics == null)\r\n            return;\r\n\r\n        float maxPowerOutput = SolarComponent.MaxOutput * SolarPanelDefinition.MaxPowerOutput;\r\n\r\n        if (maxPowerOutput != SourceComp.MaxOutput)\r\n        {\r\n            float oldPowerOutput = SourceComp.MaxOutput;\r\n            SourceComp.SetMaxOutput(maxPowerOutput);\r\n            if (oldPowerOutput != maxPowerOutput)\r\n            {\r\n                SourceComp.SetProductionEnabledByType(MyResourceDistributorComponent.ElectricityId, maxPowerOutput != 0f);\r\n                UpdateDisplay();\r\n            }\r\n        }\r\n    }\r\n\r\nThis should be changed to update the text also if the current power changed."},"comment":{"url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/comments/167430718","html_url":"https://github.com/KeenSoftwareHouse/SpaceEngineers/issues/464#issuecomment-167430718","issue_url":"https://api.github.com/repos/KeenSoftwareHouse/SpaceEngineers/issues/464","id":167430718,"user":{"login":"FKuerten","id":2907324,"avatar_url":"https://avatars.githubusercontent.com/u/2907324?v=3","gravatar_id":"","url":"https://api.github.com/users/FKuerten","html_url":"https://github.com/FKuerten","followers_url":"https://api.github.com/users/FKuerten/followers","following_url":"https://api.github.com/users/FKuerten/following{/other_user}","gists_url":"https://api.github.com/users/FKuerten/gists{/gist_id}","starred_url":"https://api.github.com/users/FKuerten/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FKuerten/subscriptions","organizations_url":"https://api.github.com/users/FKuerten/orgs","repos_url":"https://api.github.com/users/FKuerten/repos","events_url":"https://api.github.com/users/FKuerten/events{/privacy}","received_events_url":"https://api.github.com/users/FKuerten/received_events","type":"User","site_admin":false},"created_at":"2015-12-27T17:48:28Z","updated_at":"2015-12-27T17:48:28Z","body":"This might be related to #457 but we can observe this on a listen server (both client and host)."}}