Skip to content

Implementing GOG achievements

Hi, I'm trying to use your code and I have a few questions:

2. Copy the downloaded library file from the "Libraries" folder to the respective "renpy-gog/lib/{platform}" folders.

I'm unsure what this is referring to.

I believe I've put the lib files in the correct place, but does gog_helper belong in scripts/gog_helper.rpy or within the game folder (game/gog_helper.rpy)?

For secret_file, where do I find clientID and clientsecret? Should I add these to my script.rpy?

Same with example. Should I put the init in the splashscreen? And do I need to add:

`init python:

if (renpygalaxy):
    try:
        renpygalaxy.grant("ACHIEVEMENT_ID")
        renpygalaxy.sync()
    except Exception, e:
        print(e)`

For every achievement?

I appreciate your time! I'd really like to put GOG achievements in my Renpy game :)