Source SDK

Source SDK

Epifire Feb 8, 2015 @ 5:59pm
Animated Texture Not Playing
Alright so I've been recently trying to get a really sophisticated server light effect on a new static prop of mine. Basically went and created a custom light flicker gif in Ps that was timed to the sounds of a working harddrive loop I was gonna implement separately. It's supposed to to play on the blank spots in the server blocks that you see are dark in this shot...

http://cloud-4.steamusercontent.com/ugc/39740407690819735/A43C351C11CFF1916DB8A1ECD53E10980919F7DE/

It just stays at the base (almost totally black) starting frame. The vtf plays fine in VTFedit, but the odd thing that makes me think it's a vmt issue, is I get this in my compile report when compiling the model.

-----------------------------------

"WARNING: KeyValues Error: RecursiveLoadFromBuffer: got } in key in file materia
ls/models/props_greebleport/hdd_lights_001.vmt
WARNING: VertexlitGeneric, WARNING: Proxies, WARNING: AnimatedTexture, WARNING:

WARNING: KeyValues Error: RecursiveLoadFromBuffer: got } in key in file materia
ls/models/props_greebleport/hdd_lights_001.vmt
WARNING: VertexlitGeneric, WARNING: Proxies, WARNING: AnimatedTexture, WARNING:"


-----------------------------------

Now since I hadn't seen a tutorial/guide on the internet that specified a VertexlitGeneric shader for this effect I thought it might have been something wrong with trying to use it on a model. Tried it on a test level with the LightmappedGeneric applied and switched it over to fullbright 1 just to make sure it wasn't the lighting, but still the same problem...

http://cloud-4.steamusercontent.com/ugc/39740407690819624/D6E90E6F92B0902F7704C6FA20BE81B189A18FDA/

I've tried with .bmp and .tga (32 with no RLE) for the BSP version with no effect. So with little else left to say, here's my VMT for the model...

-----------------------------------

VertexlitGeneric
{
$basetexture models/props_greebleport/hdd_lights_001
$surfaceprop plastic
Proxies
{
AnimatedTexture
{
animatedTextureVar $basetexture models/props_greebleport/hdd_lights_001
animatedTextureFrameNumVar $frame
animatedTextureFrameRate 30
}
}
}

----------------------------------
< >
Showing 1-4 of 4 comments
Rectus Feb 9, 2015 @ 12:57am 
Remove the texture file name from the animatedTextureVar line. The proxy only needs to know that it's supposed to modify the $basetexture, so it doesn't need the file name.
Epifire Feb 9, 2015 @ 2:47pm 
Yeah it's doing the same thing still though (nice to know it doesn't need the extra line). Though something else is that in-game my console gives me this about the world texture as well as the one for the static model...

-----------------------------------

Error: Material "custom/hdd_lights_001" : proxy "AnimatedTexture" unable to initialize!
Error: Material "models/props_greebleport/hdd_lights_001" : proxy "AnimatedTexture" unable to initialize!
'
I feel like what ever is stopping it from running the proxy has something to do within the VMT but I have no idea what it could be.
Rectus Feb 10, 2015 @ 12:44am 
That's odd. Apart from the file name, it looks like it's supposed to.

You have it set up like this, right?
VertexlitGeneric { $basetexture models/props_greebleport/hdd_lights_001 $surfaceprop plastic Proxies { AnimatedTexture { animatedTextureVar $basetexture animatedTextureFrameNumVar $frame animatedTextureFrameRate 30 } } }
Epifire Feb 12, 2015 @ 6:35pm 
Oh I had removed the full animatedTextureVar line thinking that's what you meant. Aparently the additional path is what was screwing it up, cause it works really good now.

Thanks a bunch for the support!
< >
Showing 1-4 of 4 comments
Per page: 1530 50