Skip to content

Instantly share code, notes, and snippets.

@samuellinde
Last active December 24, 2019 13:43
Show Gist options
  • Save samuellinde/fa0a05be2391d9fb80a53905fcd04105 to your computer and use it in GitHub Desktop.
Save samuellinde/fa0a05be2391d9fb80a53905fcd04105 to your computer and use it in GitHub Desktop.
Install OCTGN on a Mac and get it running via Wine

Disclosure: These instructions are provided as-is. I don't take any responsibility for things that might go wrong (though the worst thing that could happen should be that OCTGN just won't run). I don't have time to support you if things don't work, unfortunately. But hopefully you'll get OCTGN running without needing to use a virtual machine like Parallels or VirtualBox.

Statements like these are commands to be run in the terminal. You should be fine just copying and pasting, just don't miss any characters.

  1. Download OCTGN: http://octgn.net/Home/GetOctgn
  2. Launch Terminal.app
  3. Install Homebrew (a package manager for OS X) /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  4. Install git brew install git
  5. If asked to install Command Line Tools, klick yes. Else xcode-select --install
  6. Install XQuarts brew cask install xquartz
  7. Install wine brew install --devel wine
  8. Install winetricks brew install winetricks
  9. Configure wine. WINEARCH=win32 WINEPREFIX=~/.wine-octgn winecfg Do not install Mono! Set windows version to 8 in the configuration window.
  10. Install OCTGN dependencies WINEPREFIX=~/.wine-octgn winetricks -q vcrun2010 dotnet45
  11. Re-configure wine, set windows version to 8. WINEARCH=win32 WINEPREFIX=~/.wine-octgn winecfg
  12. Install OCTGN (fingers crossed) WINEPREFIX=~/.wine-octgn wine PATH-TO-OCTGN-INSTALL.exe (NOTE: Replace PATH-TO-OCTGN-INSTALL.exe with the full path to your downloaded OCTGN installer). Choose yes on following prompts. Make sure "Run OCTGN" is selected. If you see flickering artifacts, just close the application – it should be fine when you run it next time.
  13. Launch OCTGN with WINEPREFIX=~/.wine-octgn wine ~/Documents/OCTGN/OCTGN/OCTGN.exe. This is how you launch OCTGN from now on, but I've created a small applescript that you can download here that makes it easier to launch: http://goo.gl/oo2iRI. Download and unzip, and double-click. If you followed the instructions it should launch OCTGN.
@Lockart22
Copy link

Install is ok for me. In step 7, just type "brew install wine".
But when I launch OCTGN (step 13), i got this message :

This application requires one of the following versions of the .NET Framework : .NETFramework, Version=v4.7

Any solution ?

@nihil84
Copy link

nihil84 commented May 6, 2018

I made OCTGN 3.2.75 (which needs .NET 4.7) work on macOS 10.11 (El Capitain).
I made a fork of this gist.

@samuellinde, you can update your instructions any time and I will delete my gist upon request.

@Lockart22
Copy link

@nihil84,
thanks a lot. I followed the instructions in your fork but OCTGN doesn't launch.
After step 15, I got this message on the terminal :

