I'd just suggest you use a similar function for the haze as you do for the altitude limit for atmospheres.
I thought that I do just that...? mybe a slight glitch in there somewhere, I'll have another look at it. The haze should have a direct relation to the atmosphere limit...
...and Orbiter crashes on arrival at the new system, with reports of missing planet textures.
It also creates a scenario called !OGSSwitch with the description "if you see this file, something went terribly wrong. sorry for the inconvieniance, you may delete it!" so I'm guessing something went kangaroo on me... 12-20-10 11:46 PM
Something is majorly cangoroo (what kind of expression is that? :lol

... Orbiter does NOT report missing planet textures, the planet simply show up without them. Could you post the contents of your Orbiter Log file, please?
that The !OGSwitch scenario is still there only means that orbiter crashed during loading, so Orbiter Galaxy never got the chance to delete it again.
Hmm, it seems Orbiter Galaxy doesn't generate textures for me. When the window is supposed to minimise and generate textures, it does nothing (even after half an hour of idling)
Please be more specific: does the window minimize and then nothing happens, or doesn't it even minimize? If the second is the case, you're most probably trying to export a system you already exported (or tried to export). That system will be noted in the cache and not get exported again until it gets thrown out (i.e. removed from the hard drive).
To manually remove a system from cache that wasn't exported succesfully, open cache.txt in the orbitergalaxy folder and remove the corresponding system. Make sure the number in the top-most line shows the correct number of systems in the cache again after your finished.
---------- Post added at 04:59 PM ---------- Previous post was at 08:27 AM ----------
I just got around to look at the code, everything seems to be as I thought it should be. Atmospheric haze extent should always be 80% of atmospheric altitude limit...? Donatello, are you sure that the haze goes above the altitude limit (as in "confirmed by looking at the planets .cfg")? If yes, I'm completely baffeled currently.
---------- Post added at 05:24 PM ---------- Previous post was at 04:59 PM ----------
:facepalm:
Ok... I got the bugger. I mistook AtmHazeExtent for AtmHorizonAlt... the later is having absolutely ridiculous values, and it's that that's responsible for the overblown atmospheres. Will be fixed soon, but first I need to figure out what exactly AtmHazeExtent is supposed to be... "Width parameter for extent of horizon haze rendering" somehow isn't ringing a bell at all...
---------- Post added at 05:43 PM ---------- Previous post was at 05:24 PM ----------
Done. Patch is up! thanks for the awareness, Donatello!