I decided to try to make my Apollo addon more realistic, so I copied all of the solar system data files into the extras directory, and when I tried to condense it all into one big ssc file, and mass-replaced "Sol" with "SSB2" using microsoft word, I discovered that there was encoding used for the solar system location files, and that ms word automatically used special characters for some of the location names, resulting in a significant percentage of the locations not displaying in celestia.
How should I fix it?
The reason I merged all the files into one big file is that sometimes out of three separate ssc files, only two will show up in celestia.
SSC location file encoding
Forum rules
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
Please help to make this forum more useful by checking the FAQs before posting! Keep it clean, keep it civil, keep it truthful, stay on topic, be responsible, share your knowledge.
-
Topic authorPlutonianEmpire
- Posts: 1374
- Joined: 09.09.2004
- Age: 40
- With us: 20 years 2 months
- Location: MinneSNOWta
- Contact:
SSC location file encoding
Terraformed Pluto: Now with New Horizons maps! :D
Re: SSC location file encoding
Word modifies the contents of the files. You might try using COPY instead. In a CMD window, type
COPY name1.ssc/B + name2.ssc/B outputname.ssc/B
The /B switches are needed to prevent COPY from inserting a Ctrl-Z in the output file. Replace nameN by the actual names of your files.
If you have Cygwin installed, you can use cat.
When using separate SSC files, they have to be loaded in the correct order. SSC files containing objects used in other SSC files have to be loaded before the files which use them. If the files are loaded out of order, some objects will be ignored because their parent objects haven't been defined yet. Under Windows, Celestia loads SSC files in alphabetical order. That's not always the case under MacOS or Linux.
COPY name1.ssc/B + name2.ssc/B outputname.ssc/B
The /B switches are needed to prevent COPY from inserting a Ctrl-Z in the output file. Replace nameN by the actual names of your files.
If you have Cygwin installed, you can use cat.
When using separate SSC files, they have to be loaded in the correct order. SSC files containing objects used in other SSC files have to be loaded before the files which use them. If the files are loaded out of order, some objects will be ignored because their parent objects haven't been defined yet. Under Windows, Celestia loads SSC files in alphabetical order. That's not always the case under MacOS or Linux.
Selden
-
Topic authorPlutonianEmpire
- Posts: 1374
- Joined: 09.09.2004
- Age: 40
- With us: 20 years 2 months
- Location: MinneSNOWta
- Contact:
Re: SSC location file encoding
I tried that, but realized that I'd still have to go into the files and change "Sol/..." to "SSB2/..." and I used word to do it en masse, because, to be honest, I do not have the patience to do each line individually, and using word would mean it would modify the content of the file(s) in question.selden wrote:Word modifies the contents of the files. You might try using COPY instead. In a CMD window, type
COPY name1.ssc/B + name2.ssc/B outputname.ssc/B
The /B switches are needed to prevent COPY from inserting a Ctrl-Z in the output file. Replace nameN by the actual names of your files.
If you have Cygwin installed, you can use cat.
When using separate SSC files, they have to be loaded in the correct order. SSC files containing objects used in other SSC files have to be loaded before the files which use them. If the files are loaded out of order, some objects will be ignored because their parent objects haven't been defined yet. Under Windows, Celestia loads SSC files in alphabetical order. That's not always the case under MacOS or Linux.
What should I do?
Terraformed Pluto: Now with New Horizons maps! :D
-
- Posts: 1803
- Joined: 12.10.2007
- With us: 17 years 1 month
Re: SSC location file encoding
PlutonianEmpire wrote:What should I do?
Use Notepad2 to replace the offending characters.
Thanks, Brain-Dead
Brain-Dead Geezer Bob is now using...
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN
Windows Vista Home Premium, 64-bit on a
Gateway Pentium Dual-Core CPU E5200, 2.5GHz
7 GB RAM, 500 GB hard disk, Nvidia GeForce 7100
Nvidia nForce 630i, 1680x1050 screen, Latest SVN
-
Topic authorPlutonianEmpire
- Posts: 1374
- Joined: 09.09.2004
- Age: 40
- With us: 20 years 2 months
- Location: MinneSNOWta
- Contact:
Re: SSC location file encoding
Thank you very much!
Terraformed Pluto: Now with New Horizons maps! :D