#Adding texture to vpk file

1 messages · Page 1 of 1 (latest)

acoustic gazelle
#

Hello I was trying to add a texture to a vpk file ,after that when I go in hammer there is the texture file but there is no image

#

I used vmt editor for the texture

jovial frigate
#

you need to setup your game in VMTeditor

#

paths are relative to your game directory

#

they always start in gamedirectory/materials/

#

so you cannot have a path that starts at your desktop

#

also there's no need to put anything in a VPK

somber barn
#

why would you put textures in vpk btw?

jovial frigate
#

you can either laod assets through gameinfo or just slap them in your gamedir

somber barn
#

doesn't you just compile you game folder vpk.exe and it packs you content there

#

but that's for mods/standalone games

acoustic gazelle
#

I tried to put them in material but nothing showed

jovial frigate
#

because your VMT path is wrong

#

put stuff in the correct directory and make your paths correct

acoustic gazelle
#

ok I will try thanks

jovial frigate
#

set up your game in VMTEditor

#

then it will just work

somber barn
jovial frigate
#

why are you trying to confuse the man

#

just let him set up his game in VMTEditor

somber barn
#

like <maingamefolder>/<game>/<materials> nah?

jovial frigate
#

ketal dont be pedantic please

somber barn
#

oh yea welp wmteditor does it auto

acoustic gazelle
somber barn
#

$basetexture "mur_cr"

jovial frigate
#

path start at materials

#

set up VMTEDitor

#

please

somber barn
#

also, make a subfolder in materials for better use

#

because it can cause bugs sometimes if its in root materials directory

#

so like materials\custom\mur_cr

jovial frigate
#

just do this

acoustic gazelle
somber barn
#

restart hammer

#

or reload materials (though unsure if it works)

acoustic gazelle
#

I did both

jovial frigate
#

dont put your files loose in materials

somber barn
#

you have it though

jovial frigate
#

create a subfolde

#

like ketal said

#

and dont rely on the browser in hammer for preview

#

place it on a brush

#

see if its still broken

acoustic gazelle
jovial frigate
#

what version is the VTF

#

gmod doesnt support 7.5

acoustic gazelle
#

what is vft ?

jovial frigate
#

how can you ask that

acoustic gazelle
#

I used vmt editor 1.3.11

#

How I check the version

jovial frigate
acoustic gazelle
#

I don't use that

jovial frigate
#

this is vmteditor mate

acoustic gazelle
#

my bad

#

How do I check

#

and on hammer the wall is not in file/mur_cr

#

I found the mistake

#

I did not have the gmod path in gameinfo.txt

#

thank you

jovial frigate
#

nice