Jump to content

KSP 2D-Tool


Recommended Posts

KSP 2D-Tool

Introduction:

KSP 2D-Tool is, as you can guess, a tool made for ksp.

Made on GeoGebra, this tool provide you basic information on Kerbol System.

Pictures:

0qYdJmY.png

Where to find it?

You can find it right there: -->HERE<--

Or by clicking on the title of this thread.

You can also go to the project page to download it and/or add a comment: KSP 2D-Tool.

How does it work?

  • Move the system: hold shift and use the left mouse button.
  • Zoom: hold shift and use the mouse wheel.
  • Time: Grab the different sliders to set the date you want, the tool will automaticaly move the planets for you.

Planned feature:

  • Earth time: adding a switch to us Earth time.
  • Protractor tool: a tool to see different angles between 2 planets.
  • Trajectorie tool: an easy tool to show the trajectorie and position of your probe (without SOI change).
  • Ttransfert tool: a tool to set the transfert to another planet at the actual time or at the economic time.
  • A suggestion? say it and I'll see if I can do it, basicaly, everything sould be possible but more or less hard to do, if too hard, I won't, if not interesting, I won't too, else, why not.

Updates:

Update 2 [11/03/2015]:

-Add Moons to the Kerbol system

-Add a button to show/hide Moons

-Add a button to show/hide planets orbit path

Update 1 [14/01/2015]:

-Release of the 2D-Tool

-Add planets to the Kerbol system (not the moons)

-Add Time sliders to set the date you want to see

Few words about the project:

I staretd this project in november 2014 for my own use.

After posting it on DasValdez twitch chat, I got a good return from other people and decided to post it here for everyone.

I'm actually a french student learning maths and other stuff in a french university. By that, I mean that I won't have a lot of time to work on it and/or answer at every possible questions on the forum.

But don't worry, I like maths, physic, game and programming, so I'm not dead even if I'm not here a lot, and I really want to finish this.

Also, tools need javascript (not java dw) coding, so I need to understand GeoGebra way to think.

I also plan to do a tutorial about the maths I use but if you want to see it on your own, download the project (see above) and learn how GeoGebra and the 2D-tool work.

Little word for moderators:

GeoGebra obligate me tu use a specific licence (CC-BY-SA) and I don't have any choice on that, if there is a problem about it, say it and I'll remove my post.

Edited by Aerosfilis
Link to comment
Share on other sites

Thanks B787

I'll try to be more careful next time

very cool. Can it use Earth time as well?

Good Idea!

I'll add it to the Todo list. I think I'll work on that after implementing the moons, which I'm trying to be done for today, I've free time \o/

EDIT:

So I'm working to add the moons.

Adding them is quite easy but I think I'm gonna add a button to toggle their visbility and that ask a bit more work since it's the first time I'm using GeoGebra with script.

Edited by Aerosfilis
Link to comment
Share on other sites

Adding them is quite easy but I think I'm gonna add a button to toggle their visbility and that ask a bit more work since it's the first time I'm using GeoGebra with script.

yea it's pointless to have them visible when you're looking at the entire system, really. Perhaps instead of a button, they only become visible at a certain zoom level

Link to comment
Share on other sites

yea it's pointless to have them visible when you're looking at the entire system, really. Perhaps instead of a button, they only become visible at a certain zoom level

Geogebra doesn't use a "Zoom level" it just change the graphic window's values (Xmax, Xmin, Ymax, Ymin).

That means I have to define the "zoom".

Actually I found an easy way to show/hide with a check box without needing script.

I'll try to add an auto hide another time, when I learn how work GeoGebra object (for scripting).

Also, I'm trying to find the right value for all the moon.

The reference body change each time and it turns out KSP doesn't do that as easly as I though and the wiki isn't up to date for every value so I need to verify them...

In the end, I'm spending more time to add the moon than it took me to add the check box for their visibility x)

EDIT:

And sometime I'm just stupid so I've to redo something I though wrong but was good x)

Edited by Aerosfilis
Link to comment
Share on other sites

here is the bodies.ini file that KSPTOT uses


[Sun]
epoch = 0
sma = 0
ecc = 0
inc = 0
raan = 0
arg = 0
mean = 0
gm = 1172332800
radius = 261600
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 432000
rotini = 0
bodycolor = hot
canBeCentral = 1
canBeArriveDepart = 0
parent =
parentID = -1
name = Sun
id = 0


[Moho]
epoch = 0
sma = 5263138.304
ecc = 0.2
inc = 7.0
raan = 70
arg = 15
mean = 179.908747671079
gm = 168.60938
radius = 250
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 1210000
rotini = 190
bodycolor = copper
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Moho
id = 4

[Eve]
epoch = 0
sma = 9832684.544
ecc = 0.01
inc = 2.1
raan = 15
arg = 0
mean = 179.908747671079
gm = 8171.7302
radius = 700
atmoHgt = 96.708574
atmoPressSL = 506.625
atmoScaleHgt = 7
rotperiod = 80500
rotini = 0
bodycolor = cool
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Eve
id = 5

[Gilly]
epoch = 0
sma = 31500.000
ecc = 0.55
inc = 12
raan = 80
arg = 10
mean = 51.5662015617741
gm = 0.0082894497088
radius = 13
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 28255
rotini = 5
bodycolor = copper
canBeCentral = 0
canBeArriveDepart = 1
parent = Eve
parentID = 5
name = Gilly
id = 13

