Kromtec / LegendsViewer

Recreates Dwarf Fortress' Legends Mode from exported files.
GNU General Public License v3.0
62 stars 19 forks source link

Cannot run Legends Viewer on macOS with wine :( #23

Closed nalzok closed 6 years ago

nalzok commented 7 years ago

I installed wine 2.1 on Sierra 10.12.4 with brew install wine, downloaded Legends Viewer 1.17.01 from Github, and then ran wine ~/Downloads/LegendsViewer-1.17.01/LegendsViewer.exe in the terminal, only to got the following error:

Unhandled Exception:
System.ArgumentException: Type does not match the valueKind
  at Microsoft.Win32.Win32RegistryApi.SetValue (Microsoft.Win32.RegistryKey rkey, System.String name, System.Object value, RegistryValueKind valueKind) <0x33519d8 + 0x0041f> in <filename unknown>:0
  at Microsoft.Win32.RegistryKey.SetValue (System.String name, System.Object value, RegistryValueKind valueKind) <0x33518f0 + 0x0006f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:SetValue (string,object,Microsoft.Win32.RegistryValueKind)
  at LegendsViewer.Controls.HTML.Utilities.BrowserUtil.SetBrowserEmulationMode () <0x3350bd8 + 0x000e7> in <filename unknown>:0
  at LegendsViewer.frmLegendsViewer..ctor (System.String file) <0x1edb5a0 + 0x00a3f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) LegendsViewer.frmLegendsViewer:.ctor (string)
  at LegendsViewer.Program.Main (System.String[] args) <0x1ed0fa8 + 0x0008f> in <filename unknown>:0
[ERROR] FATAL UNHANDLED EXCEPTION: System.ArgumentException: Type does not match the valueKind
  at Microsoft.Win32.Win32RegistryApi.SetValue (Microsoft.Win32.RegistryKey rkey, System.String name, System.Object value, RegistryValueKind valueKind) <0x33519d8 + 0x0041f> in <filename unknown>:0
  at Microsoft.Win32.RegistryKey.SetValue (System.String name, System.Object value, RegistryValueKind valueKind) <0x33518f0 + 0x0006f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) Microsoft.Win32.RegistryKey:SetValue (string,object,Microsoft.Win32.RegistryValueKind)
  at LegendsViewer.Controls.HTML.Utilities.BrowserUtil.SetBrowserEmulationMode () <0x3350bd8 + 0x000e7> in <filename unknown>:0
  at LegendsViewer.frmLegendsViewer..ctor (System.String file) <0x1edb5a0 + 0x00a3f> in <filename unknown>:0
  at (wrapper remoting-invoke-with-check) LegendsViewer.frmLegendsViewer:.ctor (string)
  at LegendsViewer.Program.Main (System.String[] args) <0x1ed0fa8 + 0x0008f> in <filename unknown>:0

I'm not sure whether this is legends viewer's bug, since there is probably a bug in macOS and/or wine and/or the end user (i.e. me) causing this issue. Just trying to get some help here.

Kromtec commented 6 years ago

Please reopen if your problem is still there in v1.18.00+