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.
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Getting a script error when trying to run the game
#1
Post
by eclipsezero » Wed Nov 03, 2010 4:38 am
Error:
I’m sorry, but errors were detected in your script. Please correct the errors listed below, and try again.
On line 16 of D:Gaming World ZXZone ProgRenpyA Situation right out of a song…apparently/game/script.rpy: indentation mismatch.
Ren’Py Version: Ren’Py 6.11.2b
The line:
«Don’t pick up the phone, i don’t have any energy left for a conversation…»:
What do i do? D:
Last edited by eclipsezero on Wed Nov 03, 2010 5:36 am, edited 2 times in total.
-
Jake
- Support Hero
- Posts: 3826
- Joined: Sat Jun 17, 2006 7:28 pm
-
Contact:
Re: Getting a script error when trying to run the game
#2
Post
by Jake » Wed Nov 03, 2010 5:34 am
eclipsezero wrote:
indentation mismatch.The line:
«Don’t pick up the phone, i don’t have any energy left for a conversation…»:What do i do? D:
Capitalise your ‘i’s! :3
Seriously, though, an ‘indentation mismatch’ generally means that you’ve not indented a line as far as it should have been indented — or you indented it too far! Ren’Py is very sensitive to how many spaces there are at the beginning of the line, unfortunately.
— If you’re just writing regular dialogue, then each line needs to be indented exactly as much as the previous line of dialogue.
— If you’ve got a line which ends in ‘:’, then all subsequent lines need to be indented further if you intend them to be subordinate to that line. So if you make a menu, and you start with:
then the items in the menu (which is what that looks like there, maybe?) need to be indented further than the ‘menu:’ statement, to show that they’re menu items and not just lines of dialogue that follow:
and similarly, anything that happens as a result of clicking on that menu choice has to be indented even further, so that it’s clear to Ren’Py that it’s supposed to be a result of that menu choice, and not another line of dialogue that follows the menu or another menu choice or something:
Code: Select all
e "What's your favourite colour?"
menu:
"blue":
e "Blue, eh? How cool."
"red":
e "Oh, I never liked red."
e "Still, that doesn't matter."
— you see, each choice is indented from ‘menu:’, and each response is indented from the choice, but the line «Stil, that doesn’t matter» will be said regardless of what is picked, because it’s not indented further than the ‘menu:’ line, so Ren’Py recognises that it’s not part of the menu.
(You may want to read the manual entry or the FAQ entry on indentation and blocks to see how all this works.)
Server error: user ‘Jake’ not found
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Re: Getting a script error when trying to run the game
#3
Post
by eclipsezero » Wed Nov 03, 2010 5:37 am
Getting another error now, ingame:
Trackback:
‘m sorry, but an uncaught exception occurred.
ValueError: unsupported format character ‘&’ (0x26) at index 2
While running game code:
— script at line 40 of D:Gaming World ZXZone ProgRenpyA Situation right out of a song…apparently/game/script.rpy
— Full Traceback ————————————————————
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpybootstrap.py», line 270, in bootstrap
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpymain.py», line 310, in main
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpymain.py», line 93, in run
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpyexecution.py», line 259, in run
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpyast.py», line 347, in execute
File «D:Gaming World ZXZone ProgRenpyrenpy-6.11.2renpyexports.py», line 561, in say
ValueError: unsupported format character ‘&’ (0x26) at index 2
While running game code:
— script at line 40 of D:Gaming World ZXZone ProgRenpyA Situation right out of a song…apparently/game/script.rpy
Ren’Py Version: Ren’Py 6.11.2b
-
Jake
- Support Hero
- Posts: 3826
- Joined: Sat Jun 17, 2006 7:28 pm
-
Contact:
Re: Getting a script error when trying to run the game
#4
Post
by Jake » Wed Nov 03, 2010 6:31 am
eclipsezero wrote:
ValueError: unsupported format character ‘&’ (0x26) at index 2While running game code:
— script at line 40 of D:Gaming World ZXZone ProgRenpyA Situation right out of a song…apparently/game/script.rpy
When you see an error like this, it really helps to give the line of code that’s causing it — and often the lines immediately before and after it as well. So what’s on line 40 of script.rpy?
Off the top of my head, it looks like it’s probably a sequence of characters which Ren’Py is trying to interpret as text-formatting, but is either not written correctly or not even intended to be formatting, but without the source line it’s hard to say exactly what’s wrong.
Server error: user ‘Jake’ not found
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
-
Contact:
Re: Getting a script error when trying to run the game
#5
Post
by eclipsezero » Wed Nov 03, 2010 6:35 am
Ah, right. Sorry about that, didn’t notice it.
Lines 38 to 44:
b «Er…i am alright, you don’t need to worry-«
g «Thats great! Lets go on a date to that restaturant shall we?!»
«F%&*»
b «Ah…n-not today i am afraid, i have quite a bit of schoolwork to finish, not free at all, y’know-«
g » Thats great! I will come over to your house, lets study together!»
«Before i can reply, the phone is turned off.»
«…Well, shit.»
EDIT:
Nvm, i got it. Removing the craptastic censoring removed the error.
-
Jake
- Support Hero
- Posts: 3826
- Joined: Sat Jun 17, 2006 7:28 pm
- Contact:
Re: Getting a script error when trying to run the game
#6
Post
by Jake » Wed Nov 03, 2010 8:18 am
(One tip — if you’re going to post code snippets, it’s a good idea to put them in ‘code’ tags — you can do this by selecting the whole snippet and hitting the ‘Code’ button above the editor. Like this it gets spaced the way Ren’Py sees it, so sometimes it’ll help.)
eclipsezero wrote:
«F%&*»
Nvm, i got it. Removing the craptastic censoring removed the error.
This is because Ren’Py uses the percent character to ‘interpolate’ variable names into dialogue — so if you have (for example) a numeric variable «howManyCakes» then you can include it in dialogue like this:
Code: Select all
e "I have %(howManyCakes)d cakes!"
and it’ll come out as «I have 273 cakes!» or whatever.
As a result, if you want to include a percent sign in your dialogue without doing this, you have to double it up, so Ren’Py can recognise that it’s not supposed to be a variable:
Server error: user ‘Jake’ not found
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Re: Getting a script error when trying to run the game
#7
Post
by eclipsezero » Wed Nov 03, 2010 8:30 am
Jake wrote:(One tip — if you’re going to post code snippets, it’s a good idea to put them in ‘code’ tags — you can do this by selecting the whole snippet and hitting the ‘Code’ button above the editor. Like this it gets spaced the way Ren’Py sees it, so sometimes it’ll help.)
eclipsezero wrote:
«F%&*»
Nvm, i got it. Removing the craptastic censoring removed the error.This is because Ren’Py uses the percent character to ‘interpolate’ variable names into dialogue — so if you have (for example) a numeric variable «howManyCakes» then you can include it in dialogue like this:
Code: Select all
e "I have %(howManyCakes)d cakes!"
and it’ll come out as «I have 273 cakes!» or whatever.
As a result, if you want to include a percent sign in your dialogue without doing this, you have to double it up, so Ren’Py can recognise that it’s not supposed to be a variable:
Ah, i see. Thanks!
Though i am not sure whether i understood what interpolation is in the end D:
Is it basically something that generates a random number for something?
-
Jake
- Support Hero
- Posts: 3826
- Joined: Sat Jun 17, 2006 7:28 pm
- Contact:
Re: Getting a script error when trying to run the game
#8
Post
by Jake » Wed Nov 03, 2010 8:45 am
eclipsezero wrote:
Ah, i see. Thanks!
Though i am not sure whether i understood what interpolation is in the end D:
Is it basically something that generates a random number for something?
No, it’s part of the ‘variables’ system, which allows you to store and re-use certain values.
Variables aren’t necessary, so if you don’t have any need to keep track of values the user determines, then don’t worry about them — just be careful to double-up your percent signs when you use them in dialogue.
As an example, if you have a choice which adds or subtracts points depending on user choices, for example, those would be stored in variables:
Code: Select all
# Set the 'points' variable to 0
$ points = 0
"What is the capital of England?"
menu:
"London":
"Correct!"
# Add a point
$ points = points + 1
"Paris":
"Nope."
"How many legs does a cat have?"
menu:
"4":
"Correct!"
# Add a point
$ points = points + 1
"7":
"Nope."
"London":
"Are you even trying?"
# Subtract a point for being silly
$ points = points - 1
# Now we can use interpolation to tell the user how well they did
"You scored %(points)d out of 2."
Server error: user ‘Jake’ not found
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Re: Getting a script error when trying to run the game
#9
Post
by eclipsezero » Wed Nov 03, 2010 9:19 am
I see…
Wait, does that mean that system can be used for hiding and unlocking scenes, or to make a route system based on that?
Like, if you want to make a route system based on characters, then can you make it so that each has their own individual point count?
-
Jake
- Support Hero
- Posts: 3826
- Joined: Sat Jun 17, 2006 7:28 pm
-
Contact:
Re: Getting a script error when trying to run the game
#10
Post
by Jake » Wed Nov 03, 2010 9:37 am
eclipsezero wrote:I see…
Wait, does that mean that system can be used for hiding and unlocking scenes, or to make a route system based on that?
Like, if you want to make a route system based on characters, then can you make it so that each has their own individual point count?
Yep! You can create any variable names you like just by assigning values to them — just make sure that you always do it on a line with «$ » at the beginning, so Ren’Py can tell it’s not a regular Ren’Py command or a dialogue line or something.
If you want to do different things depending on the value of points, you can use the ‘if’ statement, where you give it a logical condition and it’ll do something or not do something depending on whether that condition is true or not, e.g.:
Code: Select all
if abigail_points >= 10:
# This indented block will only be run if the 'abigail_points' variable is greater or equal to 10
jump abigail_ending
if betty_points >= 10:
jump betty_ending
if clarissa_points >= 10:
jump clarissa_ending
label abigail_ending:
...
(and so on)
Server error: user ‘Jake’ not found
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
-
Contact:
Re: Getting a script error when trying to run the game
#11
Post
by eclipsezero » Wed Nov 03, 2010 9:44 am
Awesome! I think i know the basics pretty well, but stuff like that easily confuses me. Though i did manage to understand this one.
Can’t wait to make a multiple ending system :3
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Re: Getting a script error when trying to run the game
#12
Post
by eclipsezero » Thu Nov 04, 2010 12:28 pm
Thought it would be best to ask another question here, instead of creating a new topic.
I am trying to make a route system of sorts, however i have a small problem.
Here’s the code
Code: Select all
menu:
"Pick up the phone.":
jump phone
"Don't pick up the phone, i don't have any energy left for a conversation...":
jump dunpick
"Smash the phone to bits! Perfect excuse, get!":
jump smash
label phone:
nvl clear
b "...Hello?"
g "Darling, are you awake yet?!"
n "No, of course i am not awake, I am still sleeping, its my inner psychic self talking with you. Totally."
n "Sighing, i begin the conversation which i know will take quite a few hours of my free time away."
b "...yeah, i am, i guess."
g "So tell me, what did you have for breakfast, what did you have for dinner yesterday, what will you have for lunch, do you need my help in cleaning your house, yourself, anything?!"
n "..."
g "Have you played any new games?! Are you getting your daily dose of erotic visual novels?! You are not sexually frustrated, are you?!"
n "...i do believe our conversation has just broken through the earlier record of craziness."
nvl clear
g "Dear, why aren't you answering my questions?! Are you alright, did you get hit on the head?! Did you have some sort of operation on your tongue?! WHAT IS IT?!"
n "Jesus, i wish i had tried to understand the person with whom i was getting into a relationship, this wasn't what i signed up for!"
n "...and i have already forgotten what half the questions were."
b "Er...i am alright, you don't need to worry-"
g "Thats great! Lets go on a date to that restaturant shall we?!"
n "Fuck!"
b "Ah...n-not today i am afraid, i have quite a bit of schoolwork to finish, not free at all, y'know-"
g " Thats great! I will come over to your house, lets study together!"
n "Before i can reply, the phone is turned off."
n "...Well, shit."
n "...i guess i had better explain the situation."
n "Around a week ago, this girl comes upto me out of nowhere and confesses her love for me, then i, being surprised and completely flattered, unwittingly say yes. Yes, i said yes to a love confession from a total stranger, i am an idiot, i know."
n "Since then, my life has been absolute hell. This girl is like a plethora of anime characters into mixed into a human, she switches between personalities(Not a disorder, but by her own will) every single freaking day. Why, just two days before she acted out a yandere, and made me get out of my own freaking house! FUCK!"
n "The reason why i was driven out? Because i am the only freaking male at my house, and apparently thats a DAAAAAAAAANGEROUS situation for my "girlfriend" right here."
nvl clear
n "She, also being rich, threatened me into staying into one of the several houses her father had bought. Thats the one good point for me, because i get eat all the awesome food that is here...! Wait, i am going offtopic."
n "Basically, this girl's an absolute bitch and completely annoying, i have tried nearly every trick there is to get her to break up with me, BUT I HAVE FAILED EVERY SINGLE TIME. She just ignores all that and keeps on annoying the hell out of me!"
label smash:
nvl clear
n "Picking up the phone, i proceed to smash it like crazy against the wall, before throwing it out of the window."
n "HAH! Now i never have to listen to that girl again! AHAHAHAHAHAHA!"
n "I topple on my bed, going to sleep."
n "Barely ten minutes pass before the doorbell rings out a annoying chain-saw'ish sound. Don't ask, i DON'T know why we have that sort of noise for our doorbell."
n "Geh, i guess she is here already."
n "The doorbell keeps on ringing..."
n "...Its still ringing. Go away, damnit!"
n "ALRIGHT!"
b "ARGH! I AM COMING GOD FREAKING DAMNIT!"
nvl clear
n "Opening the door i am greeted by the sight of a beautiful girl who is smiling like an idiot."
g "Onii-chan~~!!"
n "I am tackled and fall to the ground with the girl on top of me."
n "What the fuck kind of theme is it today?! Brother complex?!"
g "So tell me onii-chan, do you like this style or my old yandere style better?"
n "OH GOD, DO NOT REMIND MY OF THAT DISASTROUS DAY."
n "What, your imagination is not working? Alright, picture this. Your girlfriend is a yandere. Now imagine that your entire house is contains no male other than you. I know, it sounds like some cliched incest harem scenario, but thats not what happens."
nvl clear
Basically, after label phone is over, it goes over to label smash, is there a way to avoid this to make a basic route system?
-
PyTom
- Ren’Py Creator
- Posts: 15922
- 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: Getting a script error when trying to run the game
#13
Post
by PyTom » Thu Nov 04, 2010 12:41 pm
What would you like it to do? If you put
At the end of the block associates with «label phone», the game will end. Alternatively, you can jump to another label.
Supporting creators since 2004
(When was the last time you backed up your game?)
«Do good work.» — Virgil Ivan «Gus» Grissom
Software > Drama • https://www.patreon.com/renpytom
-
eclipsezero
- Newbie
- Posts: 21
- Joined: Wed Nov 03, 2010 4:32 am
- Contact:
Re: Getting a script error when trying to run the game
#14
Post
by eclipsezero » Thu Nov 04, 2010 12:44 pm
Oh. I didn’t even think of that >_<;
So basically i just type out each route while jumping labels as much as needed, and then just put return at the end?
Who is online
Users browsing this forum: Bing [Bot], Google [Bot]
I’m making a game using Ren’py (based on python) and most errors aren’t shown, especially the errors in python code. Is there a possibility to check for possible errors at compile time and how do I get where some errors occur? If there are errors the game normally doesn’t run or breaks at the a errors appearance without a message.Is there maybe a file, where they are written in or something like that? Or do I have to debug using logs everywhere?
asked Dec 27, 2013 at 2:01
0
Compile errors will be shown when you first try to compile the RPY files. They will be put in «errors.txt» in your project directory. Most errors are not found at compile-time, however, and will only show up once you encounter them at run-time.
You can use Lint to check for some common errors (It’s called «Check Script (Lint)»), but mostly you’ll have to playtest to ensure there are no errors. Errors during playback should pop up a gray screen showing the error and traceback with the option to Ignore, Rollback, or Quit. Is this screen not showing up for you?
answered Mar 2, 2015 at 23:08
If you’re looking for some kind of intellisense like you have for some languages, where as you write the code the IDE shows errors, then it doesn’t exist. You have to launch the game so that the code is compiled, just then Ren’py will show you errors. You can see them in the editor or in the errors.txt that Ren’Py creates. To test you python code you can launch the game and type Shift + O to open the console.
answered Jul 6, 2019 at 23:33
вообщем играл себе и тут на какомто моменте перестала сохраняться игра
вот сообщение об ошибке
Код: Выбрать все
I'm sorry, but an uncaught exception occurred.
While running game code:
File "game/script.rpy", line 537, in script call
File "game/11_proj/loc_main.rpy", line 18, in script call
File "game/11_proj/loc_main.rpy", line 35, in script call
File "game/day_planner.rpy", line 174, in script
File "game/day_planner.rpy", line 174, in <module>
File "renpy/common/00gamemenu.rpy", line 123, in _invoke_game_menu
renpy.call_in_new_context('_game_menu')
IOError: [Errno 9] Bad file descriptor
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "game/script.rpy", line 537, in script call
File "game/11_proj/loc_main.rpy", line 18, in script call
File "game/11_proj/loc_main.rpy", line 35, in script call
File "game/day_planner.rpy", line 174, in script
File "D:ZagruzkiBM_0.20renpyast.py", line 1640, in execute
if renpy.python.py_eval(condition):
File "D:ZagruzkiBM_0.20renpypython.py", line 1489, in py_eval
return py_eval_bytecode(code, globals, locals)
File "D:ZagruzkiBM_0.20renpypython.py", line 1484, in py_eval_bytecode
return eval(bytecode, globals, locals)
File "game/day_planner.rpy", line 174, in <module>
File "D:ZagruzkiBM_0.20renpyui.py", line 277, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "D:ZagruzkiBM_0.20renpydisplaycore.py", line 2354, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "D:ZagruzkiBM_0.20renpydisplaycore.py", line 2998, in interact_core
rv = root_widget.event(ev, x, y, 0)
File "D:ZagruzkiBM_0.20renpydisplaylayout.py", line 887, in event
rv = i.event(ev, x - xo, y - yo, cst)
File "D:ZagruzkiBM_0.20renpydisplaybehavior.py", line 404, in event
rv = run(action)
File "D:ZagruzkiBM_0.20renpydisplaybehavior.py", line 295, in run
return var(*args, **kwargs)
File "renpy/common/00gamemenu.rpy", line 123, in _invoke_game_menu
renpy.call_in_new_context('_game_menu')
File "D:ZagruzkiBM_0.20renpygame.py", line 313, in call_in_new_context
return renpy.execution.run_context(False)
File "D:ZagruzkiBM_0.20renpyexecution.py", line 714, in run_context
context.run()
File "renpy/common/_layout/screen_load_save.rpym", line 35, in script
$ ui.interact()
File "D:ZagruzkiBM_0.20renpyerror.py", line 203, in report_exception
sys.stdout.write(full.getvalue())
IOError: [Errno 9] Bad file descriptor
Windows-7-6.1.7601-SP1
Ren'Py 6.99.7.858
BM 0.20
Содержание
- 1 Решение проблем с отображением (Dealing With Display Problems)
- 2 Проблемы с кодировкой Windows (Windows Encoding Problems)
- 3 OS X Mavericks (OS X 10.9 Mavericks)
- 4 Проблемы 64-битного Linux (64-Bit Linux Problems)
- 5 Источник
Решение проблем с отображением (Dealing With Display Problems)[править]
Начиная с версии 6.13, Ren’Py использует аппаратное ускорение графики, если оно присутствует и функционирует. Использование аппаратного ускорения даёт ряд преимуществ, например возможность вертикальной синхронизации и масштабирования игр на весь экран при сохранении соотношения сторон.
По умолчанию Ren’Py выбирает средство визуализации для использования в следующем порядке:
- OpenGL 2.0 или выше.
- DirectX 9, при условии, что все библиотеки доступны.
- OpenGL 1.x.
- Программное обеспечение.
Незначительная часть систем может столкнуться с проблемами при запуске аппаратно-ускоренных игр, созданных на Ren’Py. Эти проблемы часто возникают из-за ошибок графических драйверов, поэтому первым шагом к их исправлению должна стать проверка обновлений для драйверов видеокарты.
Если обновление видеодрайверов не устранило проблему, рекомендуется переключить видеорендеры, выполнив следующие действия:
- Удерживайте нажатой клавишу Shift во время запуска Ren’Py или нажмите Shift + G, как только Ren’Py запустится.
- В открывшемся меню «Ускорение графики» выберите используемый рендер.
- Выберите «Выход», затем перезапустите Ren’Py.
Рекомендуем попробовать OpenGL, DirectX и программное обеспечение, причём именно в таком порядке.
Проблемы с кодировкой Windows (Windows Encoding Problems)[править]
Ren’Py не запустится в Windows, если он будет помещён в папку с полным путём, который не представлен в текущем языке операционной системы. Например, если Ren’Py находится в директории:
C:ビジュアルノベルrenpy-6.16.0-sdk
, а система настроена на использование английского языка, то Ren’Py не сможет запуститься.
Чтобы устранить эту проблему, запустите «Панель управления», выберете «Язык и региональные стандарты», «Дополнительно» и измените «Язык программ, не поддерживающих Юникод».
OS X Mavericks (OS X 10.9 Mavericks)[править]
Ошибка в OS X Mavericks (версия 10.9) препятствует запуску Ren’Py при запуске на неосновном дисплее. Пока Apple не исправит эту ошибку, пожалуйста, запускайте Ren’Py с основного дисплея.
Проблемы 64-битного Linux (64-Bit Linux Problems)[править]
Ren’Py 6.14.x и 6.15.0-3 были неправильно скомпилированы, поэтому данные версии часто не работают на 64-битных компьютерах Linux. Лучший способ обойти это – скачать Ren’Py 6.15.4 или более позднюю версию и использовать её для запуска игры:
/path/to/renpy-6.15.4/renpy.sh /path/to/game-with-problems
Источник[править]
Статья «Dealing with Problems» на английском языке.
You probably didn’t notice this in the shock of finding Sayori. It was a legitimate error report from a ren’py script. Ren’py being the engine that creates visual novels. And it was created from the python interpreted programming language.
As you can see from the file properties, it was appended the moment that door was opened. Just one instance of game files being added, deleted, or changed. (Monika said to remind you to scroll to the bottom to see her improvements.)
I'm sorry, but an uncaught exception occurred. While running game code: File "game/script.rpy", line 67, in script call File "game/script-ch5.rpy", line 89, in script File "renpy/common/00action_menu.rpy", line 103, in __call__ renpy.call_in_new_context("_game_menu", *self.args, _game_menu_screen=screen, **self.kwargs) File "renpy/common/00gamemenu.rpy", line 173, in script $ ui.interact() File "renpy/common/00gamemenu.rpy", line 173, in $ ui.interact() File "renpy/common/00action_file.rpy", line 427, in __call__ renpy.load(fn) RestartTopContext: Oh jeez...I didn't break anything, did I? Hold on a sec, I can probably fix this...I think... Actually, you know what? This would probably be a lot easier if I just deleted her. She's the one who's making this so difficult. Ahaha! Well, here's goes nothing. -- Full Traceback ------------------------------------------------------------ Full traceback: File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyexecution.py", line 761, in run_context context.run() File "game/script.rpy", line 67, in script call File "game/script-ch5.rpy", line 89, in script File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyast.py", line 613, in execute renpy.exports.say(who, what, interact=self.interact) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyexports.py", line 1147, in say who(what, interact=interact) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpycharacter.py", line 877, in __call__ self.do_display(who, what, cb_args=self.cb_args, **display_args) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpycharacter.py", line 716, in do_display **display_args) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpycharacter.py", line 508, in display_say rv = renpy.ui.interact(mouse='say', type=type, roll_forward=roll_forward) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyui.py", line 285, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaycore.py", line 2526, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaycore.py", line 3204, in interact_core rv = root_widget.event(ev, x, y, 0) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplayscreen.py", line 651, in event rv = self.child.event(ev, x, y, st) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 889, in event return handle_click(self.clicked) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 824, in handle_click rv = run(action) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 306, in run return action(*args, **kwargs) File "renpy/common/00action_menu.rpy", line 103, in __call__ renpy.call_in_new_context("_game_menu", *self.args, _game_menu_screen=screen, **self.kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpygame.py", line 330, in call_in_new_context return renpy.execution.run_context(False) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyexecution.py", line 761, in run_context context.run() File "renpy/common/00gamemenu.rpy", line 173, in script $ ui.interact() File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyast.py", line 814, in execute renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpypython.py", line 1719, in py_exec_bytecode exec bytecode in globals, locals File "renpy/common/00gamemenu.rpy", line 173, in $ ui.interact() File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyui.py", line 285, in interact rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaycore.py", line 2526, in interact repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, **kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaycore.py", line 3204, in interact_core rv = root_widget.event(ev, x, y, 0) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaytransition.py", line 45, in event return self.new_widget.event(ev, x, y, st) # E1101 File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplayscreen.py", line 651, in event rv = self.child.event(ev, x, y, st) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 232, in event rv = d.event(ev, x - xo, y - yo, st) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaylayout.py", line 960, in event rv = i.event(ev, x - xo, y - yo, cst) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 889, in event return handle_click(self.clicked) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 824, in handle_click rv = run(action) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 299, in run new_rv = run(i, *args, **kwargs) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpydisplaybehavior.py", line 306, in run return action(*args, **kwargs) File "renpy/common/00action_file.rpy", line 427, in __call__ renpy.load(fn) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpyloadsave.py", line 594, in load log.unfreeze(roots, label="_after_load") File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpypython.py", line 1674, in unfreeze self.rollback(0, force=True, label=label, greedy=greedy, on_load=True) File "C:Program Files (x86)SteamsteamappscommonDoki Doki Literature Clubrenpypython.py", line 1603, in rollback raise renpy.game.RestartTopContext(label) RestartTopContext: Oh jeez...I didn't break anything, did I? Hold on a sec, I can probably fix this...I think... Actually, you know what? This would probably be a lot easier if I just deleted her. She's the one who's making this so difficult. Ahaha! Well, here's goes nothing. Windows-7-6.1.7601-SP1 Ren'Py 6.99.12.4.2187 Doki Doki Literature Club! 1.1.0
Loose ends
YES
Я не знаю, что не так, потому что это не настоящий КОД… У меня есть ярлыки в наборе мальчиков, и я взял каждый набор (любовный интерес) ярлыков и прогнал их по отдельности)… Они отлично сработали. Однако, когда я закрыл его и попытался снова открыть со всеми наборами внутри, он вместо этого открывает ошибку трассировки, а вместо этого первые две строки имеют указанную выше ошибку.
«После загрузки скрипта. OverflowError: value too large to convert to short.
«
Есть ли ограничение на длину кода или что-то в этом роде? Мой проект представляет собой симулятор свиданий с 12 возможными любовными интересами… и сегодня он начал портиться, когда я сделал почти 50%…
я не думаю, что я должен
Есть ли способ сделать код «слишком длинным» для Ren’py?
РЕДАКТИРОВАТЬ: Вот полная трассировка:
Full traceback:
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpybootstrap.py", line 265, in bootstrap
renpy.main.main()
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpymain.py", line 263, in main
if renpy.parser.report_parse_errors():
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpyparser.py", line 2093, in report_parse_errors
renpy.display.error.report_parse_errors(full_text, error_fn)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplayerror.py", line 157, in report_parse_errors
error_fn = error_fn,
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpygame.py", line 323, in invoke_in_new_context
return callable(*args, **kwargs)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplayerror.py", line 42, in call_exception_screen
return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpyui.py", line 237, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaycore.py", line 1853, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaycore.py", line 2165, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaycore.py", line 1420, in draw_screen
renpy.config.screen_height,
File "render.pyx", line 365, in renpy.display.render.render_screen (genrenpy.display.render.c:4568)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplayscreen.py", line 295, in render
child = renpy.display.render.render(self.child, w, h, st, at)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "accelerator.pyx", line 109, in renpy.display.accelerator.transform_render (genrenpy.display.accelerator.c:1298)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 889, in render
st, at)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 1552, in render
cwidth, cheight = sizeit('c', width, height, 0, 0)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 1547, in sizeit
rend = render(pos_d[pos], width, height, st, at)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 1311, in render
surf = render(self.child, child_width, child_height, st, at)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpydisplaylayout.py", line 683, in render
surf = render(d, width - x, rh, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (genrenpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (genrenpy.display.render.c:2033)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpytexttext.py", line 1363, in render
layout = Layout(self, width, height, renders)
File "C:UsersJessiniaDownloadsrenpy-6.15.7-sdkrenpytexttext.py", line 593, in __init__
textsupport.align_and_justify(lines, maxx, style.text_align, style.justify)
File "textsupport.pyx", line 728, in renpy.text.textsupport.align_and_justify (genrenpy.text.textsupport.c:7288)
OverflowError: value too large to convert to short
Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374