Thumbnail Issues

Posted Feb 24, 2011

My first map is done, but I can not figure out why I can not get the thumbnail to work.

This is what it looks like ATM.

http://img835.imageshack.us/img835/8407/badicon.png

Does it mean it can't find the file (I'm sure I pointed to the image correctly) or the image is somehow incorrect in it's formatting?

Advertisement
Registered users don’t see ads! Register now!
Posted Feb 24, 2011
Replied 3 minutes later
It would be best if you go back and double check.

Like really..........don't just say you did. ;D

Posted Feb 24, 2011
Replied 12 minutes later
According to the way I think it works, I have it right, but I'm probably wrong.

In the BNS file I have...

"Arch Map 01"
{
"map" "./archmap_01"
"lock" "0"
"image" "archmap_01"
}

And the image in question is...

...\portal\portal\materials\vgui\archmap_01.vtf

Avatar
806 Posts
Posted Feb 24, 2011
Replied 10 hours later
You need to add a "Valve Material Type" file. This is a text file with a name ending in ".vmt".
(In your case: "...\portal\portal\materials\vgui\archmap_01.vmt".)

Put the following text in it:

"UnlitGeneric"
{
   "$baseTexture" "vgui/archmap_01"
   "$vertexalpha" 1
}

(Look at the VMT page on the Valve developer wiki for more info.)

Posted Feb 24, 2011
Replied 4 hours later
Thanks HMW! It works now! :)
Advertisement
Registered users don’t see ads! Register now!
Posted Feb 24, 2011
Replied 16 minutes later
you could also specify the image in the bns (like "./mapicon.tga" for example) as long as it is included in the same folder. Quick note on that, the image needs to be 256 x 64 but the only part that is displayed is a 180 x 100 area.