Just sat through your new random2.cel. Yep, all 15,349 lines of it.
Wow! Even I didn't sit through the whole thing!
![Smile :)](./images/smilies/icon_smile.gif)
Nice job DoS!
Thanks!
FYI, the center option in the print command does not center the text,
like one would expect. Rather, it starts displaying the beginning of the text
in the center of the window. So, you might want to adjust the opening text
accordingly.
Yes, I know. Will try to fix it.
A couple things I noticed in this particular script:
... Charon's radius is 593 km but the perl script picked a 10 m comparison size.
Fixed. There was a bug in the .ssc parser.
... Borrelly "in orbit around Sol" was done twice, back-to-back.
Only the text was the same. The 'Revolve-view / Parent-quick-look' and the
'orbit-view' have (had) a few duplicated messages. I removed those messages
so now it should be even more random.
... Ariel is shown twice (maybe defined twice in your .ssc files?).
With current randomization code there is a _very_ small chance that something
like this will happen. Other 5 test runs had no duplicates. In case there
is a duplicate, the time between the two instances should be quite large.
For example, with 50 object .ssc file, the script can produce a 500
object tour with excelent randomness (most duplicates with more then
30 objects between them). Anyway, I like the slight unpredictability.
![Smile :)](./images/smilies/icon_smile.gif)
Question: Does your perl script use constants (defined at the top of the
script) to set the number of seconds to display text under different
circumstances? For example, displaying the object name, a location name, etc.
What about other things that might be good candidates for constants, that a
user might want to change, such as sunset durations, ambient light min/max,
FOV min/max, etc.?
The script has a lot of constants defined (most of the things you would
wish to change) but for some timings it is necessary to change the code
by hand. If you feel there is a timing that is way off, let me know and I'll
either fix it or add a constant.
Once again, thanks for great sugestions and bug reports!
I think the script is ready for the public (beta) use. You can download it
from:
http://student.fizika.org/~dsvilko/explore.pl
It started as a quick, small, proof-of-concept perl script but ended
a bit on a longish side. As I didn't plan things in advance, the
script is internally quite ugly.
For those non-unix havent-heard-of-perl people out there, here are a
new .cel scripts that tours the planets/moons with atmospheres
(showing off a new sunset mode):
http://student.fizika.org/~dsvilko/atmosphere.cel
DoS