Stellaris

Stellaris

Stellaris Dashboard
FebHare 13 Mar, 2020 @ 6:50am
'utf-8' codec can't decode some string
Hello, I have one more issue on savedata reading. I run stellarisdashboard-win-v0.6.2.
In log,

Traceback (most recent call last):
File "multiprocessing\pool.py", line 121, in worker
File "stellarisdashboard\parsing\save_parser.py", line 262, in parse_save
File "stellarisdashboard\parsing\save_parser.py", line 365, in parse_save
UnicodeDecodeError: 'utf-8' codec can't decode byte 0xe3 in position 7595506: invalid continuation byte

It sounds some string (multi-byte character?) in gamestate file can't be decoded.
But I couldn't pin down the reason. Around 7595506 characters in gamestate file are line break characters. While I run many other mods (include with Japanese multi-byte characters), none of them are updated when the dashboard did work.

I am figuring invalid characters at decoding can be ignored in Python, but I have other issue about Cython extensions.
Is there any fix about it? Thank you.
< >
Showing 1-3 of 3 comments
blubblubblobb  [developer] 13 Mar, 2020 @ 8:21am 
Can you upload your save file somewhere and post a link? Then I can take a look.
FebHare 13 Mar, 2020 @ 10:41pm 
I dug a little more and found the reason. Around 7595506 bytes (not characters) in the failed gamestate file, Japanese text about a custom empire (saved in user_empire_designs.txt) is cut in the middle.

I didn't edit this empire but did other user empire before this issue, and fixing the whole user_empire_designs.txt the issue.

I think it is a Paradox issue about savedata and the dashboard works fine on failed savedata. Thank you for the thought.
blubblubblobb  [developer] 15 Mar, 2020 @ 4:02pm 
Ok, thanks for letting me know
< >
Showing 1-3 of 3 comments
Per page: 1530 50