Elite Observatory - Search your journal for potentially interesting objects, or notify you of new ones on the fly while exploring!

Here's one I wrote to look for a high water content atmosphere. Should be about the same for the logic.

Code:
::Criteria::
--Landable with water atmosphere
if scan.Landable and scan.SurfacePressure > 0 and scan.AtmosphereComposition then
    for material in materials(scan.AtmosphereComposition) do
        if string.find(string.lower(material.name),'water') and material.percent >= 50 then
            return true,
                'Landable with water atmosphere',
                'Pressure: ' .. math.floor(100*scan.SurfacePressure/101325)/100 .. ', Water percentage: ' .. material.percent
        end
    end
end
::End:

Tried to adapt this but mine didn't work at all. Then I decided to copy it as is to test it and it still didn't work at all. Comes up with error "index is outside the bounds of the array"
 
First time user. I get this error. What have I missed...thanks
1636359104718.png
 
Very possible. In fact the multi-line criteria example demonstrating for loops in the documentation is already very close to what you need. Just need to change it to look for oxygen instead of carbon dioxide and nitrogen, and add a threshold for the amount.

I'll leave it to you to make the changes, but if you need help (or simply want it done) just say so!

Ok I have adapted that criteria and after some playing around with syntax such that it is no longer returning an error message I just have to wait until I hit a body with an oxygen atmosphere to see if it is working right. I haven't set a threshold in it, I just want to see if it works first before playing around some more!
 
Just installed version "0.5.21.297" of the "older" Elite Observatory. As soon as I launched it and checked setting/clicked "edit" for custom criteria, it deleted the file and keeps saying access to the file is denied every time I try to copy back the contain save/verify.

OK, "run as admin" fixed the issue of not writing to the file; but, I'm almost certain I never had to before now.
Definitely strange. Sounds like it's located somewhere that your user account doesn't have write permission for so it can't edit the file. You could try installing it in a different location or changing the permissions on its folder.

What I find most strange is that the error makes sense, I can see how it would happen, but I don't recall anyone ever reporting it before.

First time user. I get this error. What have I missed...thanks
View attachment 273941
You have missed nothing. Frontier added some new details to the station services in the journal which Observatory doesn't know what to do with yet. It will be fixed in the next release, but for now at least shouldn't interfere with exploration-based usage.
 
Definitely strange. Sounds like it's located somewhere that your user account doesn't have write permission for so it can't edit the file. You could try installing it in a different location or changing the permissions on its folder.

What I find most strange is that the error makes sense, I can see how it would happen, but I don't recall anyone ever reporting it before.


You have missed nothing. Frontier added some new details to the station services in the journal which Observatory doesn't know what to do with yet. It will be fixed in the next release, but for now at least shouldn't interfere with exploration-based usage.
many thanks
 
Tried to adapt this but mine didn't work at all. Then I decided to copy it as is to test it and it still didn't work at all. Comes up with error "index is outside the bounds of the array"
Huh, that's actually an issue in Observatory, not that criteria, as far as I can tell. I also get the same error, so it looks like there's a problem in the materials iterator. @Orvidius I assume it's working fine for you?
 
Last edited:
Huh, that's actually an issue in Observatory, not that criteria, as far as I can tell. I also get the same error, so it looks like there's a problem in the materials iterator. @Orvidius I assume it's working fine for you?

Ah ok, so it wasn't just me :)

And now I am waiting to encounter an atmospheric body with oxygen, not a lot, just some...please, but I have played half the day and they are obviously much rarer than I expected because I have seen everything else and not a single body with oxygen! Yes I am checking as I go to make sure it isn't just skipping them....and nope, not hit a single one!
 
Huh, that's actually an issue in Observatory, not that criteria, as far as I can tell. I also get the same error, so it looks like there's a problem in the materials iterator. @Orvidius I assume it's working fine for you?

Yep, I've been using it fine. I tested it out by running it against my entire journal history (the planets are infrequent enough that I had to do it that way anyway).

EDIT: Added image:
 

Attachments

  • water-atmosphere.png
    water-atmosphere.png
    12.2 KB · Views: 91
Last edited:
Okay, so I know I said I'd have some news about the next release this past weekend so here it is:

The next release is planned to include the Observatory Herald plugin, which is a voice notification plugin using Microsoft's Azure Cognitive Services speech synthesis.

Naturally this is a bit more work than the handful of bugfixes that are also pending, so they've been delayed somewhat, but fortunately none of them are big show-stopping problems. The plugin is coming along pretty well, so I'm hoping to get it released during the next weekend.

If anyone wants to sample what the Azure voices are like, MS has a demo site you can enter text and have it read to you here:
There are a lot of voices you can choose from.
 
Yep, I've been using it fine. I tested it out by running it against my entire journal history (the planets are infrequent enough that I had to do it that way anyway).

EDIT: Added image:

Took a leaf out of your idea and ran Observatory against my journals, it appears the last planet with Oxygen was indeed the one I found above, with a display of Oxygen:99%....just what I need in fact! So it is working hooray.

So it seems that atmospheric bodies with any Oxygen at all are way rarer than I expected, running against my journal I found only a couple in the last few sessions, but Ammonia and CO2 are everywhere, so I will leave it as it is without a threshold and just them out when I find them. There's one about 400ly I found a couple of days ago away I am flying to now to see how it displays.
 
Last edited:
The last entry is for the 05 Nov but there are log files after that date; should it read the latest files?View attachment 274098

It certainly should, it reads everything up to my last scan so something is going wrong here, not sure what.

Just to add a thought, maybe it did, but there was nothing in them to display? If you only landed in stations, ran missions or visited system you had already scanned it won't anything, so if you were mucking about in the bubble for the latest ones it may be correct.
 
Last edited:
The last entry is for the 05 Nov but there are log files after that date; should it read the latest files?View attachment 274098
Are you sure anything "interesting" happened in them? In the screenshot there are 6 more journals after 5th Nov, but 5 of those are < 60K - which is almost firing up the game and doing nothing. Even the last file is under half the size of the 5th Nov one. Maybe you just didn't scan anything worthwhile in those?
 
Yep, I've been using it fine. I tested it out by running it against my entire journal history (the planets are infrequent enough that I had to do it that way anyway).

Replying to myself. :)

I just wanted to add, I've been "using" that custom criteria in that it tested OK with my previous journals, but I haven't encountered a new body with it in real-time yet.
 
Replying to myself. :)

I just wanted to add, I've been "using" that custom criteria in that it tested OK with my previous journals, but I haven't encountered a new body with it in real-time yet.

When I tried to run it as is to test it the error came up immediately I jumped into a new system so if it is going to play up you shouldn't have to wait long!
 
Replying to myself. :)

I just wanted to add, I've been "using" that custom criteria in that it tested OK with my previous journals, but I haven't encountered a new body with it in real-time yet.

When I tried to run it as is to test it the error came up immediately I jumped into a new system so if it is going to play up you shouldn't have to wait long!
Oh (the elite forums seriously censor out "eff eff ess"?!). The criteria and materials iterator are both fine, it was just an incomplete copy/paste and we all missed it. Look at the script termination closely:
::End:
It's missing a :. :p
 
Back
Top Bottom