Getting TypeError: 'str/bool' object is not callable

Cro

Active Member
May 10, 2017
542
601
As the title said, lately, in MANY ren'py games I get either these errors:

TypeError: 'str' object is not callable

TypeError: 'bool' object is not callable

Sometimes the errors are recoverable, sometimes they crash the game. Based on the number of crashes and the number of games, I highly doubt that all those games have these issues, as no one else complains about it. And most are the big titles here, so surely no issues there.
As I'm not a python expert, maybe there's something on my system that I need to install/upgrade ? I did upgrade Python on the system (W11), but same behavior. The renpy engine is included in each game so that should be OK.

Any ideas ?
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,890
8,567
Unless you are using mods, or you're "installing" updates in the wrong way, it's not something you can solve. They just fucked up their syntax, so best you can do is report the issue (With a more accurate log) to the devs.
 

Cro

Active Member
May 10, 2017
542
601
i tried with or without mods and of course, no installations in any wrong way. For example, I just got Fashion Business Ep 3 (which is old, current one is 4) and it doesn't even start, I get that error. And that version is finished for a long time already.
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,890
8,567
By "Installing" the wrong way I mean overwriting the old one with the new. Each build should be extracted separately.
Also, save files can be incompatible, so you'd need to start a new game.
 

Cro

Active Member
May 10, 2017
542
601
sure. So it happens with newly downloaded games, New game, not save and I even cleaned up the renpy folder in Roaming. Not sure what else to try....
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,890
8,567
Try running the game from C: and make sure the game folder has no symbols, so latin alphabet only, and see if it works.
 

Cro

Active Member
May 10, 2017
542
601
OK, I'll try. In the meantime, I got the new update for Life in Santa County, unzip, no other previous version, new game, click click a few steps in the story and bam: 'bool' object is not callable. I'm 99% sure it's not from the game itself, it happens in way too many of them, after just a few clicks and never in the same places.

LE. Happens on C: too. Game folder directly in root, no special chars. It happened at least 10 times in the game now, randomly, while playing. Something is surely messed up. What do ren'py games use from the system ?
 
Last edited:

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,890
8,567
I googled your issue, and found this:

Seems like he solved the issue by doing this:
I changed some settings at random in the menu (shift + g) and no errors for an hour now.

Force ANGLE2 Renderer

Gamepad disable

Powersave disable

Framerate 30

Tearing enable
 

Cro

Active Member
May 10, 2017
542
601
I googled your issue, and found this:

Seems like he solved the issue by doing this:
Those settings seems to work, I played a lot and no errors again.
The other thread seems promising too, a guy with the same CPU as myself ( 13900K ) ran into the same issues.

Ren'py games would be last of the things that could cause issues on such systems that I would've though about :))

Thanks for the help guys.
 

Winterfire

Forum Fanatic
Respected User
Game Developer
Sep 27, 2018
5,890
8,567
Those settings seems to work, I played a lot and no errors again.
The other thread seems promising too, a guy with the same CPU as myself ( 13900K ) ran into the same issues.

Ren'py games would be last of the things that could cause issues on such systems that I would've though about :))

Thanks for the help guys.
If those settings work, then it suggests me faulty/outdated GPU drivers. I'd give that a shot as well.
 

Cro

Active Member
May 10, 2017
542
601
first thing I did before opening this thread was to update my nvidia drivers. Didn't help, but those settings did. Weird, because it's a 4070Ti, not a potato.