This is a split board - You can return to the Split List for other boards.

How do you get an animated GIF spray?

#1sharkmanv3Posted 10/27/2009 6:43:32 AM
Is it as simple as just setting the file, or do you have to convert files or something?
---
Gigabyte GA-MA770-UD3 | AMD Phenom 9600 Quad-Core 2.3 GHz | GSkill 4GB 800 MHz | Sapphire ATI Radeon HD 4670 | Seagate 500GB HDD
#2195431Posted 10/27/2009 10:32:46 AM
tagged for interest.
---
I have posted in this topic, it is now officially dead.
#3arleasPosted 10/27/2009 10:48:37 AM
Step 1: find your animated gif OR sequence of images
Step 1a: if you have an animated gif, you can separate it into individual frames with irfanview
Step 1b: once you have the series of frames, change them all into tga or bmp format and preferably resize it to a power of 2 (256x256 or 128x128 or whatever) which can also be done with irfanview or the gimp

Step 2: load up vtfedit
Step 2a: ctrll+ i for import, and then select all the frames in your animation. Keep in mind that filesize must be below 120k so either you're going to have a long and crappy looking animation or a short but crisp animation.
Step 2b: make sure it says "animated texture". You may have to play with the other options (resize etc).
Step 2c: press play to see what your animation will look like. It will run MUCH faster than it will in game. Expect 100ms per frame in game.

Step 3: select save (Ctrl+S) or Save as (ctrl+Shift+S) and give it a name to save the vtf file
Step 4: if you didn't have it set to automatically create the vmt file, then you'll need to click on the tools menu and select "create vmt file"

Step 5: copy both of these files to the appropriate directory for the game you want to use your spray in, or use the "import spray" function in game to import it.

The main rules are: size must be in a power of 2, like 64x128 or 128x128, or 256x256. 256 is the highest either side can be. Filesize must be below 120K, and each frame will add to the filesize substantially.

Make sure to test your spray because vtfedit may save the file with no complaints and then you'll discover that your spray doesn't work for whatever reason, OR if you used different sizes for height and width you may find that your picture looks distorted. In general, it's better to work with a 256x256 spray with an alpha channel for the parts you don't want than to try to make a funky 32x256 spray or something.

If none of this made sense to you, try Google :P It probably won't make any sense to you there either but at least you won't be complaining to me about it. :P

---
http://miniprofile.xfire.com/arleas.png
http://www.tf2newbs.com/hlstatsx/sig-31453-random.png
#4HyperRyunPosted 10/27/2009 11:03:45 AM
tag

---
If you're reading this, you just lost the game.
If you are upset about losing the game, I suggest you calm yourself by having a nice, cool, refreshing the game
#5gejsivPosted 10/27/2009 11:14:38 AM
For a 256x156, expect aroudn 3-6 frames fo animation. For 128x128, expect around 12-24. For 64x64, you'll get 30+. This is using .tga, I don't use .bmp so I can't advise there.

If you give the source file (and wait till I get home tonight) I can better advise you on it. You can also look through FPSBanana, they have tutorials and examples for most of the steam games (it's the same process from game to game, though counter-strike has more examples and more detailed guides).

Other than that, Arleas pretty much nailed it.
---
-gejsiv- :/
#6sharkmanv3(Topic Creator)Posted 10/27/2009 4:56:29 PM
Thanks guys! I found a YouTube video on this, using two programs: VTFEdit and Ulead GIF Animator 5, which costs money so I'm doing the 15-day free trial.

I tried to make one out of that dancing otter gif,but it first had too big a file size, and then I made one way too small (had it at 32x44, it was only 6 kb, lol), but I tried using it anyway to see if it would work, and I tried uploading it, but it never got on. I uploaded it, joined a server, nothing. I tried uploading it in-game, nothing. Disconnect, reconnect, nothing. I think maybe because the size was 32x44, or it was too small.

Any more help is greatly appreciated. The orginal size of the GIF is 256 KB, and is either 8 or 9 frames.
---
Gigabyte GA-MA770-UD3 | AMD Phenom 9600 Quad-Core 2.3 GHz | GSkill 4GB 800 MHz | Sapphire ATI Radeon HD 4670 | Seagate 500GB HDD
#7diamond weaponPosted 10/27/2009 5:03:00 PM
I only ever get a maximum of 7 frames at 128x128 (112kb). Also, download the GIMP instead of using some random gif program. If you're serious about making sprays, you'll want a full-featured image editor.
---
I'd like to shake the hand of whoever marked this topic for "other: beating a dead horse" ~ Cheradenine
#8sharkmanv3(Topic Creator)Posted 10/27/2009 6:19:45 PM
What's the GIMP?

Also, I got the image down to 86.something KB, 128x128, and by going Option>Multiplayer, doing the upload, nothing happens. I don't get an error message or anything. I think my uploader may be buggy because I'm using a beta of Win7. Everything else works fine though.
---
Gigabyte GA-MA770-UD3 | AMD Phenom 9600 Quad-Core 2.3 GHz | GSkill 4GB 800 MHz | Sapphire ATI Radeon HD 4670 | Seagate 500GB HDD
#9gejsivPosted 10/27/2009 7:02:00 PM
Gimp is a graphics editor. Like photoshop, but free.

It has to be in a square of 2 or it won't work. 32x44 is bad, but 32x32 would work, as would 64x64 if you wanted to make it bigger instead of smaller.
---
-gejsiv- :/
#10sharkmanv3(Topic Creator)Posted 10/28/2009 7:07:10 AM
It has to be in a square of 2 or it won't work

That's why I put it in 128x128, but nothing comes up when I upload. No error screens or anything. Anyone else ever experience this, when the uploader is unresponsive? The window to pick the file comes up, I select the file and click upload, but then nothing happens, even after I join a server.
---
Gigabyte GA-MA770-UD3 | AMD Phenom 9600 Quad-Core 2.3 GHz | GSkill 4GB 800 MHz | Sapphire ATI Radeon HD 4670 | Seagate 500GB HDD