Page 1 of 1

Error in writing package name (SOLVED)

Posted: Tue Apr 06, 2021 1:10 pm
by Kornyart
hello, im trying to name my android package but its giving me this error message:
if anyone can help me find the root to the problem id be grateful

Code: Select all

[code]
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 'bool' 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:\Program Files\renpy-7.4.4-sdk\rapt\buildlib/rapt/configure.py", line 123, 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 2983, 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 3101, 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 3513, in interact_core
    renpy.display.behavior.input_post_per_interact()
  File "renpy/display/behavior.py", line 1125, in input_post_per_interact
    i.update_text(content, editable)
  File "renpy/display/behavior.py", line 1260, in update_text
    set_content(new_content)
  File "renpy/display/behavior.py", line 1254, in set_content
    l = len(content)
TypeError: object of type 'bool' has no len()

Windows-10-10.0.19041
Ren'Py 7.4.4.1439
Ren'Py Launcher 7.4.4.1439
Tue Apr  6 20:00:30 2021
[/code]

Re: Error in writing package name

Posted: Tue Apr 13, 2021 3:11 am
by uncoded
Did you solve your issue?

If not, you should show us your files, at least game/interface.rpy.
It seems your trying to pass a boolean variable as a string (your variable is a string, renpy expects a string), but I can't say more than that.

Maybe try to write str(yourvariable) line 422 of game/interface.rpy or something.

Re: Error in writing package name

Posted: Tue Apr 13, 2021 11:37 am
by Kornyart
The problem is that all rpy files mentioned in the traceback are completely empty no matter what encoding i set them to. i have no idea whats going on honestly

Re: Error in writing package name

Posted: Wed Apr 14, 2021 12:33 pm
by Kornyart
I managed to fix it! i went to my options.rpy script and took the Tutorial script as a reference. The build version and config version werent written well, which was what was causing the whole problem. Very stupid mistake from me honestly