User:Aru

From Kerbal Space Program Wiki
Revision as of 19:07, 28 August 2017 by Aru (talk | contribs)
Jump to: navigation, search

I made a bunch of changes.

The idea is that the wiki now calculates all of the same stats as the game itself, from the same base stats, with the same formulas. Optimal accuracy, no redundancy. I also copied many of those exact base stats over. Many people use the wiki's calculations as references, so it makes sense for it to use the same exact underlying constants which define the KSP universe, rounding errors and all.

There were some spastic issues which I had a hard time fixing. I honestly don't understand what was wrong, but it has fixed itself. Perhaps, the more I messed with it, the more I forced the wiki to re-update, and eventually things settled into place. That doesn't entirely make sense, because I added new values to all bodies, didn't remove any, then changed some formulas to use the new values, which doesn't really explain anything. For example, I added and removed an equals sign next to the empty apoapsis property for the Mun, and the set of errors displayed by the page was different each time I toggled it, until the final one removed all the errors. But I'm pretty sure that it should technically be the same either way.

Anyway, I will convert some more stuff later, fix and maybe remove/add Body data sub-templates, for example nothing uses Body data/Gravity now that it's a base stat, but maybe I'll move something else to a sub template? Also change the pressure unit in /Param from atm to kPa as the game code uses, but that requires editing all the param pages again. I'm way too tired for anything else now, my mad confused scramble to get the pages displaying without red error text is done and that's good enough for now.

Note that while surface gravity and pressure were presumably chosen as multiples of Kerbin's (9.81 m/s^2 and atm), the base numbers directly used by the game now are in units of surface gravity of Earth (9.80665 m/s^2) and kPa. For example 1.00034160493135 is Kerbin's surface gravity, which when multiplied by 9.80665 is 9.810000000000024.

Apoapsis, periapsis, and mass will be removed from the param pages later, once no more formulas use them.