Skip to content

KoderaSoftwareUnlimited/GodotGoG

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GodotGoG

GOG module for Godot engine

GOG api for the Godot game engine (version 3.x), for Windows and Mac platforms. At the moment the GOG api does not suppport Linux but might do so in the future. For now only a small subset of the GOG api is supported, like initialization and setting achievements, but we will add more as the project pregresses.

The project and also the documentation is orientated toward the GodotSteam project to improve compatibility. Big thanks to gramps for his work and the GOG support team for answering all related questions.

Documentation

For now the module supports basic GOG api fuctionality, like initialization, signing in and setting achievements: https://pixelriot.github.io/GodotGoG


How-To

  • Download this repository and unpack it.
  • Download and unpack the Godot source.
  • Download and unpack the GOG Galaxy SDK - this requires a GOG developer account. You need to download the SDK for every plattform you want to suppprt (Windows 32/64 bit, Mac OS, Linux/X11).
  • From the Galaxy SDK(s) copy the Libraries- and Include-folders to the godotgog/sdk-folder.
  • Now move the godotgog-directory into the modules-directory of the unpacked Godot Engine source.
  • The repo's directory contents should now look like this:
    godotgog\sdk\Include\galaxy\*
    godotgog\sdk\Libraries\Galaxy64.dll     (Windows 64 only)
    godotgog\sdk\Libraries\Galaxy64.lib     (Windows 64 only)
    godotgog\sdk\Libraries\Galaxy64.pdb     (Windows 64 only)
    godotgog\sdk\Libraries\libGalaxy.dylib  (Mac OS only)
    godotgog\config.py
    godotgog\godotgog.cpp
    godotgog\godotgog.h
    godotgog\register_types.cpp
    godotgog\register_types.h
    godotgog\SCsub

From here you should be able to call various functions of GOG api. You should be able to look up the functions in Godot itself under the search section.

notes for OSX

Since compiling everything on OSX is a bit tricky here are some errors you might run into.

  • error on export path with python 3: run export PYTHONPATH=/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/site-packages/scons before running scons.
  • rpath error: When executing the editor you might get the following error
dyld: Library not loaded: @rpath/libGalaxy.dylib
  Referenced from: /Users/richi/Downloads/godot-3.1.2-stable_SteamGogModules/bin/./godot.osx.tools.64
  Reason: image not found
Abort trap: 6

To solve the error, cd into your bin folder and run install_name_tool -add_rpath @executable_path/. godot.osx.tools.64 on the editor executable and all OSX export templates.

  • packaging engine on OSX
cp -r misc/dist/osx_tools.app ./Godot.app
mkdir -p Godot.app/Contents/MacOS
cp bin/godot.osx.tools.64 Godot.app/Contents/MacOS/Godot
chmod +x Godot.app/Contents/MacOS/Godot
  • packaging templates on OSX
cp -r misc/dist/osx_template.app . 
mkdir osx_template.app/Contents/MacOS 
cp bin/godot.osx.opt.64 osx_template.app/Contents/MacOS/godot_osx_release.64 
cp bin/godot.osx.opt.debug.64 osx_template.app/Contents/MacOS/godot_osx_debug.64 
chmod +x osx_template.app/Contents/MacOS/godot_osx* 
zip -q -9 -r osx.zip osx_template.app 
rm -rf osx_template.app

License

MIT license


You can follow our own gamedev journey at https://twitter.com/monolithofminds

About

GOG module for Godot engine.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 74.5%
  • GDScript 17.2%
  • Python 7.6%
  • C 0.7%