Celestia Add-On Builder

Here you find pointers to utilities that help you create addons for Celestia.
Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Celestia Add-On Builder

Post #1by Drydareelin » 28.06.2012, 23:46

30/06/2012 Edit
-Thanks to Selden's comment, there's now the degrees symbol (°) after the Right Ascension and the Declination sections.
-You no longer have to put in quotes..for anything. The Program does all the hard work for you (you lazy bunch!)
-I am currently in the process of finishing the .SSC Builder form and implementing a 'Report Bug' feature.
-As I've previously said; if you can think of anything else I can add, let me know!
[edit]
---

I previously made a Celestia Star Builder and posted it in the same sub-forum as this.
It was extremely basic and it was just me seeing if it was possible.

Well, I've decided to up the ante!

I am in the process of making a Full on Celestia Add-on Builder.

A lot more options, and the ability to make and adjust so much more than previously.

Image

This is the main screen. From here you can open new add-on forms, change the main theme, open/save files and run certain programs (so far).
Hopefully more will be added (and it will look a lot more attractive).

---

Image

This is the Star Builder screen that appears when you press the 'STC' button.
Here you can see I've implemented a texture-loading system (basic), the option to chose between 'AppMag' and 'AbsMag' and a small '?' next to each section which, when hovering the mouse, shows tooltips and information.
---

Image

This is the screen you see when you press 'Build Star'.
Yes..it's the main screen. I did this so you can make any needed tweaks before saving.

Well, that's all I can show right now.
If anyone can think of anything I can add, even if it's just eye-candy, let me know!

Thanks, I hope you're liking it so far..

Dryda
Last edited by Drydareelin on 30.06.2012, 20:45, edited 2 times in total.

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Celestia Add-On Builder

Post #2by selden » 29.06.2012, 10:43

It looks like a good start!

A suggestion:
It'd be nice if the word "Degrees" were shown next to the Right Ascension field for STC entries
and "Hours" next to the Right Ascension field for DSC entries. That might help avoid the fairly common accidental use of the wrong units in the two different catalogs.
Selden

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #3by Drydareelin » 29.06.2012, 11:30

selden wrote:It looks like a good start!

A suggestion:
It'd be nice if the word "Degrees" were shown next to the Right Ascension field for STC entries
and "Hours" next to the Right Ascension field for DSC entries. That might help avoid the fairly common accidental use of the wrong units in the two different catalogs.

When you hover the house over the '?' next to the section, it does show the unit it's in. :)

For instance, next to Right Ascension:

Image

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Celestia Add-On Builder

Post #4by selden » 29.06.2012, 15:59

Unfortunately, if people think they know the right units, but are wrong, they won't bother to hover over the ?.

RA is the only parameter which uses different units in different catalogs, so I think "hovering" for other parameters is OK. I frequently have to point out the units problem when people can't figure why stars are in the wrong place on the sky, which is one reason I think RA needs more help so they get it right.
Selden

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #5by Drydareelin » 29.06.2012, 16:19

Ah I get what you mean.
Okay what I will probably do is include a small label in-between the textbox and the '?' showing the units.

So for Right Ascension and Declination it would be the Degrees sign (°)
Distance it would say 'Ly'
Radius 'Km'
etc...

If that's what you mean :) If you can think of a better way, please let me know

Avatar
selden
Developer
Posts: 10192
Joined: 04.09.2002
With us: 22 years 2 months
Location: NY, USA

Re: Celestia Add-On Builder

Post #6by selden » 30.06.2012, 11:19

That sounds fine to me! (Although I was suggesting doing that only for RA)
Selden

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #7by Drydareelin » 09.07.2012, 12:34

I like it! :D
I might play around with the design, maybe a combo of them both :)

duds26
Posts: 328
Joined: 05.02.2007
Age: 34
With us: 17 years 9 months
Location: Europe

Re: Celestia Add-On Builder

Post #8by duds26 » 11.07.2012, 14:39

I like where his is going.

Since suggestions are welcome:

From an addon builder I would like to start with a start screen containing:
list of recently opened addons
list of addon folders
List of favourite or important addons (user editable)
button to start new addon
Button to open existing addon

If I start a new addon, First I have to choose a name of course.
Then I come in an empty form. Left is a pane shows the files.
And another dock for more information about the current edited value/object.
I can add a new file by a button or right clicking in the file area.
Using tabs for multiple files. Using a new tab like in firefox to open a new file.
Can choose a new file: stc, ssc, other.
When choosing a file, main pane is showing content in a tree view.
With the values and editing in the tree view itself.
Can add a new object to the tree. Have buttons and right-click options to add each kind of thing.
Automatically generate most of the code necessary.
Important: Always show all units for all values explicitly! Maybe even include links to help files or web pages such as wikipedia for their meaning.
The extra dock could for example include a more verbose name of the property.
A short summary what it is.
Units.
Type and range of values possible.
And other useful helpful information.

