I need help... with my script

All about writing scripts for Celestia in Lua and the .cel system
Topic author
Kozak

I need help... with my script

Post #1by Kozak » 31.10.2004, 12:00

I need help...I can't write in russian at celestia and my english not very good. That's why i can't write good words in my scripts. Who want help me, please see my script and add good sentences... May be somebody want correct my script..
Thank you...
send me new version to e-mail: ccop@mail.ru

Code: Select all

{   
   cancel{}
   print {text "Please wait... Connection...\nTebenkos company presents...\nTwinSoft Inc" origin "center" column -5 row 7 duration 6}
   renderflags { clear "atmospheres|automag|boundaries|cloudmaps|comettails|constellations|eclipseshadows|galaxies|grid|markers|nightmaps|orbits|planets|pointstars|ringshadows|stars"}
   labels { clear "asteroids|comets|constellations|galaxies|moons|planets|spacecraft|stars"}
   unmarkall {}
   wait { duration 5}
   
   cls {}
   wait { duration 1}
   
   select {object "milky way" }
   gotolonglat {distance 9.0 longitude -45 latitude 20}
   wait { duration 1}
   
   renderflags { set "galaxies"}
   print {text "About galaxy" origin "left" column 2 row 3 duration 6}
   wait { duration 2}
   
   orbit  { axis [ 0 1 0 ]
    rate 30
    duration 5 }

   print {text "About galaxy 2" origin "left" column 2 row 3 duration 6}
   wait { duration 3}
   labels { set "galaxies"}
   
   orbit  { axis [ 2 0  0 ]
    rate 30
    duration 2.6 }
   
   orbit  { axis [ 0 0  2 ]
    rate 30
    duration 5 }
   
   print {text "About 3 galaxy" origin "left" column 2 row -5 duration 6}
   wait { duration 4}

   goto {duration 4 distance 13}
   
   orbit  { axis [ 0 2  0 ]
    rate 30
    duration 7 }   
   
   print {text "About solar system" origin "left" column 2 row -2 duration 10}
   wait {duration 2}
      
   setfaintestautomag45deg { magnitude 8.0 }   
   renderflags { set "stars|markers"}
   select {object "Sol" }   
   mark{ object "Sol"
          size   40.0
          color  [0 1 0]
          symbol "square" }

   goto {time 25 distance 7}
   wait {duration 10}
   unmarkall{}
   labels { clear "galaxies"}

      
   wait {duration 6}
   print  { text "About sol"
    row -15 column 1 origion "left"
    duration 6
   }
   wait {duration 5}
###########PART2###################
   timerate { rate 0 }
   rotate { duration 3
         rate 2
         axis [8 8 8] }
   wait {duration 2}   
   print  { text "About stars"
    row -15 column 1 origion "left"
    duration 6
   }
   
   rotate { duration 4
         rate 2
         axis [8 8 8] }


   rotate { duration 3
         rate 2
         axis [8 8 8] }
      
   print  { text "About stars 2"
    row -15 column 1 origion "left"
    duration 7
   }

   gotolonglat { time 20
     distance 100000
     longitude 0
     latitude 90 }
   
   wait {duration 15}
   
   renderflags { set "orbits|planets"}
   labels {set "planets"}

   print  { text "About solar system"
    row -15 column 1
    duration 4
   }
   wait {duration 5}
   
   timerate { rate 10000000 }
   
   print  { text "Speed X 10000000"
    row -5 column 30
    duration 2
   }
   
   wait {duration 2}
   print  { text "text"
    row -5 column 1
    duration 3
   }
   
   wait {duration 4}

   #
   print  { text "text"
    row -5 column 1
    duration 5
   }
      
   goto {
   time 16
   distance 2857
   }
   
   wait {duration 18}
   
   print  { text "text"
    row -5 column 1
    duration 5
   }

   wait {duration 3}   
   
   goto { time 5
     distance 100000
   }
   wait {duration 6}
   
   timerate { rate 1000000000 }
   
   print  { text "Speed X 1000000000"
    row -5 column 30
    duration 2
   }
   
   wait {duration 3}
   goto {
   time 3
   distance 2857
   }
   wait {duration 6}   
   goto { time 3
     distance 100000
   }
   
   wait {duration 1}

   timerate { rate 0 }
   
   print  { text "Speed realtime"
    row -5 column 30
    duration 2
   }
   wait {duration 3}
##################PART3############# (MERCURY)
   renderflags { clear "orbits|markers"}
   labels { clear "galaxies"}
   renderflags { set "galaxies|planets|stars"}
   labels { set "planets|stars"}

   timerate { rate 0 }
   unmarkall {}

   select {
   object "Mercury"
   }
   gotolonglat {distance 9.0 longitude 0 latitude 0
   time 9}

   wait {duration 10} #10
   print {text "Mercury... All about" origin "left" column 1 row 7 duration 6}

   orbit  { axis [ 0 1 0 ]
        rate 30
         duration 12 }
   print {text "Mercury... All about 2 " origin "left" column 1 row 7 duration 6}
   wait {duration 3}
   
   select {
      object "Sol"
   }
   gotolonglat {distance 400 longitude 60 latitude 35
   time 5}
   wait {duration 6}
   select {
      object "Mercury"
   }
   renderflags { set "orbits"}
   print {text "Mercury... All about 2 " origin "left" column 1 row 7 duration 3}
   wait {duration 3}   
   
   timerate { rate 10000 }
   print {text "SPEED x 10000 " origin "center" column 1 row 2 duration 2}
   wait {duration 3}   

   timerate { rate 1000000 }
   print {text "SPEED x 1000000 " origin "center" column 1 row 2 duration 2}
   wait {duration 3}

   timerate { rate 1 }
   print {text "SPEED REALTIME " origin "center" column 1 row 2 duration 2}
   wait {duration 3}   

   print {text "Mercury... All about 2 " origin "left" column 1 row 7 duration 4}
   wait {duration 5}   

   print {text "Start VENUS " origin "left" column 1 row 7 duration 4}
   select {
      object "Venus"
   }
   gotolonglat {distance 140700 longitude 45 latitude 45 time 10 }
   wait {duration 10}

   print {text "About VENUS 1 " origin "left" column 1 row 7 duration 5}   
   wait {duration 4}

   gotolonglat {distance 9.0 longitude 0 latitude 0
   time 7}
   
   wait {duration 5}
   renderflags { clear "orbits"}   
   
   wait {duration 2}
   print {text "About VENUS 3" origin "left" column 1 row 7 duration 4}

   wait {duration 5}
   print {text "Lets have a look around Venus" origin "left" column 1 row 1 duration 3}
   
   wait {duration 3}
   orbit  { axis [ 1 1 1 ]
        rate 30
         duration 12 }

   print {text "text" origin "left" column 1 row 2 duration 4}
   wait {duration 5}
   print {text "Podoroz do EARTH" origin "left" column 1 row 1 duration 3}

   ##########PART4###########(EARTH)

   select {
      object "Earth"
   }
   gotolonglat {distance 115304.04766 longitude -46.97572 latitude -42.40289
   time 15}
   wait {duration 12}
   renderflags { set "orbits"}
   
   wait  {duration 4}
   print {text "EARTH 3 vid sonca" origin "left" column 1 row 1 duration 3}
   
   chase {
   chase "cel://Chase/Sol:Earth:Moon/2004-06-18T23:52:25.45421?x=4O/tRdjxFRe9DA&y=Gjek9BgxYv7//////////w&z=VVoLa31FBhcQ&ow=-0.989363&ox=0.047153&oy=-0.113197&oz=0.078252&select=Sol:Earth:Moon&fov=25.745911&ts=100000.000000<d=0&rf=2967&lm=49156"
   }
   timerate { rate 3000000}
   print {text "SPEED X 3000000" origin "center" column 1 row 2 duration 2}
   wait {duration 3}   

   print {text "Vidno yak earth obertaetsa kruh Sol" origin "left" column 1 row 2 duration 3}
   wait {duration 4}
   
   timerate { rate 300000}
   print {text "SPEED X 300000" origin "center" column 1 row 2 duration 2}
   wait {duration 3}      
   gotolonglat {distance 115304.04766 longitude 73 latitude -87.15862   time 4}
   orbit  { axis [ 3 5 4 ]
        rate 1
         duration 50 }
      
   print {text "About EARTH" origin "left" column 1 row 2 duration 4}
   wait {duration 5}
   timerate { rate 1}
   gotolonglat {distance 94099 longitude 23.58172 latitude -44.01831 time 10}
   wait{duration 10}
   renderflags { set "cloudmaps"}
   renderflags { clear "orbits"}   
   select {
      object "Earth"
   }
   gotolonglat { time 15
     distance 6
     longitude 0
     latitude 90 } #time 15
    wait {duration 16} #16

   print  { text "It is our earth..."
    row -15 column 1 origion "left"
    duration 3
   }
   wait {duration 4}
   print  { text "About EART"
    row -15 column 1 origion "left"
    duration 3
   }
   wait {duration 4}
   print  { text "Lets have look around"
    row -15 column 1 origion "left"
    duration 3
   }
   orbit  { axis [1 1 1 ]
        rate 10
         duration 20 }

   gotolonglat { time 6
     distance 6
     longitude 77.28123
     latitude 30.46017 }
    wait{duration 7}
   print  { text "This is EARTH from 38894.4 km"
    row -15 column 1 origion "left"
    duration 3
   }
   wait{duration 4}
   renderflags { clear "cloudmaps"}
   print  { text "This is EARTH without clouds"
    row -15 column 1 origion "left"
    duration 3
   }
   wait{duration 4}
   renderflags { set "cloudmaps"}
   select {
      object "Moon"
   }
   print  { text "Moon - is... And now about Moon"
    row -15 column 1 origion "left"
    duration 3
   }
   wait {duration 4}
   gotolonglat { time 10
     distance 6.5
     longitude 0
     latitude 90 }
    wait{duration 11}
   print  { text "Lets have look around"
    row -15 column 1 origion "left"
    duration 3
   }
   orbit  { axis [1 1 1 ]
        rate 10
         duration 15 }

   print  { text "About Moon 2"
    row -15 column 1 origion "left"
    duration 4
   }

   wait {duration 5}
   gotolonglat { time 6
     distance 2176.9
     longitude -123.39415
     latitude -65.13420 }
    wait{duration 7}
   print  { text "About Moon 3"
    row -15 column 1 origion "left"
    duration 4
   }
   renderflags { set "orbits"}
   chase {}
   
   timerate { rate 100000 }
   print  { text "Speed X 100000"
    row -5 column 30
    duration 2
   }
   wait{duration 4}
   print  { text "About Moon 4"
    row -15 column 1 origion "left"
    duration 4
   }    
   orbit  { axis [1 1 1 ]
        rate 10
         duration 15 }
   timerate { rate 0 }
   print  { text "About Moon 5"
    row -15 column 1 origion "left"
    duration 6
   }
   wait {duration 7}
   select {
      object "Earth"
   }   
   gotolonglat { time 7
     distance 6.6
     longitude 0
     latitude 90 }
    wait {duration 3}   
    renderflags { set "orbits"}
    wait {duration 5}

   print  { text "About EARTH 1"
    row -15 column 1 origion "left"
    duration 4
   }
   wait {duration 5}

}
:wink: :wink: :wink: :wink: :wink: :wink:

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Post #2by symaski62 » 31.10.2004, 18:28

