Page 1 of 1

(**Done**) Error: Invalid Alternate Surface

Posted: 16.10.2022, 13:48
by EarthMoon
I'm making some AltSurfaces for the sun, but Celestia's log shows:

Code: Select all

Error in .ssc file (line 8): invalid Alternate Surface
Error in .ssc file (line 16): invalid Alternate Surface
Error in .ssc file (line 24): invalid Alternate Surface
Error in .ssc file (line 31): invalid Alternate Surface


The .ssc file:

Code: Select all

AltSurface
   "Visible light"
   "Sol"
   {
      Texture
         "sun_visible_ov.jpg"
   }
         # <-------------------- Error in .ssc file (line 8): invalid Alternate Surface
AltSurface
   "Visible light (SOHO)"
   "Sol"
   {
      Texture
         "sun_visible_soho.jpg"
   }
         # <-------------------- Error in .ssc file (line 16): invalid Alternate Surface
AltSurface
   "Ultra violet"
   "Sol"
   {
      Texture
         "sun_uv.jpg"
   }
         # <-------------------- Error in .ssc file (line 24): invalid Alternate Surface
AltSurface
   "X-ray"
   "Sol"
   {
      Texture
         "sun_xray.jpg"
   }      # <-------------------- Error in .ssc file (line 31): invalid Alternate Surface


(The texture files' names are correct.)
Why doesn't Celestia like empty lines or even a (strictly required) "}"? :think:
I can't see any errors on the marked lines :think:

Some info about the .ssc file:
File encoding: UTF-8
Line endings: Windows (CR LF)
File ending: .ssc
File size: 644 B

and Celestia:
Celestia version: 1.7.0

Posted: 16.10.2022, 15:17
by SevenSpheres
Celestia does not support alternate surfaces for stars, and if it did they would be defined in .stc files.

Posted: 16.10.2022, 16:20
by EarthMoon
Oh ok :smile:

Then plan B is required: A sphere around the sun with the alternate textures. :biggrin: