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.
-
oatnoodles
- Regular
- Posts: 47
- Joined: Tue Aug 03, 2021 6:26 pm
- Projects: Samuda Interval
- Organization: Tomuwa Entertainment
- Deviantart: oatnoodles
- Github: oatnoodles
- itch: oatnoodles
- Discord: oatnoodles#0099
-
Contact:
#1
Post
by oatnoodles » Sat Feb 05, 2022 7:41 pm
I have no idea what this error is saying, espescially since I haven't touched the variable that this says the error is about. It seems to have happened randomly, but idk for sure since I don't understand the error.
Code: Select all
I'm sorry, but an uncaught exception occurred.
While running game code:
File "renpy/common/00start.rpy", line 190, in script
python:
File "renpy/common/00start.rpy", line 191, in <module>
renpy.execute_default_statement(True)
Exception: store.knowledge_points is being given a default a second time.
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/common/00start.rpy", line 190, in script
python:
File "renpy/ast.py", line 923, in execute
renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
File "renpy/python.py", line 2223, in py_exec_bytecode
exec(bytecode, globals, locals)
File "renpy/common/00start.rpy", line 191, in <module>
renpy.execute_default_statement(True)
File "renpy/exports.py", line 3749, in execute_default_statement
i.set_default(start)
File "game/code/variables.rpyc", line 16, in set_default
Zd��e�<w4���1R6��4�x_?���
Exception: store.knowledge_points is being given a default a second time.
Windows-10-10.0.22000
Ren'Py 7.4.7.1862
Visual Novel 1.0
Sat Feb 5 17:38:57 2022
Last edited by
oatnoodles on Mon Feb 07, 2022 1:56 pm, edited 1 time in total.
Ren'py amateur looking to learn as much as possible! Please be patient with me.
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#2
Post
by Imperf3kt » Sat Feb 05, 2022 10:33 pm
You've written
Twice somewhere in your code, assuming the default you wanted to set it to is 0. Usually when copying existing, working code for use in another part of your game.
Search your scripts (usually CTRL + F or F3) and see if you have duplicated that line anywhere
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
-
Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#3
Post
by Ocelot » Sun Feb 06, 2022 3:40 am
Did you delete or rename some rpy files recently?
< < insert Rick Cook quote here > >
-
oatnoodles
- Regular
- Posts: 47
- Joined: Tue Aug 03, 2021 6:26 pm
- Projects: Samuda Interval
- Organization: Tomuwa Entertainment
- Deviantart: oatnoodles
- Github: oatnoodles
- itch: oatnoodles
- Discord: oatnoodles#0099
-
Contact:
#4
Post
by oatnoodles » Mon Feb 07, 2022 12:08 pm
Imperf3kt wrote: ↑Sat Feb 05, 2022 10:33 pm
You've written
Twice somewhere in your code, assuming the default you wanted to set it to is 0. Usually when copying existing, working code for use in another part of your game.
Search your scripts (usually CTRL + F or F3) and see if you have duplicated that line anywhere
i have default knowledge_points = 0 in only one of my files, and i haven't added it anywhere else (unless there's a duplicate made by accident, but i can't find anything.)
Ren'py amateur looking to learn as much as possible! Please be patient with me.
-
oatnoodles
- Regular
- Posts: 47
- Joined: Tue Aug 03, 2021 6:26 pm
- Projects: Samuda Interval
- Organization: Tomuwa Entertainment
- Deviantart: oatnoodles
- Github: oatnoodles
- itch: oatnoodles
- Discord: oatnoodles#0099
-
Contact:
#5
Post
by oatnoodles » Mon Feb 07, 2022 12:09 pm
Ocelot wrote: ↑Sun Feb 06, 2022 3:40 am
Did you delete or rename some rpy files recently?
not that i remember. it's possible i did, but the last thing i remember doing before i got this error was create 2 new .rpy files.
Ren'py amateur looking to learn as much as possible! Please be patient with me.
-
Ocelot
- Eileen-Class Veteran
- Posts: 1883
- Joined: Tue Aug 23, 2016 10:35 am
- Github: MiiNiPaa
- Discord: MiiNiPaa#4384
-
Contact:
#6
Post
by Ocelot » Mon Feb 07, 2022 12:56 pm
Try the "Force Recompile" option in launcher
And do search for default knowledge_points in all files, just in case
< < insert Rick Cook quote here > >
-
oatnoodles
- Regular
- Posts: 47
- Joined: Tue Aug 03, 2021 6:26 pm
- Projects: Samuda Interval
- Organization: Tomuwa Entertainment
- Deviantart: oatnoodles
- Github: oatnoodles
- itch: oatnoodles
- Discord: oatnoodles#0099
-
Contact:
#7
Post
by oatnoodles » Mon Feb 07, 2022 1:56 pm
Ocelot wrote: ↑Mon Feb 07, 2022 12:56 pm
Try the "Force Recompile" option in launcher
And do search for
default knowledge_points in all files, just in case
i checked for it in all files, no duplicates. however force recompile worked perfectly! thank you!
Ren'py amateur looking to learn as much as possible! Please be patient with me.
-
Imperf3kt
- Lemma-Class Veteran
- Posts: 3636
- Joined: Mon Dec 14, 2015 5:05 am
- Location: Your monitor
-
Contact:
#8
Post
by Imperf3kt » Tue Feb 08, 2022 4:46 am
Was probably an rpyc file not playing nicely then
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.
Current project:
GGD Mentor
Free Android GUI - Updated occasionally
Twitter
Imperf3kt Blackjack - a WIP blackjack game for Android made using Ren'Py
Users browsing this forum: No registered users