How to fix this error?

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
YumaDazai
Regular
Posts: 34
Joined: Wed Jul 04, 2018 4:10 pm
Projects: PD9
Contact:

How to fix this error?

#1 Post by YumaDazai »

How should I fix this? I have no idea whats it's telling me.


Code: Select all

I'm sorry, but an uncaught exception occurred.

While running game code:
  File "renpy/common/00start.rpy", line 185, in script
    python:
  File "renpy/common/00start.rpy", line 186, in <module>
    renpy.execute_default_statement(True)
  File "game/Story/Defined Charaters and Other things.rpy", line 41, in set_default
    default white = False
Exception: store.white is being given a default a second time.

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

Full traceback:
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\bootstrap.py", line 306, in bootstrap
    renpy.main.main()
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\main.py", line 513, in main
    run(restart)
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\main.py", line 139, in run
    renpy.execution.run_context(True)
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\execution.py", line 879, in run_context
    context.run()
  File "renpy/common/00start.rpy", line 185, in script
    python:
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\ast.py", line 862, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\python.py", line 1912, in py_exec_bytecode
    exec bytecode in globals, locals
  File "renpy/common/00start.rpy", line 186, in <module>
    renpy.execute_default_statement(True)
  File "C:\Users\taylo\OneDrive\Desktop\renpy-7.0.0-sdk\renpy\exports.py", line 3289, in execute_default_statement
    i.set_default(start)
  File "game/Story/Defined Charaters and Other things.rpy", line 41, in set_default
    default white = False
Exception: store.white is being given a default a second time.

Windows-8-6.2.9200
Ren'Py 7.0.0.196
The Poisoned Rose 1.0
Fri Aug 17 10:58:09 2018

The code in question (I think?)

Code: Select all

default white = False
default red = False
default yellow = False



Programmer that will work paid and or for free! Message me on discord for more info at: Yuma#8158

User avatar
MaydohMaydoh
Regular
Posts: 165
Joined: Mon Jul 09, 2018 5:49 am
Projects: Fuwa Fuwa Panic
Tumblr: maydohmaydoh
Location: The Satellite of Love
Contact:

Re: How to fix this error?

#2 Post by MaydohMaydoh »

It's pretty much saying you've tried to assign a default value to white twice.
Search your code for a repetition of default white and remove it.

User avatar
YumaDazai
Regular
Posts: 34
Joined: Wed Jul 04, 2018 4:10 pm
Projects: PD9
Contact:

Re: How to fix this error?

#3 Post by YumaDazai »

I've tried, But there isn't. Thats why I'm confused.
Programmer that will work paid and or for free! Message me on discord for more info at: Yuma#8158

User avatar
Remix
Eileen-Class Veteran
Posts: 1628
Joined: Tue May 30, 2017 6:10 am
Completed: None... yet (as I'm still looking for an artist)
Projects: An un-named anime based trainer game
Contact:

Re: How to fix this error?

#4 Post by Remix »

white (and black and likely a few others) are internal Ren'Py names for solid background images... use another name or perhaps prefix it "my_white"
Frameworks & Scriptlets:

Post Reply

Who is online

Users browsing this forum: Bing [Bot]