Error in writing package name (SOLVED)

Discuss how to use the Ren'Py engine to create visual novels and story-based games. New releases are announced in this section.
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.
Post Reply
Message
Author
User avatar
Kornyart
Newbie
Posts: 20
Joined: Mon Jan 25, 2021 1:18 pm
Completed: Mindworks: The Great Division
Projects: Mindworks: the great division
itch: Kornyart
Contact:

Error in writing package name (SOLVED)

#1 Post 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]
Last edited by Kornyart on Tue Dec 20, 2022 6:58 am, edited 1 time in total.

uncoded
Regular
Posts: 27
Joined: Fri Apr 09, 2021 10:29 am
Contact:

Re: Error in writing package name

#2 Post 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.
🐾

User avatar
Kornyart
Newbie
Posts: 20
Joined: Mon Jan 25, 2021 1:18 pm
Completed: Mindworks: The Great Division
Projects: Mindworks: the great division
itch: Kornyart
Contact:

Re: Error in writing package name

#3 Post 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

User avatar
Kornyart
Newbie
Posts: 20
Joined: Mon Jan 25, 2021 1:18 pm
Completed: Mindworks: The Great Division
Projects: Mindworks: the great division
itch: Kornyart
Contact:

Re: Error in writing package name

#4 Post 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

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot], Google [Bot], IrisColt, Semrush [Bot], solarisdreams