What would cause an SSC file to simply stop working?

Have a question about using Celestia? Check here first for FAQs and helpful advice.
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.
Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

What would cause an SSC file to simply stop working?

Post #1by PlutonianEmpire » 30.08.2012, 05:13

That's exactly what just happened. No virus, no modification of code, no updates off the SVN, no changes *whatsoever*. And I tried cutting and pasting the code to an entirely new file, it still didn't work.

So I don't know what I did, but this laptop came extremely close to ceasing to exist when I discovered this. :lol:

Of course, it wouldn't have been the first time I made one of my computers cease to exist.... :twisted:

So.... Yeah. :(

I don't know what could be wrong with the code, as the Celestia code language for Notepad++ tells me everything's in tip-top shape, but maybe someone could take a look at it? Find something I missed? :)

Code: Select all

Modify "Cassini" "Sol" {
   Class "invisible"
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Huygens" "Sol/Cassini" {
   Class "invisible"
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Galileo" "Sol" {
   Class "invisible"
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Voyager 1" "Sol" {
   Class "invisible"
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Voyager 2" "Sol" {
   Class "invisible"
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2004 XP14" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2007 TU24" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2007 VK184" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2008 VM" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2009 DD45" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Jackson Lake" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Jackson Lake Fireball" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Jackson Lake Post-Fireball" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Sikhote Alin" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Sikhote Alin Fireball" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Tunguska" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Tunguska Fireball 1" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Tunguska Fireball 2" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "Lovejoy" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}


The star (STC) code:

Code: Select all

Barycenter "Sol-Bastet" {
   OrbitBarycenter "SSB"
   CustomOrbit "vsop87-sun"
}

0 "Sol:Sun" {
   SpectralType "G2V"
   AbsMag 4.83
   OrbitBarycenter "Sol-Bastet"
   EllipticalOrbit {
      Period            0.02746967830253251197809719370294
      SemiMajorAxis     0.04701845522660936571428571428571
      # Period            0.03378261464750171115674195756331
      # SemiMajorAxis     0.0539711261875635
      Eccentricity      0.0145
      Inclination       0.1070
      AscendingNode     26.7047
      ArgOfPericenter   332.5323
      MeanAnomaly       338.8521
   }
   UniformRotation {
       Period            120.49447754137115839243498817967
      # Period            148.18588179669030732860520094563
       Inclination       0.1070
       AscendingNode     26.7047
       MeridianAngle     220.2618
   }
}

Star "Bastet:Bast" {
   SpectralType "K3V"
   AbsMag 6.70107
   OrbitBarycenter "Sol-Bastet"
   EllipticalOrbit {
      Period            0.02746967830253251197809719370294
      SemiMajorAxis     0.06269127363547915428571428571429
      # Period            0.03378261464750171115674195756331
      # SemiMajorAxis     0.071961501583418
      Eccentricity      0.0145
      Inclination       0.1070
      AscendingNode     26.7047
      ArgOfPericenter   152.5323
      MeanAnomaly       338.8521
   }
   UniformRotation {
       Period            92.03121513002364066193853427896
      # Period            113.18134278959810874704491725768
       Inclination       0.1070
       AscendingNode     26.7047
       MeridianAngle     315.5240
   }
}


I've tried everything I could think of, but instead of making the selected spacecraft invisible, nothing happens.

It's quite irritating, because this exact same code -- EXACT SAME CODE -- was working absolutely perfectly since I made it (the exception that the re-centering attempt never even worked for the spacecrafts since they had .xyz orbits) until tonight when it just stopped working. :?

The SSC for the rest of the system, and the above code, is in the attached zip.
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
John Van Vliet
Posts: 2944
Joined: 28.08.2002
With us: 22 years 2 months

Re: What would cause an SSC file to simply stop working?

Post #2by John Van Vliet » 30.08.2012, 11:39

--- edit ---
Last edited by John Van Vliet on 19.10.2013, 04:39, edited 1 time in total.

Avatar
Fenerit M
Posts: 1880
Joined: 26.03.2007
Age: 17
With us: 17 years 7 months
Location: Thyrrenian sea

Re: What would cause an SSC file to simply stop working?

Post #3by Fenerit » 30.08.2012, 12:17

Maybe you must specify the radius of the spacecrafts. The class is radius-sensitive.
Never at rest.
Massimo

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: What would cause an SSC file to simply stop working?

Post #4by PlutonianEmpire » 31.08.2012, 01:47

Setting the CustomOrbit to "none" or adding radius definitions did not fix it. :?

Even adding in fake elliptical orbit definitions failed.

If you look at what I have done which worked previously, I set the classes to invisible for all the spacecraft as a result of being unable to recenter their orbits properly, and until this point, the SSC worked and they were completely invisible, as it should be doing. Somehow, they're not invisible anymore. :?
Terraformed Pluto: Now with New Horizons maps! :D

Avatar
Topic author
PlutonianEmpire M
Posts: 1374
Joined: 09.09.2004
Age: 40
With us: 20 years 2 months
Location: MinneSNOWta
Contact:

Re: What would cause an SSC file to simply stop working?

Post #5by PlutonianEmpire » 31.08.2012, 04:37

Ok, I don't know why I didn't think of it before, but I tried some re-ordering, and put all the spacecraft at the bottom, and the asteroids from the Motherlode started working properly, meaning they were now re-centered to the new Barycenter; but the spacecraft still didn't work. So I figured Cassini might have been the problem, so I moved the Voyager probes to the top of the spacecraft section, but no change, so I'm guessing there's something about the spacecrafts and/or their customorbits that are causing them to not re-center or disappear like they should be doing.

EDIT: I've been neglecting to mention my file structure for this. it is as follows:
C:\Users\<me>\Documents\Celestia\extras\Solar System\TemporaryExile2\zTwoSuns\Miscellaneous.ssc

For the voyager probes:
C:\Users\Eugene\Documents\Celestia\extras\Solar System\voyager-full\voyager.ssc

(Cassini, Huygens and Galileo still in their "extras-standard" directory)

And the asteroids:
C:\Users\Eugene\Documents\Celestia\extras\Solar System\<asteroidname>.ssc

And apparently, while looking up the structures, I found out that I deleted the "impactors" collection I got from the motherlode, so I deleted them from the SSC file, keeping all the rest, and moved comet lovejoy to below the spacecraft, and removing all definitions but the "class invisible" definition from the spacecrafts. That's when it got weird. Apparently, even though the spacecrafts failed to register any changes, comet lovejoy (itself being simply in the Solar System folder) still managed to re-center to the new barycenter. 8O

Here's the code for Miscellaneous.ssc in it's new arrangement (getting the asteroids from the motherlode should be a piece of cake. ;) ):

Code: Select all

Modify "2004 XP14" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2007 TU24" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2007 VK184" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2008 VM" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Modify "2009 DD45" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}

Replace "Voyager 1" "Sol" {
   Class "invisible"
}

Replace "Voyager 2" "Sol" {
   Class "invisible"
}

Replace "Cassini" "Sol" {
   Class "invisible"
}

Replace "Huygens" "Sol/Cassini" {
   Class "invisible"
}

Replace "Galileo" "Sol" {
   Class "invisible"
}

Modify "Lovejoy" "Sol" {
   OrbitFrame {
      EclipticJ2000 {
         Center "Sol-Bastet"
      }
   }
}
Terraformed Pluto: Now with New Horizons maps! :D


Return to “Help Central”