ISS Evolution Script

All about writing scripts for Celestia in Lua and the .cel system
Topic author
gualandd
Posts: 8
Joined: 12.07.2007
With us: 17 years 4 months

ISS Evolution Script

Post #1by gualandd » 24.07.2007, 06:31

Hi to everyone!
I've made a script that illustrate the evolution of the ISS; in the script, I've used the stages from celestiamotherlode with the SSC's modified in the name ("ISS-Stage1, ISS-Stage2 and so on).

This is the script (with italian descriptions):


{
# -----------------------------------------
# International Space Station evolution
# Demonstrating the evolution of the ISS from
# the first module to the complete structure
#
# ISS from launch Nov. 20, 1998 to the final
# structure of the station
# ------------------

#initialization

print {text "Inizializzazione dello SCRIPT < ISS Stages > ..." row -7 column 1 duration 5.0}

# Cancel follow and goto commands, and set Coordinate System to Universal...
cancel {}

# Clear the display of any left-over text from the print command...
cls {}

# Set Timerate
timerate { rate 1.0}

# Unmark all objects that are currently Marked and disable marker display...
unmarkall {}

# Do not render the following objects...
renderflags { clear "boundaries|constellations|planets|stars|moons" }
renderflags { clear "markers|orbits|pointstars" }
renderflags { clear "grid" }

# Do not render the following label ...
labels {clear "planets|moons|spacecraft|asteroids|constellations|stars|galaxies"}

# Pre load textures
preloadtex { object "Earth" }
preloadtex { object "Moon" }
preloadtex { object "Sol" }

#------------------------------------------------------------------
# Script Body
#------------------------------------------------------------------

print {text "In ogni momento potete usare :\n - lo <SPAZIO> per mettere in pausa\n - premere <ESC> per abortire lo SCRIPT ." row -7 column 1 duration 5.0}
wait {duration 1.0}

# Render the following objects...
renderflags { set "automag|planets|pointstars|stars"}
renderflags {set "cloudmaps|atmospheres|nightmaps"}
labels {set "spacecraft"}

# ------------------
# Stage 1
# ------------------

time {jd 2451138}
timerate {rate 100}
renderflags { clear "orbits"}
select { object "Sol/Earth" }
center {time 1}
goto {time 4.0 distance 6}
follow {}
print { text "Evoluzione della Stazione Spaziale Internazionale" row -5 duration 10}
wait {duration 5}
select { object "ISS-Stage1" }
center {time 1}
goto {time 4.0 distance 4}
follow {}
print { text "20 Novembre 1998, il modulo Zarya (Stage 1)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 2
# ------------------

time {jd 2451152}
#cancel{}
select { object "ISS-Stage2" }
center {time 1}
goto {time 2.0 distance 5}
follow {}
print { text "4 Dicembre 1998, il modulo Unity (Stage 2)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 3
# ------------------

time {jd 2451752}
#cancel{}
select { object "ISS-Stage3" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "26 Luglio del 2000, il modulo Zvezda (Stage 3)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 4
# ------------------

time {jd 2451829}
#cancel{}
select { object "ISS-Stage4" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "11 Ottobre 2000, il modulo ITS Z1 (Stage 4)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 5
# ------------------

time {jd 2451849}
#cancel{}
select { object "ISS-Stage5" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "31 Ottobre 2000, il modulo Soyuz (Stage 5)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 6
# ------------------

time {jd 2451879}
#cancel{}
select { object "ISS-Stage6" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "30 Novembre 2000, il modulo P6 (Stage 6)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 7
# ------------------

time {jd 2451879}
#cancel{}
select { object "ISS-Stage7" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "7 Ottobre 2001, il modulo Destiny (Stage 7)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 8
# ------------------

time {jd 2452019}
#cancel{}
select { object "ISS-Stage8" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "19 Aprile 2001, il modulo SSRMS (Stage 8)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 9
# ------------------

time {jd 2452103}
#cancel{}
select { object "ISS-Stage9" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "12 Luglio 2001, il modulo Quest (Stage 9)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 10
# ------------------

time {jd 2452373}
#cancel{}
select { object "ISS-Stage10" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "8 Aprile 2002, il modulo ITS S0 (Stage 10)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 11
# ------------------

time {jd 2452555}
#cancel{}
select { object "ISS-Stage11" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "7 Ottobre 2002, il modulo ITS S1 (Stage 11)" row -5 duration 10}
wait {duration 15}

# ------------------
# Stage 12
# ------------------

time {jd 2452602}
#cancel{}
select { object "ISS-Stage12" }
center {time 1}
goto {time 2.0 distance 4}
follow {}
print { text "23 Novembre 2002, il modulo P1 Truss (Stage 12)" row -5 duration 10}
wait {duration 15}

# ------------------
# Final Stage
# ------------------

time {jd 2454101}
select { object "Sol/Earth" }
center {time 1}
goto {time 6.0 distance 6}
follow {}
print { text "Ed Ora..." row -5 duration 2}
wait {duration 2}
select { object "ISS" }
center {time 1}
goto {time 2.0 distance 3}
follow {}
print { text "12 Settembre 2004, missione STS-114 (Final Stage)" row -5 duration 10}
wait {duration 15}


timerate {rate 1.0}
print {text "Lo script e' ora terminato .\nPremete '!' per tornare al giorno ed all'ora corrente ..." row -10 column 0 duration 4.0}

}

Return to “Scripting”