Skip to content

Incorrect instructions to run in MacOS (Apple Silicon) and how to successfully run it #888

@Saganus

Description

@Saganus

The instructions to run OpenCiv3 in the webpage state:

Set env var to civ3 installation with export CIV3_HOME="/path/to/civ3"
From that same terminal where you set CIV3_HOME, run OpenCiv3.app with open /path/to/OpenCiv3.app

However this is incorrect because there is no way to install Civ3 in Mac, at least not the GOG version.

Also, using open /path/to/OpenCiv3.app fails because when you run open OpenCiv3.app, macOS sets the working directory to / (root). The C7 game uses relative paths (C7.ini, Lua/texture_configs/civ3.lua), so they resolve to /C7.ini and /Lua/... which don't exist and aren't writable

After some research I managed to run it like this:

  1. Install innoextract with brew: brew install innoextract
  2. Extract the windows installer files with: innoextract setup_civilization3_complete_2.0.0.7.exe. This will extract all the files in the exe without the need to install it (Which we can't anyway because it's a Windows installer)

Then:

cd ~/OpenCiv3_0.3-Dutch (or wherever you extracted the OpenCiv3 release)
export CIV3_HOME="$HOME/civ3/app" (or wherever you unpacked the files in the steps above)
./OpenCiv3.app/Contents/MacOS/OpenCiv3

Note that we don't point the env var to the base dir civ3 but instead to civ3/app and we use open with the actual executable, and not the .app file which seems to be a bundle of files.

This allowed me to properly locate the files and run the game.

There is not way to set the resolution though so it's hard to play since the game menus are too small, but at least it runs!

Edit: You might also want to do this #876 (comment) to fix the resolution issue

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions