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

Report bugs, bug fixes and workarounds here.
Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 4 months
Location: Germany

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

Post #1by EarthMoon » 16.10.2022, 13:48

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
Last edited by EarthMoon on 16.10.2022, 16:21, edited 1 time in total.
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)

Avatar
SevenSpheres
Moderator
Posts: 826
Joined: 08.10.2019
With us: 5 years 1 month

Post #2by SevenSpheres » 16.10.2022, 15:17

Celestia does not support alternate surfaces for stars, and if it did they would be defined in .stc files.
My Addons: viewtopic.php?f=23&t=19978 • Discord server admin
Celestia versions: 1.5.1, 1.6.1, 1.6.2, 1.7.0, and some unofficial versions like Celestia-ED

Avatar
Topic author
EarthMoon
Posts: 200
Joined: 02.07.2022
With us: 2 years 4 months
Location: Germany

Post #3by EarthMoon » 16.10.2022, 16:20

Oh ok :smile:

Then plan B is required: A sphere around the sun with the alternate textures. :biggrin:
Crew: "We are orbiting a black hole."
Control Center: "Do not fly too close to the black hole!"
Crew: "OH OOPS..."

Celestia versions:
1.6.3, 1.7.0 sRGB, 1.6.1 ED (plain)

Current projects:
Celestial (a Celestia-like program written in Python)


Return to “Bugs”