This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
While trying to implement a web-updater I've been stuck on a problem.
The updater is working fine when I'm testing it internally from my server over http.
However when I'm trying to grab a file externally the site uses https and the updater just gives an error about an unknown url type.
So I've done some googling and came on this issue.
When I'm trying to retrieve an url which starts with http, there is no problem. Also when I'm just using a test-script (retrieving the same updates.json file) with my own python distribution it works.
Is there anyway to get it working with a https site? I tried replacing the urllib.pyo from ren'py with my own, but unfortunately that didn't work.
Or is it just recommended to use http on the server?
Thanks for the help!
- Spiky Caterpillar
- Posts: 252
- Joined: Fri Nov 14, 2008 7:59 pm
- Completed: Lots.
- Projects: Black Closet
- Organization: Slipshod
- Location: Behind you.
SSL linked in (this will be Somewhat Annoying, because you'll need to do it
once for each platform); it should also be possible to write (or adapt) a
Python module to use the system SSL libs.
https://docs.python.org/2/library/httplib.html indicates that it's actually
socket that you need to replace - I think urllib automatically checks for
SSL socket support, but might be wrong.
Other gotchas and alternate approaches depend on what your actual goal in
using SSL is.
- Ren'Py Creator
- Posts: 15601
- Joined: Mon Feb 02, 2004 10:58 am
- Completed: Moonlight Walks
- Projects: Ren'Py
- IRC Nick: renpytom
- Github: renpytom
- itch: renpytom
- Location: Kings Park, NY
(When was the last time you backed up your game?)
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom
I'm indeed also stuck on zsync, which doesn't want to cooperate.
So for now I decided it would not be worth the hassle and just put up a http server, thanks anyway!