Marine Bot banner

How to add icon & version number for Firearms in Steam Library

Firearms in Steam Library

Firearms is really old mod for Half-Life 1. We all are aware of that. The Steam appeared much later. I can't say for sure, but that might be the reason why Firearms is missing a few things when you look at the Steam Library. Unlike Firearms the Steam is still being developed. And that's a great thing, because I won't hide that I didn't really like Steam when it first came out. Well I wasn't alone in that. Many gamers and/or mod developers of that time shared the same opinion about the Steam. However Steam developed into pretty nice tool. The cool thing about Steam is that it still allows users use some techniques that were possible on the previous WON system. I'm talking about possibility of having several versions of the same mod available at the same time. Back in the days when Marine Bot was at its active development I used to have Half-Life folder full of various Firearms versions. Basically from 2.4 up to the latest one. In WON times this was a simple task since you started the game via a shortcut on your desktop. So all you had to do was renaming the Firearms folders so that you always knew which one is which. Then you only tweaked the shortcut to match the folder name and you've been ready to go game. Also Marine Bot is created so that custom folder name doesn't cause any issues. But Steam Library handles multiple versions of the same mod in a little different way. Also it won't use the icons that are inside Firearms folder. But both issues have a solution.

If one Firearm(s) is not enough :)

Following picture shows my Steam Half-Life folder and Library (in 'Small Mode' view) on my main laptop where I do majority of Marine Bot development. You can see that I have two Firearms versions installed. Those are 2.5 and the latest 3.0. Also the Steam Library shows a neat icons next to both Firearms mods. As I mentioned in previous chapter I'm using the old trick with custom folder name to clearly recognise them inside Steam Half-Life folder. However that works only for me. Steam Library totally ignores such thing. Not for long though.
steam library showing 2 firearms versions

The mighty 'liblist.gam' file

Okay I'll move over to the old laptop running Ubuntu 20.04 LTS, because I don't want to purposely mess up the Steam and Firearms on my main laptop only to make couple screenshots. Also I wasn't bothered to modify the Steam Library for Firearms there until now. So I can use it now and make the screenshots to show what needs to be done. Yeah the whole magic is again on our old friend the mighty 'liblist.gam' file. Actually it's pretty clever to use that file, because each Half-Life mod needs it. Without that file the mods like Firearms, classic Day of Defeat, classic Natural Selection etc. wouldn't work. As you can see on following picture changing the name that will Steam Library show for Firearms is pretty easy. So if you want to run two or more Firearms versions then just add the version number to the 'game' string in the apropriate 'liblist.gam' file in order to clearly differ them on the list of available games in the Steam Library. Don't forget to save the 'liblist.gam' file. Also you will have to quit Steam and start it again to see the change. Else it will keep showing the original name. So to sum it up:

  1. Open the appropriate 'liblist.gam' for editing
  2. Change the 'game' string to your liking
  3. Save 'liblist.gam'
  4. Restart Steam

changing mod name in steam library through editing liblist.gam file

Let's add the neat icon

Adding the icon won't be that easy. Well adding it to the Steam Library is easy, because you will just add a new line to the 'liblist.gam' file. But you will have to prepare the icon first. And that isn't that simple due to some restrictions Steam Library has. Let's start with the icon creation. Steam Library won't accept the icons that come with Firearms. There are two requirements for the icon to work in Steam Library. Here they are:

  1. the icon must be a TGA (a.k.a. Truevision Targa) file format
  2. its dimensions must be 16 x 16 pixels

So you will need any image editing software that can convert .ico to .tga. On Windows I'm using Paint.NET (link) that is free and easy to use. On the Ubuntu laptop I used ImageMagick (link) that's probably a part of the software bundle, because I never manually installed it :). Either way what I did was that I opened 'falogo2.ico' inside Firearms folder, resized it to 16x16 and then saved it with a filename 'fa.tga'. By the way if you wanted to use the 'fa16.ico' then you would just save it as a TGA file, because that icon dimensions already are 16x16 pixels. Okay the icon for Steam Library is prepared. Next step is opening the 'liblist.gam' file for editing and adding a new line that reads: icon "filename of the Steam Library icon without the extension". So in my case I added this: icon "fa", because the filename of the icon for the Steam Library I prepared was 'fa.tga'. Don't forget to use the double quotes. As you can see on the following picture 'liblist.gam' file uses a syntax with keyword followed by a space and then follows the value enclosed in double quotes. You can see that pretty well on that picture. If I took that screenshot on my Windows laptop then notepad wouldn't show the syntax that well. Oh and restart Steam to see the changes.

Okay to recap this chapter:

  1. Make sure you have an image editor that can work with both .ico as well as .tga file formats
  2. Pick the icon in Firearms folder you like and open it in your image editor
  3. Resize it to 16x16 pixels (unless it already has that dimensions)
  4. Save it as .tga file format (e.g. 'fa.tga')
  5. Open the 'liblist.gam' for editing
  6. Add the following text as a new line (assuming you named the new icon file a 'fa.tga'): icon "fa"
  7. Save 'liblist.gam'
  8. Restart Steam

adding mod icon in steam library through editing liblist.gam file

Do you want to know more?

Following link will get you to Marine Bot homepage where you can find more guides like this one.

by Frank McNeil 2005-2022


end of file