Help with vmt files


SilentSteps
03-25-2006, 09:11 AM
I've been doing some small edits of the default v_k98_scoped for personal use. Just darkening up the wood. I am aware of the reflection on the scope. When I try to edit the vmt file of the default, it says:

Error parsing material on line 6 (expected newline).

At the moment, I'm using vtfedit, and can't edit any reflections. Got any suggestions?

Trp. Jed
03-25-2006, 09:17 AM
Post your VMT?

SilentSteps
03-25-2006, 09:34 AM
Originally posted by Trp. Jed
Post your VMT?

That's the problem, I can't even access it. It comes up with the error. And this is the default vmt file.

Maybe I shouldn't have posted yet... I'll try to learn a bit more, and post back if I run into the same problem.

PR0PEN
03-25-2006, 10:05 AM
You cant access by notepad?:confused:

SilentSteps
03-25-2006, 10:03 PM
Woops, forgot that notepad is a very versatile tool. :rolleyes: Sorry about that.

"VertexLitGeneric"
{
"$baseTexture" "models\weapons\v_models\k98_scoped\v_k98_scoped"
"$envmap" "env_cubemap"
"$basealphaenvmapmask" 1
"$envmapsaturation" .3 .8 .1
"$model" 1
}

Trp. Jed
03-26-2006, 05:30 AM
Stupid question, have you actually hit return after the last "}" ?

I guess it shouldn't technically matter but it depends on the parsing routine that Source/VTFEdit is using. Sometimes they specifically look for a newline (\n) after a character when reading lines from a file and if it's missing, it may fail to spot the end of the curly brace pair and fall over, thinking that the file is incomplete.

SilentSteps
03-26-2006, 09:52 AM
Hey guys, I made the stupid mistake. I could have used notepad to edit things, but I automatically assumed that things were wrong because it didn't open in vtfedit. And the reason is because of the missing quotation marks around the values. :p

Day of Defeat Forum Archive created by Neil Jedrzejewski.

This in an partial archive of the old Day of Defeat forums orignally hosted by Valve Software LLC.
Material has been archived for the purpose of creating a knowledge base from messages posted between 2003 and 2008.