-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] "Scan game journals for exobiology" does not find files #45
Comments
I wondered when I get the first os specific problem. First impression: It seems that the journaldir is None.
thats peculiar because with the mentioned button I use the folder specified in EDMC config.
Anything that could go wrong: I'll hope its not one of the latter ones. @poinck does it work with the other button, when you got journal files at if that works I can essentially rule out the latter two. Code to modify (starts at line 434 at load.py):
to:
I do not know what the path should be on a linux system, I just hoped config would know. Bear with me with the fix. I'm currently in an exam phase in my studies and might take a bit longer. |
I copied over all my Journals to |
I checked with my own plugin and how I access the game journals and found this: def journal_entry(
cmdr: str, is_beta: bool, system: str, station: str, entry: Dict[str, Any], state: Dict[str, Any]
) -> None:
if entry['event'] == 'StartJump':
# ... It seems, I never access the files directly. But this is not an option in this case, because, all past events need to be read. I think, it has to be something about escaping spaces in the path. I'll try the hotfix and report back. |
Interesting, with this: diff --git a/load.py b/load.py
index 5fe1c55..988bf48 100644
--- a/load.py
+++ b/load.py
@@ -436,7 +436,10 @@ class ArtemisScannerTracker:
# Always uses the game journal directory
global logger
- self.rawvalue = build_biodata_json(logger, config.default_journal_dir)
+ print(config.default_journal_dir)
+ jdir = "/home/poinck/.var/app/com.valvesoftware.Steam/.steam/steam/steamapps/compatdata/359320/pfx/drive_c/users/steamuser/Saved Games/Frontier Developments/Elite Dangerous"
+ self.rawvalue = build_biodata_json(logger, jdir)
+ #self.rawvalue = build_biodata_json(logger, config.default_journal_dir)
# region eventhandling .., I get the same result like with the "local" copy of the journals.
I have very old Journal files in this directory. Never lost a single one since I play ED. Could old journal formats be the trouble makers? |
Alright, config.default_journal_path seems to be None then. old journal formats shouldn't matter with the amount that I tested the journalcrawling against.Though the possibility that it is, is not 0. If it generates these 4 when before the jsons were newly generated by the plugin it won't be because of old journal formats. When its a problem with journals not being included fully it won't even update the jsons. We might have another bigger issue here. The journal crawling seems to run and finish as normal Assuming os.listdir(path) gives every filename in the path and f.endswith(".log") works - essentially if edlogs mentioned in a code block of my first comment on here in journalcrawler.py does have a list of all journal file names then theres something wrong with the journalcrawling itself instead. Where I'd be very thankful to get my hands on the journals that make the journalcrawling misbehave. |
Would it be enough to give you the journals of the last 3 weeks or so? These should be journals you can be sure of that they include scanned bios. And another thought: Could file sorting be an issue? |
Yeah thats enough. As long as the bios in them don't track properly, then they are of interest.
If it does not go through them chronologically then yes. It's indirectly hinted at in the readme that a missing journal file will create weird trackings when using the journalcrawler. Its something I check everytime and so far it has always done them chronologically. Anyway If I get different behaviour on my machine. (i.e. "Works on my machine") I'll be configuring a whole Elite Installation on a fresh linux install to test against. Regarding that config.default_journal_dir is None I've found that it seems intentional? as config for linux inits: |
on windows I just now couldn't reproduce the behaviour. the respective soldbiodata.json and notsoldbiodata.json I get out of them: it seems to be able to work through the set you send me just fine. Though peculiar is I do not see any mention of these four:
and I checked the journals there is no mention of them, they have been done earlier? Assuming that its not os.listdir() that could sometimes not give out not already presorted under some circumstances. (os.listdir() being the culprit is much more probable than I thought before since the order of the output of os.listdir() may depend on the filesystem, got no proof of that myself yet, but seems reasonable to assume that can be the case anyway.) @poinck: |
I can test this branch (did the checkout). The thing is, I recently sold all my bio data. I need to think of a way to test this now. I think I won't be doing exobiology for some weeks. I suppose, I can just add the files I'be sent you to the journal folder of the plugin and click the button. |
just try it with the gamejournal button on that branch. if all is sold they all should appear in soldbiodata.json instead of notsoldbiodata.json which should end up mostly empty. |
Ok, it seems I confused it now with the plugin journal folder, because it still reports (a different sum) of unsold bio data after clicking the button for the game journal (but still less than I actually got, even without first-discovery bonus). |
whats the state of the notsoldbiodata.json then? I remember calculating the unsold value off of it somewhere in the code. |
even when pressing these buttons several times it should sort itself and not end up with anything in notsoldbiodata if everything was sold and or lost. |
would like some closure on thise one if the notsoldbiodata.json ended up appropiately empty on your side sometime. @poinck So I can close this in good conscience when the branch gets to main. |
Couldn't find anything wrong with it right now.
Still sounds to me that there is something fishy going on but the original problems to these seem fixed. As of now I can't get it to misbehave and report a higher value than it should be in the unsold value without leaving journal entries out. I'll close this one as changes are on dev now. |
Thx for everything so far. I will monitor #48 and contribute to it, if I see something reproducable. |
The settings options "Scan game journals for exobiology" does not find files and therefor fails to update status.
Steps to reproduce
Expected behavior:
Update the exobiology status on main EDMC window
System:
Additional context:
The text was updated successfully, but these errors were encountered: