The horrible source code behind Kerbal Scenarios