Can't change EXE 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
User avatar
Dinocanid
Newbie
Posts: 7
Joined: Thu Jul 26, 2018 7:04 pm
Projects: Twilight in Dogtown
Organization: Saurus Studios
Tumblr: Dinocanid
Deviantart: HOAFan
Contact:

Can't change EXE icon

#1 Post by Dinocanid »

I've been having trouble changing the EXE icon for my game. I've searched the forums for solutions since other people have had this issue before, but none of them work for me. Oddly enough, the icon appears just fine on the game window itself and in the taskbar/dock, except the executable file still uses the default renpy icon.
This is what I have in options.rpy:

Code: Select all

define config.window_icon = "window_icon.ico"
I've tried .png as well, but it the exe icon still doesn't change. Is this just a really weird bug? I'm still using 6.99 instead of the recently released 7.0, could that be part of it?
This isn't really a huge issue right now since my game is nowhere near being close to release, but I'd still like to fix it by then.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3808
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Can't change EXE icon

#2 Post by Imperf3kt »

The window icon isn't the same as the executable icon.
See:
https://www.renpy.org/doc/html/build.html#special-files
You need a special file format called .ico and it must meet specific criteria regarding resolution. You just need to put it in your project folder (not the game folder)
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
Dinocanid
Newbie
Posts: 7
Joined: Thu Jul 26, 2018 7:04 pm
Projects: Twilight in Dogtown
Organization: Saurus Studios
Tumblr: Dinocanid
Deviantart: HOAFan
Contact:

Re: Can't change EXE icon

#3 Post by Dinocanid »

Oh ok, that wasn't clear.
What are the specifications for the icon? When I exported the ico file from gimp there were at least 5 options (like 16bit, 8bit, and so on). It's 250x250 in size if that's what you mean.

User avatar
Imperf3kt
Lemma-Class Veteran
Posts: 3808
Joined: Mon Dec 14, 2015 5:05 am
itch: Imperf3kt
Location: Your monitor
Contact:

Re: Can't change EXE icon

#4 Post by Imperf3kt »

That should work, gimp is able to output the correct format.
Warning: May contain trace amounts of gratuitous plot.
pro·gram·mer (noun) An organism capable of converting caffeine into code.

Current project: GGD Mentor

Twitter

User avatar
azureXtwilight
Megane Procrastinator
Posts: 4118
Joined: Fri Mar 28, 2008 4:54 am
Completed: Fantasia series (ROT and ROTA), Doppleganger: Dawn of The Inverted Soul, a2 (a due), Time Labyrinth
Projects: At Regime's End
Organization: Memento-Mori VNs, Team Sleepyhead
Location: Yogyakarta, Indonesia.
Contact:

Re: Can't change EXE icon

#5 Post by azureXtwilight »

Sorry for bringing this up also, here are my icon files. I have put them in the game and main folder both, and still the icon won't change. Is something wrong?
icon.rar
(512.28 KiB) Downloaded 46 times
Image

Post Reply

Who is online

Users browsing this forum: Amazon [Bot], Ocelot