:wink:
/!\ => no (celx)
/!\ => yes (cel)

:P
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

kozak

Post #3by kozak » 01.11.2004, 23:25

symaski62, you help me? :cry:

symaski62
Posts: 610
Joined: 01.05.2004
Age: 41
With us: 20 years 6 months
Location: france, divion

Post #4by symaski62 » 02.11.2004, 00:57

:D wow yes fichier.cel

8) :D
windows 10 directX 12 version
celestia 1.7.0 64 bits
with a general handicap of 80% and it makes much d' efforts for the community and s' expimer, thank you d' to be understanding.

Topic author
Kozak

Post #5by Kozak » 02.11.2004, 22:34

What does it mean?
fichier.cel - where is this file?

Guest

Post #6by Guest » 03.11.2004, 22:10

symaski62, plz help me... :(

cpotting
Posts: 164
Joined: 18.03.2004
Age: 63
With us: 20 years 8 months
Location: Victoria, BC Canada

Post #7by cpotting » 05.11.2004, 18:41

Kozak wrote:What does it mean?
fichier.cel - where is this file?


Hmm... I have never been able to make much sense out of symaski62's messages.

I meant to send you a reply earlier, but it has been a busy week. I will look at your script over the weekend and send you some suggestions.
Clive Pottinger
Victoria, BC Canada

Bob Hegwood
Posts: 1048
Joined: 19.10.2003
With us: 21 years 1 month
Location: Germantown, Ohio - USA

Post #8by Bob Hegwood » 05.11.2004, 23:18

Kozac,

On a very quick look at your script, the following jumps out...

Where you have origion "left" in the code, you need origin "left" so that

print { text "It is our earth..."
row -15 column 1 origion "left"
duration 3
}

becomes

print { text "It is our earth..."
row -15 column 1 origin "left"
duration 3
}

Didn't see any other errors, but I haven't had a lot of time to look either.

Maybe this helps?

EDIT: Just searched for and replaced origion with origin and the script
ran fine on my old Intel Celeron. Will send you a copy, but I don't know
if you wanted to change anything else, so I left it as is.

Take care, Bob
Bob Hegwood
Windows XP-SP2, 256Meg 1024x768 Resolution
Intel Celeron 1400 MHz CPU
Intel 82815 Graphics Controller
OpenGL Version: 1.1.2 - Build 4.13.01.3196
Celestia 1.4.0 Pre6 FT1


Return to “Scripting”