String to float conversion fail on WineSteam game start

Here is what i’m getting:
ERROR 2016-11-20 18:11:01,877 [jobs]:Error while completing task <bound method winesteam.prelaunch of Winesteam runner (LutrisConfig(level=game, game_config_id=alien-swarm-steam-for-windows-1478392383, runner=winesteam))>: could not convert string to float: ‘Analo].1479653323’
<class ‘ValueError’> could not convert string to float: ‘Analo].1479653323’
File “/usr/lib/python3/dist-packages/lutris/util/jobs.py”, line 29, in target
result = self.function(*args, **kwargs)
File “/usr/lib/python3/dist-packages/lutris/runners/winesteam.py”, line 341, in prelaunch
super(winesteam, self).prelaunch()
File “/usr/lib/python3/dist-packages/lutris/runners/wine.py”, line 708, in prelaunch
prefix_manager.setup_defaults()
File “/usr/lib/python3/dist-packages/lutris/util/wineprefix.py”, line 16, in setup_defaults
self.override_dll(“winemenubuilder.exe”, “”)
File “/usr/lib/python3/dist-packages/lutris/util/wineprefix.py”, line 49, in override_dll
self.set_registry_key(key, dll, mode)
File “/usr/lib/python3/dist-packages/lutris/util/wineprefix.py”, line 33, in set_registry_key
registry = WineRegistry(self.get_registry_path(key))
File “/usr/lib/python3/dist-packages/lutris/util/wineregistry.py”, line 79, in init
self.parse_reg_file(reg_filename)
File “/usr/lib/python3/dist-packages/lutris/util/wineregistry.py”, line 113, in parse_reg_file
current_key = WineRegistryKey(key_def=line)
File “/usr/lib/python3/dist-packages/lutris/util/wineregistry.py”, line 205, in init
self.timestamp = float("{}.{}".format(ts_parts[0], ts_parts[1]))

Thanks for any help

Can you paste the part of the registry file that is causing that error?

It should be in ~/.local/share/lutris/runners/winesteam/prefix

It’s most probably the user.reg file, search the Analo].1479653323 string

I’ve ran the Registry parser against a bunch of registry files I had but you must be hitting a edge case I didn’t expect for.

[Software\\Microsoft\\ActiveMovie\\devenum\\{33D9A762-90C8-11D0-BD43-00A0C911CE86}\\Monitor of Wbudowany d\x17awi\x119k Dig] 1479653323
#time=1d2433d30d3e346
"CLSID"="{E30629D2-27E5-11CE-875D-00608CB78066}"
"FilterData"=hex:02,00,00,00,00,00,80,00,01,00,00,00,00,00,00,00,30,70,69,33,\
  08,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,01,00,00,00,3c,00,00,00,30,\
  74,79,33,00,00,00,00,4c,00,00,00,5c,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,61,75,64,73,00,00,10,00,80,00,00,aa,00,38,9b,71,01,00,00,\
  00,00,00,10,00,80,00,00,aa,00,38,9b,71
"FriendlyName"="Monitor of Wbudowany d\x17awi\x119k Dig"
"WaveInID"=dword:00000003

[Software\\Microsoft\\ActiveMovie\\devenum\\{33D9A762-90C8-11D0-BD43-00A0C911CE86}\\PCVC740K ToUcam Pro \[pwc\] Analo] 1479653323
#time=1d2433d30d3d284
"CLSID"="{E30629D2-27E5-11CE-875D-00608CB78066}"
"FilterData"=hex:02,00,00,00,00,00,80,00,01,00,00,00,00,00,00,00,30,70,69,33,\
  08,00,00,00,01,00,00,00,01,00,00,00,00,00,00,00,01,00,00,00,3c,00,00,00,30,\
  74,79,33,00,00,00,00,4c,00,00,00,5c,00,00,00,00,00,00,00,00,00,00,00,00,00,\
  00,00,00,00,00,00,61,75,64,73,00,00,10,00,80,00,00,aa,00,38,9b,71,01,00,00,\
  00,00,00,10,00,80,00,00,aa,00,38,9b,71
"FriendlyName"="PCVC740K ToUcam Pro [pwc] Analo"
"WaveInID"=dword:00000002

Is it mean that my Webcam is the problem? Was pluged in all the time before and everything was working fine. But suddenly that error.

No, the problem is the parser, it splits strings on “]” characters and doesn’t account for “\]” in key names. I’ll push a fix soon, thanks for reporting this!

No problem, I’m glad I could help, I like good, free and opensource projects ;-).