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
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 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 531 times
JdateUTC.jpg
JdateUTC.jpg (31.21 KiB) Viewed 531 times
Attachments
panel7Box_11-10-2018.zip
(9.48 KiB) Downloaded 13 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #42by 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 9 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #43by 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
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #44by 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 13 times
StarWorlds_18-10-2018.zip
(66.75 KiB) Downloaded 10 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #45by Croc » 20.10.2018, 17:28

Update UranBox.lua + NeptuneBox.lua

Guides_Ur+Ne.jpg


Note:
Asteroids - Trojans moved to new guide Troyan4Box.lua
The dwarf planets are reassigned from TNOBox.lua

Update:
1. Copy and unzip the file Neptune+UpanBox.zip
2. Place the NeptuneBox.lua and UpanBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\guides\SolarSystem
3. Restart Celestia[/attachment]
Attachments
Neptune+UpanBox.zip
(11.01 KiB) Downloaded 11 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #46by Croc » 22.10.2018, 17:23

Update of the Guidebooks on planets, moons, asteroids and comets.

Read about the change in guidebooks for planets and moons, read:
https://celestia.space/forum/viewtopic.php?p=140393#p140393
https://celestia.space/forum/viewtopic.php?p=140397#p140397
https://celestia.space/forum/viewtopic.php?p=140399#p140399
https://celestia.space/forum/viewtopic.php?p=140428#p140428

For changes in guidebooks on asteroids and comets, read:
https://celestia.space/forum/viewtopic.php?p=140650#p140650
https://celestia.space/forum/viewtopic.php?p=140666#p140666
https://celestia.space/forum/viewtopic.php?p=140669#p140669
https://celestia.space/forum/viewtopic.php?p=140670#p140670
https://celestia.space/forum/viewtopic.php?p=140677#p140677

Update:
1. Delete folder with all contents - ..\lua-applications\lua_universal_tools_v5\guides\SolarSystem
2. Copy and unzip the file PlanersMoons_22-10-2018.zip
3. Copy unpacked folder PlanersMoons to ..\lua-applications\lua_universal_tools_v5\guides
4. Copy and unzip the file AsteroidsComets_22-10-2018.zip
5. Copy unpacked folder AsteroidsComets to ..\lua-applications\lua_universal_tools_v5\guides
6. Copy and unzip the file guidesBox_20-10-2018.zip
7. Place the unzipped file guidesBox.lua to ..\lua-applications\lua_universal_tools_v5\tools
8. Copy and unzip the file legendBox_18-10-2018.zip
9. Place the unzipped file legendBox.lua to ..\lua-applications\lua_universal_tools_v5\tools
10. Copy and unzip the file config_22-10-2018.zip
11. Place the unzipped file config.lua to ..\lua-applications\lua_universal_tools_v5\
12. Restart Celestia
Attachments
PlanersMoons_22-10-2018.zip
(57.12 KiB) Downloaded 7 times
AsteroidsComets_22-10-2018.zip
(62.68 KiB) Downloaded 10 times
guidesBox_20-10-2018.zip
(1.73 KiB) Downloaded 9 times
legendBox_18-10-2018.zip
(1.83 KiB) Downloaded 9 times
config_22-10-2018.zip
(9.21 KiB) Downloaded 7 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #47by Croc » 27.10.2018, 19:54

A slight change in the renderLoxBox panel:

NameLoc.jpg


Update:
1. Copy and unzip the file renderLoxBox.zip
2. Place the renderLoxBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia
Attachments
renderLocsBox.zip
(13.21 KiB) Downloaded 4 times

Avatar
Topic author
Croc M
Forum Admin
Posts: 357
Joined: 10.08.2016
Age: 71
With us: 2 years 3 months
Location: Udomlya, Tver region, Russia

Post #48by Croc » 10.11.2018, 06:53

Change the renderLocsBox panel:
  • Excluded types of locations:
    • Cities > 10000
    • Cities < 10000
  • Included:
    • City
    • SA = Saxum
  • Moved:
    • RG = Ring

NewPanelLocs.jpg


Update:
1. Copy and unzip the file renderLocsBox_10-11-2018.zip
2. Place the renderLoxBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia
Attachments
renderLocsBox_10-11-2018.zip
(13.45 KiB) Downloaded 3 times


Return to “Lua-Tools”

Who is online