howto make a sprite


(germaike) #1

hi,

i’m editing the vsay-sound pack on our clan server. I wanted to add a sprite to de vsay-custom sounds. No, i made already a sprite in photoshop and added it to the pack but when i try it, it gives a white square. What am i doing wrong. is their some sort of tutorial or sticky for it?

do i just add sprites/smp.tga behind the sound-path or are their other changes to be made?

link to my sprite : sprite


(Ragnar_40k) #2

The icon has to be stored in tga-format, you need to add a shader for the icon and additionally all files have to be in the correct subfolders. A while ago I made a little expample file, which shows which files you have to change: http://www.c-x-r.net/X_FitH.zip

The .pk3 adds 2 new Icons and one new quick chat.


(germaike) #3

ok, i allready did that, but the problem is that it didn’t work. it gave a white square above the player?? :lol:

i’ll post you my .pk file so you can see what went wrong cause i don’t see it anymore. its all blurred by starring at it for houres.

perhaps i saved the tga wrong? what are the spec’s. like how many bits : 16 , 8 ??

http:/users.pandora.be/germaike/smpsounds.pk3


(nUllSkillZ) #4

The TGA has to be 24 bit and must have an alpha channel (I think that’s missing).

Edit:

TGA looks fine (actually only opened it in gimp with no problems and alpha seems OK).
Shader looks fine.

My guess:
You are using colors in the chats.

For example:


06HAHA

{

	sound/smp/fun/hahaha.wav	"^7|^1SMP^7|>>WHAHAHAHA!" sprites/smpsay

	sound/smp/fun/haha3.wav		"^7|^1SMP^7|>>HAHA!" sprites/smpsay

}

That might be the problem.
You should try without colors.


(jaybird) #5

The TGA must be 32-bit in order to preserve the alpha channel.


(Ragnar_40k) #6

I guess the smssounds.shader file is not loaded. Try to add your shader to the file sprites.shader from W:ET and see if it helps.

Color codes inside a string shouldn’t pose a problem.


(germaike) #7

i saved it with 32bit and added it all in my pak0.pk3 to host it on my localhost

AND IT WORKED

thx you all guys :clap: