Selden's short wish list

Post Reply
User avatar
selden
Posts: 6
Joined: Thu Nov 30, 2017 10:03 pm

Selden's short wish list

Post by selden » Fri Dec 01, 2017 8:48 pm

Here are some features that I, as an Addon author, would like to be able to use.

1. "Include" statements in catalog files (.ssc, .stc and dsc)
for example,

Code: Select all

Include "planets.inc"
Include "stargen/newsystem/moons.inc"
Background:
Some of my .SSC files for Celestia v1.6.1 have become particularly unwieldy. It'd be nice to be able to break them up into pieces which load in a well-defined order. Although Windows normally loads files in alphabetical order, this is not the case for Linux, where files usually seem to be loaded in order of increasing inode value, which can be different for different file systems. The current fix for this random sequence of loading is to include all of the SSC declarations for a particular Addon in a single file.

2. Right-Mouse-Button menu items for Stars which are the same as those available for SSC objects, including the various "Reference Marks" and, eventually, "Alternate Surfaces". (The latter would probably require far more coding than showing Reference Marks would.)
Selden

Janus
Site Admin
Posts: 9
Joined: Tue Nov 14, 2017 7:34 am

Re: Selden's short wish list

Post by Janus » Sat Dec 02, 2017 9:16 pm

Selden.

1.
A quick glance through loadsolarsystemobjects shows it may be possible to create a recursive loop in that function.
Right now it recognizes 'Add', 'Replace' & 'Modify' keywords.
If 'Include' were added to the list, then it may be possible for the routine to call itself replacing the current filename, with the named one.
This is only at a glance however, actual parse tracing would be needed, but it looks feasible.

2.
I have already been tinkering with adding extra directories for additional textures.
Right now there are lores, medres & hires.
I was looking at adding infrared, untraviolet, xray, alt1, alt2, alt3 to cover bodies and stars alike.
I also had delusions of later being able to combine textures, but that is currently well beyond my knowledge level.


Janus.

Janus
Site Admin
Posts: 9
Joined: Tue Nov 14, 2017 7:34 am

Re: Selden's short wish list

Post by Janus » Wed Dec 13, 2017 5:13 pm

Okay, as for the "Include" function.

I believe I have a starting point.

I will be making a temp fork and adding the keyword to make recursive load calls.
My question however, is should I start with stars or solar system objects.

I do not know which would make it easier for you test with.


Janus.

User avatar
selden
Posts: 6
Joined: Thu Nov 30, 2017 10:03 pm

Re: Selden's short wish list

Post by selden » Wed Dec 13, 2017 9:08 pm

I'd prefer the initial attempt to be for SSC (planetary) catalogs. They're the ones which wind up being the longest and most complex in my Addons.
Selden

Post Reply