config.console ?

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
User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

config.console ?

#1 Post by wyverngem » Tue Jan 21, 2014 11:39 pm

http://www.renpy.org/doc/html/developer_tools.html
I'm trying to get Shift+O to work in game, but it gives me this error:

What am I doing wrong?

Code: Select all

I'm sorry, but an uncaught exception occurred.

While executing init code:
  File "game\options.rpy", line 10, in script
  File "game\options.rpy", line 15, in python
Exception: config.console is not a known configuration variable.

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

Full traceback:
  File "G:\My Visual Novel\renpy-6.14.1-sdk\renpy\execution.py", line 266, in run
  File "G:\My Visual Novel\renpy-6.14.1-sdk\renpy\ast.py", line 646, in execute
  File "G:\My Visual Novel\renpy-6.14.1-sdk\renpy\python.py", line 1172, in py_exec_bytecode
  File "game\options.rpy", line 15, in <module>
  File "G:\My Visual Novel\renpy-6.14.1-sdk\renpy\defaultstore.py", line 74, in __setattr__
Exception: config.console is not a known configuration variable.

Windows-7-6.1.7601-SP1
Ren'Py 6.14.1.366
 

User avatar
Keinart
Regular
Posts: 133
Joined: Sun May 13, 2012 8:28 pm
Completed: One Thousand Lies
Projects: Lotus Reverie
Organization: Keinart Lobre
Tumblr: keinart
itch: keinart
Location: Spain
Contact:

Re: config.console ?

#2 Post by Keinart » Wed Jan 22, 2014 1:43 am

I'm not an expert but line 15 in Options is where you have the config.developer function. Have you set it up as True? You need it to be True if you want it to work.

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: config.console ?

#3 Post by Crazy Li » Wed Jan 22, 2014 2:53 am

I've had trouble with the console as well. Shift+O has never done anything for me in Ren'py. My game pretty much just ignores it. And yes, I have developer on as I can shift+R and shift+D and those both work just fine.

User avatar
nyaatrap
Crawling Chaos
Posts: 1824
Joined: Mon Feb 13, 2012 5:37 am
Location: Kimashi Tower, Japan
Contact:

Re: config.console ?

#4 Post by nyaatrap » Wed Jan 22, 2014 3:17 am

Update ren'py. You're using an older version.

User avatar
wyverngem
Miko-Class Veteran
Posts: 615
Joined: Mon Oct 03, 2011 7:27 pm
Completed: Simple as Snow, Lady Luck's Due,
Projects: Aether Skies, Of the Waterfall
Tumblr: casting-dreams
itch: castingdreams
Location: USA
Contact:

Re: config.console ?

#5 Post by wyverngem » Wed Jan 22, 2014 10:47 am

Yep, that was it nyaatrap! Thanks.

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: config.console ?

#6 Post by Crazy Li » Wed Jan 22, 2014 4:22 pm

If I need to update, I guess I need to just work without console capability for this project. Newer versions crash with errors on my game and it seems I can only work in the version I started with.

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: config.console ?

#7 Post by PyTom » Wed Jan 22, 2014 5:37 pm

Crazy Li - what errors do you get? Have you looked at:

http://www.renpy.org/doc/html/incompatible.html

? Older code should run in newer Ren'Pys, perhaps with some config variable changes. If it doesn't, I can look at fixing it.
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

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: config.console ?

#8 Post by Crazy Li » Wed Jan 22, 2014 7:58 pm

@PyTom: I actually somehow broke Ren'py entirely. I think I tried adding RAPT and since doing that, Ren'py itself wouldn't even open for me to be able to do anything at all with it.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While executing init code:
  File "launcher/game/android.rpy", line 4, in script
  File "launcher/game/android.rpy", line 70, in python
ImportError: No module named rapt
I completely deleted my Ren'py folder for that version and re-installed. The main error in my game comes with closing the game using the Windows close button (I think I posted about that once before). This is on 6.16.5 because even though I thought I heard word about a newer version, I didn't find anything later at http://www.renpy.org/latest.html when I went to re-install.

Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00layout.rpy", line 54, in script
  File "renpy/common/00layout.rpy", line 54, in python
  File "renpy/common/00layout.rpy", line 442, in python
IgnoreLayers: 

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

Full traceback:
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\execution.py", line 288, in run
    node.execute()
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\ast.py", line 1486, in execute
    if renpy.python.py_eval(condition):
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\python.py", line 1342, in py_eval
    return eval(py_compile(source, 'eval'), globals, locals)
  File "renpy/common/00layout.rpy", line 54, in <module>
    if layout.invoke_yesno_prompt(None, layout.QUIT):
  File "renpy/common/00layout.rpy", line 442, in invoke_yesno_prompt
    rv = layout.yesno_prompt(*args)
  File "renpy/common/_layout/screen_yesno_prompt.rpym", line 11, in yesno_prompt
    return ui.interact()
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\ui.py", line 237, in interact
    rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\core.py", line 1853, in interact
    repeat, rv = self.interact_core(preloads=preloads, **kwargs)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\core.py", line 2406, in interact_core
    rv = root_widget.event(ev, x, y, 0)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\layout.py", line 749, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\layout.py", line 749, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\layout.py", line 749, in event
    rv = i.event(ev, x - xo, y - yo, cst)
  File "G:\other stuff\Ren'Py\renpy-6.16.5-sdk\renpy\display\screen.py", line 327, in event
    raise renpy.display.layout.IgnoreLayers()
IgnoreLayers: 

Windows-Vista-6.0.6002-SP2
Ren'Py 6.16.5.525

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: config.console ?

#9 Post by PyTom » Wed Jan 22, 2014 10:32 pm

Crazy, can you send me the game that causes the problem, along with instructions as to how to repeat it? Something weird is going on here - you're somehow getting int a state where there's no root set of layers. I think I'll be able to figure this out easily here, but I don't have enough information from just the traceback.
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

Crazy Li
Regular
Posts: 113
Joined: Fri Jan 03, 2014 3:35 pm
Contact:

Re: config.console ?

#10 Post by Crazy Li » Thu Jan 23, 2014 3:01 pm

Sure, I can do that after I get off work. You want me to actually go to compile it via Build Distributions or send you the .rpy files?

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: config.console ?

#11 Post by PyTom » Thu Jan 23, 2014 6:18 pm

Basically, send the project, without the tmp directory inside the project.
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: Google [Bot]