Css textures/weapons etc.. in hl2sp

Css textures/weapons etc.. in hl2sp

Re: Css textures/weapons etc.. in hl2sp Posted by SnowmanDev on Mon Apr 24th 2006 at 11:49pm
SnowmanDev
28 posts
Posted 2006-04-24 11:49pm
28 posts 3 snarkmarks Registered: Apr 9th 2006 Occupation: Graphics Designer/Web Designer Location: UK, Warrington
Hey guys,

i've managed to copy the files over to the folders there supposed to go into, but when i load hammer and try to use the textures there just black n purple squares in the browser window.

im not sure whats wrong here so if anybody has any ideas please let me know,
also maybe somebody could write a tutorial on it so new ppl wont ask about it.

thanks guys appreciate all the help

SnowmanDev
Re: Css textures/weapons etc.. in hl2sp Posted by ReNo on Tue Apr 25th 2006 at 12:04am
ReNo
5457 posts
Posted 2006-04-25 12:04am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Copying weapons over won't work - there is a lot more to the weapons for HL2/CSS/whatever than the model files or whatever, and it would take coding work to get them working.

Textures however, you can use. I'm not sure what the exact problem is here, but be sure you are copying both the material files (.vmt) and texture files that they reference (.vtf) to the correct folders. The material is what defines how something will look in game, and it is what Hammer loads in and uses. These material files are just simple text files, so open them up with notepad to find out more about them. Inside you should find references to .vtf files, which are the texture files that hold the actual images. Normally you have one .vtf file per .vmt file, however that is not always the case. It sounds to me like you have copied the .vmt files across correctly, so hammer is loading them in, however you haven't copied the .vtf files that the .vmt files need, hence they are using the default checkboard texture instead.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Css textures/weapons etc.. in hl2sp Posted by SnowmanDev on Tue Apr 25th 2006 at 12:08am
SnowmanDev
28 posts
Posted 2006-04-25 12:08am
28 posts 3 snarkmarks Registered: Apr 9th 2006 Occupation: Graphics Designer/Web Designer Location: UK, Warrington
Ok, what i'll do is have a look tomorrow and let you know, i basically copied the whole folder over so im not sure if what u put will solve the problem but its worth a look anyway.

speak to you tomorrow also if its not trouble can u add me at st3porter@hotmail.com

and if omegaslayer see's this please add me again on msn or talk to me asap :smile:

tahnx again

SnowmanDev
Re: Css textures/weapons etc.. in hl2sp Posted by ReNo on Tue Apr 25th 2006 at 12:11am
ReNo
5457 posts
Posted 2006-04-25 12:11am
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
I haven't used MSN in ages I'm afraid - either catch me in IRC or PM me if you need a word. I tend to just stick to the forums mostly though - my uni work keeps me glued to the computer these days so I'm normally not too long between snarkpit checks :biggrin:

By the way, if copying the whole folder didn't work, then it might be because some of the resources (ie. either the material files or texture files) are packaged in the game's .gcf file instead of kept in the game folder. Use something like gcfscape to extract files from .gcf files.
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Css textures/weapons etc.. in hl2sp Posted by SnowmanDev on Tue Apr 25th 2006 at 11:33am
SnowmanDev
28 posts
Posted 2006-04-25 11:33am
28 posts 3 snarkmarks Registered: Apr 9th 2006 Occupation: Graphics Designer/Web Designer Location: UK, Warrington
well what i did was extract the files using gscape or whatever, then put them in the hl2 folders, then i put them in the sdk_content folders but still there isnt anything other than the purple and black squares, i mean its no imperrative that i use these textures it would just be nice because everybody uses hl2 textures and it would look the same as everybody else's map.

also 1 other thing, are there any tuts on putting custom/css weapons in a new hl2 mod,

i know its possible and im modeling new weapons as well as 2 characters that will either be playable or npc's that work along side you im unsure of that part yet :razz:

so if anybody can get tutorials on custom content and css content in hl2 it would be much appreiated.

Thanx
Re: Css textures/weapons etc.. in hl2sp Posted by Captain P on Tue Apr 25th 2006 at 2:11pm
Captain P
1370 posts
Posted 2006-04-25 2:11pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Tried the Valve wiki already? Lots of info there, I got a custom weapon up and running in no-time with help from their coding articles.

Anyway, you'll have to include these custom textures into your .bsp so others can see them as well (and I assume not every HL2 player has CSS installed, so you'd have to include those materials as well). I don't know why you are also seeing purple-black textures as placing custom materials in the correct game folder hierarchy should work, but including them afterwards should solve it regardless. You are seeing these materials in Hammer, right?
Create-ivity - a game development blog
Re: Css textures/weapons etc.. in hl2sp Posted by ReNo on Tue Apr 25th 2006 at 2:15pm
ReNo
5457 posts
Posted 2006-04-25 2:15pm
ReNo
member
5457 posts 1991 snarkmarks Registered: Aug 22nd 2001 Occupation: Level Designer Location: Scotland
Weapons will require programming - if you haven't got any c++ experience, I doubt your going to be making any custom weapons (well, other than replacement models) for an HL2 mod for quite some time I'm afraid. If you want to look into it...

http://www.hl2coding.com/forums/index.php
http://developer.valvesoftware.com/wiki/SDK_Docs

If you followed my instructions and the custom textures still aren't working, I'm afraid I don't know what else to suggest. There are plenty of tutorials out there on creating (or at least compiling) custom textures for source, so if you look them up you should be able to get the information you need to get existing textures working.

Good luck with it :smile:
[img]http://card.mygamercard.net/sig/Default/reno84.png[/img]
Designer @ Haiku Interactive | ReNo-vation.net
Re: Css textures/weapons etc.. in hl2sp Posted by SnowmanDev on Tue Apr 25th 2006 at 3:09pm
SnowmanDev
28 posts
Posted 2006-04-25 3:09pm
28 posts 3 snarkmarks Registered: Apr 9th 2006 Occupation: Graphics Designer/Web Designer Location: UK, Warrington
hey, no im not seeing these textures in hammer, there purple n black squares in the texture browser window :|

lol like i said though its not important at this stage, it would of just been nice

thanx guys, plz check my other post about area portals

SnowmanDev
Re: Css textures/weapons etc.. in hl2sp Posted by Captain P on Tue Apr 25th 2006 at 5:36pm
Captain P
1370 posts
Posted 2006-04-25 5:36pm
1370 posts 1995 snarkmarks Registered: Nov 6th 2003 Occupation: Game-programmer Location: Netherlands
Hmm, in that case, the .vmt's probably refer to .vtf's that aren't in the exact spot in the new folder hierarchy. Check those files in notepad to see what went wrong.
Create-ivity - a game development blog
Re: Css textures/weapons etc.. in hl2sp Posted by SnowmanDev on Tue Apr 25th 2006 at 5:41pm
SnowmanDev
28 posts
Posted 2006-04-25 5:41pm
28 posts 3 snarkmarks Registered: Apr 9th 2006 Occupation: Graphics Designer/Web Designer Location: UK, Warrington
Ok i'll check it out now, captain can u add me on msn i dont continuously ask questions its just im doing this whole mod alone lol and i'd like some back up

IM me plz