Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I found a bug of sorts I did a  jump how_to_use_color_picker just to test, and I was just enjoying the colors without making any changes to them when I encountered this error after the screen for selecting two colors

I did find that if I made a change to only the second color, everything worked like the other two screens.

```

I'm sorry, but an uncaught exception occurred.

While running game code:

  File "game/scripts/color_picker_examples.rpy", line 251, in script

    $ chosen_color2 = picker2.get_color(1).hexcode

  File "game/scripts/color_picker_examples.rpy", line 251, in <module>

    $ chosen_color2 = picker2.get_color(1).hexcode

AttributeError: 'str' object has no attribute 'hexcode'

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

Full traceback:

  File "game/scripts/color_picker_examples.rpy", line 251, in script

    $ chosen_color2 = picker2.get_color(1).hexcode

  File "E:\renpy-8.0.0-sdk\renpy\ast.py", line 1138, in execute

    renpy.python.py_exec_bytecode(self.code.bytecode, self.hide, store=self.store)

  File "E:\renpy-8.0.0-sdk\renpy\python.py", line 1122, in py_exec_bytecode

    exec(bytecode, globals, locals)

  File "game/scripts/color_picker_examples.rpy", line 251, in <module>

    $ chosen_color2 = picker2.get_color(1).hexcode

AttributeError: 'str' object has no attribute 'hexcode'

Windows-10-10.0.19045 AMD64

Ren'Py 8.1.1.23060707

For testing 4 1.0

Tue Feb 25 21:30:30 2025

```

Thanks for the heads up! I'll make a note to have a better failsafe for that when I update the tool.