Are there any plans to make this cross platform? Using C++ and a cross platform GUI toolkit?
Last edited by duds26 on 27.07.2012, 16:30, edited 1 time in total.

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #9by Drydareelin » 11.07.2012, 20:49

Wow that's a lot of suggestions o.O

One issue I don't think I stated previously -> I am not a very skilled programmer.
I am using VB.Net because I feel comfortable using it :)
I will take all you said in though and see what I can do with it.

I haven't been able to do much work on it these last 2 weeks or so, because of college studies. Now I am finished though, so I can crack on with it. As said before, I will defiantly take some of what you said in; seeing if I can make it work with the design so far.

Thanks for the suggestions!

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Celestia Add-On Builder

Post #10by John Van Vliet » 12.07.2012, 08:11

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 05:06, edited 1 time in total.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Celestia Add-On Builder

Post #11by Fenerit » 12.07.2012, 16:26

Drydareelin wrote:Wow that's a lot of suggestions o.O

...
I am using VB.Net because I feel comfortable using it :)

Please, keep it as simple as possible by removing all the unnecessary VB/Net references and custom controls. It's a waste of space to install lots of futile MB when few kB can accomplish the same calculus.
Never at rest.
Massimo

Avatar
Tegmine
Posts: 200
Joined: 20.03.2011
With us: 13 years 8 months

Re: Celestia Add-On Builder

Post #12by Tegmine » 13.07.2012, 11:55

Will the star builder have a feature to calculate decimal degrees or will it still be up to the creator to supply that info?

I'm looking forward to the completion of this.

-M-

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #13by Drydareelin » 14.07.2012, 11:22

Tegmine wrote:Will the star builder have a feature to calculate decimal degrees or will it still be up to the creator to supply that info?

Do you mean like this:
Image

You can see the RA and the DEC are in decimals, if that is actually what you mean.
If I am getting the wrong idea, please let me know :)

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #14by Drydareelin » 19.07.2012, 12:11

hey sorry guys, I haven't been able to work on it recent at all since I've been so busy.

Anyway, I hadn't even thought about the update element until now o.O My original idea was that you'd just replace the original .exe file but I will have to think about it.

In 9 days I am going camping for a week, after that I will really start cracking on with this :)

Avatar
Alexell M
Site Admin
Posts: 303
Joined: 07.10.2010
Age: 30
With us: 14 years 1 month
Location: Moscow, Russia
Contact:

Re: Celestia Add-On Builder

Post #15by Alexell » 21.08.2012, 20:20

You can try to create this program on C ++?
Then we can translate it into Russian.
Admin of celestia.space
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
Image

Topic author
Drydareelin
Posts: 20
Joined: 04.01.2012
Age: 30
With us: 12 years 10 months
Location: England, UK

Re: Celestia Add-On Builder

Post #16by Drydareelin » 24.08.2012, 16:28

alexell wrote:You can try to create this program on C ++?
Then we can translate it into Russian.

Unfortunately, I don't know C++
I've been trying to learn but haven't found any guide that I can get stuck into.

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: Celestia Add-On Builder

Post #17by John Van Vliet » 24.08.2012, 22:12

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 04:42, edited 1 time in total.

Avatar
Alexell M
Site Admin
Posts: 303
Joined: 07.10.2010
Age: 30
With us: 14 years 1 month
Location: Moscow, Russia
Contact:

Re: Celestia Add-On Builder

Post #18by Alexell » 25.08.2012, 07:43

I badly know English,
but I hope you will
understand me.

Drydareelin wrote:
Unfortunately, I don't know C++
I've been trying to learn but haven't found any guide that I can get stuck into.

I study C++ in college, but still it is not enough my knowledge for creation of such program. I have to you some questions:
1. When you plan to finish development of the program?
2. If I translate lines of your program and I will send them in such look: "a line in English" = "a line in Russian", you can insert them into the program and compile it in Russian?
Admin of celestia.space
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
Image

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: Celestia Add-On Builder

Post #19by Fenerit » 25.08.2012, 20:39

I remember that with the "old" INI method, now called ".lang" one could translate even in other languages. I.e:

label1.caption = readini("label1", "caption")

where within the INI was:

[label1]
caption = language

being "language" the text string shown by the label.
Never at rest.
Massimo

Avatar
Alexell M
Site Admin
Posts: 303
Joined: 07.10.2010
Age: 30
With us: 14 years 1 month
Location: Moscow, Russia
Contact:

Re: Celestia Add-On Builder

Post #20by Alexell » 26.08.2012, 06:59

That's
wonderful.

And how the
program defines, what language to
show, if them a little?
Language gets out the user at the first start?
Or language is
defined automatically,
how in Celestia?
Admin of celestia.space
PC: Intel Core i7-8700 @ 3.20GHz, SSD, 16 Gb RAM, NVIDIA GeForce GTX 1080, Creative Sound Blaster ZxR. Windows 10 x64.
Phone: iPhone Xs 256 Gb. iOS 14.
Image


Return to “Utilities”