Script/Shader Question -1 reply

  • 1
  • 2

Please wait...

Botdra Lar'les

Master FUFer

50 XP

27th May 2007

0 Uploads

2,069 Posts

0 Threads

#1 11 years ago

I was reading the tutorial on making holopanels (again) and got totally stuck on step two. (Which is actually step 8 I think) Anywho, I don't get how to make a script. I know what a script is but what program do I use to make it? What do I save it as? Where do I put it (so it works with what the tutorial is trying to achieve)?




Szico VII

We want FF7-2/remake!

50 XP

15th September 2003

0 Uploads

1,683 Posts

0 Threads

#2 11 years ago

Basically, just copy and paste that text code in the tutorial into notepad, and save it into your base/shaders folder as mymap.shader (NOT .txt) textures/imm_test/sign_1 { qer_trans 0.4 surfaceparm nonopaque surfaceparm nonsolid surfaceparm trans q3map_nolightmap cull twosided { animMap 14 textures/imm_test/sign_1 textures/imm_test/sign_2 textures/imm_test/sign_3 textures/imm_test/sign_1 textures/imm_test/sign_3 textures/imm_test/sign_2 blendFunc GL_ONE GL_ONE alphaGen const 0.4 rgbGen wave sin 0.75 0.05 0 5 } }

You then need to edit the image paths so they fit with the images you have made. e.g If your image is in textures/map1 then you replace the line

textures/imm_test/sign_1

with

textures/map1/sign_1

This line: animMap 14 textures/imm_test/sign_1 textures/imm_test/sign_2 textures/imm_test/sign_3 textures/imm_test/sign_1 textures/imm_test/sign_3 textures/imm_test/sign_2

Basically references the three different hologram images he has made and tells which order to show them in - 1,2,3,3,2 and then it loops from the beginning. The value 14 means it changes 14 times a second - you can edit that if you want to smaller or larger values.

Finally, in your shaders folder, there is a file called shaderlist.txt. Open it in Wordpad if notepad opens it and it looks all screwy. Then simply add a line into it which corresponds to the name of the mymap.shader file, so you add the name 'mymap' Save the file.

If you have done it right, when you load your texture set in radiant, this texture will have a white border around it, indicating it has a shader attached.




Botdra Lar'les

Master FUFer

50 XP

27th May 2007

0 Uploads

2,069 Posts

0 Threads

#3 11 years ago

Your such a lifesaver Szico! But whats the last line I have to add in the shader file and where?




Yolenn

"You're all talk. Stay down."

50 XP

17th February 2005

0 Uploads

26 Posts

0 Threads

#4 11 years ago

The extension should be ".shader" so that the game can recognize what the file is.

As for location, shouldn't it just go in the "shader" folder next to the others in your pk3?




Botdra Lar'les

Master FUFer

50 XP

27th May 2007

0 Uploads

2,069 Posts

0 Threads

#5 11 years ago

Thanks, but when I try to save the notepad file I go to "Save As..." then it shows the window on where to save, what to name etc. and it won't save as anything else except a .txt file.

Also, what does it need to be named? Anything?




Kyross

Always there, always watching.

50 XP

18th January 2005

0 Uploads

856 Posts

0 Threads

#6 11 years ago

If all else fails you can copy another shader file, replace its contents with your own shader info and rename it appropriately.




Botdra Lar'les

Master FUFer

50 XP

27th May 2007

0 Uploads

2,069 Posts

0 Threads

#7 11 years ago

What should I name it though?




Szico VII

We want FF7-2/remake!

50 XP

15th September 2003

0 Uploads

1,683 Posts

0 Threads

#8 11 years ago

mymap.shader

You can call it anything you like but make it an original name so it wont clash with other custom shaders.




Botdra Lar'les

Master FUFer

50 XP

27th May 2007

0 Uploads

2,069 Posts

0 Threads

#9 11 years ago

Okay so I named it coruscant.shader now how do I use it in Gtk?




Szico VII

We want FF7-2/remake!

50 XP

15th September 2003

0 Uploads

1,683 Posts

0 Threads

#10 11 years ago

dude...coruscant isnt an original shader name lol.

Use something like, aika_coruscant.shader

Ti make sure there is no clashes with other custom mods which may have shaders called coruscant also ;)

Once youve saved your shader and added the name to shaderlist.txt gtk reads it automatically.




  • 1
  • 2