User:Aru

From Kerbal Space Program Wiki
Revision as of 22:19, 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 true, exact surface gravity (except for the rounding error from a single conversion from binary to decimal), 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.

NOW I learn about this thing here: https://meta.wikimedia.org/w/index.php?title=Template:Purge&action=edit If I'd known this existed, I probably could have immediately stopped after the first large edit to infobox/Part, instead of mixing my changes together to try to get it to work. Oh well, could have saved myself some stress. I will still clean things up and finish the job later, including the template documentation.

Here have some numbers. http://freetexthost.com/0u2zxcxepd