Can anyone help?

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
radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Can anyone help?

#1 Post by radu32167 »

I keep getting this error.
Can anyone give me a clue?
I haven't messed aroud at all with the screens.rpy file

Code: Select all

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
  File "game/screens.rpy", line 708, in prepare_screen
    screen preferences():
  File "game/screens.rpy", line 708, in prepare
    screen preferences():
  File "game/screens.rpy", line 717, in prepare
    use game_menu(_("Preferences"), scroll="viewport"):
  File "game/screens.rpy", line 717, in prepare
    use game_menu(_("Preferences"), scroll="viewport"):
  File "game/screens.rpy", line 719, in prepare
    vbox:
  File "game/screens.rpy", line 719, in prepare
    vbox:
  File "game/screens.rpy", line 751, in prepare
    hbox:
  File "game/screens.rpy", line 751, in prepare
    hbox:
  File "game/screens.rpy", line 765, in prepare
    vbox:
  File "game/screens.rpy", line 765, in prepare
    vbox:
  File "game/screens.rpy", line 767, in prepare
    if config.has_music:
  File "game/screens.rpy", line 767, in prepare
    if config.has_music:
  File "game/screens.rpy", line 770, in prepare
    hbox:
  File "game/screens.rpy", line 770, in prepare
    hbox:
  File "game/screens.rpy", line 771, in prepare
    bar value Preference("music volume")
  File "game/screens.rpy", line 771, in prepare
    bar value Preference("music volume")
  File "renpy/common/00preferences.rpy", line 435, in Preference
    rv = get()
  File "renpy/common/00preferences.rpy", line 409, in get
    if len(n) == 3 and n[0] == "mixer":
Exception: Character expects its what argument to be a string, got [u'music', u'volume'].

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

Full traceback:
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\bootstrap.py", line 306, in bootstrap
    renpy.main.main()
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\main.py", line 520, in main
    run(restart)
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\main.py", line 90, in run
    renpy.display.screen.prepare_screens()
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\display\screen.py", line 873, in prepare_screens
    s.ast.prepare_screen()
  File "game/screens.rpy", line 708, in prepare_screen
    screen preferences():
  File "game/screens.rpy", line 708, in prepare
    screen preferences():
  File "game/screens.rpy", line 717, in prepare
    use game_menu(_("Preferences"), scroll="viewport"):
  File "game/screens.rpy", line 717, in prepare
    use game_menu(_("Preferences"), scroll="viewport"):
  File "game/screens.rpy", line 719, in prepare
    vbox:
  File "game/screens.rpy", line 719, in prepare
    vbox:
  File "game/screens.rpy", line 751, in prepare
    hbox:
  File "game/screens.rpy", line 751, in prepare
    hbox:
  File "game/screens.rpy", line 765, in prepare
    vbox:
  File "game/screens.rpy", line 765, in prepare
    vbox:
  File "game/screens.rpy", line 767, in prepare
    if config.has_music:
  File "game/screens.rpy", line 767, in prepare
    if config.has_music:
  File "game/screens.rpy", line 770, in prepare
    hbox:
  File "game/screens.rpy", line 770, in prepare
    hbox:
  File "game/screens.rpy", line 771, in prepare
    bar value Preference("music volume")
  File "game/screens.rpy", line 771, in prepare
    bar value Preference("music volume")
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\python.py", line 1828, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "<screen language>", line 771, in <module>
  File "renpy/common/00preferences.rpy", line 435, in Preference
    rv = get()
  File "renpy/common/00preferences.rpy", line 409, in get
    if len(n) == 3 and n[0] == "mixer":
  File "G:\New folder (2)\renpy2\renpy-6.99.14-sdk\renpy\character.py", line 925, in __call__
    raise Exception("Character expects its what argument to be a string, got %r." % (what,))
Exception: Character expects its what argument to be a string, got [u'music', u'volume'].

Windows-8-6.2.9200
Ren'Py 6.99.14.3135
unnamedproj 1.0

rayminator
Miko-Class Veteran
Posts: 793
Joined: Fri Feb 09, 2018 12:05 am
Location: Canada
Contact:

Re: Can anyone help?

#2 Post by rayminator »

can you post your screens.rpy here and post what you have done in your script

best thing to do is look at all of the lines that the error has given you to see what might be wrong or it could be something you have written somewhere else that the screen might have already that's might be conflicting with each other

User avatar
Black Cat 2412
Regular
Posts: 74
Joined: Wed Aug 16, 2017 10:10 am
Projects: Rapunzel: A classic retold
Deviantart: BlackCat2412
Location: Vietnam
Contact:

Re: Can anyone help?

#3 Post by Black Cat 2412 »

Can this help you? viewtopic.php?f=8&t=47746

radu32167
Newbie
Posts: 24
Joined: Wed Nov 23, 2016 10:25 am
Contact:

Re: Can anyone help?

#4 Post by radu32167 »

Thank you everyone, but I managed to figure it out.

Had a character named Lenny. And I defined him a "len". Idiot, I know.

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], LuckyT