Nightshade G3 / NG Scripting Differences Compared to Legacy¶
If you have StratoScripts authored for Nightshade Legacy, you may need to make some adjustments for full functionality on Nightshade NG.
Changes that won’t break anything...¶
- The
external_viewercommand is still supported but deprecated. It simply forwards to newvideocommand. - Simultaneous playback of multiple audio and video sources now supported.
- Audio and video commands can take a new optional parameter
nameprovided along with thefilenameparameter (at load time). This parameter behaves identically to the use in theimagecommand and provides support for referencing more than one audio/video source. If anameis not provided, the behavior matches that of Legacy and only one at a time is supported. audioandvideocommands now have aseekargument.- The
external_viewerparameterbackground_framerateis deprecated. - The
audio output_rateis deprecated. videonow supports all coordinate systems (same asimage).videosupport forxposandyposparameters is identical toimagecommand.- New experimental
textcommand allows one to display text. flag time_lapseaddedbodycommand can now load 3D models if your NG edition supports this.
Changes that could break things...¶
These are sorted with the most likely to cause problems at the top. Some of these will be fixed or improved over time.
- When using the
movetocommand it will now take the shortest path between two points. So if you have to travel more than 180 degrees you need to break your path into at least two smaller movements. Use an acceleration of zero so that movement is continuous. - Currently when using the
movetocommand, you can only have one animation at a time. If onemovetobegins while another is still in progress, the newestmovetowill replace the last. Key frames may help. - If you
flytoa body you are not automatically landed on it, meaning you can not turn on your photographic landscape. Seemoveto land. - There is currently no
nebulacommand to load your own nebula images in the sky. Use theimagecommand instead. - Nebula names have changed. Use the NGC or IC number like
select nebula NGC500. - There is no
set milkyway_textureequivalent yet. Use theimagecommand instead with a scale of 360 degrees. moveto headingnow sets your navigational heading and is not backward compatible.flag orbit_trailsand related color is deprecated - see new time lapse feature.- body command big_halo feature deprecated.
- Dropped support for “old style” landscapes.
- Selecting a body does not affect your selected constellations. This is a feature improvement but differs from past behavior.
set zoom_offsetis deprecated. Seeset focal_altandset focal_aziinstead.- removed
zoom delta_fovas it never worked well in practice. max_mag_nebula_nameis deprecated.- removed
flag fog. - removed
flag point_star. - removed
image mipmapas unneeded. - removed
flag antialias_linesas this is now standard.