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.
Question about game
Forum rules
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
Ren'Py specific questions should be posted in the Ren'Py Questions and Annoucements forum, not here.
- 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
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(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Question about game
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.
- 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
Although I'd need to see the error to know for sure, could it be that you're also using "str" as another variable?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.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom(When was the last time you backed up your game?)
Software > Drama • https://www.patreon.com/renpytom
Re: Question about game
OMG THAT'S IT EXACTLY!! THANK YOU SO MUCH!!!
Who is online
Users browsing this forum: No registered users