Page 1 of 2

Icon is stuck as the default Ren'py icon. How do I fix this?

Posted: Sat Mar 26, 2016 1:46 am
by username123
This is for a windows distribution. I have a converted 48x48 icon.ico file, and the line in options.rpy is:

config.window_icon = "icon.ico"

I've also tried referencing a 256x256 .png, a 48x48.png, and a 256x256 .ico file and none of those worked. I made sure I converted .png to .ico using a program, and not just changing the file extension name.

The icon is in the main folder (the folder one up from the game folder). The application icon is still the default ren'py icon, and this is the case on the desktop when I test the installer. I have tried restarting my computer after testing incase it is a windows cache issue. It is still the default logo. I am wanting to change it so that the application icon is the correct one for the game.

I was trying to find where the default ren'py icon is stored so I could just switch that out, but I wasn't even able to find it in the folders. It's so mysterious. :?

I tried looking it up on the forums but this was the most relevant that I found http://lemmasoft.renai.us/forums/viewto ... =8&t=16953 . However, it is from 2012 and I tried following it but it didn't help. I am so lost. :(

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 3:00 am
by vollschauer
Here are the doc's : https://www.renpy.org/doc/html/config.html

Put the icon.png to your image folder...

Code: Select all

config.windows_icon = "icon.png" # This should be a PNG format file.
Put the icon.ico & icon.icns (for mac) to your game root folder (where the README.html is ...)

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 3:54 am
by username123
I've changed that and it still is not working (I restarted my computer too). I have the folder with a lot of the images with a different name, so I tried created an images folder for that too.

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 4:33 am
by MimirollCookie
Try.... Deleting your Ren'Py then reinstall again.
To me, it works every time.

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 5:36 am
by username123
That didn't work.

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 6:44 am
by Zetsubou
vollschauer wrote: Put the icon.png to your image folder...

Code: Select all

config.windows_icon = "icon.png" # This should be a PNG format file.
If you're putting icon.png in your images folder, it should be

Code: Select all

config.windows_icon = "icon"
instead, as the automatic image definition will strip the extension.

Using automatic image definitions for config variables might run you into trouble with the order of init tasks though, so I'd suggest putting icon.png in your game folder, then using the aforementioned

Code: Select all

config.windows_icon = "icon.png"
line.

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sat Mar 26, 2016 9:11 am
by MimirollCookie
Oh. Sorry if I wasted your time. ;_;

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sun Mar 27, 2016 8:11 am
by username123
I appreciate you trying to help. <3

Edit: Does anyone know where the Ren'py icon is so I can just switch that out? It's weird that I can't even find the image. The other stuff didn't work.

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Sun Mar 27, 2016 4:47 pm
by alex.theoto
Strange. It works for me.

Code: Select all

    config.window_icon="t0274679.png"
In both game and image folders.
It works even with .jpg format...

Is your image damaged? Can you verify this? Open it with some image editor and see check if the editor report any glitch on the image

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Wed Mar 30, 2016 1:06 pm
by vollschauer
The funny thing: I have checked this under ubuntu linux and have to say that there is just a "question mark" in the unity launcher instead of the icon.png

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Wed Mar 30, 2016 1:14 pm
by alex.theoto
Can you test with another image?

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Wed Mar 30, 2016 1:18 pm
by vollschauer
I have seen it once working.... lets start it 20 times and 1 time you can see the launcher icon
could that be timing / init problem?

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Wed Mar 30, 2016 1:27 pm
by alex.theoto
Can you redownload renpy? Just in case...

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Thu Mar 31, 2016 5:46 am
by korova
vollschauer wrote:I have seen it once working.... lets start it 20 times and 1 time you can see the launcher icon
could that be timing / init problem?
I've got the same kind of "problem" with Debian linux.

When I'm developping my games, the icon I coded appears on a random basis in my dock. So sometimes I have it, and sometimes I have a question mark icon.
It doesn't happen with de definitive builds though.

I just leave it be, and don't worry about it...

Re: Icon is stuck as the default Ren'py icon. How do I fix t

Posted: Thu Mar 31, 2016 6:07 am
by vollschauer
Well I got this on my final build. And actually I wanted to release it yesterday/today .... :/
It's just a cosmetic thing but I don't like to know there is something wrong.