texture loading

texture loading

Re: texture loading Posted by RadiKal on Fri Dec 24th 2004 at 9:09am
RadiKal
55 posts
Posted 2004-12-24 9:09am
RadiKal
member
55 posts 265 snarkmarks Registered: Dec 24th 2004 Occupation: student Location: USA
Hey everyone, I'm busy remaking an old counterstrike 1.6 map and have used quite a few custom textures (skybox, walls, ground, etc)... my question is how to get it so people joining a server download the new textures/where to put the vmt/vtf files. Right now, all my textures are stored in a cstrike/materials/textual folder (textual being just a random name of a folder containing the textures :smile: ). The only exception is that the custom skybox textures are in cstrike/materials/skybox. In cstrike/maps I created a .res file that looks like

...
materials/textual/rock047.vmt
materials/textual/rock047.vtf
materials/textual/metal100.vmt
materials/textual/metal101.vtf

...

but my friend tried joining the server and didn't download the custom textures :/

If possible, i read on VERC that using something like -nowadtextures or -wadinclude that would embed the textures into the map so that you wouldn't need to stash the textures in the materials folder, making getting the map a little easier. Any help would be, well, helpful! My custom textures are no good if only I can see them :/...Thanks!
Re: texture loading Posted by Leperous on Fri Dec 24th 2004 at 6:13pm
Leperous
3382 posts
Posted 2004-12-24 6:13pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
You used to be able to use -nowadtextures with the HL1 compilers, which would embed the textures in the .BSP as you say. Try running VBSP with that parameter and see (i.e. do an expert compile- we have a tutorial- and add a -nowadtextures parameter)
Re: texture loading Posted by sir_hilton on Fri Dec 24th 2004 at 9:42pm
sir_hilton
2 posts
Posted 2004-12-24 9:42pm
2 posts 0 snarkmarks Registered: Dec 24th 2004
the syntax for res files is different now, here is how i did mine, bear
in mind i just dropped my textures in the materials directory, so
change the path accordingly

"resources"

{

"materials/oldlight.vmt" "file"

"materials/oldlight.vtf" "file"

"materials/poster1.vmt" "file"

"materials/poster1.vtf" "file"

}

compiling them into the map sounds like the best bet though, i just wish i had none this before i released my map =)
Re: texture loading Posted by RadiKal on Sat Dec 25th 2004 at 3:28am
RadiKal
55 posts
Posted 2004-12-25 3:28am
RadiKal
member
55 posts 265 snarkmarks Registered: Dec 24th 2004 Occupation: student Location: USA
thank you both for replying to my question above, both answers helped me... firstly, i fixed up the .res file and now textures are downloaded along with the map, which is awesome, so thank you sir hilton for the resource script example. Also, I followed the tutorial you created and referred me to Leperous and got the expert compile up and working. I couldn't get the -nowadtextures option to work though :sad: Perhaps they took that option out with the newer version of hammer/HL2 or perhaps more likely I just haven't discovered how to use it yet :smile: . What I tried was "-nowadtextures -game $gamedir $path\$file" as the parameters for the vbsp part of the compiling, but it gave an error that it couldn't figure out what nowadtextures was, so I referenced the example of how to use it on VERC. The way it said to use it on there was to use a command $csg_exe with -nowadtextures as a parameter but when I tried running that $csg_exe thing it gave an error in the compiler from windows that access was denied.... I dont' know if the csg_exe doesn't exist of if access really is denied.

Overall, I did get the textures to load on my friend's computer so I'll close this thread by saying that the comments did answer my question, but if possible I'd like to hear from anyone that knows anything about embedding the textures in the bsp's.
Re: texture loading Posted by Leperous on Sat Dec 25th 2004 at 8:30pm
Leperous
3382 posts
Posted 2004-12-25 8:30pm
Leperous
Creator of SnarkPit!
member
3382 posts 1635 snarkmarks Registered: Aug 21st 2001 Occupation: Lazy student Location: UK
It sounds like you did it correctly, and that this parameter doesn't exist any more! I'd check it myself but am away from a PC with Hammer. I'm sure there's still a way to do it though, I'll try to remember to post back here if I find out :smile: