Code: Select all
I'm sorry, but an uncaught exception occurred.
After loading the script.
OverflowError: value too large to convert to short
-- Full Traceback ------------------------------------------------------------
Full traceback:
File "renpy/bootstrap.py", line 326, in bootstrap
renpy.main.main()
File "renpy/main.py", line 505, in main
if renpy.parser.report_parse_errors():
File "renpy/parser.py", line 3006, in report_parse_errors
renpy.display.error.report_parse_errors(full_text, error_fn)
File "renpy/display/error.py", line 194, in report_parse_errors
error_fn=error_fn,
File "renpy/game.py", line 284, in invoke_in_new_context
return callable(*args, **kwargs)
File "renpy/display/error.py", line 46, in call_exception_screen
return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
File "renpy/ui.py", line 298, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "renpy/display/core.py", line 3276, in interact
repeat, rv = self.interact_core(preloads=preloads, trans_pause=trans_pause, pause=pause, pause_start=pause_start, **kwargs)
File "renpy/display/core.py", line 3792, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "renpy/display/core.py", line 2521, in draw_screen
renpy.config.screen_height,
File "render.pyx", line 492, in renpy.display.render.render_screen
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 786, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 786, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 786, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/screen.py", line 681, in render
child = renpy.display.render.render(self.child, w, h, st, at)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 786, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 1193, in render
st, at)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 1683, in render
cwidth, cheight = sizeit('c', width, height, 0, 0)
File "renpy/display/layout.py", line 1680, in sizeit
rend = renpy.display.render.render_for_size(pos_d[pos], width, height, st, at)
File "render.pyx", line 315, in renpy.display.render.render_for_size
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 1683, in render
cwidth, cheight = sizeit('c', width, height, 0, 0)
File "renpy/display/layout.py", line 1680, in sizeit
rend = renpy.display.render.render_for_size(pos_d[pos], width, height, st, at)
File "render.pyx", line 315, in renpy.display.render.render_for_size
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/viewport.py", line 265, in render
surf = renpy.display.render.render(self.child, child_width, child_height, st, at)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/display/layout.py", line 989, in render
surf = render(d, width - x, rh, cst, cat)
File "render.pyx", line 170, in renpy.display.render.render
File "render.pyx", line 263, in renpy.display.render.render
File "renpy/text/text.py", line 2062, in render
layout = Layout(self, width, height, renders, splits_from=virtual_layout)
File "renpy/text/text.py", line 762, in __init__
textsupport.tweak_glyph_spacing(all_glyphs, lines, target_x_delta, target_y_delta, maxx, y) # @UndefinedVariable
File "textsupport.pyx", line 969, in renpy.text.textsupport.tweak_glyph_spacing
File "textsupport.pxd", line 79, in renpy.text.textsupport.Line.y.__set__
OverflowError: value too large to convert to short
For background about my project, my script.rpy has ~1500 lines that are split into 3 chapters. It's a dating sim, so I have 12 other .rpy files that hold the code for each of the characters. Right now, the script.rpy file is totally self-contained, it doesn't jump to any of the other files.
So now my question is: when I go to run the project, it should only run the script that is in script.rpy since I don't have it jump to any of the other files, right? So that would mean the error is in script.rpy? I tried to cut out different parts of the script to see if I could find the error and couldn't find anything. I added a "return" right after the first line of dialogue and it still caused the error. Putting a return there would cause it to only run the code before the return, right?
I've made a few projects using RenPy, so I have a good estimate for about how much text can fit in the textbox. My longest line is 186 characters, so I'm at a loss for finding a line that I didn't parse right. I know I have some spacing issues in the other files, but RenPy wouldn't be looking at those files because I didn't jump to any of them, would it?
I'm hoping someone can help explain more about how to troubleshoot this. I tried the suggested code to add to RenPy's text file in this thread viewtopic.php?t=50402 , but that didn't bare any results.
I hope I gave enough information to have my question make sense. I appreciate any advice anyone can give me!