Stellaris

Stellaris

Stellaris Dashboard
El Chompo 11 Jul, 2020 @ 8:31pm
Nameless leader causes parser to exit with exception
Apparently leaders can spawn without names. This causes the parser to exit with a KeyError, as it assumes all leaders have names.

Dropbox link to save: https://www.dropbox.com/s/3r3u2a6ck877i0s/autosave_2527.10.01.sav?dl=0

The nameless leader is on line 1192696. This is an observer game, so unfortunately I have very little information on how this came about. The last successfully recorded save was apparently on 2517.07.01, for what it's worth.

(By the way, would you prefer bugs be reported here or on GitHub?)

Traceback (most recent call last): File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 52, in process_gamestate self._process_gamestate(db_game) File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 99, in _process_gamestate data_processor.extract_data_from_gamestate( File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 980, in extract_data_from_gamestate self._check_new_leaders(countries, db_active_leaders) File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 1032, in _check_new_leaders leader = self._add_new_leader(country_model, leader_id, leader_dict) File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 1061, in _add_new_leader self._update_leader_attributes( File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 1090, in _update_leader_attributes leader_name = self.get_leader_name(leader_dict) File "/Users/user/code/stellaris/stellaris-dashboard/stellarisdashboard/parsing/timeline.py", line 1078, in get_leader_name first_name = leader_dict["name"]["first_name"] KeyError: 'name'
< >
Showing 1-1 of 1 comments
blubblubblobb  [developer] 14 Jul, 2020 @ 3:11am 
Thanks for the great bug report! I will try to take a closer look this week.

Reporting them here is fine, but you can also do it on github.
< >
Showing 1-1 of 1 comments
Per page: 1530 50