eliasdoehne / stellaris-dashboard

A graph dashboard and event log for Stellaris.
123 stars 14 forks source link

Error in parsing multiplayer save #74

Closed Xanhou closed 1 year ago

Xanhou commented 2 years ago

When parsing a save game, the following error occurs: Traceback (most recent call last): File "stellarisdashboard\parsing\timeline.py", line 59, in process_gamestate File "stellarisdashboard\parsing\timeline.py", line 109, in _process_gamestate File "stellarisdashboard\parsing\timeline.py", line 2957, in extract_data_from_gamestate File "stellarisdashboard\parsing\timeline.py", line 3039, in update_war_participants AttributeError: 'NoneType' object has no attribute 'has_met_player'

Stellaris version: 3.5.2 Checksum altering mods: Dynamic Mod Menu Technology Rubber Banding Crisis Manager - End-Game Edition (3.4.c) Link to mods in a collection: https://steamcommunity.com/sharedfiles/filedetails/?id=2862952978

Attached is the savegame file. It has been renamed to a .zip to allow uploading to github, but is otherwise not altered. 2256.04.06.sav.zip

Relevant notes: The last parsed save was from 2219.7.1 This was before the Galactic counsel was formed. And the host players empire is tucked away in a corner of the galaxy, with very little known contacts at that time. But since this seems to happen on a recorded event, ALL future saves cannot parse anymore.

Suggested improvement (besides actual fix): catch errors on historic events, and skip individual events that fail to process properly.