0012:fixme:wer:WerSetFlags (2) stub!
0012:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0019:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
0019:fixme:ntdll:EtwEventRegister ({319dc449-ada5-50f7-428e-957db6791668}, 0x993780, 0x9e1b20, 0x9e1b38) stub.
0019:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x973109, 28) stub
0009:fixme:ntdll:EtwEventRegister ({319dc449-ada5-50f7-428e-957db6791668}, 0x10023780, 0x10071b20, 0x10071b38) stub.
0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0x10003109, 28) stub
0009:fixme:ntdll:EtwEventRegister ({319dc449-ada5-50f7-428e-957db6791668}, 0xc41d60, 0x10e1048, 0x10e1060) stub.
0009:fixme:ntdll:EtwEventSetInformation (deadbeef, 2, 0xa7060d, 28) stub
0009:fixme:kernelbase:QuirkIsEnabled3 (0x32f518, 0xffffffff) stub!
0009:fixme:process:GetNumaHighestNodeNumber (0x32fc4c): semi-stub
0009:fixme:thread:SetThreadStackGuarantee (0x32fc3c): stub
0009:fixme:ntdll:EtwEventRegister ({e13c0d23-ccbc-4e12-931b-d9cc2eee27e4}, 0xd4b9f0, 0x10e10b8, 0x10ecb50) stub.
0009:fixme:ntdll:EtwEventRegister ({763fd754-7086-4dfe-95eb-c01a46faf4ca}, 0xd4b9f0, 0x10e13c8, 0x10e1540) stub.
0009:fixme:ntdll:EtwEventRegister ({a669021c-c450-4609-a035-5af59af4df18}, 0xd4b9f0, 0x10eb840, 0x10ecb60) stub.
0009:fixme:ntdll:EtwEventRegister ({cc2bcbba-16b6-4cf3-8990-d74c2e8af500}, 0xd4b9f0, 0x10e1210, 0x10e1288) stub.
0009:fixme:wer:WerRegisterRuntimeExceptionModule (L"C:\\windows\\Microsoft.NET\\Framework\\v4.0.30319\\mscordacwks.dll", 0xa60000) stub!
003f:err:ole:CoGetContextToken apartment not initialised
wine: Call from 0x7b4273fc to unimplemented function api-ms-win-core-xstate-l2-1-0.dll.GetEnabledXStateFeatures, aborting
wine: Call from 0x7b4273fc to unimplemented function api-ms-win-core-xstate-l2-1-0.dll.GetEnabledXStateFeatures, aborting
...
Process is terminated due to StackOverflowException.

I have no idea what is going wrong. Any missing DLL ?

@nihil84
Copy link

nihil84 commented May 18, 2018

@Lockart22

I don't know... did every step ended successfully?
For example, I also tried to install the .NET 4.7 repack with internationalization package but that didn't work.

You can also try to install the bundled .NET 4.5 in addition at step 10: WINEPREFIX=~/.wine-octgn winetricks -q vcrun2010 dotnet45

If you will try other configurations, please delete your wine-prefix and try to recreate it from scratch every time, it may help you find out the missing step.

@sirlancelot1
Copy link

I'm stuck on number 12:
Get the error that the pathname isn't correct:
I've put the installer on a separate folder on my desktop.
I'm putting in the command: WINEPREFIX=~/.wine-octgn wine /Users/simonrogers/Desktop/OCTGN WINE/OCTGN-Setup-3.3.132.0.exe

Any help appreciated here.

Thanks

S

@Ozthemadma
Copy link

Ozthemadma commented May 10, 2019

All, im trying to follow this, getting to point 12, and i have .net framework pop up keep appearing, click accept and install and it just keeps repeating.

any sugestions?

Owens-MacBook-Pro:~ Carmichael$ WINEPREFIX=~/.wine-octgn wine /Users/Carmichael/Downloads/OCTGN-Setup-3.3.132.0.exe
0012:fixme:wer:WerSetFlags (2) stub!
0012:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0019:fixme:process:SetProcessShutdownParameters (00000380, 00000000): partial stub.
0019:fixme:ntdll:WinSqmIsOptedIn (): stub
0009:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0009:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0009:fixme:advapi:DecryptFileW (L"C:\users\Carmichael\Temp\{7BAC851E-4B7A-4714-837A-656CC788E77F}\", 00000000): stub
0036:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0036:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
0036:fixme:advapi:DecryptFileW (L"C:\users\Carmichael\Temp\{F0B6F71B-28A8-4C90-AEE7-EB16BD4D1BC1}\", 00000000): stub
0036:fixme:ntdll:WinSqmIsOptedIn (): stub
0019:fixme:service:QueryServiceConfig2W Level 6 not implemented
0019:fixme:service:QueryServiceConfig2W Level 6 not implemented
0019:fixme:service:QueryServiceConfig2W Level 6 not implemented
0019:fixme:service:QueryServiceConfig2W Level 6 not implemented
0019:fixme:service:QueryServiceConfig2W Level 6 not implemented
0036:fixme:advapi:DecryptFileW (L"C:\users\Carmichael\Temp\{F0B6F71B-28A8-4C90-AEE7-EB16BD4D1BC1}\", 00000000): stub
0036:fixme:exec:SHELL_execute flags ignored: 0x00000100
003d:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
003d:fixme:ntdll:NtQueryInformationToken QueryInformationToken( ..., TokenElevation, ...) semi-stub
003d:fixme:ole:CoInitializeSecurity (0x33f5e8,-1,0x0,0x0,6,2,0x0,12288,0x0) - stub!
003d:fixme:wuapi:automatic_updates_Pause
003d:fixme:sfc:SRSetRestorePointW 0x33f4b0 0x33f6c0
0040:fixme:advapi:DecryptFileW (L"C:\ProgramData\Package Cache\76054141A492BA307595250BDA05AD4E0694CDC3\redist\NDP47-KB3186497-x86-x64-AllOS-ENU.exe", 00000000): stub
0043:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0043:fixme:clusapi:OpenCluster ((null)) stub!
0043:fixme:clusapi:ClusterOpenEnum (0xdeadbeef, 4) stub!
0043:fixme:clusapi:ClusterEnum (0xdeadbeef, 0, 0x33f880, 0x159998, 261) stub!
0043:fixme:clusapi:ClusterCloseEnum (0xdeadbeef) stub!
0043:fixme:clusapi:CloseCluster (0xdeadbeef) stub!
0043:fixme:ntdll:server_ioctl_file Unsupported ioctl 70000 (device=7 access=0 func=0 method=0)
0043:fixme:ntdll:server_ioctl_file Unsupported ioctl 70000 (device=7 access=0 func=0 method=0)
0043:fixme:advapi:DecryptFileW (L"C:\cff564b25c3989ab5c54796ffafdde62\", 00000000): stub
0048:err:winediag:SECUR32_initNTLMSP ntlm_auth was not found or is outdated. Make sure that ntlm_auth >= 3.0.25 is in your path. Usually, you can find it in the winbind package of your distribution.
0048:fixme:ntdll:EtwRegisterTraceGuidsW (0x34c808, 0x3720f0, {e2821408-c59d-418f-ad3f-aa4e792aeb79}, 1, 0x33ea78, (null), (null), 0x3720f8): stub
0048:fixme:ntdll:EtwRegisterTraceGuidsW register trace class {e2821408-c59d-418f-ad3f-aa4e792aeb79}
0048:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0048:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0048:fixme:thread:SetThreadStackGuarantee (0x33fc28): stub
0048:fixme:advapi:LsaOpenPolicy ((null),0x33f2e0,0x00000001,0x33f2d8) stub
0048:fixme:advapi:GetWindowsAccountDomainSid (0x33f270 0x16f4dc 0x33f268): semi-stub
0048:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
0048:fixme:advapi:LsaClose (0xcafe) stub
0048:fixme:netapi32:NetGetJoinInformation Semi-stub (null) 0x33f364 0x33f360
0050:fixme:rstrtmgr:RmStartSession 0xa5fd30, 0, 0xa5fd38 stub!
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xa0 L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xa4 L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xa8 L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xcc L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xcc L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
004f:fixme:wevtapi:EvtOpenChannelConfig (0x0 L"Microsoft-Windows-CAPI2/Operational" 0) stub
004f:fixme:wevtapi:EvtGetChannelConfigProperty (0x0 0 0 16 0x94d764 0x94d780) stub
004f:fixme:wevtapi:EvtSetChannelConfigProperty (0x0 0 0 0x94d75c) stub
004f:fixme:wevtapi:EvtSubscribe (0x0 0xd0 L"Microsoft-Windows-CAPI2/Operational" (null) 0x0 0x0 0x0 1) stub
0053:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0053:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0053:fixme:wuapi:automatic_updates_Pause
0055:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0055:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0057:fixme:dism:wmain stub: L"dism.exe" L"/quiet" L"/norestart" L"/online" L"/add-package" L"/packagepath:C:\cff564b25c3989ab5c54796ffafdde62\Windows8-RT-KB3186505-x86.cab"
0059:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
0059:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
005b:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
005b:fixme:heap:RtlSetHeapInformation 0x0 1 0x0 0 stub
005b:fixme:wuapi:automatic_updates_Resume
0048:fixme:advapi:LsaOpenPolicy ((null),0x33f140,0x00000001,0x33f138) stub
0048:fixme:advapi:GetWindowsAccountDomainSid (0x33f0d0 0xfebcb4 0x33f0c8): semi-stub
0048:fixme:secur32:GetComputerObjectNameW NameFormat 7 not implemented
0048:fixme:advapi:LsaClose (0xcafe) stub
0036:fixme:ntdll:WinSqmIsOptedIn (): stub

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment