Skip to content

Instantly share code, notes, and snippets.

@aronson
Last active February 22, 2024 13:54
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aronson/b893fb140245d0f19409ab5617cce750 to your computer and use it in GitHub Desktop.
Save aronson/b893fb140245d0f19409ab5617cce750 to your computer and use it in GitHub Desktop.
Cogmind Wineskin for Apple Silicon

Running Cogmind as a self-contained app on macOS

Cogmind can be run as a self-contained app on macOS with the modern version of Wineskin Server.

If you are interested in only the performance mods skip to here.

Installing Wineskin

Installing Rosetta 2 (Apple Silicon only)

Wineskin requires the Rosetta 2 framework available from Apple for free. Open your terminal.app from Applications and run the following command to install it if not already present:

softwareupdate --install-rosetta

Installing brew

Wineskin requires homebrew to install easiest. Run the following commands:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Follow the interactive installer, entering your password and taking the defaults. Homebrew is well-tested software and used by Mac enthusiasts of all kinds to download other software.

Installing Wineskin Server

Use homebrew to install Wineskin Server for Apple Silicon:

brew tap gcenx/wine
brew install --no-quarantine gcenx/wine/wineskin

Accept the default prompts and await a successful install message.

Configuring the base Wineskin container

Wineskin uses a container model where one clones templates. To install Cogmind we'll first need to create a template.

Launch the newly installed Wineskin Winery.app under Applications.

image

Press the + button to create a new engine.

Ensure the first member of the list is selected, and press "Download and install"

image

Press "OK" and await download.

From there, navigate to the second pane "Wrapper version" and press "update". Accept the default settings until the process is complete.

Choose "Create New Blank Wrapper".

Enter Cogmind.app or similar in the text entry field, then press OK. The application will pause and churn for a minute or three while creating your container.

Adding Cogmind files to the Cogmind.app container

Under Applications/Wineskin/ should be Cogmind.app. Navigate to the app in Finder and right-click on it, then choose "Show package contents".

Double-blick on "drive_c" to navigate to the root of the container's Wine install. Copy in your retail COGMIND/ folder containing COGMIND.exe and other files to this folder. It should look as such:

image

Adding recommended Cogmind mods for Apple Silicon

Cogmind on Apple Silicon will run at 30 FPS. With this mod, it will run at 60+ FPS.

Download the rendering mod here and copy the SDL.dll and SDL2.dll into the COGMIND/ folder, overwriting the original SDL.dll the game shipped with.

A loading time mod was once distributed here, but is now included within the base game as of Beta 13.

If you are on a version older than Beta 13, install the loading time mod from here by copying and overwriting the new DLLs over the original.

Launching the game

Navigate back up with Command+Up until you are in the folder with Cogmind.app once more. Double-click the application to open the default Wineskin container launcher.

image

Choose "Advanced".

The minimal configuration is setting the "Windows app:" option to the path to COGMIND.exe. Additional configuration such as an icon, adding -luigiAi, and changing how Command and Ctrl map can be found through exploring the application interface.

image

When ready, press "Test Run" and ensure Cogmind launches and operates as expected. Exit Cogmind and close the Advanced settings window.

Cogmind.app should now launch the game. Enjoy!

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