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 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
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
- Eileen-Class Veteran
- Posts: 1273
- Joined: Sat Feb 25, 2012 8:45 pm
- Completed: Yeshua, Jesus Life, Cops&Robbers
- Projects: Fear&Love, unknown
- Organization: Pilgrim Creations
- Github: xavi-mat
- itch: xavimat
- Location: Italy
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