Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fails if vmt has russian comments #61

Open
CokeB3ar opened this issue Jul 24, 2023 · 3 comments
Open

Fails if vmt has russian comments #61

CokeB3ar opened this issue Jul 24, 2023 · 3 comments

Comments

@CokeB3ar
Copy link

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

@kristiker
Copy link
Owner

Post one of the vmt contents here if you can

@CokeB3ar
Copy link
Author

"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"

@byteframe
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants