DazedNConfused- / CDDA-Game-Launcher

A Cataclysm: Dark Days Ahead launcher with additional features
MIT License
74 stars 11 forks source link

Launcher Crashes after loading game files #84

Closed kresslin closed 1 year ago

kresslin commented 1 year ago

Description

After downloading and installing CDDA from the launcher it crashes and gives me the following error log.

CDDA Game Launcher version: 1.6.9 OS: Windows-10-10.0.22000-SP0 (64-bit) Type: <class 'sqlalchemy.exc.ArgumentError'> Value: Strings are not accepted for attribute names in loader options; please use class-bound attributes directly. Traceback: File "c:\CDDA-Game-Launcher\cddagl\ui\views\main.py", line 802, in timeout

build = get_build_from_sha256(sha256) File "c:\CDDA-Game-Launcher\cddagl\sql\functions.py", line 163, in get_build_from_sha256 .options(joinedload('game_build')) File "C:\Users\steph\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\strategy_options.py", line 2359, in joinedload return _generate_from_keys(Load.joinedload, keys, False, kw) File "C:\Users\steph\AppData\Local\Programs\Python\Python310\lib\site-packages\sqlalchemy\orm\strategy_options.py", line 2261, in _generate_from_keys raise sa_exc.ArgumentError(

The game is installed and running properly but launcher will not recognize it. It just keeps asking me to install it and then crashing when it is done installing.

To Reproduce

Open launcher Install CDDA to C:\CDDA Launcher crashes after installation.

Expected behaviour

Launcher should recognize the installed game in the designated directory.

Screenshots

No response

Attempted Fixes

I tried deleting the config.db file and also tried reinstalling the packages needed neither of these worked.

System Details

Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz   2.59 GHz
NVIDIA RTX2060

Additional context

No response

DazedNConfused- commented 1 year ago

@Leonlit has kindly provided a PR addressing this issue. Let me know how it goes!