Renpy on Mobile and using GPS data

In this forum we discuss the future of Ren'Py, both bug fixes and longer-term development. Pre-releases are announced and discussed here.
Post Reply
Message
Author
bapho
Newbie
Posts: 2
Joined: Fri Nov 13, 2015 4:17 am
Contact:

Renpy on Mobile and using GPS data

#1 Post by bapho »

Hi!

I'm looking at prototyping with Ren'py to build a VN game on mobile that uses social media and phone GPS features (Like using it with Kivy), is this possible? Is there a way to connect to databases like MySQL for data as well? I'm a newbie in Python dev, but I've done development on Meteor.js, so I'm just looking at possibilities at the moment. Thanks for you help :)

User avatar
PyTom
Ren'Py Creator
Posts: 16093
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
Contact:

Re: Renpy on Mobile and using GPS data

#2 Post by PyTom »

There's no direct support for location data, but you can probably use pyjnius and pyobjus to access such data.

You can't really connect to mysql from a mobile device. What you want to do is to have a web service somewhere, and then use the urllib2 module (or perhaps requests) to connect to your web service and query data. (And note that this can and will fail, so you need to plan for that happening.)
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: No registered users