Making Icons and Integrating: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Cleaned up guide, and fixed a few vital mistakes)
Line 13: Line 13:


== Making the Steam Library Icon ==
== Making the Steam Library Icon ==
*The first thing you need to do is make a sqaure 256px image.
# Create a new document with the dimensions 256x256 pixels.
*Next create your icon. (try copying the example as a placeholder)
# Create your icon.
*Copy the image, and size it down to 32px
# Save your image in a folder (For example '''"sourcemods/resource/icons_raw/"''') and call it icon_huge.
*{{key|Ctrl|S}} to Save the 32px image as a tga in '''"\steamapps\sourcemods\''MODNAME''\resource"''' as "icon.tga"
# Copy icon_huge, rename it to icon_big and scale its dimensions down to 32x32 pixels.
Next open your ''gameinfo.txt'' located in '''"sourcemods''\MODNAME"'''''
# Copy icon_big, rename it to just icon, and scale it down to 16x16 pixels.
It should look something like this:  
# Open the icon file and save it as a targa file (.tga) in the '''"sourcemods/resource/"''' folder
# Do the same with icon_big {{note|Do not do this with icon_huge}}
# Open your ''gameinfo.txt'' located in '''"sourcemods''/MODNAME/"'''''
It should look similar to this:  
<pre>
<pre>
"GameInfo"
"GameInfo"
Line 33: Line 36:
Add this underneath
Add this underneath
<pre>
<pre>
        "developer" "YOURNAME"
"icon" "resource/icon"
        "developer_url"        "YOURWEBSITE"
"icon" "resource\icon"
</pre>
</pre>
{{key|Ctrl|S}} to save, and now restart steam and your icon should appear in the library
Save and restart Steam and your icon should appear in the library


=== Breakdown ===
=== Breakdown ===
*'''developer''' is the name of you or your company's name
*'''developer_url''' is the you or your company's website, this is optional and if not entered will be replaced with '''developer'''
*'''icon''' tells Steam where the icon can be found; In this case, in the resource folder: ''resource\game'' It should default to looking for icon.tga
*'''icon''' tells Steam where the icon can be found; In this case, in the resource folder: ''resource\game'' It should default to looking for icon.tga



Revision as of 03:45, 1 August 2016

Broom icon.png
This article or section needs to be cleaned up to conform to a higher standard of quality.
For help, see the VDC Editing Help and Wikipedia cleanup process. Also, remember to check for any notes left by the tagger at this article's talk page.

Template:Otherlang2

Making an icon for your mod

Steam Library
Desktop and Enlarged

For the icon of your mod there are two places it can be displayed: In your steam library and on your desktop. (right)

To make your icon you will need either

Making the Steam Library Icon

  1. Create a new document with the dimensions 256x256 pixels.
  2. Create your icon.
  3. Save your image in a folder (For example "sourcemods/resource/icons_raw/") and call it icon_huge.
  4. Copy icon_huge, rename it to icon_big and scale its dimensions down to 32x32 pixels.
  5. Copy icon_big, rename it to just icon, and scale it down to 16x16 pixels.
  6. Open the icon file and save it as a targa file (.tga) in the "sourcemods/resource/" folder
  7. Do the same with icon_big
    Note.pngNote:Do not do this with icon_huge
  8. Open your gameinfo.txt located in "sourcemods/MODNAME/"

It should look similar to this:

"GameInfo"
{
	game	"My First HL2MP Mod"
	title	"HALF+LIFE'"
	title2	"deathmatch mod"
	type multiplayer_only
	nomodels 0
	nohimodel 1
	nocrosshair 1

Add this underneath

	"icon"			"resource/icon"

Save and restart Steam and your icon should appear in the library

Breakdown

  • icon tells Steam where the icon can be found; In this case, in the resource folder: resource\game It should default to looking for icon.tga

Making the hl2.exe Icon

Note.pngNote:This method might be obsolete, please edit if the isn't the correct method
Note.pngNote:You may need to restart your computer to be able to make the icon visible on your desktop
  • Take your 256px icon and save it as an interlaced .png
  • Find a .ico converting website and make convert the .png to .ico
  • Download and save the .ico in "\steamapps\sourcemods\MODNAME\resource" as "game.ico"

Now you can RMB the mod in your steam library and create a desktop shortcut