Hello,
This is my first time posting, so if this at all the wrong location please let me know and I'll delete the thread and move to the proper location.
I'm currently planning out the scope of my project so I'm investigating if different things are possible or not (both at all or within my means). I'm planning on releasing my VN in smaller chapters at a consistent pace (lets say once a month or so.)
Now - I'd like to offer choices that don't have any immediate impact, but will inform me as the author of different choices the readers have made so that I can adapt the future released based on those choices.
Is it at all possible to receive data based on user input? How would I go about this?
Thanks for the help in advance
Author tracking Game Data
Forum rules
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.
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.
-
- Newbie
- Posts: 1
- Joined: Thu Jul 12, 2018 4:46 pm
- Contact:
Re: Author tracking Game Data
Interesting idea.
Now I far as I researched, RenPy can not be easily ported to play online in a web browser, so the easy solution of having a webpage send it to you might not be so straightforward.
The way I would go about it: create a very basic class that contains whatever you wish to know about the game and have your game upload it somewhere. While I have not done such a thing with Python, I believe it will be very similar to other languages, it should be something like:
The hard part will be to:
Now I far as I researched, RenPy can not be easily ported to play online in a web browser, so the easy solution of having a webpage send it to you might not be so straightforward.
The way I would go about it: create a very basic class that contains whatever you wish to know about the game and have your game upload it somewhere. While I have not done such a thing with Python, I believe it will be very similar to other languages, it should be something like:
Code: Select all
DataToTxt:
readable_text = "First choice was:"+choice_1_flag +
"Itens found: "+len(items_list)
...
UploadTxt:
temporary_file = NamedTemporaryFile [DataToText(), (preferably)Unique Name for this Player]
Function From API That Uploads (temporary_file, my_cloud)
- Find a suitable API
- Bundle it with Python
neigh
- xavimat
- Eileen-Class Veteran
- Posts: 1461
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: pilgrimcreations
- Location: Spain
- Discord: xavimat
- Contact:
Re: Author tracking Game Data
Two examples in this thread: viewtopic.php?f=8&t=47568
Renpy can import urllib2 to send/receive data to/from a web server (I use a php page and a MySQL database there).
You could use also the "requests" module, but you need to include the module in your game. PyTom made an example here: https://www.patreon.com/posts/news-from-your-15636026
Renpy can import urllib2 to send/receive data to/from a web server (I use a php page and a MySQL database there).
You could use also the "requests" module, but you need to include the module in your game. PyTom made an example here: https://www.patreon.com/posts/news-from-your-15636026
Comunidad Ren'Py en español: ¡Únete a nuestro Discord!
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Rhaier Kingdom A Ren'Py Multiplayer Adventure Visual Novel.
Cops&Robbers A two-player experiment | Fear&Love Why can't we say I love you?
Honest Critique (Avatar made with Chibi Maker by ~gen8)
Who is online
Users browsing this forum: Ahrefs [Bot]