It appears I'm the first person to try Tower of Guns (GOG.com) in PlayOnLinux.
When I do the initial manual installation with Wine 1.6.2 everything installs fine. I install the patch and the game launches just fine. I'll set the screen resolution and start playing. All is good....
But, after closing the game and then starting it up again, I get dotnet40 errors and the game crashes.
What happened?
I even did a complete reinstallation and it ran fine, but when re-launching, same problem. What is causing dotnet40 to error after launching?
This is Unreal Development Kit and when launching a game there are some first-time config files created. Normally they are created in c:/users/documents/My Games and then a game folder, but Tower Of Guns doesn't do this. Probably because its a GOG.com game.
[06/29/14 07:20:56] - Running wine-1.7.19 UnSetup.exe (Working directory : /home/booman/.PlayOnLinux/wineprefix/towerofguns/drive_c/GOG Games/Tower of Guns/Binaries)
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:heap:HeapSetInformation (nil) 1 (nil) 0
fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
fixme:thread:SetThreadStackGuarantee (0x32fc04): stub
fixme:advapi:EventRegister {e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}, 0x7932a40c, 0x797293b0, x79764880
fixme:advapi:EventRegister {763fd754-7086-4dfe-95eb-c01a46faf4ca}, 0x7932a40c, 0x797292f0, 0x79729998
fixme:advapi:EventRegister {a669021c-c450-4609-a035-5af59af4df18}, 0x7932a40c, 0x79764890, 0x79764888
fixme:advapi:EventRegister {cc2bcbba-16b6-4cf3-8990-d74c2e8af500}, 0x7932a40c, 0x797648c0, 0x797292e8
fixme:wer:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll", 0x79140000) stub!
fixme:nls:LCIDToLocaleName unsupported flags 8000000
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW 0xcafe4242,0x0001,0x0000,0x000003fe,0x143a10,0x0001,0x00000000,0x2f1e474,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 4.0.30319.1 - There was a failure initializing profiling API attach infrastructure. This process will not allow a profiler to attach. HRESULT: 0x8007fixme:advapi:DeregisterEventSource (0xcafe4242) stub
err:ole:CoGetContextToken apartment not initialised
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:shell:URL_ParseUrl failed to parse L"System.Windows.Forms"
fixme:shell:URL_ParseUrl failed to parse L"System"
fixme:shell:URL_ParseUrl failed to parse L"System.Drawing"
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:nls:LCIDToLocaleName unsupported flags 8000000
fixme:nls:LCIDToLocaleName unsupported flags 8000000
fixme:nls:LCIDToLocaleName unsupported flags 8000000
fixme:console:AttachConsole stub ffffffff
fixme:shell:URL_ParseUrl failed to parse L"System.Xml"
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:process:FlushProcessWriteBuffers : stub
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:nls:LocaleNameToLCID unsupported flags 8000000
fixme:advapi:EventRegister {8e9f5090-2d75-4d03-8a81-e5afbf85daf1}, 0xa60502, (nil), 0xdd4950
fixme:advapi:RegisterEventSourceW ((null),L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000402,(nil),0x0001,0x00000000,0x32dea8,(nil)): stub
err:eventlog:ReportEventW L"Application: UnSetup.exe\nFramework Version: v4.0.30319\nDescription: The process was terminated due to an unhandled exception.\nException Info: System.ArgumentException\nSfixme:advapi:DeregisterEventSource (0xcafe4242) stub
Unhandled Exception: System.ArgumentException: Exception from HRESULT: 0x80070057 (E_INVALIDARG)
at System.Globalization.CultureInfo.nativeSetThreadLocale(String localeName)
at System.Threading.Thread.set_CurrentCulture(CultureInfo value)
at UnSetup.Program.Main(String[] Arguments)
wine: Unhandled exception 0xe0434352 in thread 9 at address 0x7b83dba9 (thread 0009), starting debugger...
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
fixme:service:QueryServiceConfig2W Level 6 not implemented
Unhandled exception: 0xe0434352 in 32-bit code (0x7b83dba9).
Register dump:
CS:0023 SS:002b DS:002b ES:002b FS:0063 GS:006b
EIP:7b83dba9 ESP:0032f064 EBP:0032f0d8 EFLAGS:00000246( - -- I Z- -P- )
EAX:7b8282e9 EBX:7b8a5964 ECX:00000000 EDX:00000005
ESI:00000005 EDI:e0434352
Edited by booman