-
Notifications
You must be signed in to change notification settings - Fork 155
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
Materials used in engineering are not counted when syncing to Inara #1395
Comments
|
This might be related to the following in monitor.py: elif event_type == 'EngineerCraft' or (
event_type == 'engineerlegacyconvert' and not entry.get('IsPreview')
): i.e. the first line needs the string folding to lower case. |
So, am I correct to believe that this has been confirmed on your end as well? Labels still say that this is unconfirmed. And, even though I'm not an expert on Python, it does seem that |
Possibly, it'll certainly be the first thing checked when I'm not looking at other open issues (I came upon that code whilst checking something else). |
Understood. |
Things to note about this step.
Yes, we are aware it can make it difficult to check if it's just EDMC not having sent the data yet, or if some bug is preventing it being sent at all. We have that "at most every 35s" because if we send more than 2 messages a minute the Inara API will ban the user (identified by your API key) for one hour.
So, with those two points made....
|
Ref: #1433 , but that will be a part of 5.4.0 work. |
I checked some more, and it turns out this is the case:
So, yes, now I've fixed the bug in the monitor.py event handling you should expect Inara to get updated for any engineering once at least 35 seconds have elapsed (and possibly sooner). |
Closing this for now, as it is believe fixed in the |
Downloaded, will test soon. |
So far so good, remote engineering is now reducing the correct amount of materials in Inara. Haven't gone to a specific engineer yet, but I assume it doesn't really differ as far as the journal goes. Here's a snippet from 2022-02-05 12:05:41.305 UTC - TRACE - 7300:1508:1508 plugins.inara.new_worker:1555: Events:
{"header": {"appName": "E:D Market Connector", "appVersion": "5.3.0-beta7+8f9bfe90", "APIkey": "****", "commanderName": "kiksunator", "commanderFrontierID": "****"}, "events": [{"eventName": "setCommanderInventoryMaterials", "eventTimestamp": "2022-02-05T12:05:34Z", "eventData": [****materials here****]}, {"eventName": "resetCommanderInventory", "eventTimestamp": "2022-02-05T12:05:34Z", "eventData": [{"itemType": "Items"}, {"itemType": "Components"}, {"itemType": "Data"}, {"itemType": "Consumables"}]}, {"eventName": "setCommanderInventory", "eventTimestamp": "2022-02-05T12:05:34Z", "eventData": [****inventory here****]}]} (sorry I couldn't figure out how to wrap this properly) |
Re: line-wrap, that's just how "pre-formatted"/"code" comes out on GH. I did edit in the 'python' hint so it's now syntax highlighted though :) |
Just to keep the discussion alive, I haven't noticed any unexpected behaviour regarding the change that fixed this. The material amounts in Inara are now updated correctly when using engineering blueprints and adding experimental effects, just like they should be. One thing does puzzle me though: how long has this issue existed and how has nobody else noticed this before? 🤔 I know I noticed the material amounts not matching a while ago already, but assumed it was some weird problem with Inara and didn't notice the cause until maybe a month ago. Am I just a rare nutcase that uses Inara to plan engineering and/or resource gathering? |
The code has been that way since mid-2021, so there's a clear 6 months in which no-one noticed and/or bothered to report it. Thanks for checking this beta. I'll close this issue for good now you've tested it works. |
Please complete the following information:
Describe the bug
When EDMC syncs material inventory to Inara, there seem to be some problems where the total amount is not counted correctly if materials have been used for engineering. The used material counts appear to be available in the journal events and EDMC logs seem to suggest that those events are processed, but the material amounts are not updated. This behavior seems to happen for both regular engineering and experimental effects. Only scooping or trading (aka gaining more) materials seem to update to Inara, and all this combined can throw the material amounts totally out-of-sync.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Materials used in engineering should be retracted from the total amounts when sending them to Inara.
The text was updated successfully, but these errors were encountered: