S&box Wiki

Revision Difference

macOS#551496

<cat>Play.Intro</cat> <title>macOS</title>⤶ # Experimental documenting for getting s&box running on macOS on an M1⤶ This will all be cleaned up and made public at somepoint but I just wanna write the general ideas and things required down. ⤶ Currently, this method lets you get as far as the Main Menu and use the tools, Hammer is the only thing properly functional. ⤶ This assumes you already have game porting toolkit installed and that you've already got steam installed in it.⤶ # Config⤶ Set the Windows version in WineCfg to Windows 7⤶ <title>s&box on macOS (Experimental)</title>⤶ # Experimental documentation for getting s&box running on Macs with Apple Silicon chips⤶ This will all be cleaned up and improved at some point but for now, this method lets you get as far as the Main Menu and use the tools. Hammer is the only thing that is functional. ⤶ This assumes you already have GPTK (Game Porting Toolkit) installed and that you've already got Steam installed in it. # Configuration⤶ Set the Windows version in `winecfg` to Windows 7⤶ # Running ⤶ Once s&box is installed in steam in your game porting toolkit, you'll have to run it using a the following batch file to setup the correct DOTNET environment variables to prevent it from crashing⤶ Once s&box is installed in Steam in GPTK, you'll have to run it by putting these commands in a batch file and then running the batch file, to setup the correct DOTNET environment variables so we can prevent it from crashing:⤶ ``` set DOTNET_SYSTEM_NET_HTTP_SOCKETSHTTPHANDLER_HTTP3SUPPORT=0 set DOTNET_EnableWriteXorExecute=0 "C:\Program Files (x86)\Steam\steamapps\common\sbox\sbox.exe" ``` You'll also have to copy these files out of the sbox/bin folder up a directory into the sbox folder so that they're next to the EXE, as well as set them to be native first in winecfg.exe⤶ ```⤶ You'll also have to copy these files out of the `sbox/bin` folder into the root folder so that they're next to the `.exe`, as well as set them to be Native in `winecfg.exe`'s Libraries tab:⤶ ⤶ ```⤶ d3dcompiler_47.dll vcruntime140.dll vccorlib140.dll concrt140.dll msvcp140.dll d3dcsx_43.dll ``` some of those might not need to be moved, but as far as I'm aware d3dcompiler_47.dll is. TODO: figure out why wine doesn't recognise them in the bin folder?Some of those might not need to be moved, but, as far as I'm aware, `d3dcompiler_47.dll does need to be moved. ⤶ ### TODO: Figure out why wine doesn't recognise them in the bin folder?