|
|
| (не показано 7 промежуточных версий 2 участников) |
| Строка 1: |
Строка 1: |
| {{TOC right}} | | {{TOC right}} |
| Чтобы установить [[Dwarf Fortress]], просто загрузите последнюю версию, распакуйте ее содержимое и играйте.
| | Игра доступна в версиях [[Premium version|Premium и Classic]]. Процесс установки зависит от версии игры. |
| {{quick download|{{current/version/ns}}}}
| |
|
| |
|
| = Загрузка =
| | "Premium" доступна на платформах [https://store.steampowered.com/app/975370/Dwarf_Fortress/ Steam] и [https://kitfoxgames.itch.io/dwarf-fortress itch.io]. После покупки игра автоматически добавится в вашу игровую библиотеку и будет работать как любая другая игра на этой платформе. |
|
| |
|
| ''Dwarf Fortress Classic'' доступно в свободном доступе непосредственно от разработчиков, компании [[Bay 12 Games]], по адресу http://www.bay12games.com/dwarves/. Просто найдите версию, соответствующую вашей операционной системе, и нажмите на ссылку. Вам будет предложено сохранить zip-файл, сделайте это и следуйте приведенным ниже инструкциям по установке.
| | "Classic" доступна бесплатно непосредственно на сайте разработчика, [http://www.bay12games.com/dwarves/ Bay 12 Games]. Просто скачайте последнюю версию, распакуйте её содержимое и играйте. |
| : Три ссылки, указанные в верхней части страницы, представляют собой 64-разрядные версии DF для Windows, macOS и Linux. "Все версии" ссылаются на страницу с дополнительными вариантами, включая 32-разрядные сборки для всех платформ, "маленькие" сборки для Windows (в которых отсутствуют звуковые файлы) и "устаревшие" сборки для Windows. Как правило, предпочтительнее использовать сборки SDL для Windows, хотя на некоторых старых компьютерах могут потребоваться сборки Legacy.
| |
|
| |
|
| ''Dwarf Fortress premium'' планируется выпустить в [https://store.steampowered.com/app/975370/Dwarf_Fortress/ Steam] и [https://kitfoxgames.itch.io/dwarf-fortress itch.io] платформы. Эти платные версии игры будут включать совершенно новый графический [[tileset|тайлсет]] и новые музыкальные треки. Кроме того, версия Steam будет включать интеграцию Steam Workshop для [[modding|моддинга]]. Большинство других функций будут также добавлены в ''Dwarf Fortress Classic'' (которая останется бесплатной).
| | Обратите внимание, что планы по созданию нативной сборки для MacOS [https://store.steampowered.com/news/app/975370/view/4237410439220288178] пока отменены, но некоторым игрокам удалось запустить как Steam, так и Classic версию через Wine. [[#MacOS|См. ниже]]. |
|
| |
|
| == Сторонние сборки == | | = Скачивание Classic-версии = |
| | {{quick download}} |
| | ''Dwarf Fortress Classic'' доступна бесплатно непосредственно на сайте разработчика, [http://www.bay12games.com/dwarves/ Bay 12 Games]. Просто найдите версию, соответствующую вашей операционной системе, и перейдите по ссылке — начнётся скачивание архива с игрой. Далее следуйте инструкциям по установке ниже. |
|
| |
|
| {{main|Утилита:Lazy Newb Pack}}
| | :Ссылка на Windows ведёт на скачивание версии для 64-разрядной системы. Ссылка "все версии" ведёт на страницу с дополнительными вариантами выбора версии, включая, "малые" сборки для Windows (без звуковых файлов). |
|
| |
|
| Существует несколько пакетов, которые объединяют игру с различными утилитами и графическими сетами, обычно настраиваемыми с помощью прилагаемого лаунчера. Они перечислены на странице [[Lazy Newb Pack]].
| | == DFHack и другие сторонние ресурсы == |
| | Наиболее известным дополнением для установки Dwarf Fortress является [[Utility:DFHack|DFHack]], которое вносит широкий спектр улучшений интерфейса, исправлений ошибок и инструментов для повышения производительности. Если вы установили "Dwarf Fortress" через Steam, вы также можете [https://store.steampowered.com/app/2346660/DFHack установить DFHack в Steam]. Игроки других дистрибутивов "Dwarf Fortress" могут скачать и установить DFHack со страницы релизов DFHack на GitHub [https://github.com/dfhack/dfhack/releases]. |
|
| |
|
| Сообщество ''Dwarf Fortress'' часто создает пользовательские [[Graphics set repository|графические сеты]], [[Tileset repository|тайлсеты]] и [[Color_scheme#Изменение цветовых схем|цветовые схемы]]. Они похожи на графические моды, которые делают DF более красивым или просто меняют вид. Часто тайлсет распрастроняют установленным в папку с игрой, тогда всё, что нужно сделать, это распаковать архив и играть. Среди самых популярных из них [http://www.bay12forums.com/smf/index.php?topic=53180.0 графика от Ironhand] и [http://www.bay12forums.com/smf/index.php?topic=57557.0 графика от Phoebus]. Наиболее известные графические сеты включены в упомянутые выше пакеты.
| | Если вы играете на старых версих игры, вас может заинтересовать [[Utility:Lazy Newb Pack|Lazy Newb Pack]], который включает в себя ряд [[Utilities|утилит]] (включая DFHack) и [[Graphic set|графических сетов]]. В последних версиях Dwarf Fortress (''50.01+'') Lazy Newb Pack больше не нужен. |
|
| |
|
| = Установка = | | Также существует множество модов, созданных игроками, доступных в [https://steamcommunity.com/app/975370/workshop/ Мастерской Steam] и на [http://www.bay12forums.com/smf/index.php?board=27.0 форумах Bay 12]. Если у вас нет аккаунта Steam, моды для Мастерской можно загрузить из Steam с помощью утилиты командной строки [https://developer.valvesoftware.com/wiki/SteamCMD steamcmd]. |
| | |
| | = Установка Classic-версии = |
| :''См. также: [[System requirements|Системные требования]]'' | | :''См. также: [[System requirements|Системные требования]]'' |
|
| |
|
| == Windows == | | == Windows == |
| | Установщика игры нет. Просто щёлкните правой кнопкой мыши по скачанному zip-архиву и выберите <code>Извлечь файлы...</code>, затем выберите папку назначения. По умолчанию Windows использует имя архива в качестве имени папки, в которой находится архив, например, <code>C:\Users\имя_пользователя\Downloads\df_50_12_win</code>. После извлечения файлов дважды щёлкните по файлу <code>Dwarf Fortress.exe</code> в папке, которую вы выбрали для запуска игры. |
|
| |
|
| У игры нет установщика — просто извлеките содержимое архива в папку по вашему выбору (мы будем называть ее "папкой с игрой"), и чтобы начать игру запустите <code>Dwarf Fortress.exe</code> из внутри этой папки.
| | * Убедитесь, что вы действительно "распаковали" архив, а не просто дважды щёлкнули по архиву и запустили игру из появившегося окна. В этом случае может показаться, что всё работает, но ваши сохранения будут удалены — причина многих жалоб по типу "Мои сохранённые игры постоянно удаляются!" |
| | | * Игра должна иметь возможность записывать данные в свою собственную папку. Выберите папку с игрой, к которой у вашего пользователя есть доступ без прав администратора, например: папку <code>Загрузки</code>, <code>Рабочий стол</code> или <code>C:\games\..</code>; не устанавливайте её в папку <code>C:\Program Files\..</code>, если вы не знаете, как правильно настроить разрешения. |
| Убедитесь, что вы действительно ''распаковали'' архив, а не просто открыли архив и запустили игру из появившегося окна. Если вы сделаете это, может показаться, что всё в порядке, но ваши сохранения будут удалены — причина многих жалоб на то, что "мои сохранения постоянно удаляются". Игра также должна иметь возможность сохранения файлов в свою собственную папку, поэтому не устанавливайте ее в C:\Program Files, если вы используете Windows Vista или более позднюю систему. (Кроме того, предполагается что у вас конечно ''есть'' любой архиватор для начала: [https://www.7-zip.org/ например такой]) | |
| | |
| Если у вас возникла ошибка, указывающая на отсутствие MSVCP140.dll, этот файл можно получить, загрузив [https://www.microsoft.com/en-us/download/details.aspx?id=48145 Visual C++ Redistributable для Visual Studio 2015]. Выберите версию x64 для 64-разрядной DF или версию x86 для 32-разрядной DF.
| |
| | |
| Если Windows масштабирует изображение, вам может понадобиться отключить это для DF. Нажмите правой кнопкой на иконку ''Dwarf Fortress.exe'', выберите '''Свойства''', затем вкладку '''Совместимость''', и затем нажмите на опцию '''Отключение масштабирования изображения при высоком Разрешении экрана''' (или '''масштабирование выполняется переопределение высокое разрешение DPI, поведение,: приложение''').[https://support.microsoft.com/ru-ru/topic/масштаб-проблемы-связанные-с-высоким-разрешением-устройства-windows-508483cd-7c59-0d08-12b0-960b99aa347d]
| |
| | |
| == Mac ==
| |
| {{заготовка}}
| |
| The Mac version is not an application bundle. Like the Windows version, it consists of a folder containing the application and data files; there is no installer. The entire folder can be dragged into the Applications folder or placed elsewhere. As with the Windows version, the game must be able to write to its own folder.
| |
| | |
| To start the game, execute the launch script "df". Launching "dwarfort.exe" by itself will ''not'' work (since the "df" script sets up [[wikipedia:environment variables|environment variables]] pointing to DF's libraries).
| |
| | |
| There are alternative installation options, such as [[Utility:Lazy newb pack|pre-packaged bundles]] and [https://github.com/Bachsau/DF-Mac-Launcher this third-party app launcher], that may make the game easier to start and fix some of the issues listed below.
| |
| | |
| === Исправление распространённых ошибок ===
| |
| | |
| Changing the ``PRINT_MODE`` setting in data/init/[[init.txt]] from ``2D`` to ``STANDARD`` is necessary on some systems, particularly macOS 11+ (see below) and machines with Retina displays {{bug|6031}}. Doing this on any macOS system can improve performance significantly {{bug|10052}}. Other values for this setting, like ``FRAME_BUFFER``, may also help.
| |
|
| |
|
| On macOS 10.15 (Catalina) and above, if you encounter gatekeeper security-related warnings that prevent DF from starting, one solution (from [https://github.com/DFHack/dfhack/issues/1465 here]) is to run the following command from the terminal in the folder containing <code>dwarfort.exe</code>:
| | Устранение неполадок: |
| * <code>find . -print0 | xargs -0 xattr -d com.apple.quarantine</code>
| |
|
| |
|
| On macOS 11 (Big Sur) and above, if you see a blank white window when starting the game, you will need to change ``[PRINT_MODE:2D]`` to ``[PRINT_MODE:STANDARD]`` in [[init.txt]]. {{bug|11680}}
| | * Если возникает ошибка об отсутствии MSVCP140.dll или MSVCP140_ATOMIC_WAIT.dll, файл можно получить, загрузив [https://aka.ms/vs/17/release/vc_redist.x64.exe Visual C++ Redistributable для Visual Studio 2022]. |
| | * Если в Windows включено масштабирование экрана, может потребоваться отключить эту функцию для игры. Щёлкните правой кнопкой мыши по значку "Dwarf Fortress.exe", выберите "Свойства", перейдите на вкладку "Совместимость" и установите флажок "Отключить масштабирование изображения при высоком разрешении экрана" (или '''Изменить параметры высокого DPI''' > '''Масштабирование выполняется: Приложение'''). [https://support.microsoft.com/ru-ru/help/3025083/windows-scaling-issues-for-high-dpi-devices] |
|
| |
|
| On case-sensitive filesystems, a freshly-installed version of the game will not launch. {{bug|11136}}
| | Создание ярлыков: |
| * Rename "libs/SDL_ttf.framework/Versions/A/Frameworks/FreeType.framework" to "libs/SDL_ttf.framework/Versions/A/Frameworks/freetype.framework" to fix this.
| |
|
| |
|
| If you are using Parallels Desktop, you might need to change the file association for ``*.exe`` files to prevent the script from opening Parallels automatically. To do this:
| | * Щёлкните правой кнопкой мыши по файлу <code>Dwarf Fortress.exe</code> и выберите один из вариантов: <code>Отправить > Рабочий стол (создать ярлык)</code>, <code>Закрепить на панели задач</code> или <code>Закрепить на начальном экране</code>. (Доступность этих опций может зависеть от версии Windows.) |
| * Right click ``dwarfort.exe`` then click "Get Info"
| |
| * Then click on "Open with:", select "Other..."
| |
| * Then and select "Finder"
| |
| * Change "Enable: Recommended Applications" to "Enabled: All Applications"
| |
| * Select "Finder" and then click "Add"
| |
|
| |
|
| == Linux == | | == Linux == |
|
| |
|
| You may want to check if the package manager for the Linux distribution you are using has a ''Dwarf Fortress'' package. A package will get the correct build of DF for your system, handle all the dependencies and configuration, make any necessary system-specific fixes, probably add an entry to the system application launcher or menu, and handle updates. Note that in some cases, these packages can lag behind official DF releases, and they typically only support a single system-wide installation of DF. If you want a version of DF newer than what your package manager provides, or if you want a portable installation, follow the instructions in the rest of this section instead.
| | Dwarf Fortress для Linux, как ожидается, будет запускаться из терминала (командной строки), поэтому в приведенных здесь инструкциях предполагается, что вы знаете, как войти в систему и открыть командную строку. Однако по умолчанию Dwarf Fortress — это графическая десктопная программа, поэтому перед запуском игры вам следует открыть эмулятор терминала (внутри сеанса X). По умолчанию Dwarf Fortress создаст новое окно за пределами окна терминала, поэтому не беспокойтесь о размере терминала. |
|
| |
|
| As of 0.43.05, both 64-bit and 32-bit compiled builds of ''Dwarf Fortress'' are available for Linux. Note, to get the 32-bit edition, click the All Versions button on the ''Dwarf Fortress'' download page. Older 32-bit only versions can possibly run on a 64-bit system if the system has the required (32-bit) shared libraries, see below.
| | '''Загрузка''': Загрузите игру с [http://www.bay12games.com/dwarves/ домашней страницы Dwarf Fortress] с помощью веб-браузера или с помощью следующей команды в терминале, заменив "XX_YY" цифрами из нужной версии игры, найденной на [http://www.bay12games.com/dwarves/]: |
| | wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2 |
|
| |
|
| ''Dwarf Fortress'' for Linux is expected to be run from a terminal (command-line) interface, and so the instructions here will assume you know how to log in and get to a command prompt. By default, however, ''Dwarf Fortress'' is a graphical desktop program (an X client), so you should be in a terminal emulator (inside an X session) before starting the game. (See [[Installation#TEXT mode]] for an alternative.) ''Dwarf Fortress'' will create a new window outside of the terminal window by default, so don't worry about the size of the terminal. | | '''Распаковка''': Dwarf Fortress распространяется в виде tar-архива (bzip2). Текущие сборки будут распаковываться непосредственно в текущий каталог, поэтому создайте новый подкаталог в подходящем месте (например, <code>~/games/df_linux</code>), перейдите в него командой <code>cd</code> и выполните команду |
| | tar -xjf /путь/к/df_XX_YY_linux.tar.bz2 |
| | где /путь/к/df_XX_YY_linux.tar.bz2 — это путь и имя загруженного вами файла. |
|
| |
|
| When you installed Linux, you chose either a 32-bit (i386, x86) or 64-bit (amd64, x86_64) architecture. Some systems are able to run programs for either, but it is best to use a version of DF compiled for the same architecture. If you've forgotten which one you have, you can check by running the command <code>uname -m</code> in a terminal. A result of <code>x86_64</code> and <code>i686</code> would indicate 64-bit or 32-bit respectively.
| | '''Зависимости:''' Для Dwarf Fortress требуются как минимум библиотеки SDL2 и SDL2_image. Если вы скачали Classic или Itch версию, эти библиотеки не будут включены. Чтобы установить эти библиотеки, выполните соответствующую команду для вашего дистрибутива: |
|
| |
|
| '''Downloading''': Either download it from the [http://www.bay12games.com/dwarves/ Dwarf Fortress Homepage] with a web browser, or with one of these terminal commands, replacing "XX_YY" with the numbers in the desired ''Dwarf Fortress'' file version, found on the [http://www.bay12games.com/dwarves/ site]:
| | * в системах на базе Debian (например, Ubuntu/Linux Mint/Pop!_OS): |
| wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2 | | sudo apt install libsdl2-image-2.0-0 |
| or, for the 32-bit version:
| | * в Fedora/CentOS используйте одну из следующих команд в зависимости от вашего менеджера пакетов: |
| wget http://www.bay12games.com/dwarves/df_XX_YY_linux32.tar.bz2 | | sudo dnf install SDL SDL_image |
| | # или: |
| | sudo yum install SDL SDL_image |
| | * в OpenSUSE: |
| | sudo zypper in libGLU1 libSDL_image-1_2-0 |
|
| |
|
| '''Unpacking''': ''Dwarf Fortress'' is shipped as a (bzip2) compressed tar archive. It will extract into a new directory called '''df_linux'''. So, <code>cd</code> to wherever you want the game to be unpacked, perhaps <code>~/games</code>, and then run
| | Примечание: эти списки могут быть неполными. |
| tar -xjf /path/to/df_XX_YY_linux.tar.bz2
| |
| where /path/to/df_XX_YY_linux.tar.bz2 is the path and filename of the actual file you downloaded.
| |
|
| |
|
| (note: <code>tar -xjvf ./df_XX_YY_linux.tar.bz2</code> may be needed in some cases. [what cases? all this does is add verbosity and assume the file is in the current dir])
| | '''Запуск''': Сначала перейдите в новый каталог |
| | |
| '''Running''': First, change to the new directory | |
| cd df_linux | | cd df_linux |
| then execute the launcher script.
| | и запустите программу. |
| ./df | | ./dwarfort |
| | |
| Now you need to ensure that the required dependencies are installed. If you try to run the game and get errors about missing SDL_image libraries (etc.) then you need to install them. Use your distribution's package manager for this - details will be extremely distribution-specific. Specific installation commands for some distributions are in the sections below. You don't need the development versions of the packages with the headers (although that won't hurt) - you just need the runtime versions, with the actual shared libraries.
| |
| | |
| If you see any errors related to libstdc++ when starting DF (for example, "version `CXXABI_1.3.8' not found"), try removing libstdc++.so.6 and libgcc_s.so.1 from the "libs" folder. This will cause DF to use the system version of these libraries, which are more up-to-date on many modern systems than the libraries that DF includes.
| |
| | |
| Since ''Dwarf Fortress'' 0.43.05 and later are compiled for both architectures, running natively shouldn't be an issue. However if you're wanting to run an older version of ''Dwarf Fortress'' on a 64-bit system, things get a bit trickier. Since older DF is only a 32-bit application, it will need 32-bit versions of the shared libraries. Some Linux distributions provide these in one or more packages that you can download. For example, in Debian, you'll need to enable the 32bit architecture in your package manager and install the relevant 32-bit libraries like libSDL. If your distribution does not include these, then you may have to supply them manually. Though, at that point it may just be easier to run the old windows version of DF in Wine.
| |
| | |
| === На базе Debian ===
| |
| | |
| Installing the dependencies for ''Dwarf Fortress'' is simple, but varies slightly depending on whether you're running a 32-bit OS, a 64-bit OS, or a 32-bit version of ''Dwarf Fortress'' on a 64-bit OS.
| |
| | |
| ==== 64-бит (последние версии ''Dwarf Fortress'', современное железо) ====
| |
| | |
| ===== Установка зависимостей =====
| |
| | |
| $ sudo apt install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libgtk2.0-0 libopenal1 libsndfile1 libncursesw5
| |
| | |
| This will install the SDL image and font libraries necessary, as well as libopenal and libsndfile, which are needed to get the sound working. It will also install libncursesw5, which is needed if you want to run ''Dwarf Fortress'' in ''TEXT'' mode.
| |
| | |
| ===== Исправление звука =====
| |
| | |
| In some old versions, ''Dwarf Fortress'' does not quite look in the correct place for the sound libraries it needs to play the wonderful music. This is easily fixed.
| |
| | |
| Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:
| |
| | |
| $ cd ~/df_linux # or other location, depending on where you installed ''Dwarf Fortress''
| |
| $ ln -s /usr/lib/x86_64-linux-gnu/libopenal.so.1 libs/libopenal.so
| |
| $ ln -s /usr/lib/x86_64-linux-gnu/libsndfile.so.1 libs/libsndfile.so
| |
| | |
| Sometimes OpenAL uses PulseAudio instead of ALSA as the output device breaking the sound.
| |
| | |
| $ sudo echo "drivers = alsa," > .alsoftrc
| |
| | |
| ==== Запуск 32-битной версии на 64-битном Debian ====
| |
| | |
| ===== Установка зависимостей =====
| |
| | |
| If you're trying to run a version of ''Dwarf Fortress'' older than 0.43.05, you'll need to install the 32-bit versions of the libraries. You can do this with:
| |
| | |
| $ sudo dpkg --add-architecture i386
| |
| $ sudo apt-get update
| |
| $ sudo apt-get install libsdl1.2debian:i386 libsdl-image1.2:i386 libsdl-ttf2.0-0:i386 libgtk2.0-0:i386 libopenal1:i386 libsndfile1:i386 libncursesw5:i386
| |
| | |
| ===== Исправление звука =====
| |
| | |
| Almost the same as above, but the libraries will be in a different location as you're looking for the 32-bit versions:
| |
| | |
| $ cd ~/df_linux # or other location, depending on where you installed ''Dwarf Fortress''
| |
| $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 libs/libopenal.so
| |
| $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 libs/libsndfile.so
| |
| | |
| Just as above sometimes OpenAL uses PulseAudio instead of ALSA as the output device breaking the sound.
| |
| | |
| $ sudo echo "drivers = alsa," > .alsoftrc
| |
| | |
| ==== 32-бит ====
| |
| | |
| ===== Установка зависимостей =====
| |
| | |
| $ sudo apt-get install libsdl1.2debian libsdl-image1.2 libsdl-ttf2.0-0 libopenal1 libsndfile1 libncursesw5
| |
| | |
| As above, this will install the SDL image and font libraries, sound libraries, and text libraries.
| |
| | |
| ===== Исправление звука =====
| |
| | |
| Switch to the ''Dwarf Fortress'' folder and add some symlinks to the correct location:
| |
| | |
| $ cd ~/df_linux # or other location, depending on where you installed ''Dwarf Fortress''
| |
| $ ln -s /usr/lib/libopenal.so.1 libs/libopenal.so
| |
| $ ln -s /usr/lib/libsndfile.so.1 libs/libsndfile.so
| |
| | |
| ==== Стандартный пакет ====
| |
| | |
| ''Dwarf Fortress'' is also available as a package in the (non-free) Debian repositories. You can install it (with all dependencies) with a simple
| |
| | |
| $ sudo apt-get install dwarf-fortress
| |
| | |
| === Fedora ===
| |
| | |
| ''Dwarf Fortress'' has been packaged in [https://rpmfusion.org/ RPM Fusion Nonfree], using a similar method as it is done in Arch Linux (see below). After [https://rpmfusion.org/Configuration installing RPM Fusion] you can simply run the following commands to install and run ''Dwarf Fortress'', which will pull in all the required dependencies:
| |
| | |
| $ sudo dnf install dwarffortress
| |
| $ dwarffortress
| |
| | |
| Some other tools are provided by the same packager in the [https://mars.arosser.com/fedora/dwarffortress/dwarffortress.repo "Dwarf Fortress for Fedora"] repository. For more information please [http://www.bay12forums.com/smf/index.php?topic=158289.msg7009116#msg7009116 see this forum thread].
| |
| | |
| If you want to install 64-bit ''Dwarf Fortress'' manually, you can run the following:
| |
| | |
| $ sudo dnf install SDL SDL_image SDL_ttf gtk2-devel openal-soft alsa-lib alsa-plugins-pulseaudio mesa-dri-drivers
| |
|
| |
|
| On 64-bit Fedora installations, to install 32-bit ''Dwarf Fortress'' you can install 32-bit libraries by appending ".i686" to the package name:
| | Если у вас установлен [[Utility:DFHack|DFHack]], вместо этого запустите |
| | ./dfhack |
| | что настроит консоль как терминал команд DFHack. Запуск DFHack также решает некоторые проблемы с загрузкой библиотек, с которыми вы могли бы столкнуться. |
|
| |
|
| $ sudo dnf install SDL.i686 SDL_image.i686 SDL_ttf.i686 gtk2-devel.i686 openal-soft.i686 alsa-lib.i686 alsa-plugins-pulseaudio.i686 mesa-dri-drivers.i686
| | '''Устранение неполадок''': |
|
| |
|
| Fedora installs all 32-bit libraries to /usr/lib and 64-bit libraries to /usr/lib64 (with /lib and /lib64 being links to these two directories), so if you need to install stuff manually, look in there.
| | Теперь вам нужно убедиться, что установлены необходимые зависимости. Если при попытке запустить игру возникают ошибки об отсутствии библиотек SDL_image (и т. д.), вам необходимо их установить. Используйте для этого менеджер пакетов вашего дистрибутива — подробности будут сильно зависеть от дистрибутива. Вам не нужны версии пакетов для разработчиков с заголовками (хотя это не помешает) — вам нужны только версии для среды выполнения с общими библиотеками. |
|
| |
|
| === Arch Linux ===
| | Если звук не работает, загрузите игру через лаунчер DFHack (<code>./dfhack</code>) или измените команду запуска на: |
| A 64-bit ''Dwarf Fortress'' package is available in the [https://wiki.archlinux.org/index.php/Official_repositories#community community repository]. There are also [https://aur.archlinux.org/packages/?O=0&K=dwarffortress other packages] available in the Arch User Repository ([https://wiki.archlinux.org/index.php/Arch_User_Repository AUR]).
| | LD_LIBRARY_PATH=. ./dwarfort |
|
| |
|
| ==== Установка официального пакета ====
| | Если при запуске DFHack вы видите ошибки, связанные с glibc (например, "version `GLIBC_2.34' not found"), ваша версия Linux слишком старая и требует обновления (например, Ubuntu 20.04 LTS недостаточно, но 22.04 LTS должна подойти). В качестве альтернативы вы можете попробовать запустить версию для Windows в Wine. |
| Install the official package like any other
| |
| # pacman -Syu dwarffortress
| |
| Any required dependencies will be installed, too.
| |
|
| |
|
| You can then launch ''Dwarf Fortress'' by running 'dwarffortress' in your terminal emulator. The package also includes a .desktop file so the game should appear in whatever application launcher or menu you might use.
| | ==MacOS== |
|
| |
|
| The first time a user launches the game, the directory .dwarffortress will be created in that user's home directory. Game settings and files can be changed there. Note that some of the directories in there are links to common directories and changes to them will effect all users. Also, any changes to common files should be backed up since they will be overwritten when the package updates. You can find the locations of files installed by the package with the command
| | Хотя нативной версии нет, вы можете запустить премиум-версию Dwarf Fortress на Mac через [https://getwhisky.app Whisky] или [https://www.winehq.org/ Wine]. Whisky работает только на компьютерах Mac от Apple Silicon, но и является предпочтительным вариантом там. |
| $ pacman -Ql dwarffortress
| |
|
| |
|
| If you use tools like dfhack you might want to [https://wiki.archlinux.org/index.php/Pacman#Skip_package_from_being_upgraded configure pacman to not update] ''Dwarf Fortress'' until the tools are updated.
| | === через Whisky на компьютерах Apple Silicon Mac === |
| | * Скачайте zip-архив [https://github.com/Whisky-App/Whisky/releases последней версии Whisky]. |
| | * Распакуйте приложение и, при желании, переместите его в папку /Applications/. |
| | * Откройте приложение Whisky и убедитесь в настройках установки, что Rosetta и "WhiskyWine" установлены и отмечены галочками. (В версиях Whisky до версии 2.3.0 вместо "WhiskyWine" будет "GPTK".<sup><nowiki>[</nowiki>[https://github.com/Whisky-App/Whisky/commit/d98a8147f1e25bffc9501020a45423f217e6a4cc источник]]</sup>) |
| | * Создайте свою первую бутылку. Win10 должна подойти. |
| | * Нажмите "Bottle Configuration", затем "Open Wine Configuration". В разделе "Libraries" добавьте новое переопределение: |
| | msvcp140_atomic_wait |
| | * Скачайте установщик Steam для Windows на свой Mac |
| | * В Whisky нажмите "Open C: Drive", перейдите к установочному файлу Steam, дважды щёлкните по нему и следуйте инструкциям. |
| | * Steam должен запуститься и войти в систему. Установите Dwarf Fortress и ройте вглубь! |
|
| |
|
| ==== Установка пакета AUR ====
| | Вы также можете установить DF Hack через Steam. Если это не удаётся (что иногда случается), вы можете установить его вручную. Скачайте [https://github.com/dfhack/dfhack/releases последний релиз с GitHub]. Распакуйте zip-архив и скопируйте все файлы из папки DF Hack в папку Dwarf Fortress. Папка игры находится здесь: <code>Library > Containers > Whisky > Bottles > (отдельная строка букв и цифр, представляющая вашу бутылку) > drive_c > Program Files (x86) > Steam > steamapps > common > Dwarf Fortress</code>. |
| Install an AUR package [https://wiki.archlinux.org/index.php/Arch_User_Repository#Installing_packages manually] or using an [https://wiki.archlinux.org/index.php/AUR_helpers AUR helper]. The different AUR packages may or may not install the game similarly to the official package - use the previous pacman command to check game file locations.
| |
|
| |
|
| ==== Ручная или множественная установки ====
| | Для Classic версии следуйте инструкциям по созданию бутылки для Win10. Загрузите последнюю версию с сайта [https://www.bay12games.com/dwarves/ Dwarf Fortress]. Распакуйте ZIP-файл. Нажмите "Open C: Drive" в Whisky и перейдите к распакованной игре. Нажмите Dwarf Fortress.exe, чтобы запустить игру. |
| You can also manually install ''Dwarf Fortress'' in case you want to try other versions or with and without mods. Just follow the generic Linux instructions above with a different directory for each install. If you've installed one of the above packages, all the dependencies should already be installed, except maybe GTK2. The package in the official repositories patches ``libgraphics.so`` to remove the GTK2 dependency. If you get an error that ``libgtk-x11-2.0.so.0`` cannot be opened, you can either use the ``libgraphics.so`` from the official package, by copying it to the ``libs`` folder in the new install or linking to it from there, or install GTK2.
| |
|
| |
|
| To launch this version: in a terminal emulator, ``cd`` to that directory, and run ``./df``. If you get a permission error, you may need to mark the script and executable as being executable with:
| | === через Wine для старых дистрибутивов MacOS === |
| $ chmod u+x df libs/Dwarf_Fortress
| | Для Wine требуется установить [https://brew.sh/ Homebrew] — менеджер пакетов Mac OS. Если у вас нет опыта работы с ним, поначалу это может показаться сложным, но вы должны справиться, просто следуя пошаговому руководству ниже. Если вам нужна помощь с Homebrew, вы найдете множество обучающих материалов в интернете. Вам также потребуется запустить [[wikipedia:ru:Terminal (macOS)|Terminal]], который представляет собой встроенное приложение, которое можно найти и запустить через поиск Spotlight. |
| Once you get an install working you can create a [https://wiki.archlinux.org/index.php/Desktop_entries custom .desktop file] to launch it.
| |
|
| |
|
| If you want to install a 32-bit version of ''Dwarf Fortress'' you will have to enable the [https://wiki.archlinux.org/index.php/Official_repositories#multilib multilib repository], install the 32-bit system libraries, and install the 32-bit game dependencies manually (check the Arch wiki for more information).
| | Если у вас установлен Homebrew, откройте Терминал и вставьте следующее для установки Wine через brew. |
| | brew install --cask --no-quarantine wine-stable |
|
| |
|
| === CentOS 7 ===
| | Обязательно ознакомьтесь с [https://wiki.winehq.org/MacOS сайтом winehq] на предмет самых последних инструкций. Если у вас не установлен brew, следуйте инструкциям на [https://brew.sh сайте brew] перед выполнением указанной выше команды. |
|
| |
|
| ''Dwarf Fortress'' is now 64-bit, so simply run:
| | Для версии Classic загрузите версию для Windows, доступную на [https://www.bay12games.com/dwarves/ сайте Dwarf Fortress] (прямую ссылку на скачивание см. в [[#Скачивание Classic-версии|Скачивание Classic-версии]]). ZIP-файл с именем df_{{#rreplace:{{current/version}}|\.|_}}_win.zip или похожим должен автоматически загрузиться и распаковаться в папку "Загрузки". Откройте папку, щёлкните правой кнопкой мыши по файлу Dwarf Fortress.exe, выберите "Открыть с помощью" и затем "Wine Stable". Если рядом с этим пунктом появится "(по умолчанию)", в следующий раз этого делать не нужно, просто дважды щёлкните по Dwarf Fortress.exe, чтобы запустить его. |
|
| |
|
| sudo yum install SDL SDL_image SDL_ttf openal
| | Что касается версии для Steam, обратите внимание: не стоит покупать её в расчёте на то, что она будет работать на MacOS. Она официально не поддерживается на MacOS, поэтому, если у вас не припасено машины с Windows или Linux, вы рискуете не поиграть в то, за что заплатили, даже если у некоторых сейчас игра работает. |
|
| |
|
| Note that CentOS 7 ships with glibc 2.17, but ''Dwarf Fortress'' by default would like 2.18. [http://www.bay12games.com/dwarves/mantisbt/view.php?id=9893 This bug] has a fix, simply copy the [http://pastebin.com/jX4Wf062 Pastebin script], then move the libraries into a new folder.
| | Кроме того, скачайте версию Steam для Windows с [https://store.steampowered.com/about/ сайта Steam], щёлкнув по маленькому значку Windows. Щёлкните правой кнопкой мыши по SteamSetup и выберите "Открыть с помощью Wine Stable". Это может занять минуту, но должен открыться установщик. Параметры по умолчанию, предлагаемые Steam, должны быть подходящими и их можно не трогать. Как только войдёте в Steam, скачайте Dwarf Fortress из Steam, как на Windows. После этого вы сможете запустить Dwarf Fortress. |
|
| |
|
| cd df_linux
| | Снова открыть версию Steam для Wine после её закрытия немного сложнее. Откройте Finder и нажмите Shift+Command+G или выберите "Go" > "Go to folder". Вставьте <code>~/.wine/drive_c/Program Files (x86)/Steam</code> в командную строку и нажмите Enter. Затем вы можете нажать steam.exe, чтобы снова запустить Steam, или выбрать steamapps > common > Dwarf Fortress, чтобы создать резервную копию сохранений, и запустить Steam Dwarf Fortress напрямую, открыв его с помощью Wine. |
| curl -L http://pastebin.com/raw/jX4Wf062 > df
| |
| mkdir c_libs
| |
| mv libs/libgcc_s.so.1 libs/libstdc++.so.6 c_libs/
| |
| chmod a+x df
| |
|
| |
|
| Then run it!
| | Создание ярлыков: |
| ./df
| |
|
| |
|
| === Gentoo ===
| | * Щёлкните правой кнопкой мыши по файлу <code>Dwarf Fortress.exe</code> и выберите <code>Make alias</code>. В той же папке должен быть создан файл с псевдонимом Dwarf Fortress.exe. Вы можете переименовать его и переместить куда угодно. Вы также можете создать псевдонимы для папок Steam и Dwarf Fortress, чтобы вам больше не пришлось искать скрытые файлы Windows через Finder. |
| | |
| There is a ''Dwarf Fortress'' [https://packages.gentoo.org/package/games-roguelike/dwarf-fortress ebuild] in the main Gentoo's portage tree compatible with the new multilib support.
| |
| | |
| # emerge -av games-roguelike/dwarf-fortress
| |
| | |
| === Solus ===
| |
| | |
| Download ''Dwarf Fortress'' from the Bay 12 Games website. If you encounter the following error upon launch:
| |
| | |
| ./libs/Dwarf_Fortress: error while loading shared libraries: libSDL_ttf-2.0.so.0: cannot open shared object file: No such file or directory
| |
| | |
| then simply run the following command to install the missing libraries:
| |
| | |
| sudo eopkg install sdl-ttf
| |
| | |
| If you are running a 32bit version of ''Dwarf Fortress'', simply replace <code>sdl-ttf</code> with <code>sdl-ttf-32bit</code> in the above command. You're all set!
| |
| | |
| === OpenSuse Tumbleweed ===
| |
| These instructions should work for OpenSuse Leap as well, they just haven't been tested yet.
| |
| ==== Зависимости ====
| |
| $ sudo zypper in libGLU1 libSDL_image-1_2-0 libSDL_ttf-2_0-0
| |
| ==== Удаление включенной библиотеки c++ ====
| |
| The included library isn't compatible with OpenSuse's <code>libGLU1</code> package
| |
| $ cd path/to/df_linux/libs
| |
| $ rm libstdc++.so.6
| |
| | |
| cd back to df_linux/ and run the game!
| |
| $ cd ../
| |
| $ ./df
| |
| === Wine ===
| |
| Downloading the windows version and running it with Wine works fine ([https://appdb.winehq.org/objectManager.php?sClass=version&iId=32503 platinum] on 1.7.47 as of .4x.xx, which means the program runs flawlessly without any initial user configuration). This also avoids any issues with 32-bit versus 64-bit mode.
| |
| | |
| === Исправление проблем ===
| |
| If you get errors, it is likely that others will have had the same problem; Try searching the bay12games forum with the error message.
| |
| ==== Звук ====
| |
| | |
| After installing, DF will run, but will complain that it cannot find the OpenAL library and cannot play sounds, even when OpenAL (i386) has been installed. This is due to a bug/feature in which there is no link from the name of the library that DF is looking for ("libopenal.so") to its implementation ("libopenal.so.1" - technically another link). To fix this, simply provide the necessary links in DF's own ''libs'' directory:
| |
| | |
| $ cd df_linux/libs
| |
| $ ln -s /usr/lib/i386-linux-gnu/libopenal.so.1 ./libopenal.so
| |
| $ ln -s /usr/lib/i386-linux-gnu/libsndfile.so.1 ./libsndfile.so
| |
| | |
| ==== TEXT mode ====
| |
| In this mode - which can be activated in [[init.txt]] - DF uses a terminal as its display, much like classic roguelikes such as Rogue, Moria, and Nethack originally did. There are some caveats for using this mode.
| |
| | |
| Some key combinations in the default DF configuration will not work. These can be changed in game by pressing {{k|ESC}} then choosing the Key Bindings option or out of the game by editing the [[interface.txt]] file. This is due to the way terminal emulators handle input, the [https://en.wikipedia.org/wiki/Ncurses ncurses] library, and the way DF interfaces with them.{{bug|5494}} Some examples are the keypad keys with modifiers or {{k|Shift+Enter}}.
| |
| | |
| DF uses the CP437 [[Character_table|character set]] and TEXT mode translates those to UTF-8. Characters will only be displayed correctly if the font the terminal emulator is using has glyphs for all of the set. A UTF-8 encoded text file to test glyph coverage can be found [http://www.orenwatson.be/cp437.htm here]. Download the text file, view it in the terminal (using more, less, cat, etc.), and check if the font the terminal is using includes all the characters shown on the HTML version. Some terminals may be configured to use a [https://en.wikipedia.org/wiki/Fallback_font fallback font] if the main one lacks a glyph - that may result in different sized glyphs being used.
| |
| | |
| There is a [http://www.bay12forums.com/smf/index.php?topic=59983.0 utility] to convert a DF [[tileset]] to a TTF file. That thread also has downloads for some already converted sets. This does not work for graphics sets. This is one way to get a square font that includes all the characters. [https://www.kreativekorp.com/software/fonts/ksquare.shtml Kreative Square] is another though it has many more glyphs than are needed.
| |
| | |
| DF's [[colors.txt]] file will have no effect. However, many terminal emulators have settings to change the colors they display. See the terminal emulator's man page for details. Note that the order of the [[Color#Color_values|colors]] is different - the position of the blues and reds are switched as are the cyans and brown/yellow. So, when copying DF color schemes into terminal emulator settings, be sure to change them to the correct order or you'll get yellow "sky", red water, and blue blood.
| |
| | |
| Many terminal emulators have a setting to treat bright colored text as bold instead. This will cause dark grey text to be "displayed" as bold, black text - usually on a black background - making it unreadable. See the terminal emulator's man page for an option to disable this behavior. (Note that LXTerminal's disallowbold option does not currently seem to work.)
| |
| | |
| If the [[intro movie]] is enabled, DF will not use the full terminal size unless it receives a resize event. If the intro movie is disabled, DF will use the full size from the start. Note, however, that some DF screens do not use the full size of the window under any circumstance.
| |
| | |
| ==== Обновление ====
| |
| | |
| Since every new version of ''Dwarf Fortress'' unpacks in a directory named '''df_linux''' you have to manage upgrades yourself - or use the [http://dffd.wimbli.com/file.php?id=9639 Linux Updater Script]. As on all systems, you should '''not''' unpack a new version of DF on top of an old version's directory -- this will cause things to break, usually in subtle and mysterious ways. Instead, you should either delete or rename the old '''df_linux''' directory first, before extracting the new version.
| |
| | |
| ==== Ручная установка 32-битных библиотек ====
| |
| | |
| If you do need to manually install the libraries, then the first step is to figure out where you will be putting them. Check to see where your other 32-bit libraries are already installed; for example, on Debian, some are in /lib32 and others are in /usr/lib32. Since libSDL is in /usr/lib32 on a Debian system, that's where we'll want to put libSDL_image and libSDL_ttf. On other distributions, the path could be different.
| |
| | |
| The second step is to get the 32-bit libraries. You can typically do this by downloading them directly from your distribution's 32-bit package repository. Again using Debian as our example, we can perform a search at http://packages.debian.org/ for files containing the word libSDL_image for the Intel x86 architecture. This takes us to [http://packages.debian.org/search?searchon=contents&keywords=libSDL_image&mode=filename&suite=stable&arch=i386 a results page] from which we can proceed to [http://packages.debian.org/squeeze/libsdl-image1.2 the libsdl-image1.2 package page] with a list of download links arranged by architecture. Grab the i386 package from here, and repeat this for the libSDL_ttf package, and whatever other library you are missing. Store these package files somewhere convenient.
| |
| | |
| The third step is to extract the libraries from the packages and get them in the proper location. You probably ''won't'' be able simply to install the packages using your package manager, because they are for the wrong architecture. Instead, you'll probably have to extract them by hand. The steps for doing this are distribution-specific, so when in doubt consult your distribution's help resources. Here are the steps for a .deb package.
| |
| | |
| * cd into some temporary working directory such as /tmp
| |
| * Extract the files from the .deb archive, which is in ar(1) format:
| |
| tar x /path/to/libsdl-image1.2*_i386.deb
| |
| : This creates three files: debian-binary, control.tar.gz and data.tar.gz. We only care about data.tar.gz.
| |
| * Extract data.tar.gz:
| |
| tar xzf data.tar.gz
| |
| : This creates a subdirectory named usr with various files inside it. We only care about usr/lib/libSDL_image-1.2.so.0.8.2 (or whatever precise version yours has).
| |
| * Move the shared library into place:
| |
| sudo mv usr/lib/libSDL_image-1.2.so.* /usr/lib32/
| |
| * Create a symlink to it:
| |
| cd /usr/lib32
| |
| sudo ln -s libSDL_image-1.2.so.0.* libSDL_image-1.2.so.0
| |
| cd -
| |
| | |
| Repeat this for libSDL_ttf and whatever other libraries are required.
| |
| | |
| '''NOTE''': If you get the error that libsndfile.so is not found, you must use the following:
| |
| find */libsndfile.so*
| |
| cd to the correct directory, then use ln as shown above.
| |
| | |
| ==== "Not found: /data/art/mouse.png" ====
| |
| ===== Способ 1: Предзагрузить zlib=====
| |
| Due to incompatibilities between DF's included zlib and newer versions of zlib, libpng can fail on newer systems. A solution is to add this line to the beginning of <code>/your/path/df_linux/df</code> (or <code>/your/path/df_linux/dfhack</code> if you use [[DFHack]]):
| |
| export LD_PRELOAD=/usr/lib/libz.so.1
| |
| Note that this path can vary - be sure that it is referring to a '''32-bit''' zlib.
| |
| ===== Способ 2: Использвать bmp =====
| |
| Another solution (if preloading zlib doesn't work) is to force DF to use the BMP versions of image files. You must first edit the ''/data/init/init.txt'' file and change all occurrences of "png" to "bmp". This should solve all the error messages except for one: "''Not found: data/art/mouse.png''" since there is no setting in the init files to change it. The workaround for this is to edit the ''Dwarf_Fortress'' file found in the ''/your/path/df_linux/libs'' folder which contains the setting for the mouse cursor.
| |
| If you don't know how to do that, you can try this:
| |
| * cd to the ''/df_linux/libs'' folder
| |
| * open ''Dwarf_Fortress'' in ''vi'' or any other editor of your choise:
| |
| vi ./Dwarf_Fortress
| |
| : This opens the file for editing (text mode). If you are not familiar with ''vi'', it would be a good idea to follow these steps exactly and not press any other keys since they all activate specific commands. If you do press a key though, you can press the ''ESC key'' a few times to cancel the command.
| |
| * With vi open, write the following string and press ''Enter'':
| |
| /mouse
| |
| : This will search for all the strings that contain the word "mouse" and place the cursor on the first match. Pressing the ''n key'' will cycle through all the matches.
| |
| * Press the ''n'' key until the cursor moves to the desired string, which is "''data/art/mouse.png''". If you accidentally move past the string, you can cycle back through the matched strings using the ''N key'' (shift + n).
| |
| * Once you find the right string, you will have to move the cursor over the "p" in "[..]/mouse.<b>p</b>ng". You do that by pressing the ''l key'' which will move the cursor to the right. There is also the ''h key'' to move the cursor to the left, in case you move past it.
| |
| * With the cursor in the right position press the following key sequence:
| |
| xxxibmp
| |
| : This will replace the ''.png'' extension with the ''.bmp'' one which solves the problem of the missing ''/data/art/mouse.png'' error.
| |
| * All there is left to do is to save the modifications to the file and quit ''vi''. For that, press the ''ESC key'' once or twice and then press the following key sequence after which you press ''Enter'':
| |
| :wq
| |
| : This saves the changes and quits 'vi'
| |
| | |
| Now the game should work properly. Have fun!
| |
| | |
| ==== libGL error ====
| |
| | |
| ''libGL error: MESA-LOADER: failed to open i965''
| |
| | |
| ''libGL error: failed to load driver: swrast''
| |
| | |
| This can be caused by incompatible libgcc_s.so.1
| |
| | |
| ===== Способ 1: изменить режим отображения =====
| |
| | |
| * Go to /data/init/init.txt
| |
| * Edit PRINT_MODE to be any of the 2D modes or TEXT instead of openGL-based modes like STANDARD, VBO or TWBT.
| |
| | |
| ===== Способ 2: изменить библиотеку =====
| |
| | |
| * Open df_linux/libs folder
| |
| * Rename libgcc_s.so.1 to libgcc_s.so.1.bak so that DF will be unable to find it and will default to system libraries.
| |
| * If DF still doesn't launch, find and install suitable libgcc with your package manager.
| |
| * If you have multiple libgccs, you may need to make a shortcut like with libopenal and libsndfile above.
| |
| | |
| ==FreeBSD==
| |
| | |
| Although there is no official version ported to FreeBSD, ''Dwarf Fortress'' can nevertheless be run using either Wine or FreeBSD's compatibility with Linux. There is now an [https://www.freshports.org/games/linux-dwarffortress/ official port] and installing it can be done the following way (with ports):
| |
| | |
| cd /usr/ports/games/linux-dwarffortress/ && make install clean
| |
| | |
| or, with pkg:
| |
| | |
| pkg install linux-dwarffortress
| |
| | |
| You may also wish to download and run it manually. However, attempting to run the Linux version out of the blue will result in an error about missing library files. Such files must be downloaded from special linux-compatible packages or ports; using your preferred installation method, install the following:
| |
| | |
| ===linux-c6===
| |
| sudo pkg install linux-c6-gtk2 linux-c6-sdl linux-c6-sdl_image linux-c6-sdl_ttf linux-c6-libGLU \
| |
| linux-c6-openal-soft linux-c6-libsndfile linux-c6-alsa-plugins-oss
| |
| | |
| ===linux-f10===
| |
| If you don't have the linux-c6 ports available in your system, you can still run ''Dwarf Fortress'' (albeit without sound) using the following packages:
| |
| sudo pkg install linux-f10-alsa-lib linux-f10-atk linux-f10-cairo linux-f10-expat linux-f10-fontconfig \
| |
| linux-f10-gtk2 linux-f10-jpeg linux-f10-pango linux-f10-png linux-f10-sdl linux-f10-sdl_image linux-f10-tiff \
| |
| linux-f10-xorg-libs linux-sdl_ttf linux_base-f10 linux_dri linux-f10-libGLU
| |
| linux_dri might be optional if you have the NVIDIA driver. Note that due to the lack of a linux-f10-libsndfile port, the sound will not work. Requests are being made to [http://lists.freebsd.org/pipermail/freebsd-ports-bugs/2013-January/247698.html port] it, as well as a [https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=178474 DF] port itself.
| |
| | |
| | |
| After you install the required packages, copy (or symlink) DF's own library files to the linux-compatible directory:
| |
| cd dwarf_fortress_directory
| |
| sudo cp libs/lib* /compat/linux/usr/lib/
| |
| Or
| |
| cd dwarf_fortress_directory
| |
| sudo ln -s libs/lib* /compat/linux/usr/lib/
| |
| | |
| You can then run DF normally. Although it will likely display a bunch of warnings and errors about fonts, it should work.
| |
| | |
| If you want to avoid polluting your linux-compatible directory, you can always just set LD_LIBRARY_PATH when running df:
| |
| LD_LIBRARY_PATH=libs:$LD_LIBRARY_PATH ./df
| |
| | |
| == Chrome OS (Crostini) ==
| |
| | |
| It is possible to add ''Dwarf Fortress'' to Chrome OS using the Linux (Beta), to add Linux to Chrome OS, [https://support.google.com/chromebook/answer/9145439?p=chromebook_linuxapps check here to enable it]
| |
| You will need to edit the sources list to include the "non-free" repository, this is done by adding "non-free" to the end of the main sources file found at /etc/apt/sources.list
| |
| | |
| e.g.
| |
| # Generated by distrobuilder
| |
| deb https://deb.debian.org/debian buster main non-free
| |
| deb https://deb.debian.org/debian-security buster/updates main non-free
| |
| Followed by running
| |
| sudo apt-get update
| |
| Then just follow the Debian instructions above
| |
| | |
| == Android ==
| |
| | |
| Версии для Android нет, но версию для Windows можно запустить на нем с помощью ExaGear, эмулятора Windows от Eltech (который по сути является Wine для Android), как описано в документации [http://www.bay12forums.com/smf/index.php?topic=174983.0 здесь]. Хотя приложение не бесплатное.
| |
| | |
| == iOS ==
| |
| | |
| Версии для iOS нет, но вы можете удаленно подключиться к компьютеру, на котором работает DF, через приложение под названием [https://mifki.com/df/ Dwarf Fortress Remote]. Для этого на компьютере должна быть запущена нужная версия [[DFHack]], которую вы можете загрузить отдельно. Оно также может предоставить подписку, по которой вы подключаетесь к уже настроенному удаленному серверу.
| |
|
| |
|
| = Документация = | | = Документация = |
| Строка 427: |
Строка 131: |
| * [[Adventure mode|Справка по режиму приключений]] | | * [[Adventure mode|Справка по режиму приключений]] |
| * [[Special:Search|Поиск]] по вики | | * [[Special:Search|Поиск]] по вики |
| | |
| | У документации по [[DFHack]] есть свой сайт: |
| | * [https://docs.dfhack.org/en/latest/index.html DFHack docs] |
|
| |
|
| {{Getting Started}} | | {{Getting Started}} |
| [[Category:Руководства]] | | [[Category:Руководства]] |
| [[en:Installation]] | | [[en:Installation]] |
Игра доступна в версиях Premium и Classic. Процесс установки зависит от версии игры.
"Premium" доступна на платформах Steam и itch.io. После покупки игра автоматически добавится в вашу игровую библиотеку и будет работать как любая другая игра на этой платформе.
"Classic" доступна бесплатно непосредственно на сайте разработчика, Bay 12 Games. Просто скачайте последнюю версию, распакуйте её содержимое и играйте.
Обратите внимание, что планы по созданию нативной сборки для MacOS [1] пока отменены, но некоторым игрокам удалось запустить как Steam, так и Classic версию через Wine. См. ниже.
Скачивание Classic-версии
Dwarf Fortress Classic доступна бесплатно непосредственно на сайте разработчика, Bay 12 Games. Просто найдите версию, соответствующую вашей операционной системе, и перейдите по ссылке — начнётся скачивание архива с игрой. Далее следуйте инструкциям по установке ниже.
- Ссылка на Windows ведёт на скачивание версии для 64-разрядной системы. Ссылка "все версии" ведёт на страницу с дополнительными вариантами выбора версии, включая, "малые" сборки для Windows (без звуковых файлов).
DFHack и другие сторонние ресурсы
Наиболее известным дополнением для установки Dwarf Fortress является DFHack, которое вносит широкий спектр улучшений интерфейса, исправлений ошибок и инструментов для повышения производительности. Если вы установили "Dwarf Fortress" через Steam, вы также можете установить DFHack в Steam. Игроки других дистрибутивов "Dwarf Fortress" могут скачать и установить DFHack со страницы релизов DFHack на GitHub [2].
Если вы играете на старых версих игры, вас может заинтересовать Lazy Newb Pack, который включает в себя ряд утилит (включая DFHack) и графических сетов. В последних версиях Dwarf Fortress (50.01+) Lazy Newb Pack больше не нужен.
Также существует множество модов, созданных игроками, доступных в Мастерской Steam и на форумах Bay 12. Если у вас нет аккаунта Steam, моды для Мастерской можно загрузить из Steam с помощью утилиты командной строки steamcmd.
Установка Classic-версии
- См. также: Системные требования
Windows
Установщика игры нет. Просто щёлкните правой кнопкой мыши по скачанному zip-архиву и выберите Извлечь файлы..., затем выберите папку назначения. По умолчанию Windows использует имя архива в качестве имени папки, в которой находится архив, например, C:\Users\имя_пользователя\Downloads\df_50_12_win. После извлечения файлов дважды щёлкните по файлу Dwarf Fortress.exe в папке, которую вы выбрали для запуска игры.
- Убедитесь, что вы действительно "распаковали" архив, а не просто дважды щёлкнули по архиву и запустили игру из появившегося окна. В этом случае может показаться, что всё работает, но ваши сохранения будут удалены — причина многих жалоб по типу "Мои сохранённые игры постоянно удаляются!"
- Игра должна иметь возможность записывать данные в свою собственную папку. Выберите папку с игрой, к которой у вашего пользователя есть доступ без прав администратора, например: папку
Загрузки, Рабочий стол или C:\games\..; не устанавливайте её в папку C:\Program Files\.., если вы не знаете, как правильно настроить разрешения.
Устранение неполадок:
- Если возникает ошибка об отсутствии MSVCP140.dll или MSVCP140_ATOMIC_WAIT.dll, файл можно получить, загрузив Visual C++ Redistributable для Visual Studio 2022.
- Если в Windows включено масштабирование экрана, может потребоваться отключить эту функцию для игры. Щёлкните правой кнопкой мыши по значку "Dwarf Fortress.exe", выберите "Свойства", перейдите на вкладку "Совместимость" и установите флажок "Отключить масштабирование изображения при высоком разрешении экрана" (или Изменить параметры высокого DPI > Масштабирование выполняется: Приложение). [3]
Создание ярлыков:
- Щёлкните правой кнопкой мыши по файлу
Dwarf Fortress.exe и выберите один из вариантов: Отправить > Рабочий стол (создать ярлык), Закрепить на панели задач или Закрепить на начальном экране. (Доступность этих опций может зависеть от версии Windows.)
Linux
Dwarf Fortress для Linux, как ожидается, будет запускаться из терминала (командной строки), поэтому в приведенных здесь инструкциях предполагается, что вы знаете, как войти в систему и открыть командную строку. Однако по умолчанию Dwarf Fortress — это графическая десктопная программа, поэтому перед запуском игры вам следует открыть эмулятор терминала (внутри сеанса X). По умолчанию Dwarf Fortress создаст новое окно за пределами окна терминала, поэтому не беспокойтесь о размере терминала.
Загрузка: Загрузите игру с домашней страницы Dwarf Fortress с помощью веб-браузера или с помощью следующей команды в терминале, заменив "XX_YY" цифрами из нужной версии игры, найденной на [4]:
wget http://www.bay12games.com/dwarves/df_XX_YY_linux.tar.bz2
Распаковка: Dwarf Fortress распространяется в виде tar-архива (bzip2). Текущие сборки будут распаковываться непосредственно в текущий каталог, поэтому создайте новый подкаталог в подходящем месте (например, ~/games/df_linux), перейдите в него командой cd и выполните команду
tar -xjf /путь/к/df_XX_YY_linux.tar.bz2
где /путь/к/df_XX_YY_linux.tar.bz2 — это путь и имя загруженного вами файла.
Зависимости: Для Dwarf Fortress требуются как минимум библиотеки SDL2 и SDL2_image. Если вы скачали Classic или Itch версию, эти библиотеки не будут включены. Чтобы установить эти библиотеки, выполните соответствующую команду для вашего дистрибутива:
- в системах на базе Debian (например, Ubuntu/Linux Mint/Pop!_OS):
sudo apt install libsdl2-image-2.0-0
- в Fedora/CentOS используйте одну из следующих команд в зависимости от вашего менеджера пакетов:
sudo dnf install SDL SDL_image
- или:
sudo yum install SDL SDL_image
sudo zypper in libGLU1 libSDL_image-1_2-0
Примечание: эти списки могут быть неполными.
Запуск: Сначала перейдите в новый каталог
cd df_linux
и запустите программу.
./dwarfort
Если у вас установлен DFHack, вместо этого запустите
./dfhack
что настроит консоль как терминал команд DFHack. Запуск DFHack также решает некоторые проблемы с загрузкой библиотек, с которыми вы могли бы столкнуться.
Устранение неполадок:
Теперь вам нужно убедиться, что установлены необходимые зависимости. Если при попытке запустить игру возникают ошибки об отсутствии библиотек SDL_image (и т. д.), вам необходимо их установить. Используйте для этого менеджер пакетов вашего дистрибутива — подробности будут сильно зависеть от дистрибутива. Вам не нужны версии пакетов для разработчиков с заголовками (хотя это не помешает) — вам нужны только версии для среды выполнения с общими библиотеками.
Если звук не работает, загрузите игру через лаунчер DFHack (./dfhack) или измените команду запуска на:
LD_LIBRARY_PATH=. ./dwarfort
Если при запуске DFHack вы видите ошибки, связанные с glibc (например, "version `GLIBC_2.34' not found"), ваша версия Linux слишком старая и требует обновления (например, Ubuntu 20.04 LTS недостаточно, но 22.04 LTS должна подойти). В качестве альтернативы вы можете попробовать запустить версию для Windows в Wine.
MacOS
Хотя нативной версии нет, вы можете запустить премиум-версию Dwarf Fortress на Mac через Whisky или Wine. Whisky работает только на компьютерах Mac от Apple Silicon, но и является предпочтительным вариантом там.
через Whisky на компьютерах Apple Silicon Mac
- Скачайте zip-архив последней версии Whisky.
- Распакуйте приложение и, при желании, переместите его в папку /Applications/.
- Откройте приложение Whisky и убедитесь в настройках установки, что Rosetta и "WhiskyWine" установлены и отмечены галочками. (В версиях Whisky до версии 2.3.0 вместо "WhiskyWine" будет "GPTK".[источник])
- Создайте свою первую бутылку. Win10 должна подойти.
- Нажмите "Bottle Configuration", затем "Open Wine Configuration". В разделе "Libraries" добавьте новое переопределение:
msvcp140_atomic_wait
- Скачайте установщик Steam для Windows на свой Mac
- В Whisky нажмите "Open C: Drive", перейдите к установочному файлу Steam, дважды щёлкните по нему и следуйте инструкциям.
- Steam должен запуститься и войти в систему. Установите Dwarf Fortress и ройте вглубь!
Вы также можете установить DF Hack через Steam. Если это не удаётся (что иногда случается), вы можете установить его вручную. Скачайте последний релиз с GitHub. Распакуйте zip-архив и скопируйте все файлы из папки DF Hack в папку Dwarf Fortress. Папка игры находится здесь: Library > Containers > Whisky > Bottles > (отдельная строка букв и цифр, представляющая вашу бутылку) > drive_c > Program Files (x86) > Steam > steamapps > common > Dwarf Fortress.
Для Classic версии следуйте инструкциям по созданию бутылки для Win10. Загрузите последнюю версию с сайта Dwarf Fortress. Распакуйте ZIP-файл. Нажмите "Open C: Drive" в Whisky и перейдите к распакованной игре. Нажмите Dwarf Fortress.exe, чтобы запустить игру.
через Wine для старых дистрибутивов MacOS
Для Wine требуется установить Homebrew — менеджер пакетов Mac OS. Если у вас нет опыта работы с ним, поначалу это может показаться сложным, но вы должны справиться, просто следуя пошаговому руководству ниже. Если вам нужна помощь с Homebrew, вы найдете множество обучающих материалов в интернете. Вам также потребуется запустить Terminal, который представляет собой встроенное приложение, которое можно найти и запустить через поиск Spotlight.
Если у вас установлен Homebrew, откройте Терминал и вставьте следующее для установки Wine через brew.
brew install --cask --no-quarantine wine-stable
Обязательно ознакомьтесь с сайтом winehq на предмет самых последних инструкций. Если у вас не установлен brew, следуйте инструкциям на сайте brew перед выполнением указанной выше команды.
Для версии Classic загрузите версию для Windows, доступную на сайте Dwarf Fortress (прямую ссылку на скачивание см. в Скачивание Classic-версии). ZIP-файл с именем df_53_12_win.zip или похожим должен автоматически загрузиться и распаковаться в папку "Загрузки". Откройте папку, щёлкните правой кнопкой мыши по файлу Dwarf Fortress.exe, выберите "Открыть с помощью" и затем "Wine Stable". Если рядом с этим пунктом появится "(по умолчанию)", в следующий раз этого делать не нужно, просто дважды щёлкните по Dwarf Fortress.exe, чтобы запустить его.
Что касается версии для Steam, обратите внимание: не стоит покупать её в расчёте на то, что она будет работать на MacOS. Она официально не поддерживается на MacOS, поэтому, если у вас не припасено машины с Windows или Linux, вы рискуете не поиграть в то, за что заплатили, даже если у некоторых сейчас игра работает.
Кроме того, скачайте версию Steam для Windows с сайта Steam, щёлкнув по маленькому значку Windows. Щёлкните правой кнопкой мыши по SteamSetup и выберите "Открыть с помощью Wine Stable". Это может занять минуту, но должен открыться установщик. Параметры по умолчанию, предлагаемые Steam, должны быть подходящими и их можно не трогать. Как только войдёте в Steam, скачайте Dwarf Fortress из Steam, как на Windows. После этого вы сможете запустить Dwarf Fortress.
Снова открыть версию Steam для Wine после её закрытия немного сложнее. Откройте Finder и нажмите Shift+Command+G или выберите "Go" > "Go to folder". Вставьте ~/.wine/drive_c/Program Files (x86)/Steam в командную строку и нажмите Enter. Затем вы можете нажать steam.exe, чтобы снова запустить Steam, или выбрать steamapps > common > Dwarf Fortress, чтобы создать резервную копию сохранений, и запустить Steam Dwarf Fortress напрямую, открыв его с помощью Wine.
Создание ярлыков:
- Щёлкните правой кнопкой мыши по файлу
Dwarf Fortress.exe и выберите Make alias. В той же папке должен быть создан файл с псевдонимом Dwarf Fortress.exe. Вы можете переименовать его и переместить куда угодно. Вы также можете создать псевдонимы для папок Steam и Dwarf Fortress, чтобы вам больше не пришлось искать скрытые файлы Windows через Finder.
Документация
К счастью, документация на этой вики очень подробная и обширная. Вы можете начать с:
А затем перейти к:
У документации по DFHack есть свой сайт: