Page 1 of 1

Can't use say without creating characters?

Posted: Thu Mar 04, 2021 3:11 pm
by ComboDev
So, every time I use: "chr" "bla bla bla" in a label

It gives me this error... :?:

Please help :(

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
TypeError: __call__() got multiple values for keyword argument 'interact'

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

Full traceback:
  File "lib/windows-i686/script.rpyc", line 69, in script call
  File "lib/windows-i686/story.rpyc", line 13645, in script call
  File "lib/windows-i686/00console.rpyc", line 693, in script call
  File "lib/windows-i686/mod_select.rpyc", line 66, in script call
  File "lib/windows-i686/story.rpyc", line 12641, in script
  File "C:\Users\Combo Studios\Documents\Renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 613, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\Users\Combo Studios\Documents\Renpy\renpy-6.99.12.4-sdk\renpy\exports.py", line 1145, in say
    renpy.store.say(who, what, interact=interact)
TypeError: __call__() got multiple values for keyword argument 'interact'

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Doki Doki Ultimate Combo (DEV) 0.35

Re: Can't use say without creating characters?

Posted: Fri Mar 05, 2021 2:12 am
by Per K Grok
ComboDev wrote:
Thu Mar 04, 2021 3:11 pm
So, every time I use: "chr" "bla bla bla" in a label

It gives me this error... :?:

Please help :(

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
TypeError: __call__() got multiple values for keyword argument 'interact'

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

Full traceback:
  File "lib/windows-i686/script.rpyc", line 69, in script call
  File "lib/windows-i686/story.rpyc", line 13645, in script call
  File "lib/windows-i686/00console.rpyc", line 693, in script call
  File "lib/windows-i686/mod_select.rpyc", line 66, in script call
  File "lib/windows-i686/story.rpyc", line 12641, in script
  File "C:\Users\Combo Studios\Documents\Renpy\renpy-6.99.12.4-sdk\renpy\ast.py", line 613, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\Users\Combo Studios\Documents\Renpy\renpy-6.99.12.4-sdk\renpy\exports.py", line 1145, in say
    renpy.store.say(who, what, interact=interact)
TypeError: __call__() got multiple values for keyword argument 'interact'

Windows-8-6.2.9200
Ren'Py 6.99.12.4.2187
Doki Doki Ultimate Combo (DEV) 0.35
I did a test run like this

Code: Select all

label start:

    "chr" "bla1, bla, bla"

    "chr" "bla2, bla, bla"

    "chr" "bla3, bla, bla"

    "chr" "bla4, bla, bla"
    
[code]

I did it first with one dialogue line and then with several just in case the problem might be with having more than one line using this method.

It worked without problem. (I did not know you could do that with the character's name. So I learned something.)
But I'm sorry to have to say that I have no clue to why it does not work for you, but it does not seem to be the construction itself which indicates that it is some other piece of code that makes it not work.

Somethings that can be useful to find that kind of causes for errors.

1. Make a new blank game just to test running the dialogue lines. If not working than the problem is more general and not only with that specific game. If it works, the problem is in your specific game.

2. Did your line of code work earlier, but has stopped to work later? If so, what have you changed in the code between it working and not working?

3. Have you done some fancy modifications to how the game operates? Specially with connection to 'say'. Maybe using a piece of code made by someone else and where you are not sure exactly what it does? That could be worth looking closer at.

Sorry I don't have anything more concrete to offer.

ps
You could of course just define your characters (assuming that always works).

Re: Can't use say without creating characters?

Posted: Fri Mar 05, 2021 6:48 pm
by ComboDev
Thank you. I found the problem though. I defined a character with the term "say" -_-. I'm dumb as it's the name of an already existing function so it tempered with the engine. Thanks a lot for the help though :D!