Unknown keyword arguments: two_windows(Solved, thanks!)

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
Jaranu
Newbie
Posts: 3
Joined: Sun Jan 18, 2015 11:33 pm
Contact:

Unknown keyword arguments: two_windows(Solved, thanks!)

#1 Post by Jaranu »

So I'm fairly new to this whole thing, new to python and all that. Working on my first VN so dealing with a newbie here, just a heads up.

I wanna do the whole 'Name appearing in its own window above the text window' thing.
Since I use a cast of recurring characters, I define them at the beginning like so:
define R = Character('Rut`sah', color="#FFFF00", show_two_window=True)

All the characters are like this, except with different names, colors etc obviously.
This character I have up there appears first, the one defined as R.

The minute a second character speaks, whom is defined by l as seen here:
define l = Character("Lillie", color="#9933FF", show_two_windows=True)

When we get to her dialogue, we get this error:
While running game code:
File "game/script.rpy", line 46, in script
e"\"Thats a cool mask your wearing! Solid smooth white! Must have taken a lot of time to make it!\""
Exception: Unknown keyword arguments: two_windows

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

Full traceback:
File "game/script.rpy", line 46, in script
e"\"Thats a cool mask your wearing! Solid smooth white! Must have taken a lot of time to make it!\""
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\ast.py", line 593, in execute
renpy.exports.say(who, what, interact=self.interact)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\exports.py", line 999, in say
who(what, interact=interact)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\character.py", line 826, in __call__
self.do_display(who, what, cb_args=self.cb_args, **display_args)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\character.py", line 688, in do_display
**display_args)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\character.py", line 465, in display_say
what_text = show_function(who, what_string)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\character.py", line 672, in do_show
**self.show_args)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\character.py", line 275, in show_display_say
return renpy.display.screen.get_widget(screen, "what", layer)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\display\screen.py", line 964, in get_widget
screen.update()
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\display\screen.py", line 555, in update
self.screen.function(**self.scope)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\ast.py", line 148, in apply_arguments
return parameters.apply(args, kwargs, ignore_errors)
File "D:\Ren'Py\renpy-6.18.3-sdk\renpy\ast.py", line 136, in apply
raise Exception("Unknown keyword arguments: %s" % ( ", ".join(values.keys())))
Exception: Unknown keyword arguments: two_windows

Windows-post2008Server-6.2.9200
Ren'Py 6.18.3.761
DEUS 0.0
Incase how its written on the script is the problem, here's the specific section this error pops up.
R"\"{i}Hypocrite.{/i}\" "

"He was Right about this for once."
"Its not as if I did not enjoy flying.\n{w}I could control the very winds themselves."
"The school wanted the new students to arrive on this airship however."
"I preferred to fly on my own though. \n{w}To let the cloak from the mask upon my face consume me, as I fly through the air like a stray cloth caught in strong winds."
"It was liberating."
"A sudden voice caught me by surprise."

l"\"Thats a cool mask your wearing! Solid smooth white! Must have taken a lot of time to make it!\""
"I stayed silient, hoping she would leave me alone."
I'm not sure how to fix this. It doesn't do this error with R but the minute any other character speaks this error happens. if I remove the show_two_windows=True then it fixes itself and other people can talk, but then I only have one doing the two window thing.

So anyone who actually knows what their doing able to point to what I need to do to fix this? :P
Last edited by Jaranu on Mon Jan 19, 2015 1:00 pm, edited 1 time in total.

philat
Eileen-Class Veteran
Posts: 1900
Joined: Wed Dec 04, 2013 12:33 pm
Contact:

Re: Unknown keyword arguments: two_windows(Not sure whats wr

#2 Post by philat »

It's show_two_window, without the s. Good luck with the rest of your game.

Jaranu
Newbie
Posts: 3
Joined: Sun Jan 18, 2015 11:33 pm
Contact:

Re: Unknown keyword arguments: two_windows(Not sure whats wr

#3 Post by Jaranu »

OMG, thank you so much. I feel incredibly stupid right now >.<

pandademic42
Newbie
Posts: 1
Joined: Mon May 08, 2017 2:06 am
itch: hannahwebb42
Contact:

Re: Unknown keyword arguments: two_windows(Solved, thanks!)

#4 Post by pandademic42 »

I have this same issue... but two window"s" isn't my issue. I can't seem to figure this one out!!


I have my character defined as:

define P = Character("Papa", show_two_window=True)


and it keeps saying, as soon as his first line appears:


"File "game/script.rpy", line 68, in script
P "Hey! Wake up!"
Exception: Unknown keyword arguments: two_window"


the end of my error says

"Darwin-15.60-x86_64-i386-64bit
Ren'Py 6.99.12.4.2187"


Any solutions?

vf1sveritech
Newbie
Posts: 3
Joined: Sun Aug 13, 2017 7:38 am
Contact:

Re: Unknown keyword arguments: two_windows(Solved, thanks!)

#5 Post by vf1sveritech »

same problem here.

$ D = Character(_("Developer"),color="#0000FF",show_two_window=True,what_prefix='"',what_suffix='"')

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/script.rpy", line 205, in script
    D "Welcome to the game!"
Exception: Unknown keyword arguments: two_window

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

Full traceback:
  File "game/script.rpy", line 205, in script
    D "Welcome to the game!"
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\ast.py", line 613, in execute
    renpy.exports.say(who, what, interact=self.interact)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\exports.py", line 1147, in say
    who(what, interact=interact)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\character.py", line 877, in __call__
    self.do_display(who, what, cb_args=self.cb_args, **display_args)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\character.py", line 716, in do_display
    **display_args)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\character.py", line 482, in display_say
    what_text = show_function(who, what_string)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\character.py", line 700, in do_show
    **self.show_args)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\character.py", line 283, in show_display_say
    return renpy.display.screen.get_widget(screen, "what", layer)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 1194, in get_widget
    screen.update()
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\display\screen.py", line 578, in update
    self.screen.function(**self.scope)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\ast.py", line 152, in apply_arguments
    return parameters.apply(args, kwargs, ignore_errors)
  File "C:\Program Files (x86)\renpy-6.99.12.4-sdk\renpy\ast.py", line 139, in apply
    raise Exception("Unknown keyword arguments: %s" % ( ", ".join(values.keys())))
Exception: Unknown keyword arguments: two_window

Windows-7-6.1.7601-SP1
Ren'Py 6.99.12.4.2187
my project 1.0

User avatar
Donmai
Eileen-Class Veteran
Posts: 1958
Joined: Sun Jun 10, 2012 1:45 am
Completed: Toire No Hanako, Li'l Red [NaNoRenO 2013], The One in LOVE [NaNoRenO 2014], Running Blade [NaNoRenO 2016], The Other Question, To The Girl With Sunflowers
Projects: Slumberland
Location: Brazil
Contact:

Re: Unknown keyword arguments: two_windows(Solved, thanks!)

#6 Post by Donmai »

pandademic42 and vf1sveritech, very feel people will look here now because the thread is marked Solved. In this case, it's better to start a new thread.
Anyway, you two just seem to be using the new GUI, and trying to use code written for the old themed GUI.
Look here: viewtopic.php?f=8&t=42471
Image
No, sorry! You must be mistaking me for someone else.
TOIRE NO HANAKO (A Story About Fear)

Post Reply

Who is online

Users browsing this forum: Google [Bot]