How to change the icon

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
yvanc
Regular
Posts: 53
Joined: Tue Feb 20, 2007 9:14 am
Location: Japan
Contact:

How to change the icon

#1 Post by yvanc »

Hello,

How do we change the icon on the upper left corner of the window?

Tried using XN Resource editor and successfully changed the icon for the exe but when running the application the upper left icon is still using the default icon.

Any idea how to do this?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

Re: How to change the icon

#2 Post by PyTom »

yvanc wrote:Hello,

How do we change the icon on the upper left corner of the window?

Tried using XN Resource editor and successfully changed the icon for the exe but when running the application the upper left icon is still using the default icon.

Any idea how to do this?
Set config.window_icon to be an image file (like a png). Transparency is sort of broken, so it's best if you go with a solid file.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

monele
Lemma-Class Veteran
Posts: 4101
Joined: Sat Oct 08, 2005 7:57 am
Location: France
Contact:

#3 Post by monele »

I've had a lot of problems when trying this for MagBou. It wasn't even transparent ^^;... Just... keep trying... :/

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

#4 Post by DaFool »

Just confirming that to change the exe icon, you have to change the external renpy one before building the distributions.

Because before I changed the Windows exe, but I was wondering how you change the Mac and Linux icons, but apparantely that was how you do it.

Correct?

User avatar
PyTom
Ren'Py Creator
Posts: 16096
Joined: Mon Feb 02, 2004 10:58 am
Completed: Moonlight Walks
Projects: Ren'Py
IRC Nick: renpytom
Github: renpytom
itch: renpytom
Location: Kings Park, NY
Contact:

#5 Post by PyTom »

To change the mac icon, you need to go into the renpy.app directory and replace the .icns file somewhere under there. Note that this is a different format from the windows .ico file... you need a tool that makes .icns files, and I don't know of any tool that does that on windows.

The linux distro doesn't have icons.
Supporting creators since 2004
(When was the last time you backed up your game?)
"Do good work." - Virgil Ivan "Gus" Grissom
Software > Drama • https://www.patreon.com/renpytom

Candle
Regular
Posts: 34
Joined: Thu Mar 08, 2007 1:46 pm
Contact:

#6 Post by Candle »

Axialis IconWorkshop™ does it in windows to Mac icns .
Administrator @ Adventure Maker

User avatar
DaFool
Lemma-Class Veteran
Posts: 4171
Joined: Tue Aug 01, 2006 12:39 pm
Contact:

Re: How to change the icon

#7 Post by DaFool »

I'm trying to change an exe again with XN Resource Editor, and it doesn't seem to work right. Instead, sometimes other applications change their icons (for example, videos become marked as PSD files, and vice versa.) Refreshing does the trick, but still...

I think I've done this before, but what could be going wrong here?

Also, if someone can post a step-by-step screenshot of how to change exe correctly, that would be appreciated. Thanks.

Jake
Support Hero
Posts: 3826
Joined: Sat Jun 17, 2006 7:28 pm
Contact:

Re: How to change the icon

#8 Post by Jake »

DaFool wrote:Instead, sometimes other applications change their icons (for example, videos become marked as PSD files, and vice versa.) Refreshing does the trick, but still...

I think I've done this before, but what could be going wrong here?
The short answer is "Windows".

It gets confused sometimes. I wouldn't have thought that it was an incredibly difficult thing to get right, but apparently it is. On the plus side, I've not seen Vista do this yet...
Server error: user 'Jake' not found

Guest

Re: How to change the icon

#9 Post by Guest »

DaFool wrote:I think I've done this before, but what could be going wrong here?
That's the shell icon cache interfering. You can refresh the cache using TweakUI (aka "Power Toys for Windows XP"): http://www.microsoft.com/windowsxp/down ... rtoys.mspx

For a quick and dirty check, drag the exe somewhere it hasn't been before (Desktop), then the correct icon should show.

Twar3Draconis
Regular
Posts: 129
Joined: Thu Apr 19, 2007 12:07 am
Location: Michigan, United States, Terra
Contact:

Re: How to change the icon

#10 Post by Twar3Draconis »

If it helps, I found a free .icns converter for Windows. I'm going to be using this one as well.

Here's the link: http://web.comhem.se/larsmelander/iconwiz/
Image

Post Reply

Who is online

Users browsing this forum: No registered users