Question about game

A place to discuss things that aren't specific to any one creator or game.
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Post Reply
Message
Author
Yuen
Newbie
Posts: 2
Joined: Thu May 29, 2008 9:22 am
Contact:

Question about game

#1 Post by Yuen »

I have a question about the game I'm making. Whenever I click on Preferences or Continue Game from the main menu, or try to access the Preferences menu from inside the game, I get this error:

TypeError: 'int' object is not callable

While running game code:
- script at line 84 of renpy-6.5.0/common/00mainmenu.rpy
- python at line 84 of renpy-6.5.0/common/00mainmenu.rpy.
- script at line 657 of renpy-6.5.0/common/00gamemenu.rpy
- python at line 659 of renpy-6.5.0/common/00gamemenu.rpy.
- python at line 380 of renpy-6.5.0/common/00gamemenu.rpy.
- python at line 340 of renpy-6.5.0/common/00gamemenu.rpy.

Otherwise, the game works completely fine. Can someone help me with this? Thank you.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Question about game

#2 Post by PyTom »

Are you using 'int' as a variable in your game? Int is a built-in variable in python, so you shouldn't use it in your game.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Guest

Re: Question about game

#3 Post by Guest »

Thank you! I tried changing my variable 'int' to 'intelligence', and now the Preference menu works if I click on it from the main menu, but the Continue Game button still won't work, from both the main menu and from inside the game. The error message I get is the same. I checked my script but I've already changed all the 'int' variables.

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: Question about game

#4 Post by PyTom »

Guest wrote:Thank you! I tried changing my variable 'int' to 'intelligence', and now the Preference menu works if I click on it from the main menu, but the Continue Game button still won't work, from both the main menu and from inside the game. The error message I get is the same. I checked my script but I've already changed all the 'int' variables.
Although I'd need to see the error to know for sure, could it be that you're also using "str" as another variable?
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Yuen
Newbie
Posts: 2
Joined: Thu May 29, 2008 9:22 am
Contact:

Re: Question about game

#5 Post by Yuen »

OMG THAT'S IT EXACTLY!! THANK YOU SO MUCH!!!

Post Reply

Who is online

Users browsing this forum: No registered users