This plugin allows OpenTTD to announce what the player is doing on GOG Galaxy.
- OpenTTD 14+
- Windows (32bit, 64bit)
- MacOS (i386, x86_64, arm64)
- Lookup the latest SDK version here.
- Run
./download-sdk.sh [win32|win64|macos] <SDK version>
.
In case you can't execute download-sdk.sh
, you have to do some actions manually:
- Download the latest GOG Galaxy SDK from here.
- Unpack the tar-file.
- Copy the
Include/galaxy
folder tosrc/galaxy
(so there now is asrc/galaxy
folder with include-files). - Copy the
Libraries
folder tolib
(so there are now files inlib
).
This is a default CMake Project.
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=$(pwd)/install -DGOG_GALAXY_CLIENT_ID=dev -DGOG_GALAXY_CLIENT_SECRET=dev ..
make
On MacOS, you need to add -DCMAKE_OSX_ARCHITECTURES=[arm64|x86_64|i386]
to the cmake
line, to select which of the targets you want to build for.
Without an actual GOG Galaxy Client ID/secret, it will not show the correct game when trying; please register your own client with GOG for testing.
make install
This creates a lib
folder in the install
folder of your build-dir.
In your OpenTTD folder, for example in your Documents folder, there should be a social_integration
folder (if not, start OpenTTD once to create that folder).
Copy the content of the lib
folder into social_integration/gog-galaxy
.
Now start OpenTTD to try out the plugin.
Start OpenTTD with -dmisc=1
to get a bit more information about what plugins it sees and how they are loading.