Comments

Log in with itch.io to leave a comment.

(3 edits)

Hi, your code is awesome, but whenever I log in to patreon and then try to save the game I get an error:

```

I'm sorry, but an uncaught exception occurred.

While running game code:

  File "renpy/common/00gamemenu.rpy", line 174, in script

    $ ui.interact()

  File "renpy/common/00gamemenu.rpy", line 174, in <module>

    $ ui.interact()

  File "renpy/common/00action_file.rpy", line 397, in __call__

    renpy.save(fn, extra_info=save_name)

TypeError: cannot pickle '_thread.lock' object (perhaps store.webserver.server._BaseServer__is_shut_down._cond._lock = <unlocked _thread.lock object at 0x00000000066a4600>)

I managed to put a band aid on this by making renpy restart after each authentication, I saw you had them in your code, but for some reason it did not do it on my laptop so in the end that's fine.

Also it does not work on mobile, the patreon link shows up and then the page loads for a while and then crashes.

Also it crashes directly in the browser:


I've uploaded a new version that fixes the first problem with saving.

I'll look into the second problem when I have more time.

Hello, I have a problem. Observe the following error when clicking the "Auth With Patreon" button This page is not working No data was sent by localhost ERR_EMPTY_RESPONSE

"http://localhost:6167/auth?code=08DDd0e75udOHwbpHrJorzUF8Hdtme&state=None"

(1 edit)

Hello. Have you replaced `PATREON_CLIENT_ID` and `PATREON_CLIENT_SECRET` in the "options.rpy" file?

There is no `APP_NAME would like to...` window?

Yes, I changed it to

Patreon authentication

set PATREON_CLIENT_ID = "93VC-W99QouZubcHXV9F76GchkNzIjyHwaYppU3hQX9CN2ZrQTPhuUTsm7UIsGiY"

set PATREON_CLIENT_SECRET = "MC2CJKrpErv96aVhOHJTH54bmSMta5YonMqFJoRGG4aqiSTnSNqR5p_vpfltql2v"

In Options.py

Everything works normally until the

View your public profile (Allow) (Deny)

When clicking Allow, the error message appears on the web page.

[This page is not workinglocalhost did not send any data.

ERR_EMPTY_RESPONSE]

The problem appears after the `APP_NAME would like to...` window

(3 edits)

Did you change anything else?

I just replaced ID and SECRET in options.rpy in the default project and got a successful result.



Possible solution:

In the patreon_auth/OAuth2Strategy.rpy replace this line:

return "http://localhost:" + str(webserver.PORT) + self.callback_url

With this:

return "http://127.0.0.1:" + str(webserver.PORT) + self.callback_url

And in the patreon client replace Redirect URIs with http://127.0.0.1:6167/auth

{"error":"invalid_request","error_description":"Mismatching redirect URI."}



Now this error appears when clicking (Allow)

I didn't modify anything, I used the file you released here. And I put the pateron credentials. Is there a problem with the files you imported and for some reason I don't have them?

(import http.server

     from urllib.parse import urlparse, parse_qs, urlencode

     from urllib.request import urlopen, Request

     import threading

     import json)

I managed to resolve this error mentioned above, but now the screen has the same error of not loading again.

Thanks for sharing the code! 

Do you plan to publish this code on github? 

What is the usage license of your tool? 

Hello. No plans to publish on github for now.

MIT License.