Raised This Month: $51 Target: $400
 12% 

Solved [TF2] CMaterial::PrecacheVars: error loading vmt file for sprites/flare6


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 06-15-2019 , 03:32   [TF2] CMaterial::PrecacheVars: error loading vmt file for sprites/flare6
Reply With Quote #1

This problem similar to https://forums.alliedmods.net/showthread.php?t=212651

While trying to use env_funnel, I had to copy the flare6 sprite over from hl2mp as TF2 was missing it.

However, the texture only works when the server first boots up, after a map change, it stops working.

In the console I receive the following:

Code:
CMaterial::PrecacheVars: error loading vmt file for sprites/flare6
This is my code for precaching it.

PHP Code:
public void OnMapStart() {
    
AddFileToDownloadsTable("materials/sprites/flare6.vmt");
    
AddFileToDownloadsTable("materials/sprites/flare6.vtf");

    
PrecacheModel("materials/sprites/flare6.vmt"true);


Last edited by RumbleFrog; 06-15-2019 at 23:10.
RumbleFrog is offline
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 06-15-2019 , 23:17   Re: [TF2] CMaterial::PrecacheVars: error loading vmt file for sprites/flare6
Reply With Quote #2

Solved, it appears to be the sv_pure value that was causing the problem. Duh.

Added the assets to the whitelist and seems to be working now.

Derp!
RumbleFrog is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 12:29.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode