Search found 114 matches

by enaielei
Mon Sep 26, 2022 7:38 am
Forum: Ren'Py Questions and Announcements
Topic: My project doesn't start anymore
Replies: 6
Views: 309

Re: My project doesn't start anymore

Is that the full log.txt?
If there's an errors.txt file in the folder, you can also try posting that in here.
by enaielei
Sun Sep 25, 2022 12:27 pm
Forum: Ren'Py Questions and Announcements
Topic: My project doesn't start anymore
Replies: 6
Views: 309

Re: My project doesn't start anymore

1. Try renpy launcher -> force recompile before launching the project.
2. If (1) didn't work, try posting here the traceback file found under your <project_path>/ folder.
by enaielei
Sun Sep 25, 2022 5:47 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Why can't I change a variable in a list?
Replies: 4
Views: 285

Re: Why can't I change a variable in a list?

If you want to set an item in a dict/list use SetDict.

Code: Select all

action SetDict("nums", 0, "something")
by enaielei
Fri Sep 23, 2022 4:48 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: can only concatenate str (not "bool") to str
Replies: 7
Views: 299

Re: TypeError: can only concatenate str (not "bool") to str

in the definition of tfperson, "VarOneAtt" is set to False Are you talking about this line? TestFun("VarOneAtt"==False, "VarTwoAtt"==False) You're not setting any values here, you're comparing values here. Is the literal string "VarOneAtt" the same as the boolean False? No. Hence it evaluates to Fa...
by enaielei
Fri Sep 23, 2022 2:51 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: can only concatenate str (not "bool") to str
Replies: 7
Views: 299

Re: TypeError: can only concatenate str (not "bool") to str

You just need to modify a bit the ternary operation that I did. @property def Output(self): var1 = "Var1Att" if self.var1 else "unknown" var2 = "Var2Att" if self.var2 else "unknown" return "var1: %s{p}var2: %s" % (var1, var2) The way a ternary operation works... <true_value> if <condition> else <fal...
by enaielei
Fri Sep 23, 2022 12:41 pm
Forum: Ren'Py Questions and Announcements
Topic: TypeError: can only concatenate str (not "bool") to str
Replies: 7
Views: 299

Re: TypeError: can only concatenate str (not "bool") to str

@property def Output(self): var1 = self.var1 if self.var1 else "unknown" var2 = self.var2 if self.var2 else "unknown" return "var1: %s{p}var2: %s" % (var1, var2) Concatenations are prone to errors, you need to make sure that the values you're concatenating are all strings, if not you need to use st...
by enaielei
Thu Sep 22, 2022 8:52 pm
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Variable as a part of another variable's name?
Replies: 2
Views: 285

Re: Variable as a part of another variable's name?

setattr/getattr $ someone_points = 0 $ x_points = "someone_points" $ setattr(store, x_points, getattr(store, x_points) + 10) renpy.python.py_exec $ someone_points = 0 $ x_points = "someone_points" $ renpy.python.py_exec("{} += 10".format(x_points)) dict $ points = dict(someone=0) $ x = "someone" $ p...
by enaielei
Thu Sep 22, 2022 3:07 pm
Forum: Ren'Py Questions and Announcements
Topic: pip3 install keyboard command not working
Replies: 6
Views: 381

Re: pip3 install keyboard command not working

Some steps you need to consider. 1. Identify the python version that your renpy sdk is using. You can check the python version of your renpy sdk by going to the renpy launcher then hitting shift + o and entering the following. import sys; print(sys.version) 2. Install the python version that your re...
by enaielei
Tue Sep 20, 2022 4:20 am
Forum: Ren'Py Questions and Announcements
Topic: [SOLVED] Can I open one specific screen multiple at the same time?
Replies: 7
Views: 295

Re: Can I open one specific screen multiple at the same time?

https://www.renpy.org/doc/html/screen_actions.html#Show wrote: This action takes the _layer, _zorder and _tag keyword arguments, which have the same meaning as in the renpy.show_screen() function.
Different _tag on each Show allows you to show multiple instances of the screen.
by enaielei
Sun Sep 18, 2022 5:31 am
Forum: Ren'Py Questions and Announcements
Topic: Stopping at the right time minigame (Solved)
Replies: 5
Views: 308

Re: Stopping at the right time minigame

I never really bothered testing the code, sorry for that. I had one mistake here. timer interval repeat True action SetScreenVariable("ctime", min(ctime + interval, ctime)) It should be... timer interval repeat True action SetScreenVariable("ctime", min(ctime + interval, time)) time not ctime .
by enaielei
Sun Sep 18, 2022 4:38 am
Forum: Ren'Py Questions and Announcements
Topic: Stopping at the right time minigame (Solved)
Replies: 5
Views: 308

Re: Stopping at the right time minigame

screen test(time=10.0): default ctime = 0.0 default interval = 0.5 timer interval repeat True action SetScreenVariable("ctime", min(ctime + interval, time)) button: action Return(ctime) xfill True yfill True text "[ctime]" if ctime == time: timer 0.01 action Return(ctime) label start: call screen t...
by enaielei
Sat Sep 17, 2022 12:16 am
Forum: Ren'Py Questions and Announcements
Topic: An interesting bug where the title screen game gives the player all Steam achievements
Replies: 5
Views: 330

Re: An interesting bug where the title screen game gives the player all Steam achievements

screen test(): if achievement_01 and not achievement.has("achievement_prologue"): $achievement.grant("achievement_prologue") $achievement.register("achievement_prologue") $achievement.sync() NEVER do this. If you want to set something through screen, esp. if it involves a global variable use action...
by enaielei
Fri Sep 16, 2022 8:51 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with color variable
Replies: 13
Views: 359

Re: Help with color variable

Gotcha. Here are the links that might help you. I don't know yet the difference between default and define hehe https://www.renpy.org/doc/html/python.html#define-statement The part I don't understand the most is the phyton thing If you're familiar with OOP , then you probably know most of the code. ...
by enaielei
Fri Sep 16, 2022 6:43 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with color variable
Replies: 13
Views: 359

Re: Help with color variable

I'm just unhapy that I don't really understand it, I really didn't get into phyton code, I barely know so little, but enough to make games. Sorry if that was quite a lot. I didn't really bother cluttering the code with a lot of comments since most of the time ppl just want the easiest way possible ...
by enaielei
Fri Sep 16, 2022 1:15 pm
Forum: Ren'Py Questions and Announcements
Topic: Help with color variable
Replies: 13
Views: 359

Re: Help with color variable

Here. I made it simpler for you. # the global variable that you can control to activate/deactivate colored mode. default colored = False init python: class Char(): def __init__(self, name, color=None, colored=False): self.name = name self.color = color self.colored = colored def __str__(self): if ((...