I have written a program that parses the player journal files to extract mission details, amongst other things. It was been noted by one of the users of my program that donation missions are no longer showing as completed, so I've just checked for the reason for this by accepting a donation mission and immediately completing it and this is what was in the player journal.
{ "timestamp":"2018-08-19T13:10:22Z", "event":"MissionAccepted", "Faction":"Confederacy of HIP 91868", "Name":"Mission_AltruismCredits", "LocalisedName":"Donate 50,000 Cr to the cause", "Donation":"50000", "Expiry":"2018-08-19T16:36:23Z", "Wing":false, "Influence":"Med", "Reputation":"Med", "MissionID":412076453 }
{ "timestamp":"2018-08-19T13:10:28Z", "event":"MissionCompleted", "Faction":"Confederacy of HIP 91868", "Name":"Mission_AltruismCredits_name", "MissionID":412076453, "Donation":"50000", "Donation":50000, "FactionEffects":[ { "Faction":"Confederacy of HIP 91868", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_boom_up;", "Effect_Localised":"$#MinorFaction; are experiencing increased growth that could lead to an economic boom", "Trend":"UpGood" } ], "Influence":[ { "SystemAddress":83651236578, "Trend":"UpGood" } ], "Reputation":"UpGood" } ] }
It seems the completion event is now listing the Donation value twice, first as a string and then as a number. I am using a standard C# JSON deserializer to read the file and this is causing problems as it's not expecting a duplicate name and is unable to parse it correctly. Is there any chance this can be fixed?
{ "timestamp":"2018-08-19T13:10:22Z", "event":"MissionAccepted", "Faction":"Confederacy of HIP 91868", "Name":"Mission_AltruismCredits", "LocalisedName":"Donate 50,000 Cr to the cause", "Donation":"50000", "Expiry":"2018-08-19T16:36:23Z", "Wing":false, "Influence":"Med", "Reputation":"Med", "MissionID":412076453 }
{ "timestamp":"2018-08-19T13:10:28Z", "event":"MissionCompleted", "Faction":"Confederacy of HIP 91868", "Name":"Mission_AltruismCredits_name", "MissionID":412076453, "Donation":"50000", "Donation":50000, "FactionEffects":[ { "Faction":"Confederacy of HIP 91868", "Effects":[ { "Effect":"$MISSIONUTIL_Interaction_Summary_boom_up;", "Effect_Localised":"$#MinorFaction; are experiencing increased growth that could lead to an economic boom", "Trend":"UpGood" } ], "Influence":[ { "SystemAddress":83651236578, "Trend":"UpGood" } ], "Reputation":"UpGood" } ] }
It seems the completion event is now listing the Donation value twice, first as a string and then as a number. I am using a standard C# JSON deserializer to read the file and this is causing problems as it's not expecting a duplicate name and is unable to parse it correctly. Is there any chance this can be fixed?