Please help with error message

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
Forum rules
This is the right place for Ren'Py help. Please ask one question per thread, use a descriptive subject like 'NotFound error in option.rpy' , and include all the relevant information - especially any relevant code and traceback messages. Use the code tag to format scripts.
Post Reply
Message
Author
nubes
Newbie
Posts: 11
Joined: Sat Dec 02, 2017 5:28 pm
Contact:

Please help with error message

#1 Post by nubes »

I'm sorry, but an uncaught exception occurred.

While running game code:
File "renpy/common/00definitions.rpy", line 377, in script
define _narrator = Character(None, kind=adv, what_style='say_thought')
File "renpy/common/00definitions.rpy", line 377, in <module>
define _narrator = Character(None, kind=adv, what_style='say_thought')
TypeError: 'StoreModule' object is not callable

-- Full Traceback ------------------------------------------------------------

Full traceback:
File "renpy/common/00definitions.rpy", line 377, in script
define _narrator = Character(None, kind=adv, what_style='say_thought')
File "D:\AutoDesk\Downloads\renpy-6.99.13-sdk\renpy\ast.py", line 1912, in execute
value = renpy.python.py_eval_bytecode(self.code.bytecode)
File "D:\AutoDesk\Downloads\renpy-6.99.13-sdk\renpy\python.py", line 1836, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "renpy/common/00definitions.rpy", line 377, in <module>
define _narrator = Character(None, kind=adv, what_style='say_thought')
TypeError: 'StoreModule' object is not callable

Windows-8-6.2.9200
Ren'Py 6.99.14.1.3218

Sat Mar 24 07:11:59 2018

I've tried everything I can think of as it seems to think I redefined the narrator I think but all I did was add a stats list to characters but I tried removing it and redefining my characters to remove this error but it remained then I downloaded ren'py and reinstalled it, moved my project locatioon and started over but I still get this error????????

User avatar
Andredron
Miko-Class Veteran
Posts: 718
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Please help with error message

#2 Post by Andredron »

where is the code itself?
screenshot or at least on pastebin laid out

nubes
Newbie
Posts: 11
Joined: Sat Dec 02, 2017 5:28 pm
Contact:

Re: Please help with error message

#3 Post by nubes »

Do you want the stat file or script or both?

User avatar
Andredron
Miko-Class Veteran
Posts: 718
Joined: Thu Dec 28, 2017 2:37 pm
Location: Russia
Contact:

Re: Please help with error message

#4 Post by Andredron »

nubes wrote: Sat Mar 24, 2018 7:34 am Do you want the stat file or script or both?
try so, clear the persistent data in the laucher renpy.
If it does not work, show the code - with which you had a mistake

nubes
Newbie
Posts: 11
Joined: Sat Dec 02, 2017 5:28 pm
Contact:

Re: Please help with error message

#5 Post by nubes »

script.rpy
(1.99 KiB) Downloaded 92 times
stats.rpy
(7.64 KiB) Downloaded 88 times

nubes
Newbie
Posts: 11
Joined: Sat Dec 02, 2017 5:28 pm
Contact:

Re: Please help with error message

#6 Post by nubes »

I had to manually clear the persistent files as Ren'Py couldn't do it, failed with could not launch error. Deleted the ~/home/apps/roaming one as well.
I still got the same error message though.

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Please help with error message

#7 Post by Remix »

I see you are using my cookbook offering to add stats to characters... just a few minor issues:

stats.rpy
Remove the "label stats_import:" line 6
Unindent the class, the "class BaseStatsObject(object):" bit and the constants... basically make it *exactly* like the first code block in my cookbook thread.
(it does kinda make sense to just hide that in a separate .rpy file)
Line 177: "define DynamicCharacter.j = Character...." .... what is DynamicCharacter? fix that
Line 179/181/183 etc : "define Character.m = Character..." must be lower case character.reference >>> "define character.m = Character..." fix all

script.rpy
Remove first two jumps, they are outside labels

Might work once that is done
Frameworks & Scriptlets:

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: Please help with error message

#8 Post by Remix »

Oh, btw, you might well need [j.name] rather than just [j] (and same for all names in [] in dialogue)... probably accounts for the StoreModule callable error tbh
Frameworks & Scriptlets:

nubes
Newbie
Posts: 11
Joined: Sat Dec 02, 2017 5:28 pm
Contact:

Re: Please help with error message

#9 Post by nubes »

Thanks

the jumps were to import the vars

especially the calendar needed for the button to work properly and a dynamic character was for ren'py input naming.

Post Reply

Who is online

Users browsing this forum: No registered users