Page 1 of 1

Basic online server?

Posted: Mon Feb 11, 2019 1:20 am
by tohtamish
Hello!

Is there any possibility in Ren'py to make permanent (for example on free hostings) server that will do simple work - for example displaying players' choices (like in Walkind dead)? Client must use some python modules? What must be on server side? My knowledge about this limited by wordpress...

Re: Basic online server?

Posted: Mon Feb 11, 2019 2:26 pm
by xavimat
Do you need that info for you alone (tracking users gameplay)?
If so, you can link your game with google analytics: https://www.patreon.com/posts/adding-google-to-22428000

If you want a public web with info (like points for every player, winners, polls, etc.), you need your own hosting and could do it with some php and MySQL.
This is what I use:
- In renpy: urllib.urlencode and urllib2.urlopen
- In server: php to get the data given by renpy and a link to a MySQL database. Data is returned in json format
- In renpy again, json to read the data returned by the server.