How to make a .shader file

Having a problem with a shader or texture
Post Reply
User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

How to make a .shader file

Post by Rayne »

Seems this is a common problem with a lot of mappers no matter their skill level.
How to turn a simple text file into a .shader file that the game recognizes. Most mappers do it...the noob way. Open an existing shader, replace the original shader with your own and rename it.
But, there is a smarter way of making it, and it's just one click away.

Make a new text file and write your shader in it. Once you're done go to "save as", and in the bottom you got a little drop down menu that says "save as type".
Here switch to "all files", now type the name of your shader followed by the ".shader" extension, i.e. "rayne.shader", and now when you save it you got a real shader file instead of a useless .txt file.

And that's pretty much it, simple as that. I'm gonna make this a sticky.

User avatar
Rylius
King wiki
Posts: 232
Joined: Wed Aug 17, 2011 8:14 pm
Location: Germany
Contact:

Re: How to make a .shader file

Post by Rylius »

Go thank Microsoft for hiding file extensions by default. <3
Rain - Blog - deviantArt
<Delirium> I did like a reverse jizz
<Delirium> in my pants
<Delirium> my jeans went into my sack
<Delirium> through my dick

User avatar
banksy
Posts: 196
Joined: Wed Mar 07, 2012 11:10 am
Location: Australia

Re: How to make a .shader file

Post by banksy »

That's simple enough, but I still need to work out what text goes where in a shader :P
Image

User avatar
Rayne
Site Admin
Posts: 624
Joined: Wed Aug 17, 2011 5:22 pm

Re: How to make a .shader file

Post by Rayne »

banksy wrote:That's simple enough, but I still need to work out what text goes where in a shader :P

Now that's a whole different thing.

User avatar
banksy
Posts: 196
Joined: Wed Mar 07, 2012 11:10 am
Location: Australia

Re: How to make a .shader file

Post by banksy »

People have tried teaching me multiple times, and I have watched many tutorials, but I still don't get it haha.
Image

Markinho
Posts: 109
Joined: Thu Nov 03, 2011 10:56 pm
Contact:

Re: How to make a .shader file

Post by Markinho »

Rylius wrote:Go thank Microsoft for hiding file extensions by default. <3

And this is why I still use XP

Well no, it's because my pc doesn't support 7, whatever :lol:
Image

User avatar
Rylius
King wiki
Posts: 232
Joined: Wed Aug 17, 2011 8:14 pm
Location: Germany
Contact:

Re: How to make a .shader file

Post by Rylius »

XP hides the extensions by default as well.
Rain - Blog - deviantArt
<Delirium> I did like a reverse jizz
<Delirium> in my pants
<Delirium> my jeans went into my sack
<Delirium> through my dick

Markinho
Posts: 109
Joined: Thu Nov 03, 2011 10:56 pm
Contact:

Re: How to make a .shader file

Post by Markinho »

You say? Then I must have changed it somehow, I've always got them displayed
Image

Post Reply