Comments (16)
I see what the error is there - some test code got inadvertently committed. I'll upload a new release shortly.
from edmc-combattracker.
Full log file at https://gist.github.com/86a82f5664e04dd1bc36933fea6b102c
from edmc-combattracker.
I can indeed see it :)
from edmc-combattracker.
Release made: https://github.com/lunarplasma/EDMC-CombatTracker/releases/tag/0.1.1
from edmc-combattracker.
OK, after installing that (and fixing the version specifier #2 ) I get:
C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210216210754.01.log 2413 { "timestamp":"2021-02-16T23:22:13Z", "event":"MissionCompleted", "Faction":"Hai Ho Silver Linings", "Name":"Mission_MassacreWing_name", "MissionID":711231433, "TargetType":"$MissionUtil_FactionTag_Pirate;", "TargetType_Localised":"Pirates", "TargetFaction":"LHS 1358 Jet Gang", "KillCount":45, "NewDestinationSystem":"Inti", "DestinationSystem":"LHS 1358", "NewDestinationStation":"Reiter Ring", "DestinationStation":"Davy Beacon", "Reward":21629820, "FactionEffects":[ { "Faction":"Hai Ho Silver Linings", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_EP_up;", "Effect_Localised":"The economic status of $#MinorFaction; has improved in the $#System; system.", "Trend":"UpGood" } ], "Influence":[ ], "ReputationTrend":"UpGood", "Reputation":"++" }, { "Faction":"LHS 1358 Jet Gang", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_EP_up;", "Effect_Localised":"The economic status of $#MinorFaction; has improved in the $#System; system.", "Trend":"UpGood" } ], "Influence":[ { "SystemAddress":5068732376473, "Trend":"DownBad", "Influence":"+" } ], "ReputationTrend":"DownBad", "Reputation":"+" } ] }
<class 'ValueError'> list.remove(x): x not in list
The plugin shows the first pending mission, but the other 4 are not shown.
from edmc-combattracker.
https://i.imgur.com/Ai9SX7L.png
from edmc-combattracker.
More complete log:
2021-02-17 12:44:39.907 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:38: Starting to read previous journal files: C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous
2021-02-17 12:44:39.909 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210215145226.01.log
2021-02-17 12:44:39.913 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210215192245.01.log
2021-02-17 12:44:39.953 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210216083558.01.log
2021-02-17 12:44:39.961 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210216165541.01.log
2021-02-17 12:44:39.975 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210216210754.01.log
C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210216210754.01.log 2413 { "timestamp":"2021-02-16T23:22:13Z", "event":"MissionCompleted", "Faction":"Hai Ho Silver Linings", "Name":"Mission_MassacreWing_name", "MissionID":711231433, "TargetType":"$MissionUtil_FactionTag_Pirate;", "TargetType_Localised":"Pirates", "TargetFaction":"LHS 1358 Jet Gang", "KillCount":45, "NewDestinationSystem":"Inti", "DestinationSystem":"LHS 1358", "NewDestinationStation":"Reiter Ring", "DestinationStation":"Davy Beacon", "Reward":21629820, "FactionEffects":[ { "Faction":"Hai Ho Silver Linings", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_EP_up;", "Effect_Localised":"The economic status of $#MinorFaction; has improved in the $#System; system.", "Trend":"UpGood" } ], "Influence":[ ], "ReputationTrend":"UpGood", "Reputation":"++" }, { "Faction":"LHS 1358 Jet Gang", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_EP_up;", "Effect_Localised":"The economic status of $#MinorFaction; has improved in the $#System; system.", "Trend":"UpGood" } ], "Influence":[ { "SystemAddress":5068732376473, "Trend":"DownBad", "Influence":"+" } ], "ReputationTrend":"DownBad", "Reputation":"+" } ] }
<class 'ValueError'> list.remove(x): x not in list
2021-02-17 12:44:40.004 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210217081554.01.log
2021-02-17 12:44:40.013 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:47: Reading C:\Users\john\Saved Games\Frontier Developments\Elite Dangerous\Journal.210217102703.01.log
2021-02-17 12:44:40.023 - INFO - <plugins>.EDMC-CombatTracker-0.1.1.controller.Controller.rebuild_from_logs:62: Finished reading journals.
from edmc-combattracker.
I've pushed a commit to the main branch. Improved the logging when rebuilding from logs, and also added a membership check which should prevent that error.
from edmc-combattracker.
This fixed it for me:
try:
ids.remove(mission_id)
except:
logger.info(f"Didn't know about mission ID {mission_id} - oh well")
from edmc-combattracker.
Well, apart from I've not understood Python exception handling properly, so the exception still spams the log...
from edmc-combattracker.
This fixed it for me:
try: ids.remove(mission_id) except: logger.info(f"Didn't know about mission ID {mission_id} - oh well")
Yeah, that's fine. The last commit I made to main
has a dodge mechanism so it would amount to the same.
from edmc-combattracker.
Well, apart from I've not understood Python exception handling properly, so the exception still spams the log...
How much was it spamming the log? I had thought this was a corner case (where a MissionComplete is read, without having had a MissionAccepted event having been read beforehand).
from edmc-combattracker.
Well, apart from I've not understood Python exception handling properly, so the exception still spams the log...
How much was it spamming the log? I had thought this was a corner case (where a MissionComplete is read, without having had a MissionAccepted event having been read beforehand).
Sorry, it was only spamming the log as the logging statement in the exception handling caused an exception itself, as logging in massacres.py was broken, because of it being in a subdir, fixed with:
plugin_name = os.path.basename(os.path.normpath(os.path.join(os.path.dirname(__file__), '..')))
logger = logging.getLogger(f"{appname}.{plugin_name}")
and exception improved to:
try:
ids.remove(mission_id)
except ValueError:
logger.info(f"Didn't know about mission ID {mission_id} - oh well")
pass
from edmc-combattracker.
Oh, do you have it in a sub-subdir?
Should be in: plugins > EDMC-CombatTracker/<load.py and other files in here>
from edmc-combattracker.
I mean the "Data" subdir in the plugin, where massacres.py lives.
from edmc-combattracker.
Marking this as closed. New issues can be raised if there are still problems found.
from edmc-combattracker.
Related Issues (17)
- Fix the logging for modules HOT 3
- Make it clearer which missions would stack with each other
- Add an Assassination mission tracker
- Add a Current Target panel
- Doesn't work with dark mode
- Remove threading HOT 1
- Ensure that expired missions are also correctly handled HOT 1
- Add an indicator to denote which missions are Wing missions
- Add sum of mission rewards HOT 1
- Make the "Target Ship" section optional
- Try to change sorting so that the EDMC window doesnt get as big HOT 1
- Simplify expiry
- Simplify reward HOT 1
- Tick down remaining kills on each mission. HOT 8
- When docked, highlight missions from that station
- Turning in the last mission doesn't get rid of the mission / reset the display
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edmc-combattracker.