No Marker displayed

All about writing scripts for Celestia in Lua and the .cel system
Topic author
The Chimp
Posts: 4
Joined: 16.09.2018
With us: 5 years 7 months

No Marker displayed

Post #1by The Chimp » 28.11.2018, 17:04

Hello,

In my .celx script I have the following .cel code...

Code: Select all

CEL([[{
   select { object "Sol/Earth/Moon" }
   center { }
   goto   { time 3 distance 6 up [ 0 1 0 ] upframe "equatorial" }
   wait   { duration 6 }
   gotolonglat { time 5.0 distance 2.5 longitude -23.4219 latitude -3.0128}
   renderflags {set "markers"}
   mark {object "Sol/Earth/Moon/Apollo12" size 10 color [1 1 0] symbol "square"}
   print {text "             Apollo 12\n\nSite         : Ocean of Storms\nDates      : 19 November 1969 - 21 November 1969\nDuration  : 1-day, 7:31\nCrew       : P Conrad, A Bean"
   row -20
   column 45
   duration 12.0}
    }]])
   wait(10)


    celestia:setrenderflags{markers = false}
    celestia:settime(2458449.45546)
    celestia:settimescale(1)

  CEL([[{
   select { object "Sol/Mars" }
   center { }
   goto   { time 3 distance 6 up [ 0 1 0 ] upframe "equatorial" }
   wait   { duration 6 }
   gotolonglat { time 5.0 distance 2.5 longitude 135.9 latitude 4.5}
   renderflags {set "markers"}
   mark {object "Sol/Mars/Insight" size 10 color [1 1 0] symbol "square"}
   print {text "             InSight\n\nSite         : Elysium Planitia\nLanding Date       : 26 November 2018\nMission  : Studying Mars' interior structure"
   row -20
   column 45
   duration 12.0}
   }]])
   wait(10)


The problem is that the square marker doesn't appear in the Mars piece. The Apollo 12 thing works correct.

This I append in the mars_locs.ssc:

Code: Select all


Location "Insight" "Sol/Mars"
{
    LongLat [ 135.9 4.5 0 ]
    Size 537.00
    Importance  49.45
    Type "AA"
}


I hope anyone has an idea.. thanks.

L L A P

onetwothree
Site Admin
Posts: 704
Joined: 22.09.2018
With us: 5 years 7 months

Post #2by onetwothree » 28.11.2018, 17:28

For me it's vice versa, I have a marker on the Mars, but not on the Moon.

It doesn't look like you need to embed cel inside celx, why not to use celx only? Or cel only?

Topic author
The Chimp
Posts: 4
Joined: 16.09.2018
With us: 5 years 7 months

Post #3by The Chimp » 28.11.2018, 23:19

This is a part of a Solar System celx script. I was curious how the .cel embed works. It will be a total .celx script because I have some 'if then else' statements and some 'for' and 'while' loops and some functions in the script. Thanks.


Return to “Scripting”