Graphical interface Lua Universal Tools v5.0 beta - RELEASE ! (new edition 14.12.2017)

All Lua-tools for Celestia in one forum.
Avatar
Topic author
Croc M
Moderator
Posts: 308
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #41by Croc » 11.10.2018, 20:50

Celestia/Celx Scripting/CELX Lua Methods (extraction):
gettime
number celestia:gettime()

Get the current simulation time as a TDB (Barycentric Dynamical Time) Julian date.

Older Celestia versions use UTC (Coordinated Universal Time) to calculate times and positions.
Starting with version 1.5.0, although Celestia still displays UTC on the screen,
it uses the TDB time scale internally for everything else, so for CELX scripting !!!

Notes:

The simulation time can be set by using the celestia:settime() method.
To get the current system time instead of the current simulation time, the 1.6.0 celestia:getsystemtime() method should be used instead.
The TDB time scale is a bit different from the more familiar UTC. By using TDB, Celestia places objects much more accurately. As of January 1, 2008, the difference between the two is about 65 seconds. For more information, see Celestia/Time_Scales.
To convert between UTC and TDB times, you can use the 1.5.0 celestia:utctotdb() and 1.5.0 celestia:tdbtoutc() methods.
To convert between normal calender dates and julian days, you can use the celestia:tojulianday() and celestia:fromjulianday() methods.

On the time correction panel (Panel 7), the Julian date was specified in UTC format. In the updated version, the Julian date is specified in TDB format by default.
You can switch readings Julian date [TDB / UTC]

JdateTDB.jpg
JdateTDB.jpg (31.07 KiB) Viewed 196 times
JdateUTC.jpg
JdateUTC.jpg (31.21 KiB) Viewed 196 times
Attachments
panel7Box_11-10-2018.zip
(9.48 KiB) Downloaded 2 times

Avatar
gironde M
Posts: 276
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

Post #42by gironde » 14.10.2018, 17:26

Post Gironde moved to topic Modified version for KeplerParamBox viewtopic.php?p=140586#p140586

Avatar
gironde M
Posts: 276
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

Post #43by gironde » 14.10.2018, 17:29

Post Gironde moved to topic Modified version for KeplerParamBox viewtopic.php?p=140592#p140592

Avatar
gironde M
Posts: 276
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

Post #44by gironde » 14.10.2018, 20:28

Post Gironde moved to topic Modified version for KeplerParamBox viewtopic.php?p=140593#p140593

Avatar
gironde M
Posts: 276
Joined: 16.12.2016
Age: 66
With us: 1 year 10 months
Location: Montigny-Les-Metz, Grand Est, Lorraine, Moselle, France

Post #45by gironde » 15.10.2018, 10:11

Post Gironde moved to topic Modified version for KeplerParamBox viewtopic.php?p=140594#p140594

Avatar
Topic author
Croc M
Moderator
Posts: 308
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #46by Croc » 15.10.2018, 19:43

Update KeplerParamBox.lua

In the screenshot Panel "Keplerian Parameters" before and after modification:

Parameters_modern.jpg


Added parameters:
  • Rotation Period
  • Geometric Albedo

Fixed algorithm for calculating the temperature of the surface of the planet.
For discussion, see the topic Temperature in Celestia 1.6.1. viewtopic.php?p=140561#p140561

Update:
1. Copy and unzip the file KeplerParamBox_15-10-2018.zip
2. Place the KeplerParamBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia
Attachments
KeplerParamBox_15-10-2018.zip
(4.53 KiB) Downloaded 2 times

Avatar
Topic author
Croc M
Moderator
Posts: 308
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #47by Croc » 16.10.2018, 03:03

SpaceFanatic64
Croc, why have you locked your Lua Universal Tools topic?

In order not to litter the topic with comments.

Please, comments to graphical interface leave in topic, see ./viewtopic.php?f=11&t=17418

Avatar
Topic author
Croc M
Moderator
Posts: 308
Joined: 10.08.2016
Age: 71
With us: 2 years 2 months
Location: Udomlya, Tver region, Russia

Post #48by Croc » 18.10.2018, 11:21

Update legendBox.lua file

Changed background color and font color for Trojan asteroids.
Improved contrast between background color and font color.

Legenda_mod.jpg


Update:
1. Copy and unzip the file legendBox_18-10-2018.zip
2. Place the legendBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\

StarWorlds Series Guide Updates

Recoded background color # 82 on # 83 in some guidebooks of the series StarWorlds

Update (a continuation):
3. Delete the file folder StarWorlds
4. Copy and unzip files folder StarWorlds_18-10-2018.zip
5. Move the folder with the StarWorlds files to the folder ..\lua-applications\lua_universal_tools_v5\guides\
6. Restart Celestia
Attachments
legendBox_18-10-2018.zip
(1.83 KiB) Downloaded 1 time
StarWorlds_18-10-2018.zip
(66.75 KiB) Downloaded 1 time


Return to “Lua-Tools”

Who is online

Users browsing this forum: 2 guests