Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: Settings.exe in linux with Wine  (Read 1078 times)

H.P. Urist

  • Bay Watcher
    • View Profile
Settings.exe in linux with Wine
« on: February 08, 2014, 01:54:09 pm »

Yes, I'm trying to get drunk on Dwarf Fortress and Wine.  It's not QUITE easy.

At the moment, I've succesfully opened Settings.exe in linux, albeit with an "Unhandled Exception" error. It gives me the option of quitting or continuing and naturally, I click continue and it seems to work.

The catastrophic failure is when I click on workshops and such to activate/deactivate them. The program can't find my raws:

ReadFile error. Cannot find file: \entity_default.txt

Clicking okay brings up another dialogue:

The targetted RAW is missing. Did you move/replace anything in your dwarffortress/raw/objects folder?

I'm presuming this is an issue with how I set up Wine.

Any help? The mod runs great, I'd just like to be able to tinker with Settings.exe if I can.
Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Settings.exe in linux with Wine
« Reply #1 on: February 08, 2014, 01:59:22 pm »

most likely it's because of the first unhandled exception, which if you post the details we might be able to help. you'll need to have .net framework 4.0 installed in wine as well, that's a pretty common cause of most of the errors seen with the settings gui so far.

H.P. Urist

  • Bay Watcher
    • View Profile
Re: Settings.exe in linux with Wine
« Reply #2 on: February 08, 2014, 02:49:27 pm »

Will do. It's quite long so I thought I might spare us all bulging eyeballs....

************** Exception Text **************
System.IO.FileNotFoundException: Could not load file or assembly 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' or one of its dependencies. Exception from HRESULT: 0x80070002
File name: 'System.Core, Version=3.5.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089'
   at MasterworkDwarfFortress.FileWorking.findDFDir()
   at MasterworkDwarfFortress.MainForm.UpdateDirectories()
   at MasterworkDwarfFortress.MainForm.MainForm_Load(Object sender, EventArgs e)
   at System.EventHandler.Invoke(Object sender, EventArgs e)
   at System.Windows.Forms.Form.OnLoad(EventArgs e)
   at System.Windows.Forms.Form.OnCreateControl()
   at System.Windows.Forms.Control.CreateControl(Boolean fIgnoreVisible)
   at System.Windows.Forms.Control.CreateControl()
   at System.Windows.Forms.Control.WmShowWindow(Message& m)
   at System.Windows.Forms.Control.WndProc(Message& m)
   at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
   at System.Windows.Forms.ContainerControl.WndProc(Message& m)
   at System.Windows.Forms.Form.WmShowWindow(Message& m)
   at System.Windows.Forms.Form.WndProc(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
   at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
   at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

WRN: Assembly binding logging is turned OFF.
To enable assembly bind failure logging, set the registry value [HKLM\Software\Microsoft\Fusion!EnableLog] (DWORD) to 1.
Note: There is some performance penalty associated with assembly bind failure logging.
To turn this feature off, remove the registry value [HKLM\Software\Microsoft\Fusion!EnableLog].



************** Loaded Assemblies **************
mscorlib
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/Microsoft.NET/Framework/v2.0.50727/mscorlib.dll
----------------------------------------
Masterwork Dwarf Fortress
    Assembly Version: 1.3.0.0
    Win32 Version: 1.3.0.0
    CodeBase: file:///D:/DF/Settings.exe
----------------------------------------
Microsoft.VisualBasic
    Assembly Version: 8.0.0.0
    Win32 Version: 8.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/Microsoft.VisualBasic/8.0.0.0__b03f5f7f11d50a3a/Microsoft.VisualBasic.dll
----------------------------------------
System
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System/2.0.0.0__b77a5c561934e089/System.dll
----------------------------------------
System.Windows.Forms
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Windows.Forms/2.0.0.0__b77a5c561934e089/System.Windows.Forms.dll
----------------------------------------
System.Drawing
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Drawing/2.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll
----------------------------------------
System.Runtime.Remoting
    Assembly Version: 2.0.0.0
    Win32 Version: 2.0.50727.42 (RTM.050727-4200)
    CodeBase: file:///C:/windows/assembly/GAC_MSIL/System.Runtime.Remoting/2.0.0.0__b77a5c561934e089/System.Runtime.Remoting.dll
----------------------------------------

************** JIT Debugging **************
To enable just-in-time (JIT) debugging, the .config file for this
application or computer (machine.config) must have the
jitDebugging value set in the system.windows.forms section.
The application must also be compiled with debugging
enabled.

For example:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

When JIT debugging is enabled, any unhandled exception
will be sent to the JIT debugger registered on the computer
rather than be handled by this dialog box.


Logged

splinterz

  • Bay Watcher
    • View Profile
    • Dwarf Therapist Branch
Re: Settings.exe in linux with Wine
« Reply #3 on: February 08, 2014, 03:41:32 pm »

yeah that's indicating it's the wrong .net framework, you'll have to make sure you've got 4.0

H.P. Urist

  • Bay Watcher
    • View Profile
Re: Settings.exe in linux with Wine
« Reply #4 on: February 08, 2014, 04:10:29 pm »

Weird.... I just installed 4.0.  I must have done something wrong.
Logged