Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export data #49

Open
Zyles opened this issue Jul 10, 2015 · 6 comments
Open

Export data #49

Zyles opened this issue Jul 10, 2015 · 6 comments

Comments

@Zyles
Copy link

Zyles commented Jul 10, 2015

Is it possible to get all the data which is found in KER outside of the game? Can you analyze the craft file to get delta V, stages, mass etc.?

If not, it would be really fantastic if there was an export data option that dumps all the vessel information into a JSON file somewhere in the game directory. This would help immensely in a website project I am doing where I need all this vessel information and show it on the website.

@gracepetryk
Copy link

Ker might not be what you want. take a look at Telemauchus

@Zyles
Copy link
Author

Zyles commented Aug 26, 2015

Telemauchus is way too much. All I need is a simple data dump to file.

@space-is-hard
Copy link

kOS could do that.

@gracepetryk
Copy link

It is pretty easy to get data from telemachus all you have to do (in python) is

import httplib
import json


conn = httplib.HTTPConnection("localhost:8085")
conn.request("GET", "/telemachus/datalink?altitude=v.altitude")
altitude = json.loads(conn.getresponse().read())[altitude] 

and you will have a double representing your vessels ASL

there may also be a way to get an entire json file but i'm not sure

@Gerry1135
Copy link
Contributor

It sounds to me that you are simply wanting the contents of the build engineer window rather than a continuous log of the in-flight readouts. It should be pretty simple to add a button to the build engineer settings that dumps out a file containing the whole of the array of Stage structures (https://github.com/CYBUTEK/KerbalEngineer/blob/master/KerbalEngineer/VesselSimulator/Stage.cs) that are returned by the VesselSimulator.

@BevoLJ
Copy link

BevoLJ commented Apr 26, 2016

@Gerry1135 I was just thinking how amazing it would be if I could dump a .csv file from the build engineer, and was going to suggest it and saw this. Anyone taken a further look into it? (after 1.1 update stuff is calmed down of course. heh )

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants