Greetings Selden!
re:
SloJoe's trouble. I've done it! I've found what the trouble is: we have a compound of three problems:
1. All .stc files must end with a blank line.
2. Whether you use Notepad or Wordpad, the encoding chosen
must be for ANSI text, not Unicode,
etc.
3. Whether you download and/or copy the text for the example .stc file HIP 500000 from your browser, mozilla based browsers (
e.g., netscape)
may add as little as zero CRs to your clipboard depending on precisely how far you dragged the cursor down to highlight following blank lines, IE browsers
will add two CRs, regardless of whether you didn't drag the cursor to down to highlight following blank lines. In both cases you cannot easily see if you have highlighted any final blank lines. Why is
this important? See problem 1.
These explain all the missing star problems reported by
SloJoe and myself, and why people get mysteriously different results.
After discovering these problems, I noticed that all the working .stc files I had (including
granthutchison's nearstars.stc) did have the final blank line all along.
To help people stop falling foul of this browser 'feature', you might edit the notes in section 2.1 about the need for the final blank line, ANSI text encoding, and to beware browser limitations with copying text from webpages. I'm not sure if you can 'force' a final blank line into HTML due to browser limitations, so my proposals for workarounds are left useless. Pfff...
The same goes for .scc files! Which means my original comment that .scc files are much more immune to problems is not necessarily true.
Finally, I suspect there's a second problem in addition to the problem of Notepad and Wordpad ...
This "second" problem I raised is a separate issue which I'll deal with elsewhere, elsewhen.
Meantime, detailed ramblings:
I note you give two example versions for HIP500000.stc: one inline for Cel. v.1.3.0 without the name "Intro", and another in the 'sidebar' for Cel. v.1.3.1 with the name "Intro". Both show
12 non-blank lines of text. It makes no difference to these problems which you use, and I tried both with Celestia v.1.3.1.
When you copy the green text in a mozilla based browser and paste into Notepad or Wordpad, you will not necessarily get a
13th blank line. When you copy this with a IE browser, you will get a
13th and
14th blank line.
Even if you follow the HIP500000.stc link, you will still have the same behaviour between browsers: both mozilla and IE browsers will appear not to let you highlight a 13th line, but IE will add two lines into the clipboard. Again, this shows up when you paste into Notepad and Wordpad and move the cursor to the end of file.
When you initially
Save As... the file in Notepad, you have a choice of four encodings:
- ANSI
- Unicode
- Unicode bigendian
- UTF-8
Choose "ANSI". Notepad will then annoy you by appending .txt to the filename. For example, if you
Save As... to HIP500000.stc, you'll find HIP500000.stc.txt instead. Rename the file to HIP500000.stc before running Celestia, or it won't find the file.
If you use Wordpad instead, you get five choices:
- Word for Windows 6.0
- Rich Text Format (RTF)
- Text Document
- Text Document - MS-DOS Format
- Unicode Text Document
Choose "Text Document". You can choose "Text Document - MS-DOS Format" as well - it seems to work the same as "Text Document". Do not choose any other encoding. In both cases, Wordpad appends .txt to the file name, so you'll have to edit the filename after first creation.
If you run Celestia and it finds a .stc file encoded in ANSI, but it does not have a final blank line, it hangs before it can open a window. You have to go to the Task Manager to end the process (test OS was Win 2000 Pro). It seems Celestia
needs .stc files to end with a double CR to know the end of file. Sensible, really.
If you saved the file as Unicode (or similar), Celestia will run but the star isn't found at the console. It makes no difference if the file has the necessary final blank line. That's because (I presume) Celestia ignores non-ANSI files altogether.
Only when a .stc file is encoded in ANSI text, and has a double CR ending that creates a final blank line, will Celestia succeed in creating the file contents.
Spiff.
P.s., has anyone told SloJoe?