Closed sworisbreathing closed 5 years ago
Not sure if it's related but according to https://wiki.kerbalspaceprogram.com/wiki/API:CelestialBody, atmospherePressureSeaLevel
is a float
representing the pressure in atm. The planet editor in Hyperedit uses a double
representing pressure in kPa.
I'm sorry for the delay in replying here.
I'm not fluent in C#. Can you possibly provide a PR to fix this? Thanks in advance!
Just to ping you, @sworisbreathing ^^
There may be something wrong with the code in this PR. Since I don't really know Git very well, I can't be sure. In my efforts to merge things, I seem to have borked the project.
@Ezriilc I know Git pretty well. Maybe I can help you get it back on track.
Ok, there seem to be other issues unrelated to this PR. I've figured out how to get it building on my mac. I'll open another PR to get the project building again.
I have some PRs that should take care of at least some of this. I will report back when I figure what is going on.
Double or Float? Thats all we need to know. We have now #57, #58 and #60 - all messing around with the type of atmo pressure ;-)
Definitely double
.
The KSP Wiki says it's a float but the official API documentation says double.
I still can't figure out why it doesn't take effect though.
temperature also seems to be affected by this bug. gravity works though.
Maybe it recalculates back to original values based on other atmo properties? Might decompile to see how its actually being used.
found it. it's the atmospherePressureCurve
(which is conditionally used based on atmosphereUsePressureCurve
). I'm working on adding it to the editor, but it's basically a wrapper for an array of Keyframe
objects.
Right now the tricky part is figuring out how to create a text area in C#. The JSON representation is pretty big.
In the current HyperEdit 3 beta for KSP 1.4, the planet editor does not seem to change the atmospheric sea-level pressure.
To reproduce:
Toggle Display
). It should read around 100kPa.atmospherePressureSeaLevel
value to something else (halve it, double it, copy from another planet... doesn't really matter), and clickApply
.I'm seeing this on KSP 1.4.3 with the making history expansion installed (Mac version). I noticed it because I was trying to test a SSTO design for Eve by copying the conditions to Kerbin, however it doesn't appear to be an issue with the copy function - even editing the value in the planet editor seems to have no effect.