Questions tagged [renpy]

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer.

Ren'Py is a visual novel engine that helps you use words, images, and sounds to tell stories with the computer. These can be both visual novels and life simulation games. The easy to learn script language allows you to efficiently write large visual novels, while its Python scripting is enough for complex simulation games.

Ren'Py is open source and free for commercial use. It supports Windows, Mac OS X, Linux, Android, and iOS.

Documentation

98 questions
11
votes
2 answers

Python - How can I make this un-pickleable object pickleable?

So, I have an object that has quite a bit of non-pickleable things in it (pygame events, orderedDicts, clock, etc.) and I need to save it to disk. Thing is, if I can just get this thing to store a string that has the progress (a single integer is…
Matthew Fournier
  • 1,077
  • 2
  • 17
  • 32
5
votes
1 answer

Renpy and requests

THE QUESTION: How do I get the game to run requests.post to post url? Basically, I am currently working on a project where the choices during the game can be sent to a website I've made, so that I can track what kind of choices the player has…
Eric Song
  • 51
  • 2
4
votes
1 answer

Is it possible to precalculate the height of text to be printed in renpy?

Renpy uses a lot of python and custom made code, in order to show text that is displayed on screen using the say statement. After running into some troubles with the nvl mode within renpy, I found it necessary to know how many lines are going to be…
Thomas
  • 2,886
  • 3
  • 34
  • 78
2
votes
1 answer

Is it possible to display a pygame Minigame in renpy displayable?

I have tried something like that: screen backgroundGame(): default backgroundGameDisp = backgroundGameDisplayable() add Solid("#394387") # dark blue add backgroundGameDisp init python: import math import pygame #from…
Anna-Lischen
  • 856
  • 1
  • 16
  • 35
2
votes
1 answer

Simple zoom formula

I'm making a cards game in python language. I need a formula to zooming the cards in screen. I put the following formula by now: zoom=(NumberOfCards*0.042857) This formula get a zoom factor of 0.3 for Number=7. This is the standard for the first…
runs
  • 95
  • 2
  • 7
2
votes
1 answer

RAPT: Whats wrong with my JDK?

Well, as the question says I have some trouble getting RAPT to run the command: python android.py installsdk It usually returns: I'm compiling a short test program, to see if you have a working JDK on your system. I was unable to use javac to…
1
vote
1 answer

Is there a way to add python games to renpy?

I'm coding a visual novel for a school project and I want to incorporate a mini-game made with python and tkinter. How can I do this? I copied the code into renpy but renpy says "statement expected", and I don't think I'm doing it the right way.…
A human
  • 23
  • 5
1
vote
3 answers

Ren'Py : ModuleNotFoundError: No module named 'netrc'

Trying to plug openai's API to Ren'Py (to make characters answer to the player) I installed the openai python module in Ren'Py using this pip command : pip install --target /Users/...../GameName/game/python-packages netrc And then inside the game…
Taiko
  • 1,351
  • 1
  • 19
  • 35
1
vote
2 answers

I'm having problems getting RenPy Language extension to work

I'm new to both RenPy and VSC so I might be doing something wrong but the RenPy Language extension doesn't work for me for some reason. All of the syntax comes up as error and it seems to me that the problem might be that the .rpy file doesn't get…
1
vote
0 answers

What do I wrong to send json data to stock it on server by php from a local python app?

So, my problem is : I have a file (data_test.json) on the web. I wrote and uploaded it myself. { "a" : 1, "b" : 42, "c" : 3.14 } My local python code in Renpy read it rightly. init python: def get_stats(): #…
1
vote
1 answer

Renpy pasteable input

A game I'm working on needs an input in which a special code can be pasted. The code is a random hash of 24 characters, which would be hard for players to write manually. I haven't found any good quality ways of implementing such an input. Could…
yoza yozic
  • 13
  • 3
1
vote
1 answer

getting attribute error in renpy where object has no attribute EDIT: Additional information

I've been trying to make a pesudo RPG like game on renpy using python coding. I'm mostly using this as a basic testing ground and organized my code into different rpy files. But right now, I am having trouble trying to tie these skills from the…
1
vote
1 answer

WindowsError: [Error 267] The directory name is invalid when trying to use the script editor in the RenPy GUI

I get this error everytime I try to use any of the editors in the Edit File area of the RenPy GUI. I am not very tech savvy so an ELI5 explanation would be greatly appreciated. A hearty thank you in advance. The full traceback text is: Before…
Kender42
  • 11
  • 2
1
vote
1 answer

FFMPEG images to video with reverse sequence with other filters

Similar to this ffmpeg - convert image sequence to video with reversed order But I was wondering if I can create a video loop by specifying the image range and have the reverse order appended in one command. Ideally I'd like to combine it with this…
Archimedes Trajano
  • 35,625
  • 19
  • 175
  • 265
1
vote
1 answer

RenPy: incl. variable in narrator's line

I'm creating a visual novel in RenPy and want to include a variable inside a narrator's line. I've tried several python scripts (see below) already, but i keep getting an invalid syntax error. Anyone knows why? e "Heel goed %s" %(participant_name) …
1
2 3 4 5 6 7