| 1 |
Exult instructions for Windows |
| 2 |
------------------------------------ |
| 3 |
|
| 4 |
Supported versions of Windows |
| 5 |
------------------------------ |
| 6 |
Exult only officialy supports Windows Vista and newer. Windows XP is not supported. |
| 7 |
It may be possible to use a modified build process to generate XP compatible executables but the default build process does not. |
| 8 |
This document will not detail how to do that. |
| 9 |
|
| 10 |
To play |
| 11 |
--------- |
| 12 |
First you need to get Ultima VII: The Black Gate or Ultima VII Part 2: Serpent Isle. |
| 13 |
Either you own it already, or you buy it somewhere. Then you must install it. |
| 14 |
Note that the Ultima Collection already contains an installed copy of Ultima VII |
| 15 |
(In the Ultima7 directory) and of Serpent Isle (in the Serpent directory). |
| 16 |
|
| 17 |
From the Ultima7 or Serpent folder on your PC, copy the STATIC sub folder to the |
| 18 |
'blackgate' or 'serpentisle' sub folder (as appropriate) of the folder you |
| 19 |
installed Exult in (you will likely have to create the sub folders yourself). |
| 20 |
|
| 21 |
Run "exult.exe". |
| 22 |
Have fun! |
| 23 |
|
| 24 |
(In depth instructions can be read in our documentation and FAQ) |
| 25 |
|
| 26 |
|
| 27 |
Notes |
| 28 |
------ |
| 29 |
* Exult generates the files 'stdout.txt' and 'stderr.txt' when you run it. |
| 30 |
These may give you some idea of what is going on under the hood. When Exult |
| 31 |
suddenly quits, sometimes these files can help. |
| 32 |
|
| 33 |
* Exult Studio generates the files 'studioout.txt' and 'studioerr.txt' when |
| 34 |
you run it. These may give you some idea of what is going on under the hood. |
| 35 |
When Exult Studio suddenly quits, sometimes these files can help. |
| 36 |
|
| 37 |
* If you're interested in building Exult for windows yourself, there are two |
| 38 |
sections below describing how. |
| 39 |
|
| 40 |
|
| 41 |
To build in Windows using MSYS2/MinGW64 |
| 42 |
--------------------------------------- |
| 43 |
|
| 44 |
Download latest MSYS2: |
| 45 |
32-bit Windows: |
| 46 |
http://repo.msys2.org/distrib/msys2-i686-latest.exe |
| 47 |
64-bit Windows: |
| 48 |
http://repo.msys2.org/distrib/msys2-x86_64-latest.exe |
| 49 |
|
| 50 |
Install it somewhere, then start it from Start Menu. Run the following command: |
| 51 |
pacman -Syyu --noconfirm |
| 52 |
|
| 53 |
Reply 'Y' when you have to. At some point, you will be asked to close and reopen |
| 54 |
the shell. Do so. |
| 55 |
|
| 56 |
Now it is time to make a choice: whether to build Exult on 32- or 64-bit: start |
| 57 |
the corresponding shell ("MSYS2 MinGW 32-bit" or "MSYS2 MinGW 64-bit") from the |
| 58 |
start menu. We do not recommend trying to make 32 bit build as some needed |
| 59 |
dependency packages are unavailable when trying to build using mingw32 as the |
| 60 |
maintainers of mingw are in the process of dropping 32bit support. pacman |
| 61 |
commands will fail when trying to install the unavailable packages. in this |
| 62 |
case you'll need to build the missing dependencies from source yourself using |
| 63 |
mingw32 and install them. As of 21 April 2025 the following pacages are missing |
| 64 |
for mingw32 |
| 65 |
* mt32emu: needed by Exult, |
| 66 |
* SDL2_image: needed by some tools |
| 67 |
* icu needed by Exult Studio |
| 68 |
|
| 69 |
**Warning** |
| 70 |
It is IMPORTANT that you use either of these two shells and NOT the |
| 71 |
"MSYS2 MSYS" shell. |
| 72 |
|
| 73 |
When the shell starts, issue the following commands: |
| 74 |
pacman -S --noconfirm --needed base-devel git zip \ |
| 75 |
${MINGW_PACKAGE_PREFIX}-toolchain \ |
| 76 |
${MINGW_PACKAGE_PREFIX}-binutils \ |
| 77 |
${MINGW_PACKAGE_PREFIX}-ntldd |
| 78 |
|
| 79 |
This installs the toolchain for building everything. Now, you must install |
| 80 |
the required libraries for building each component. The commands given below |
| 81 |
assume you have not installed any of the others, and can be used independently. |
| 82 |
|
| 83 |
To build Exult, you must install the following: |
| 84 |
pacman -S --noconfirm --needed \ |
| 85 |
${MINGW_PACKAGE_PREFIX}-SDL2 \ |
| 86 |
${MINGW_PACKAGE_PREFIX}-fluidsynth \ |
| 87 |
${MINGW_PACKAGE_PREFIX}-libtimidity \ |
| 88 |
${MINGW_PACKAGE_PREFIX}-libogg \ |
| 89 |
${MINGW_PACKAGE_PREFIX}-libvorbis \ |
| 90 |
${MINGW_PACKAGE_PREFIX}-munt-mt32emu \ |
| 91 |
${MINGW_PACKAGE_PREFIX}-libpng \ |
| 92 |
${MINGW_PACKAGE_PREFIX}-zlib |
| 93 |
|
| 94 |
To build the Exult tools, you must install the following: |
| 95 |
pacman -S --noconfirm --needed ${MINGW_PACKAGE_PREFIX}-SDL2_image |
| 96 |
|
| 97 |
To build Exult Studio, you must install the following: |
| 98 |
pacman -S --noconfirm --needed \ |
| 99 |
${MINGW_PACKAGE_PREFIX}-gtk3 \ |
| 100 |
${MINGW_PACKAGE_PREFIX}-adwaita-icon-theme \ |
| 101 |
${MINGW_PACKAGE_PREFIX}-libxml2 \ |
| 102 |
${MINGW_PACKAGE_PREFIX}-freetype \ |
| 103 |
${MINGW_PACKAGE_PREFIX}-zlib \ |
| 104 |
${MINGW_PACKAGE_PREFIX}-icu |
| 105 |
|
| 106 |
To build the Gimp 2 Plug-In, you must install the following: |
| 107 |
pacman -S --noconfirm --needed \ |
| 108 |
${MINGW_PACKAGE_PREFIX}-gtk2 \ |
| 109 |
${MINGW_PACKAGE_PREFIX}-gimp2 |
| 110 |
|
| 111 |
To build the Gimp 3 Plug-In, you must install the following: |
| 112 |
pacman -S --noconfirm --needed \ |
| 113 |
${MINGW_PACKAGE_PREFIX}-gtk3 \ |
| 114 |
${MINGW_PACKAGE_PREFIX}-gimp |
| 115 |
|
| 116 |
You now have everything needed to build any of the components you want. |
| 117 |
|
| 118 |
**Warning** |
| 119 |
The Gimp plug-in must be compiled with the same architecture of the version |
| 120 |
of Gimp which you use. That is: if you use 32-bit Gimp, you must compile |
| 121 |
the 32-bit version of the plug-in, and likewise for 64-bit Gimp. |
| 122 |
|
| 123 |
Open Makefile.mingw from the Exult source code directory in a text editor and |
| 124 |
change C:/Ultima7 to the directory you want Exult to be installed to. |
| 125 |
(ie C:/Games/Ultima7) |
| 126 |
|
| 127 |
You can also change C:/GimpPlugin to the directory you want the Gimp Plug-in |
| 128 |
to be installed to. This depends on the version of Gimp you use: |
| 129 |
Gimp 2.8: |
| 130 |
C:/Users/<username>/.gimp-2.8/plug-ins |
| 131 |
Gimp 2.10 and newer: |
| 132 |
C:/Users/<username>/AppData/Roaming/GIMP/<version>/plug-ins |
| 133 |
Gimp 3.0 and newer: |
| 134 |
C:/Users/<username>/AppData/Roaming/GIMP/<version>/plug-ins/u7shp |
| 135 |
|
| 136 |
If you are compiling Exult Studio, it will be installed to the same directory |
| 137 |
that Exult when you compile it. You can change that directory in the same way. |
| 138 |
|
| 139 |
Remain in the shell ("MSYS2 MinGW 32-bit" or "MSYS2 MinGW 64-bit") |
| 140 |
and type the command |
| 141 |
git clone https://github.com/exult/exult.git c:\exult |
| 142 |
|
| 143 |
Then change to the directory where you cloned the Exult source code to by |
| 144 |
typing the command |
| 145 |
cd C:/exult |
| 146 |
|
| 147 |
To compile and install Exult, type the command |
| 148 |
make -f Makefile.mingw install |
| 149 |
|
| 150 |
To compile and install the Exult Tools, type the command |
| 151 |
make -f Makefile.mingw toolsinstall |
| 152 |
|
| 153 |
To compile and install Exult Studio, type the command |
| 154 |
make -f Makefile.mingw studioinstall |
| 155 |
|
| 156 |
To compile and install the Gimp Plug-In, type the command |
| 157 |
make -f Makefile.mingw plugininstall |
| 158 |
|
| 159 |
If you want to make more than one, you can combine the commands; for example, |
| 160 |
to build Exult and the Exult Tools, you can type the command |
| 161 |
make -f Makefile.mingw install toolsinstall |
| 162 |
|
| 163 |
Once compile has finished and been installed exit MSYS2 |
| 164 |
|
| 165 |
Run Exult.exe and enjoy the game :-) |
| 166 |
|
| 167 |
**Windows XP Compatibility** |
| 168 |
There is a host of issues that prevent executables built with the above |
| 169 |
instructions from working on Windows XP. The easiest to get around is |
| 170 |
SDL2 image, which is needed by mockup and smooth tools. If you don't use |
| 171 |
these tools, you don't need to do anything. |
| 172 |
|
| 173 |
If you *do* use them, you can get them working by replacing the SDL2 |
| 174 |
image DLLs from MSYS2 by the official ones: |
| 175 |
https://www.libsdl.org/projects/SDL_image/ |
| 176 |
|
| 177 |
There are more problems to handle to get Exult and Exult Studio running on |
| 178 |
Windows XP. The first issue is that latest GLIB has dropped support for it; |
| 179 |
the most recent version that retains Windows XP support is 2.54.3. In the |
| 180 |
following, replace '/path/to/exult/source' by the actual path to Exult's |
| 181 |
source code, then issue the following commands: |
| 182 |
pacman -S --noconfirm --needed python zlib-devel \ |
| 183 |
libffi-devel gettext-devel |
| 184 |
http://ftp.acc.umu.se/pub/gnome/sources/glib/2.54/glib-2.54.3.tar.xz |
| 185 |
tar -xf glib-2.54.3.tar.xz |
| 186 |
cd glib-2.54.3 |
| 187 |
patch -p1 < /path/to/exult/source/win32/glib-xp.patch |
| 188 |
CPPFLAGS="-march=i686 -D_WIN32_WINNT=0x0501" ./configure |
| 189 |
--prefix=$(MSYSTEM_PREFIX) --with-python=$(which python) |
| 190 |
make |
| 191 |
|
| 192 |
Once it finishes building, grab the following DLLs for Exult: |
| 193 |
glib/.libs/libglib-2.0-0.dll |
| 194 |
gmodule/.libs/libgmodule-2.0-0.dll |
| 195 |
|
| 196 |
Exult Studio needs the following DLLs: |
| 197 |
gio/.libs/libgio-2.0-0.dll |
| 198 |
glib/.libs/libglib-2.0-0.dll |
| 199 |
gmodule/.libs/libgmodule-2.0-0.dll |
| 200 |
gobject/.libs/libgobject-2.0-0.dll |
| 201 |
|
| 202 |
For Exult Studio, we will need to do a few more things. First, we need a |
| 203 |
version of libHarfBuzz without DWRITE support. Here is how to build it: |
| 204 |
wget https://www.freedesktop.org/software/harfbuzz/release/harfbuzz-2.1.3.tar.bz2 |
| 205 |
tar -xf harfbuzz-2.1.3.tar.bz2 |
| 206 |
cd harfbuzz-2.1.3/ |
| 207 |
./configure --prefix=$(MSYSTEM_PREFIX) |
| 208 |
make |
| 209 |
|
| 210 |
Once that finishes, grab the following DLL for Exult Studio: |
| 211 |
src/.libs/libharfbuzz-0.dll |
| 212 |
|
| 213 |
And that's all: Exult, Tools, and Exult Studio will now work on Windows XP. |
| 214 |
|
| 215 |
|
| 216 |
To build in Windows using Visual Studio |
| 217 |
--------------------------------------- |
| 218 |
NOTE: This has only been tested to work with Visual Studio 2019 and 2022 |
| 219 |
Visual Studio 2017 does NOT work. It will load the projects but v141 build |
| 220 |
tools do not support all the C++/17 features needed by the exult source code. You |
| 221 |
can not sucessfully build all source files with VS 2017 v141 build tools. |
| 222 |
|
| 223 |
Projects are included for Exult, expack, exconfig, data flexes and Exult_studio, |
| 224 |
no projects are supplied for other tools. VCPKG is used for package management |
| 225 |
and you must have it installed and integrated into visual studio. The build |
| 226 |
process will automatically download and build needed dependencies. This will be |
| 227 |
slow the first time you try to be Exult abd very slow the first time you build |
| 228 |
exult_studio. |
| 229 |
|
| 230 |
1) Install visual studio community edition 2019 or newer. if newer make sure MSVC v142 VS 2019 C++ build tools |
| 231 |
are selected for install. If you do not install the v142 build tools you may |
| 232 |
need to change the build tools being used by the projects to v143 or whatever version your VS has installed. |
| 233 |
|
| 234 |
2) Install vcpkg (https://vcpkg.io/) and then integrate it into visual studio by |
| 235 |
running vcpkg integrate install from the visual studio Developer command prompt or Powershell. |
| 236 |
|
| 237 |
3) open the solution included in the exult source msvcstuff\vs2019\Exult.sln. |
| 238 |
|
| 239 |
4) Build the project using whichever Configuration you want. x86 and x64 builds are supported. All configrations |
| 240 |
use dynamic runtimes. |
| 241 |
EXEs will be placed in the root of the source tree with the vcpkg dependency dlls. The build process has not been tested with static |
| 242 |
runtimes or dependencies. |
| 243 |
The build process for Exult will build expack and the data .flx files needed by exult. |
| 244 |
|
| 245 |
|
| 246 |
To cross-build from Linux |
| 247 |
--------------------------- |
| 248 |
(Note: this hasn't been tested recently, and may or may not work) |
| 249 |
|
| 250 |
Exult is originally a Linux project, using a platform |
| 251 |
independent API called SDL. (Simple DirectMedia Layer) |
| 252 |
|
| 253 |
Because of this, the Windows version has been built in |
| 254 |
Linux, using the cross-compiler Mingw32. |
| 255 |
|
| 256 |
Please note it is not necessary to build Exult yourself, |
| 257 |
since the Windows executable is already included. |
| 258 |
|
| 259 |
1) get and install Mingw32 and SDL. |
| 260 |
|
| 261 |
SDL: http://www.libsdl.org/index.php |
| 262 |
|
| 263 |
Mingw32: http://www.libsdl.org/extras/win32/cross/README.txt |
| 264 |
|
| 265 |
Installation instructions can be found on the same pages. |
| 266 |
(make sure to get the DirectX headers, and build SDL for the cross compiler) |
| 267 |
|
| 268 |
2) build exult: |
| 269 |
|
| 270 |
configure --host=i386-linux --target=i386-mingw32 --enable-win32 |
| 271 |
make |
| 272 |
|
| 273 |
3) copy exult.exe to your Ultima VII directory, and run it from windows |
| 274 |
If you are currently playing a game of Ultima VII, be sure |
| 275 |
to make a backup of the gamedat directory. |
| 276 |
|
| 277 |
4) Have fun :-) |
| 278 |
|