My game won't launch?

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
maricore
Regular
Posts: 41
Joined: Fri Jan 22, 2016 5:48 pm

My game won't launch?

#1 Post by maricore » Sun Nov 13, 2016 4:00 am

okay so, i started a new project tried to launch it and i got this error.

Code: Select all

I'm sorry, but an uncaught exception occurred.

After initialization, but before game start.
  File "game/screens.rpy", line 343, in prepare_screen
    screen preferences():
  File "game/screens.rpy", line 343, in prepare
    screen preferences():
  File "game/screens.rpy", line 351, in prepare
    grid 3 1:
  File "game/screens.rpy", line 351, in prepare
    grid 3 1:
  File "game/screens.rpy", line 356, in prepare
    vbox:
  File "game/screens.rpy", line 356, in prepare
    vbox:
  File "game/screens.rpy", line 373, in prepare
    frame:
  File "game/screens.rpy", line 373, in prepare
    frame:
  File "game/screens.rpy", line 375, in prepare
    has vbox
  File "game/screens.rpy", line 375, in prepare
    has vbox
  File "game/screens.rpy", line 378, in prepare
    bar value Preference("text speed")
  File "game/screens.rpy", line 378, in prepare
    bar value Preference("text speed")
  File "renpy/common/00preferences.rpy", line 397, in Preference
    rv = get()
  File "renpy/common/00preferences.rpy", line 225, in get
    return FieldValue(_preferences, "text_cps", range=200, max_is_zero=True, style="slider")
  File "renpy/common/00barvalues.rpy", line 246, in __init__
    step = max(range / 10, 1)
Exception: Character expects its what argument to be a string, got 20.

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

Full traceback:
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\bootstrap.py", line 277, in bootstrap
    renpy.main.main()
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\main.py", line 478, in main
    run(restart)
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\main.py", line 85, in run
    renpy.display.screen.prepare_screens()
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\display\screen.py", line 835, in prepare_screens
    s.ast.prepare_screen()
  File "game/screens.rpy", line 343, in prepare_screen
    screen preferences():
  File "game/screens.rpy", line 343, in prepare
    screen preferences():
  File "game/screens.rpy", line 351, in prepare
    grid 3 1:
  File "game/screens.rpy", line 351, in prepare
    grid 3 1:
  File "game/screens.rpy", line 356, in prepare
    vbox:
  File "game/screens.rpy", line 356, in prepare
    vbox:
  File "game/screens.rpy", line 373, in prepare
    frame:
  File "game/screens.rpy", line 373, in prepare
    frame:
  File "game/screens.rpy", line 375, in prepare
    has vbox
  File "game/screens.rpy", line 375, in prepare
    has vbox
  File "game/screens.rpy", line 378, in prepare
    bar value Preference("text speed")
  File "game/screens.rpy", line 378, in prepare
    bar value Preference("text speed")
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\python.py", line 1665, in py_eval_bytecode
    return eval(bytecode, globals, locals)
  File "<screen language>", line 378, in <module>
  File "renpy/common/00preferences.rpy", line 397, in Preference
    rv = get()
  File "renpy/common/00preferences.rpy", line 225, in get
    return FieldValue(_preferences, "text_cps", range=200, max_is_zero=True, style="slider")
  File "renpy/common/00barvalues.rpy", line 246, in __init__
    step = max(range / 10, 1)
  File "C:\Users\TOSHIBA\Downloads\Programs\renpy-6.99.11-sdk\renpy\character.py", line 808, 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 20.

Windows-8-6.2.9200
Ren'Py 6.99.11.1749
Callum 0.0
what does this error mean? i have checked my code and i cant see whats wrong with it.

User avatar
PyTom
Ren'Py Creator
Posts: 15893
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: My game won't launch?

#2 Post by PyTom » Mon Nov 14, 2016 1:04 am

Did you create a character named max? That's a reserved name.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
"Silly and fun things are important." - Elon Musk
Software > Drama • https://www.patreon.com/renpytom

Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot]