Jump to content

Electric charge doesn't add up


Recommended Posts

Version 0.25.0.642 Win32

What Happens: Electric charge doesn't add up

Mods / Add-Ons: All Stock

Steps to Replicate:

A completely fresh installation of KSP

Build a rocket capable of orbit. The final stage consists of an octo2, four z-100 batteries tweaked to be empty and disabled for launch and 1 ox-stat panel

Launch to orbit

point the ox-stat towards the sun until its sun exposure is 1 and charge/sec=0.75 and stabilize by using warp for a second

note game time

right click a battery and enable it

observe charge rate shown in resources

wait till battery full and observe game time.

Both the charge rate displayed and the one calculated from the time taken to fill the battery will be less than the expected value. I expect 0.75 - 0.03 = 0.72. I observe 0.63.

I created a thread in gameplay to investigate variations on this and we were unable to come up with an explanation.http://forum.kerbalspaceprogram.com/threads/97565-Electric-charge-doesn-t-add-up

Link to comment
Share on other sites

I believe this may be because the produced charge (0.75) is split between all the enabled charge storages in the same ratio as their maximum capacities regardless of their current contents, so, when you have the core with 10 storage and a battery with 100 storage, 1/11th of the produced charge goes to the probe core even though it is full. This can be easily tested by changing the types and number of enabled charge storages on the vessel, e.g. if you wait until the one Z-100 is full and then turn on another one it will charge at approx. half the speed (0.75*100/210 should go to charging it).

Edit: Actually, it is considerably more complex than this. I think I understand what is happening and will try to describe the details shortly...

Edited by Padishar
Link to comment
Share on other sites

Padishar appears to be correct. This ship has a core, 12 full batteries, 1 pbnuk and 1 empty battery.

dr1yono.png

It looks some charge is lost for each full charge storage part.

Edited by tomf
Link to comment
Share on other sites

Great, it isn't exactly a game breaking bug but it is a bit strange. Now I can get back to the original purpose of my testing which is to work out how the game handles electric charge for craft that are unloaded.

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...