Game Development Community

Changing the executable icon. How?

by Peter Medina · in Torque Game Builder · 01/26/2007 (4:00 pm) · 2 replies

Hello,

I own the TGB Indie Pro license, and have recently completed my first game with it. However when I build the game I would like to have my own icon representing the .exe, as opposed to the standard TGB icon. I searched this site looking for some resources that would help me, but I only found a couple old ones. First one and Second One .

How can I change it? I downloaded Visual C++ 2005 Express Edition but my lack of any programming knowledge left me stumped. What I tried doing was replacing the TGB.ico file in the Engine/Compilers/VisualStudio.net folder with my custom icon, then I opened T2D SDK in VC2005 and rebuilt it, but that didn't change anything.

Anyways, I hope I explained this help request clearly enough. I'd appreciate any help I can get.

Thanks,

-Pete

#1
01/30/2007 (6:17 pm)
You almost had it. You changed the .ico file in the VisualStudio.net folder, but that's for the .net 2003 project. Change it in the VisualStudio 2005 folder instead. Alternatively, if you don't want to overwrite the default icon, you could open up VisualStudio 2005/T2D SDK.rc and change the line that looks like:

IDI_ICON1               ICON    DISCARDABLE     "t2d.ico"

so that the last parameter is the file name for your icon file. Remember to build the project again after making either of these changes.
#2
01/31/2007 (9:52 pm)
Thanks Richard, I knew it had something to do with the .rc, but I couldn't figure out how to get VisualStudio 2005 go open it. I found some other .rc editor and it worked, just as you said.