source1import icon indicating copy to clipboard operation
source1import copied to clipboard

Fails if vmt has russian comments

Open CokeB3ar opened this issue 2 years ago • 3 comments

if a vmt contains comments in russian, or possibly any other non latin character, it fails

CokeB3ar avatar Jul 24 '23 14:07 CokeB3ar

Post one of the vmt contents here if you can

kristiker avatar Jul 24 '23 14:07 kristiker

"FurSimple" { "$pixelMode" 1 // ñ÷èòàòü âûñîòó è ïð. ïîïèñêåëüíî

// òåêñòóðû öâåòà
"$basetexture" "models/characters/cat/cat_01"

// òåêñòóðà ãóñòîòû ìåõà è êîëè÷åñòâî åå ïîâòîðåíèé
"$noiseTexture" "models/Weapons/Wolwerine/badger_fur_noise.vtf"
"$noiseScale"   12

// òåêñòóðà äëèíû ìåõà è ìàêñèìàëüíàÿ äëèíà
"$lengthTexture" "models/characters/cat/cat_Fur_Lenght"  
"$lengthScale"   0.8

// "$uvOffsetTexture" "models/Weapons/Wolwerine/badger_fur_uvoffset" // "$uvOffsetScale" 0.1 // "$uvOffsetMode" 1

"$numShells" 12        // êîëè÷åñòâî ñëîåâ (ïåðâûé ñëîé ðèñóåòñÿ áåç àëüôû)	

"$startColor" "[1 1 1 1]"          // àëüôà íèæíåãî ñëîÿ
"$endColor"   "[1 1 0.8 0.2]"        // àëüôà âåðõíåãî ñëîÿ
"$alphaTestGt" 0.1     // ïèêñåëè ñ ìåíüøåé aëüôîé îòáðàñûâàþòñÿ

"$noÑull" 1            // ðèñîâàòü äâóñòîðîííèì
"$writeZ" 1            // z-write ñëîåâ (z-test âñåãäà âêëþ÷åí)

"$lightScale" 0.8

}

#base "materials/models/burned_flesh.vmt"

CokeB3ar avatar Jul 25 '23 23:07 CokeB3ar

I convert bad VMT's like these to UTF-8 and that seems to allow the script to process it.

byteframe avatar Feb 05 '24 18:02 byteframe