我不知道出了什么问题,因为它不是实际的代码……我有一组男孩的标签,我把每一组(爱的兴趣)标签拿出来单独运行)……他们工作得很好。但是,当我关闭它并尝试重新打开所有集合时,它反而会打开一个回溯错误,而前两行则出现上述错误。
“加载脚本后。OverflowError: value too large to convert to short.
”
有代码长度限制还是什么?我的项目是一个约会模拟游戏,有 12 个可能的爱情兴趣……今天,当我完成了将近 50% 时,它开始搞砸了……
我不认为我应该
有没有办法让 Ren'py 的代码“太长”?
编辑:这是完整的追溯:
Full traceback:
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\bootstrap.py", line 265, in bootstrap
renpy.main.main()
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\main.py", line 263, in main
if renpy.parser.report_parse_errors():
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\parser.py", line 2093, in report_parse_errors
renpy.display.error.report_parse_errors(full_text, error_fn)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\error.py", line 157, in report_parse_errors
error_fn = error_fn,
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\game.py", line 323, in invoke_in_new_context
return callable(*args, **kwargs)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\error.py", line 42, in call_exception_screen
return renpy.ui.interact(mouse="screen", type="screen", suppress_overlay=True, suppress_underlay=True)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\ui.py", line 237, in interact
rv = renpy.game.interface.interact(roll_forward=roll_forward, **kwargs)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\core.py", line 1853, in interact
repeat, rv = self.interact_core(preloads=preloads, **kwargs)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\core.py", line 2165, in interact_core
self.draw_screen(root_widget, fullscreen_video, (not fullscreen_video) or video_frame_drawn)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\core.py", line 1420, in draw_screen
renpy.config.screen_height,
File "render.pyx", line 365, in renpy.display.render.render_screen (gen\renpy.display.render.c:4568)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\screen.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 (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 521, in render
surf = render(child, width, height, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "accelerator.pyx", line 109, in renpy.display.accelerator.transform_render (gen\renpy.display.accelerator.c:1298)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 889, in render
st, at)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 1552, in render
cwidth, cheight = sizeit('c', width, height, 0, 0)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 1547, in sizeit
rend = render(pos_d[pos], width, height, st, at)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.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 (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\display\layout.py", line 683, in render
surf = render(d, width - x, rh, cst, cat)
File "render.pyx", line 95, in renpy.display.render.render (gen\renpy.display.render.c:2291)
File "render.pyx", line 166, in renpy.display.render.render (gen\renpy.display.render.c:2033)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\text\text.py", line 1363, in render
layout = Layout(self, width, height, renders)
File "C:\Users\Jessinia\Downloads\renpy-6.15.7-sdk\renpy\text\text.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 (gen\renpy.text.textsupport.c:7288)
OverflowError: value too large to convert to short
Windows-post2008Server-6.2.9200
Ren'Py 6.15.7.374