Design Tools > Other Utilities

Material Library Generator

<< < (3/6) > >>

CarbonCopyCat:
I debugged, and the VMT that was choking it was one named "replacements.vmt", which was present in almost every folder. It didn't seem to be linked to a VTF, so I inspected it and it was something to do with pyrovision in TF2 (as far as I could tell). Deleting all instances of it seems to solve the problem. I'm getting some "no VMTs found" in some folders, but I'll check if they do have VMTs (and if so, if those folders are necessary) later. Thanks for the help so far.

wallworm:
Can you post the contents of this file?

CarbonCopyCat:
The contents differ from what folder it's in, as it seems it's a thing for replacing textures. My guess is that each one corresponds to the files in each folder.

Here's one from the "signs" folder:

--- Code: ---replacements
{
templates
{
sign001
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign001_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_spiral
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign002_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_square
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign003_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_triangle
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign004_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_strip2to1
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign005_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_letterx
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign006_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_hash2to1
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign007_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_mmphblu
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "overlays/patch007"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
sign_mmphred
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "overlays/patch007"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
arrow2way
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign010_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
arrowrt
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign011_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
arrowlf
{
"LightmappedGeneric"
{
pyro_vision
{
$basetexture "signs/sign012_pyro"
$vertexcolor $vertexcolor
$decal $decal
$translucent $translucent
$vertexalpha $vertexalpha

$EFFECT 1
}
}
}
}


patterns
{
sign019
{
template "sign001"
}
sign039
{
template "sign001"
}
sign097
{
template "sign_spiral"
}
sign023
{
template "sign_spiral"
}
signwall_blue001
{
template "sign_square"
}
sign126
{
template "sign_strip2to1"
}
blu_warehouse
{
template "sign_strip2to1"
}
red_barn
{
template "sign_strip2to1"
}
sign140
{
template "sign_strip2to1"
}
sign009
{
template "sign_strip2to1"
}
signwall_001
{
template "sign_strip2to1"
}
signwall_002
{
template "sign_strip2to1"
}
number_
{
template "sign_letterx"
}
sign099
{
template "sign_letterx"
}
sign100
{
template "sign_letterx"
}
sign101
{
template "sign_letterx"
}
sign102
{
template "sign_letterx"
}
sign103
{
template "sign_letterx"
}
sign104
{
template "sign_letterx"
}
sign028
{
template "sign_hash2to1"
}
sign125
{
template "sign_hash2to1"
}
sign113
{
template "sign_hash2to1"
}
sign008
{
template "sign_hash2to1"
}
sign121
{
template "sign_hash2to1"
}
//
thelcs
{
template "sign_mmphred"
}
sign001
{
template "sign_mmphred"
}
sign002
{
template "sign_mmphred"
}
sign003
{
template "sign_mmphred"
}
sign004
{
template "sign_mmphblu"
}
sign005
{
template "sign_mmphred"
}
sign006
{
template "sign_mmphred"
}
sign007
{
template "sign_mmphblu"
}
sign011
{
template "sign_mmphred"
}
sign012
{
template "sign_mmphred"
}
sign013
{
template "sign_mmphred"
}
sign014
{
template "sign_mmphred"
}
sign014
{
template "sign_mmphred"
}
sign016
{
template "sign_mmphblu"
}
sign018
{
template "sign_mmphblu"
}
sign020
{
template "sign_mmphred"
}
sign021
{
template "sign_mmphred"
}
sign022
{
template "sign_mmphred"
}
sd_sign001
{
template "sign_mmphblu"
}
sign033
{
template "sign_mmphred"
}
sign034
{
template "sign_mmphred"
}
sign035
{
template "sign_mmphred"
}
sign038
{
template "sign_mmphred"
}
sign040
{
template "sign_mmphblu"
}
sign041
{
template "sign_mmphblu"
}
sign042
{
template "sign_mmphblu"
}
sign043
{
template "sign_mmphblu"
}
sign044
{
template "sign_mmphblu"
}
sign053
{
template "sign_mmphblu"
}
sign054
{
template "sign_mmphblu"
}
sign055
{
template "sign_mmphred"
}
sign056
{
template "sign_mmphred"
}
sign057
{
template "sign_mmphblu"
}
sign058
{
template "sign_mmphred"
}
sign059
{
template "sign_mmphred"
}
sign060
{
template "sign_mmphblu"
}
sign061
{
template "sign_mmphred"
}
sign062
{
template "sign_mmphblu"
}
sign063
{
template "sign_mmphred"
}
sign064
{
template "sign_mmphred"
}
sign065
{
template "sign_mmphred"
}
sign066
{
template "sign_mmphred"
}
sign067
{
template "sign_mmphred"
}
sign088
{
template "arrowrt"
}
sign089
{
template "arrowlf"
}
sign090
{
template "arrow2way"
}
sign
{
template "sign_mmphred"
}
team
{
template "sign_mmphred"
}
}
}


--- End code ---


one from the "models/props_trainyard" folder