[Kerbin]
epoch = 0
sma = 13599840.256
ecc = 0
inc = 0
raan = 0
arg = 0
mean = 179.908747671079
gm = 3531.6
radius = 600
atmoHgt = 69.077553
atmoPressSL = 101.325
atmoScaleHgt = 5
rotperiod = 21600
rotini = 90
bodycolor = winter
canBeCentral = 1
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Kerbin
id = 1

[Mun]
epoch = 0
sma = 12000.000
ecc = 0
inc = 0
raan = 0
arg = 0
mean = 97.4028251722399
gm = 65.138398
radius = 200
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 138984.376574476
rotini = 230
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Kerbin
parentID = 1
name = Mun
id = 2

[Minmus]
epoch = 0
sma = 47000.000
ecc = 0
inc = 6
raan = 78
arg = 0
mean = 89.5662016
gm = 1.7658
radius = 60
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 40400
rotini = 230
bodycolor = cool
canBeCentral = 0
canBeArriveDepart = 1
parent = Kerbin
parentID = 1
name = Minmus
id = 3

[Duna]
epoch = 0
sma = 20726155.264
ecc = 0.051
inc = 0.06
raan = 135.5
arg = 0
mean = 179.908747671079
gm = 301.36321
radius = 320
atmoHgt = 41.446532
atmoPressSL = 20.2650
atmoScaleHgt = 3
rotperiod = 65517.859375
rotini = 90
bodycolor = autumn
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Duna
id = 6

[Ike]
epoch = 0
sma = 3200.000
ecc = 0.03
inc = 0.2
raan = 0
arg = 0
mean = 97.4028251722399
gm = 18.5683687626
radius = 130.000
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 65517.8621348081
rotini = 0
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Duna
parentID = 6
name = Ike
id = 7

[Dres]
epoch = 0
sma = 40839348.203
ecc = 0.145
inc = 5.0
raan = 280
arg = 90
mean = 179.908747671079
gm = 21.484489
radius = 138
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 34800
rotini = 25
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Dres
id = 15

[Jool]
epoch = 0
sma = 68773560.320
ecc = 0.05
inc = 1.304
raan = 52
arg = 0
mean = 5.7295779513082321
gm = 282528
radius = 6000
atmoHgt = 138.15511
atmoPressSL = 1519.88
atmoScaleHgt = 10
rotperiod = 36000
rotini = 0
bodycolor = summer
canBeCentral = 1
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Jool
id = 8

[Laythe]
epoch = 0
sma = 27184.000
ecc = 0
inc = 0
raan = 0
arg = 0
mean = 179.908747671079
gm = 1962.00002862
radius = 500.000
atmoHgt = 55.262042
atmoPressSL = 81.0600
atmoScaleHgt = 4
rotperiod = 52980.8790593796
rotini = 90
bodycolor = winter
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Laythe
id = 9

[Vall]
epoch = 0
sma = 43152.000
ecc = 0
inc = 0
raan = 0
arg = 0
mean = 51.5662015617741
gm = 207.481498872
radius = 300.000
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 105962.088893924
rotini = 0
bodycolor = bone
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Vall
id = 10

[Tylo]
epoch = 0
sma = 68500.000
ecc = 0
inc = 0.025
raan = 0
arg = 0
mean = 179.908747671079
gm = 2825.2800599
radius = 600.000
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 211926.35802123
rotini = 0
bodycolor = gray
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Tylo
id = 12

[Bop]
epoch = 0
sma = 128500.000
ecc = 0.235
inc = 15
raan = 10
arg = 25
mean = 51.5662015617741
gm = 2.48683491264
radius = 65
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 544507.428516654
rotini = 230
bodycolor = copper
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Bop
id = 11

[Pol]
epoch = 0
sma = 179890.000
ecc = 0.17085
inc = 4.25
raan = 2.0
arg = 15.0
mean = 51.5662015617741
gm = 0.72170206664
radius = 44
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 901902.623531173
rotini = 25
bodycolor = pink
canBeCentral = 0
canBeArriveDepart = 1
parent = Jool
parentID = 8
name = Pol
id = 14

[Eeloo]
epoch = 0
sma = 90118820.000
ecc = 0.26
inc = 6.15
raan = 50
arg = 260
mean = 179.908747671079
gm = 74.410815
radius = 210
atmoHgt = 0
atmoPressSL = 0
atmoScaleHgt = 0
rotperiod = 19460
rotini = 25
bodycolor = bone
canBeCentral = 0
canBeArriveDepart = 1
parent = Sun
parentID = 0
name = Eeloo
id = 16

Link to comment
Share on other sites

Wow thanks!

That should help!

Do you know if the mean anomaly is on UT 0s or UT "When you start a new save" (9223200s) ?

Else Everything seems ok so far. Just be stupid sometime so took me a while and it's not really if I've been 100% on it ^^

EDIT:

Quick test done, seems to be on new save time.

If you know so I can be sure.

Maybe they consider UT 0s as the time at the begining of a save...

Edited by Aerosfilis
Link to comment
Share on other sites

  • 1 month later...

Hi everyone,

Sorry it took me so long to do the first update, and a small one on top of that.

Actually, I did a quick update few weeks after starting this post but I got some issues att the end.

I was probably too tired since I did all in one row, after couples of hours.

Anyway, I finally had time to end that.

Update 2 [11/03/2015]:

-Add Moons to the Kerbol system

-Add a button to show/hide Moons

-Add a button to show/hide planets orbit path

Link to comment
Share on other sites

This thread is quite old. Please consider starting a new thread rather than reviving this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...