For those who want to tweak stars.dat without resorting to a hex editor....
CStarsConv is a windows application that converts the stars.dat database to XML and back again. The exe and complete source code is available from SpaceGear.Org.
Tweaking stars.dat
-
- Posts: 112
- Joined: 12.05.2002
- With us: 22 years 9 months
- Location: Toronto
Hi!
I am a consumer of “CELESTIA”, and having known that your software exists for converting the file “stars.dat”, I have immediately wanted to unload him/it.
After having him/it extract I have tried to make to depart the executable one, but a called file is asked me
“XKRN2505.DLL.”
My operating system is W 98 SE.
Can you help me?
Thanks in advance, and sorry for my english, but i'm italian!!!
Bruno
I am a consumer of “CELESTIA”, and having known that your software exists for converting the file “stars.dat”, I have immediately wanted to unload him/it.
After having him/it extract I have tried to make to depart the executable one, but a called file is asked me
“XKRN2505.DLL.”
My operating system is W 98 SE.
Can you help me?
Thanks in advance, and sorry for my english, but i'm italian!!!
Bruno
CStarsConv Requirements Update
CStarsConv is written in Java and compiled to native code using Excelsior Jet 2.5 personal edition (which is free for non-commercial use). The bummer is that CStarsConv requires some DLLs from Excelsior and access to the Java JDK to run. So.... You need to have Excelsior installed and the JDK installed inorder to run CStarsConv. They are both free and easily installed. However, if you are not a Java coder, it seems a bit much. I am currently working on the problem and may actually resort to rewriting it in C. I will keep you posted.
-
- Posts: 112
- Joined: 12.05.2002
- With us: 22 years 9 months
- Location: Toronto
-
- Posts: 28
- Joined: 19.06.2002
- With us: 22 years 7 months
- Location: Germany
brunetto_64 wrote:Hi dave,
I have downloaded the excelsior program, but I have found only the last version (2.51) and in this program there are not the xkrn2505.dll, but xkrn2508.dll...and the CstarConv does not work...however I have the Java JDK 1.4 .
thanks
Bruno
Hi, Bruno
i have the same problem (xkrnl25014.dll) and i just renamed the dll in xkrnl2505.dll. It works fine.
![Very Happy :D](./images/smilies/icon_biggrin.gif)
hope it helps
-
- Posts: 112
- Joined: 12.05.2002
- With us: 22 years 9 months
- Location: Toronto
Tweaking stars.dat
Hello all again,
I've tried renaming certain files such as the xkrn2505.dll file also, and it doesn't work. I have the java and excelsior jet programs installed, and I've tried putting them all, including my CStarsConv.exe, into one folder I named "CStarsConv" in Program Files. No luck. Whenever I try to open CStarsConv.exe, a DOS prompt appears briefly but disappears. (One more thing): I try to open stars.dat with CStarsConv.exe (the application), and I'm not successful there either. I'm not even sure I am doing this correctly, but does anyone have any suggestions?
I've tried renaming certain files such as the xkrn2505.dll file also, and it doesn't work. I have the java and excelsior jet programs installed, and I've tried putting them all, including my CStarsConv.exe, into one folder I named "CStarsConv" in Program Files. No luck. Whenever I try to open CStarsConv.exe, a DOS prompt appears briefly but disappears. (One more thing): I try to open stars.dat with CStarsConv.exe (the application), and I'm not successful there either. I'm not even sure I am doing this correctly, but does anyone have any suggestions?
A C version is in the works.
Like many non-GUI programs, CStarsConv must be run from the command line. Go to a DOS prompt, and give it another try.
Meanwhile I am working to get rid of at least one variable in all this by rewriting the program in C. That should solve most of the issues. It has just been almost 10 years since I did any serious C coding and it is going to be painful. Java is my forte, so I was hoping that I could use Java. But there is obviously too much baggage. Pitty...
Sorry it has been such a hassle to all. I will post a notice here when the C version is ready for download from SpaceGear.Org.
Meanwhile I am working to get rid of at least one variable in all this by rewriting the program in C. That should solve most of the issues. It has just been almost 10 years since I did any serious C coding and it is going to be painful. Java is my forte, so I was hoping that I could use Java. But there is obviously too much baggage. Pitty...
Sorry it has been such a hassle to all. I will post a notice here when the C version is ready for download from SpaceGear.Org.
I would maybe write one in VB make it simple...where you can query a star from the dat file by HIP or HD catalog #...and add them in...have a form with many text boxes
...I have thought of writing one...but sadly I think VB cannot handle data conversion as well as C++ so you might have to use that...
![Mr. Green :mrgreen:](./images/smilies/icon_mrgreen.gif)
I'm trying to teach the cavemen how to play scrabble, its uphill work. The only word they know is Uhh and they dont know how to spell it!
Tweaking stars.dat
Well, I tried inputing several directories for the CStarsConv program into my computer's prompt (not a DOS prompt though). I've tried copying the folder into several different catagories such as C drive and others. Still, no luck
. When I input something such as C:\Documents and Settings\All Users\Documents\CStarsConv\CStarsConv.exe for one of my directories a message shows up saying that 'C' is not one of the operating drives for the prompt or something. Oh well, I guess I'll just wait until the program is written again in C.
![Sad :(](./images/smilies/icon_sad.gif)
CStarsConv is now available in C
Whew.... Its been a long time since I did any C coding, so the source will probably look rather primitive to most folks. But it works, and no other stuff is required to get it to run. It is available at SpaceGear.Org. I have discontinued making the Java executable download available. The Java source and compiled classes are still available with the C source download for those who want to twiddle with Java code.
New data table contains Celestia stellar classes
The CSCTable (available at SpaceGear.Org/data) is a Comma Separated Variable (CSV) file, that contains the various stellar classes used within Celestia's stars.dat database. CStarsConv (available at SpaceGear.Org/software) was used to generate a Star System Registry (SSR) formatted file from Celesta's stars.dat database. This SSR file was then parsed to create this CSV file. Each row consists of the class name and the number of times the class name appears within Celestia's stars.dat database. This table is designed to help locate anomalous stars.dat database stellar class entries so that they may be corrected in accord with the effort to standardize class names within the SSR.
CStarsConv version 1.2 is now available
Version 1.2 of CStarsConv fixes an intermittent array overflow problem that sometimes caused improper class names to be stored in the XML file.
Available for download from SpaceGear.Org
Available for download from SpaceGear.Org