I apologize for not writing a topic. I wanted to ask for your help about the mod BDynamics Mk22 Cockpits v1.1. Author seems to have abandoned the mod, and the last update was made by another person. but something went wrong and there was such an unpleasant bug:
In the old version of mod, this bug was not. I tried to replace the files and found out that the reason is in the file BDMk22.dll, if i replace it with a file from the old version then this error disappears, but the monitor does not work. : ((( I dig deeper inside the source code and found that the files are almost identical, the difference is only in one line.
In the new version, this:
float radarAlt = Mathf.Clamp((float)(vessel.mainBody.GetAltitude(vessel.CoM) - vessel.terrainAltitude), 0, (float)vessel.altitude);
In the old, it is:
float radarAlt = Mathf.Clamp((float)(vessel.mainBody.GetAltitude(vessel.findWorldCenterOfMass())-vessel.terrainAltitude), 0, (float)vessel.altitude);
But as far as I understand it's just getting altitude for the monitor, this can not affect the visual display in any way? You are well versed in this topic, I wanted to ask you, maybe you will tell the direction, because I do not understand what the reason may be. (( I will be very grateful for any help. )
P.S. I apologize for the bad english, this is not my native language.