Printing text on-screen upon clicking "info"

The place to discuss creating, porting and modifying Celestia's source code.
Topic author
StarStruckRabbit
Posts: 5
Joined: 08.06.2007
With us: 17 years 5 months

Printing text on-screen upon clicking "info"

Post #1by StarStruckRabbit » 08.06.2007, 22:30

Hello all,

I'm pretty new to Celestia, but I've enjoyed it thoroughly so far! I find that half the fun is in adding on to it!

I had an idea that instead of taking me to a website when I click on the "Info" button of a planet, I would like to write my own descriptions of the object in question, and then have it displayed on-screen in Celestia. I played around with this using the moon as a test subject, but I didn't get anywhere. In fact, upon making some adjustments to the moon in the solarsys file, the moon disappeared from the program!

Having undone my changes and gotten my moon back, I'm wondering if there is really a way to accomplish what I'm after.

Any suggestions?

Thanks!

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #2by Vincent » 09.06.2007, 08:00

@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
StarStruckRabbit
Posts: 5
Joined: 08.06.2007
With us: 17 years 5 months

Post #3by StarStruckRabbit » 10.06.2007, 00:24

Thanks for the links. I downloaded the tools and the 1.5 version of Celestia, and followed the readme instructions. When I launch Celestia, it says the tools are disabled. How do I enable them? I tried [shift] i, but nothing happens.

Am I doing something wrong?

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #4by Vincent » 10.06.2007, 08:00

That's probably because you ran Celestia in a too small sized window.
The Lua Tools are automatically disabled when the screen width < 790 or the screen height < 590. If this is effectively the case, you should try to run Celestia in an optimized window and with a screen resolution of 1024*768.
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
StarStruckRabbit
Posts: 5
Joined: 08.06.2007
With us: 17 years 5 months

Post #5by StarStruckRabbit » 10.06.2007, 14:08

That was the problem. I changed the res and it showed up.

Thanks for all your help!

:D

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #6by Vincent » 10.06.2007, 17:38

StarStruckRabbit wrote:That was the problem. I changed the res and it showed up.
Good !

StarStruckRabbit wrote:Thanks for all your help!

You're welcome. Feedbacks or suggestions are also quite welcome. :wink:
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3

Topic author
StarStruckRabbit
Posts: 5
Joined: 08.06.2007
With us: 17 years 5 months

Post #7by StarStruckRabbit » 11.06.2007, 23:22

These tools are awesome! I'm totally happy with them, although I'd like to see less limitations for the total length of an info description. (I like to write a lot of details about the different objects out there.)

Also, do you think it'll be possible soon to draw a line to measure the surface of something? Like to measure the length of a crater, and so on?

All in all, great utility!

Vincent
Developer
Posts: 1356
Joined: 07.01.2005
With us: 19 years 10 months
Location: Nancy, France

Post #8by Vincent » 12.06.2007, 10:24

StarStruckRabbit wrote:These tools are awesome! I'm totally happy with them, although I'd like to see less limitations for the total length of an info description. (I like to write a lot of details about the different objects out there.)
The number of lines of the information Text is unlimited; over 32 lines, a slider will appear to give you acces to the rest of the text (see Mars' info Text as an example). As for the width of the lines, it is only limited by the width of your Celestia-window.

StarStruckRabbit wrote:Also, do you think it'll be possible soon to draw a line to measure the surface of something? Like to measure the length of a crater, and so on?
You can already display scale squares. But I agree that this would be a very useful feature that was already suggested in another thread. I'm about to release v1.0 (I know, I've been saying that for monthes... :wink: ). But rulers will be definitely part of v1.1.

StarStruckRabbit wrote:All in all, great utility!

Thanks !
@+
Vincent

Celestia Qt4 SVN / Celestia 1.6.1 + Lua Edu Tools v1.2
GeForce 8600 GT 1024MB / AMD Athlon 64 Dual Core / 4Go DDR2 / XP SP3


Return to “Development”