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
0
votes
1 answer

Python keep asking arg which is not present anymore

I'm trying working in Ren'Py and I found something very weird. In very early stage I defined the class: init python: class Person: def __init__(self, character, name): self.ch = character self.name = name but…
0
votes
1 answer

Ren'py / Python - insert dynamic variable in class with a while loop - without overwriting with append

I'm currently trying to get into Python and Ren'Py a bit. Since I like to design a lot dynamically and don't want to use copy&paste so often, I'm trying to create a page that will have ImageButtons with the corresponding number I specify. In the…
BB_Ape
  • 1
0
votes
2 answers

Can't init child class with overloaded __init__ method in Ren'Py python code section

In Ren'Pys python section I've tried to do following: python: class test_class0(): def __init__(self, **kwargs): self.test0 = kwargs['test0'] class test_class1(test_class0): def __init__(self, **kwargs): …
0
votes
0 answers

TypeError: unicode() takes at most 3 arguments (8 given)

I'm defining characters in a new Ren'Py project, mostly just to learn how they work so I can use them in the future. When I started the game, it gave me an error message regarding the fourth line of my code, ending with "TypeError: unicode() takes…
Abc
  • 1
  • 3
0
votes
0 answers

RenPy: Python .format translate

I'm creating a translation for a visual novel, and I can't translate the text with string formatting, does anyone know how to do this? Code to translate: $ gil_likes = "Teasing {0}, Basketball".format(Main) The translation must be something like…
0
votes
2 answers

My renpy code just fails at working labels are broken menus are broken all things are just dead

My renpy code just dies. I try to use a menu and its empty despite having 2 choices they each also have no blocks of code despite clearly having their jumps this is the code in question. Code in question: "Go to her house.": jump Go …
0
votes
2 answers

"No module named sets" ren'py

ok, I'm translating a game, a visual novel called "katawa shoujo", to be precise the beta of this game which is not in Spanish I got the beta files and moved them to ren'py (where it was created) but when running it inside ren'py I get this error: …
0
votes
1 answer

How do I keep txt file formatting when importing it into a multiline string in Python

So I'm making a rather large game in Ren'py which features a lot of letters from characters, and because I don't want to create an rpy file clogged with 5000 lines of letters, I'm storing them in plain text files instead. However, I want to keep the…
Intangible
  • 63
  • 1
  • 5
0
votes
1 answer

Renpy, an exception when trying to build a build on Android (renpy.loader.transfn)

Let's say there is a json file in ./resources called "string.json". Then the parsing of this file can be implemented as follows: label start: $ import json $ f = open(renpy.loader.transfn("resources/string.json")) $ text =…
0
votes
0 answers

Saving games to a second location in Renpy Android

I've been trying to figure out how to make Renpy Android save to a second location, for example Internal Storage/Renpy Savegames/packagename/ I know that this can be done by modifying the Renpy's Source Code. Probably modifying it's Java Code. But I…
0
votes
1 answer

How to protect my ren'py project from being copied?

For all those who are not familiar with ren'py: It's basically python with some modifications. Since the project is coded in python, which can easily be edited by anyone it is not a good idea to include a license validation in the python files. An…
Mr Smirk
  • 1
  • 1
0
votes
1 answer

How to modify multiple global variables in a python function

I have several variables and want to modify them with a single function. default strength = 0 default dex = 0 default wis = 0 default cha = 0 default point_pool = 5 I can do something like: def inc_strength(): global strength global…
0
votes
1 answer

Conditional Statment in imagemap hotspot?

Is that even possible? I want to jump to a label when a particular hotspot on an imagemap is clicked only if pt = 1 pt is defined in the script with a default, I assume that's the best/only way to define a number. screen plane_seat(): imagemap: …
0
votes
1 answer

Is there a way to access native APIs from renpy?

I'm currently using renpy and I want to access some features of the native NSWindow API (and eventually the win32 equivalent but I'm starting with the machine I'm using.) However PyObjC doesn't seem to be compatible, presumably because renpy's…
PopKernel
  • 4,110
  • 5
  • 29
  • 51
0
votes
1 answer

Frame won't show in renpy (Python)

I am tryign to make a game in renpy, and i implemented a small rpg like mechanic, and i was trying to show healthbars. it was working for a bit, but then it stopped and i don't know why. I checked my variables and everything seemed to be in order.…