--- Code: ---replacements
{
templates
{
standard
{
"VertexLitGeneric"
{
pyro_vision
{
$VERTEX_LIT 1

$EFFECT 0

$basetexture $basetexture
$BASE_STEP_RANGE "[ 0.0 1.0 ]"

$CANVAS "rj/colorbar3"
$CANVAS_SCALE "[ 0.002 0.002 0.2 ]"
$CANVAS_STEP_RANGE "[ 0.0 1.0 ]"
$CANVAS_COLOR_START "[ 0.0 1.0 0.0 ]"
$CANVAS_COLOR_END "[ 1.0 1.0 0.0 ]"
}
}
}

cart_base
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_trainyard/cart_base_pyro"
$vertexcolor $vertexcolor
//$alphatest 1


$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
cart_bomb_red
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_trainyard/cart_bomb_red_pyro"
$vertexcolor $vertexcolor
//$alphatest 1


$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
cart_bomb
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_trainyard/cart_bomb_pyro"
$vertexcolor $vertexcolor
//$alphatest 1


$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
cart_dispenser
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_trainyard/cart_dispenser_pyro"
$vertexcolor $vertexcolor
//$alphatest 1


$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}

}

patterns
{
cart_base
{
template "cart_base"
}
cart_bomb_red
{
template "cart_bomb_red"
}
cart_bomb
{
template "cart_bomb"
}
cart_dispenser
{
template "cart_dispenser"
}
}
}


--- End code ---


and one from the "models/props_foliage" folder

--- Code: ---replacements
{
templates
{
standard
{
"VertexLitGeneric"
{
pyro_vision
{
$VERTEX_LIT 1

$EFFECT 0

$basetexture $basetexture
$BASE_STEP_RANGE "[ 0.0 1.0 ]"

$CANVAS "rj/colorbar3"
$CANVAS_SCALE "[ 0.002 0.002 0.2 ]"
$CANVAS_STEP_RANGE "[ 0.0 1.0 ]"
$CANVAS_COLOR_START "[ 0.0 1.0 0.0 ]"
$CANVAS_COLOR_END "[ 1.0 1.0 0.0 ]"
}
}
}


spikeplant
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/spikeplant01_pyro"
$vertexcolor $vertexcolor
$alphatest 1

// $STRIPETEXTURE "rj/stripe4"
// $STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
// $STRIPE_COLOR                   "[0.6 0.25 0.20]"
// $STRIPE_LM_SCALE      1.0



$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
cactus
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/cactus01_pyro"
$vertexcolor $vertexcolor
$alphatest 1


$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
joshua
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/joshuatree01_pyro"
$vertexcolor $vertexcolor
$alphatest 1

// $STRIPETEXTURE "rj/stripe4"
// $STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
// $STRIPE_COLOR                   "[0.6 0.25 0.20]"
// $STRIPE_LM_SCALE      1.0



$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}

shrub_03_card_skin2
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/shrub_03_card_skin2_pyro"
$vertexcolor $vertexcolor
$alphatest 1

// $STRIPETEXTURE "rj/stripe4"
// $STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
// $STRIPE_COLOR                   "[0.6 0.25 0.20]"
// $STRIPE_LM_SCALE      1.0

// $COLORBAR "rj/colorbar_white01"

$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
shrub_03_card_skin3
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/shrub_03_card_skin3_pyro"
$vertexcolor $vertexcolor
$alphatest 1

// $STRIPETEXTURE "rj/stripe4"
// $STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
// $STRIPE_COLOR                   "[0.6 0.25 0.20]"
// $STRIPE_LM_SCALE      1.0

// $COLORBAR "rj/colorbar_white01"

$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
shrub_03_card
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/shrub_03_card_pyro"
$vertexcolor $vertexcolor
$alphatest 1

// $STRIPETEXTURE "rj/stripe4"
// $STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
// $STRIPE_COLOR                   "[0.6 0.25 0.20]"
// $STRIPE_LM_SCALE      1.0

// $COLORBAR "rj/colorbar_white01"

$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
shrub_03_model
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture "models/props_foliage/shrub_03_pyro"
$vertexcolor $vertexcolor
$alphatest 1

$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.2
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}
darkgreen
{
"VertexLitGeneric"
{
pyro_vision
{
$EFFECT 1
$VERTEX_LIT 1

$basetexture $basetexture
$vertexcolor $vertexcolor
$alphatest 1

$STRIPETEXTURE "rj/stripe4"
$STRIPE_SCALE "[ 0.002 0.002 0.002 ]"
$STRIPE_COLOR                   "[0.6 0.25 0.20]"
$STRIPE_LM_SCALE      1.0

$COLORBAR "rj/colorbar_darkgreen01"

$DIFFUSE_WHITE 0.9
$GRAY_POWER 0.4
$GRAY_STEP "[ 0.0 1.0 ]"
$LIGHTMAP_GRADIENTS 255
}
}
}

}

patterns
{
spikeplant01
{
template "spikeplant"
}
shrub_03_card_skin2
{
template "shrub_03_card_skin2"
}
shrub_03_card_skin3
{
template "shrub_03_card_skin3"
}
shrub_03_card
{
template "shrub_03_card"
}
shrub_03
{
template "shrub_03_model"
}
grass
{
template "darkgreen"
}
cactus
{
template "cactus"
}
joshua
{
template "joshua"
}
}
}


--- End code ---

I would include more, but there's about 20-or-so of these and it would be a bit time consuming to paste them all in. However, I could attach the rest if these are not enough.

wallworm:
No, that was good enough. The error is that WW chokes on this line:


--- Code: --- $basetexture $basetexture
--- End code ---

I will have to update the VMT parser to deal with that.

the6thmonkey:
Hey currently having problems trying to get materials into 3dsmax.  I have used vtflib to extract the tga's and then import.  Everything seems to import fine and the materials appear to be in there but they all appear to be grey textures.  Any suggestions?
Oh and the materials are blend textures if that would cause a problem

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version