Giter Site home page Giter Site logo

Comments (16)

lunarplasma avatar lunarplasma commented on July 3, 2024 1

I see what the error is there - some test code got inadvertently committed. I'll upload a new release shortly.

from edmc-combattracker.

jberanek avatar jberanek commented on July 3, 2024

Full log file at https://gist.github.com/86a82f5664e04dd1bc36933fea6b102c

from edmc-combattracker.

pa-jberanek avatar pa-jberanek commented on July 3, 2024

I can indeed see it :)

from edmc-combattracker.

lunarplasma avatar lunarplasma commented on July 3, 2024

Release made: https://github.com/lunarplasma/EDMC-CombatTracker/releases/tag/0.1.1

from edmc-combattracker.

jberanek avatar jberanek commented on July 3, 2024

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.

jberanek avatar jberanek commented on July 3, 2024

https://i.imgur.com/Ai9SX7L.png

from edmc-combattracker.

jberanek avatar jberanek commented on July 3, 2024

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.

lunarplasma avatar lunarplasma commented on July 3, 2024

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.

jberanek avatar jberanek commented on July 3, 2024

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.

jberanek avatar jberanek commented on July 3, 2024

Well, apart from I've not understood Python exception handling properly, so the exception still spams the log...

from edmc-combattracker.

lunarplasma avatar lunarplasma commented on July 3, 2024

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.

lunarplasma avatar lunarplasma commented on July 3, 2024

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.

jberanek avatar jberanek commented on July 3, 2024

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.

lunarplasma avatar lunarplasma commented on July 3, 2024

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.

jberanek avatar jberanek commented on July 3, 2024

I mean the "Data" subdir in the plugin, where massacres.py lives.

from edmc-combattracker.

lunarplasma avatar lunarplasma commented on July 3, 2024

Marking this as closed. New issues can be raised if there are still problems found.

from edmc-combattracker.

Related Issues (17)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.