Skip to main content

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

Need Support? Post here! Sticky

A topic by Feniks created Sep 09, 2023 Views: 176 Replies: 5
Viewing posts 1 to 3
Developer

If you're having trouble or run into any bugs with the code, post a comment here! I will try to get back to you within a few days.

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

```

Developer(+1)

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

Hello, thank you for this awesome free color picker. Everything works perfectly fine for me without  any bug. I just want to ask if it's possible to change the text 'return' at the bottom right after player selected the color to be something like 'Choose this color' etc.

I tried searching for 'return' in your code, found 15 of them and I honestly have no idea what to do to change it lol...

I saw that the last reply is from 174 days ago so, if you're busy and don't have time to reply to random question anymore it's all good too! Thank you so much again for this tool.

Developer(+1)

Hey there! No problem, I'm still very active in the Ren'Py community and so long as I'm here I'll be replying to tool questions haha. The Return text in question will be inside whichever screen you're using - the examples go in the order the screens are declared in the code. So, the first one shown is screen color_picker for example, which has a textbutton with "Return". You can modify those screens however you want; they're just made to be examples.

If you're ever not sure what piece of code is showing a particular element on your screen, you can nearly always hover over it with your mouse and hit shift+i to get a lot of information on it. It'll show you styles and such that apply and has links to where that code is in your project. 

Hope that helps! 

Thank you so much, Feniks.

I don’t know how to explain this, but basically what happened was that I deleted the 'color_picker_example.rpy'  file, but its compiled version  (.rpyc) was still there and in use. So when I was looking for 'Return'to edit, I was searching in the wrong file all along!

Sorry for wasting your time with such a noob question, lol. Thank you so much again for your time and for this amazing tool!
Oh and thank you for the shift + I tip! This is the first time I've learned about it, such a helpful feature!