找回密码
 立即注册

QQ登录

只需一步,快速开始

查看: 6112|回复: 1

[已解决] 打包安卓,配置到输入包名后,下一步报错~求救呀!

[复制链接]
发表于 2021-9-20 01:47:47 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?立即注册

×
本帖最后由 一梦一千年 于 2021-9-20 10:47 编辑

生成分发版,Windows and Linux ,mac
一切正常,接下来打包安卓,~~问题如下:

[RenPy] 纯文本查看 复制代码
I'm sorry, but an uncaught exception occurred.

While running game code:
  File "game/android.rpy", line 476, in <module>
  File "game/mobilebuild.rpy", line 122, in input
  File "game/interface.rpy", line 422, in input
TypeError: object of type 'int' has no len()

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

Full traceback:
  File "launcher/game/android.rpyc", line 469, in script
  File "renpy/ast.py", line 922, in execute
    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)
  File "renpy/python.py", line 2218, in py_exec_bytecode
    exec(bytecode, globals, locals)
  File "game/android.rpy", line 476, in <module>
  File "D:\renpy-7.4.6-sdk\rapt\buildlib/rapt/configure.py", line 133, in configure
    version = interface.input(__("What is the application's version?\n\nThis should be the human-readable version that you would present to a person. It must contain only numbers and dots."), config.version)
  File "game/mobilebuild.rpy", line 122, in input
  File "game/interface.rpy", line 422, in input
  File "renpy/exports.py", line 3057, in call_screen
    rv = renpy.ui.interact(mouse="screen", type="screen", roll_forward=roll_forward)
  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 3694, in interact_core
    renpy.display.behavior.input_post_per_interact()
  File "renpy/display/behavior.py", line 1129, in input_post_per_interact
    i.update_text(content, editable)
  File "renpy/display/behavior.py", line 1264, in update_text
    set_content(new_content)
  File "renpy/display/behavior.py", line 1258, in set_content
    l = len(content)
TypeError: object of type 'int' has no len()

Windows-10-10.0.19041
Ren'Py 7.4.6.1693
Ren'Py Launcher 7.4.6.1693
Mon Sep 20 01:44:06 2021


00001.jpg
00003.jpg

配置时,输完包名,点继续,报错,如上图,



解决方法:

工程目录搜索:option.rpy ,

打开并编辑,添加以下内容

define config.version = _("Ren'Py 7 Edition")
define build.version = "7.0"

保存,重新进行配置即可正常进行。








发表于 2021-9-28 13:20:16 | 显示全部楼层
帮你顶顶
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|手机版|RenPy中文空间 ( 苏ICP备17067825号|苏公网安备 32092302000068号 )

GMT+8, 2024-11-22 15:59 , Processed in 0.132991 second(s), 32 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表