Page 3 of 3

Posted: 11.10.2018, 20:50
by Croc
Celestia/Celx Scripting/CELX Lua Methods (extraction):
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 !!!


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 (31.07 KiB) Viewed 5449 times
JdateUTC.jpg (31.21 KiB) Viewed 5449 times

Posted: 15.10.2018, 19:43
by Croc
Update KeplerParamBox.lua

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


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

1. Copy and unzip the file
2. Place the KeplerParamBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia

Posted: 16.10.2018, 03:03
by Croc
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

Posted: 18.10.2018, 11:21
by Croc
Update legendBox.lua file

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


1. Copy and unzip the file
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
5. Move the folder with the StarWorlds files to the folder ..\lua-applications\lua_universal_tools_v5\guides\
6. Restart Celestia

Posted: 20.10.2018, 17:28
by Croc
Update UranBox.lua + NeptuneBox.lua


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

1. Copy and unzip the file
2. Place the NeptuneBox.lua and UpanBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\guides\SolarSystem
3. Restart Celestia[/attachment]

Posted: 22.10.2018, 17:23
by Croc
Update of the Guidebooks on planets, moons, asteroids and comets.

Read about the change in guidebooks for planets and moons, read:

For changes in guidebooks on asteroids and comets, read:

1. Delete folder with all contents - ..\lua-applications\lua_universal_tools_v5\guides\SolarSystem
2. Copy and unzip the file
3. Copy unpacked folder PlanersMoons to ..\lua-applications\lua_universal_tools_v5\guides
4. Copy and unzip the file
5. Copy unpacked folder AsteroidsComets to ..\lua-applications\lua_universal_tools_v5\guides
6. Copy and unzip the file
7. Place the unzipped file guidesBox.lua to ..\lua-applications\lua_universal_tools_v5\tools
8. Copy and unzip the file
9. Place the unzipped file legendBox.lua to ..\lua-applications\lua_universal_tools_v5\tools
10. Copy and unzip the file
11. Place the unzipped file config.lua to ..\lua-applications\lua_universal_tools_v5\
12. Restart Celestia

Posted: 27.10.2018, 19:54
by Croc
A slight change in the renderLoxBox panel:


1. Copy and unzip the file
2. Place the renderLoxBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia

Posted: 10.11.2018, 06:53
by Croc
Change the renderLocsBox panel:
  • Excluded types of locations:
    • Cities > 10000
    • Cities < 10000
  • Included:
    • City
    • SA = Saxum
  • Moved:
    • RG = Ring


1. Copy and unzip the file
2. Place the renderLoxBox.lua file in the folder ..\lua-applications\lua_universal_tools_v5\tools\
3. Restart Celestia

Posted: 26.11.2018, 12:34
by Croc
Asteroid guides:
  • Jupiter nominal Trojans - 253 objects + 3 satellites
  • Uranus Trojans - 1 object
  • Neptune's Trojans - 22 objects


Дополнительные ssc-файлы сделал LukeCEL.


1. Copy and Unpack
2. Replace in the folder ..\lua-applications\lua_universal_tools_v5\guides\AsteroidsComets
3. Copy and Unpack
4. Replace in the folder ..\extras\Asteroids
5. Restart Celestia

Posted: 20.12.2018, 06:07
by Croc
Update RenderBox.lua


Новые чек-боксы будут включать / отключать классы объектов:
  • Asteroids
  • Comets
  • Spacecraft

Posted: 21.12.2018, 05:42
by Croc
Обновление панели "Virtual Discrete Base"


The screenshot shows a discrete base of 253 Trojan asteroids with proper names.


New guy wants a bit of assistance

Posted: 29.01.2019, 20:53
by macsixtythree

Clicked on reply, however, I hope I am posting this correctly, feel free to move or delete if this is n the wrong area of the forum.

I recently downloaded and have played around with Celestia. Version 1.6.1. I would like to d/l the plug-ins or add-ons, however, I don't wish to mess up the program. I don't have any programming skills, however, I'm pretty good with 3d modeling (expert in Solidworks, as well as learning Fusion 360, and Blender) as well as rendering (Photoworks, Solidworks Visualize, Photoview 360) and proficient with Photoshop. If you could give me an idea of what you need as far as texture maps and/or materials (different programs call things different names), I might be able to help with some stuff.

If you want, please email or private msg me so we can discuss.


Posted: 01.02.2019, 00:25
by selden
I'm assuming you're running under Windows.

If you haven't already done so, you might want to consider re-installing Celestia into a folder that you own, rather than the default installation location in the system's Program Files directory. More recent versions of Windows have become more and more protective of their system folders, which can cause problems.

So long as the Addons that you download can be put into Celestia's folder named extras, you don't have to worry about messing up Celestia. If any of the things you've put into extras cause problems, you can just delete the culprits (or move them elsewhere) and restart Celestia.

Addons which are designed to go elsewhere can be more problematic if you aren't careful. I always use a separate copy of Celestia's directory tree to test those types of packages.