Author Topic: Common Mapping Q&A  (Read 12672 times)

Tamaru

  • Posts: 175
  • Turrets: +12/-23
Common Mapping Q&A
« on: October 16, 2010, 08:18:10 am »
READ THIS: before posting your question, read the list to make sure its not on there yet, then make a post about it
post a question here (if its a long or simple question it wont be listed) and hopefully we'll answer it and list it for future references.



1. can/how would i make a door open at (amount of time here) minutes into a game?
Trigger_Always -> Target_Delay; Wait = 1500 -> Func_door
1500 is in seconds which is 25:00 minutes added up, change it to whatever you please.

2. how do you make a lift that can connect two different levels of your map together?
That wait key is in seconds, by the way. 1500 seconds is 25 minutes.

As per the lift, I normally use func_trains (I think. I haven't built a lift in ages). I'll link you to a rather good mapping page, though. Soubok, the creator of Pulse_102, made some nice lifts, and he's got instructions on the page, and due to the magic of html...



3.how would i make a message appear on the screen when (action) happens?
classname target_print
message  "ZOMG I'm a message!"

spawnflag 1 send to human team
spawnflag 2 send to alien team
spawnflag 4 send to the player who activated the target_print

4.how do you add textures into Gtkradiant?
If you are using windows then go to C:/Program Files/Tremulous/Base/Textures and create a folder and put you textures in that folder.

5.how would you make water?
create a brush that has a NODRAW shader from you common file, then you texture it with a water looking shader

6.How can i turn off light emiting textures?
By using the texture instead of the shader. Sometimes the shader has the same name as the texture:
you won't be able to select the texture in radiant and the engine will use the shader anyway.

The clean and simple solution is to create a new subdirectory yourmapname in textures/ and copy the textures you use there. Use your own shader file and name your shaders like yourmapname/shadername.

This will usually stop other maps from messing with your textures, and you from messing with
other maps shaders.

Note for the casual reader:

A shader is a script that can use textures (jpeg images, ....) and do interesting things with it
like make it a ladder, nonsolid, or make it emit light.

Use light emiting shaders, seriously. Only add point lights where you want to touch up the lighting.

7.i need to know more about ladders and how they work
http://tremmapping.pbwiki.com/Shader_Ladder

8.my map is "leaked" or sv_setbrushmodel: null comes up when i compile  Shocked'
Pressing "L" in GTKradiant will bring up a list of entities and brushes. Click on the arrow next to your map name, and look at your entities. Inspect any entities that do not have an arrow on their left. These entities do not have brush origins. Some entities such as path_corner do not need brush origins. Find entities that require brush origins, do not have brush origins, and delete them.

Also be sure you do not have two worldspawn entities.

9.turrets dont show up when i try to make them, whats my issue?
common files put all those things in your base

10.How can i make a multi-story elevator?
Sok has actually created a fairly self-explanatory tutorial on that Here, And if you're looking for a simple one-story lift, check This

11. What content should be in my .pk3?
here is a diagram! (thanks KIA77!)


12.How do i use a skybox in Netradiant?
How to use a new skybox in radiant

For Vega, I made a skybox with Terragen. I put the 6 textures in this directory:
tremulous/base/env/vega

Code: [Select]
ing1_sky_bk.jpg
ing1_sky_dn.jpg
ing1_sky_ft.jpg
ing1_sky_lf.jpg
ing1_sky_rt.jpg
ing1_sky_up.jpg

ing1_sky_small.jpg

If you payed attention, you should have noticed there are 7 textures in the list:
ing1_sky_small.jpg is a thumbnail version of the sky I will use as shader image in radiant.

Next, you need to make the shader:
I've added the following shader to the file
tremulous/base/scripts/vega.shader

Code: [Select]
// skybox Vega by Ingar
textures/vega/sky
{
      qer_editorimage env/vega/ing1_sky_small
      surfaceparm noimpact
      surfaceparm nolightmap
      surfaceparm sky
      // sunlight position red green blue intensity degrees elevation
      q3map_sun   .9 .9 .9 75 90 25
      // sunlight intensity
      q3map_surfacelight 150

      skyparms env/vega/ing1_sky - -
}

(I had already added vega to tremulous/base/scripts/shaderlist.txt)

In radiant, I now have a sky shader in the directory vega and I can use it to texture sky brushes.
(see attached image). The full name of the shader is textures/vega/sky.

Code: [Select]
qer_editorimage env/vega/ing1_sky_small
The qer_editorimage directive is used to tell radant what texture to use for this shader.
I used a thumbnail version of the sky, but you can use basicly anything. You can even use
a non-existing image. You will get image not found in radiant, but it should work in-game.

Code: [Select]
skyparms env/vega/ing1_sky - -
The skyparms directive is used to set the location of the actual skybox textures.

Code: [Select]
surfaceparm slick
If you want a non-walkable sky, add a surfaceparm slick.
It wasn't necessary for vega, because there are no outside areas where a dretch could walk the sky.

More wisdom

Shader Manual: http://q3map2.everyonelookbusy.net/shader_manual/
Terragen: http://www.planetside.co.uk/
Spirit's tutorial and skybox scripts: http://maps.sp1r1t.org/tutorials/q3a_create_skybox/

13.Where can i find some useful mapping links?
well, right HERE!
[i will be updating this frequently, could i please get a sticky?]
[Also i was OP from the first one]
« Last Edit: October 19, 2010, 12:53:42 am by Tamaru »

CATAHA

  • Posts: 539
  • Turrets: +8/-18
    • Tremulous Lair
Re: Common Mapping Q&A
« Reply #1 on: October 16, 2010, 10:18:42 am »
10.How can i make a multi-story elevator?
Sok has actually created a fairly self-explanatory tutorial on that Here
Actually you cant use that method. Trem have no necessary triggers. But you still can make single-button lift with doors, etc. But its not so easy.
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

CreatureofHell

  • Posts: 2422
  • Turrets: +430/-126
    • Tremtopia
Re: Common Mapping Q&A
« Reply #2 on: October 16, 2010, 10:51:19 am »
Why not revive the original topic?
{NoS}StalKer
Quote
<Timbo> posting on the trem forums rarely results in anything good

Tamaru

  • Posts: 175
  • Turrets: +12/-23
Re: Common Mapping Q&A
« Reply #3 on: October 16, 2010, 10:56:03 am »
because it is on my old account that was deleted, so i couldn't revise it

Tamaru

  • Posts: 175
  • Turrets: +12/-23
Re: Common Mapping Q&A
« Reply #4 on: October 19, 2010, 12:54:01 am »
updated, and reserved

CorSair

  • Posts: 430
  • Turrets: +14/-0
Re: Common Mapping Q&A - Textures still missing
« Reply #5 on: October 23, 2010, 07:34:12 am »
Okay, I got set of textures ready, but they're not still there, in textures list. And yes, I tried to use the one mentioned above. As well some others.

One clue where this might stuck, I get error saying:

Texture load failed: "textures/", when starting netRadiant.
And I got specified directory in base folder. So, where is it hitting wall now?

CATAHA

  • Posts: 539
  • Turrets: +8/-18
    • Tremulous Lair
Re: Common Mapping Q&A
« Reply #6 on: October 23, 2010, 12:45:14 pm »
One clue where this might stuck, I get error saying:

Texture load failed: "textures/", when starting netRadiant.
And I got specified directory in base folder. So, where is it hitting wall now?
Its ok if you see textures from other maps in editor. If so - just be sure you have .pk3 with your textures in /base/ folder and name of your shader in shaderslist.txt in /base/scripts/ folder. If you dont see any textures at all in editor - check editor paths.
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

CorSair

  • Posts: 430
  • Turrets: +14/-0
Re: Common Mapping Q&A
« Reply #7 on: October 23, 2010, 02:45:00 pm »
I'm still missing some textures I downloaded. Shaders I can make appear, but not textures. That was my original problem. I Put new textures to:
/Tremulous/base/Textures
Sorry to bother with this. :-[
« Last Edit: October 23, 2010, 02:57:57 pm by CorSair »

CATAHA

  • Posts: 539
  • Turrets: +8/-18
    • Tremulous Lair
Re: Common Mapping Q&A
« Reply #8 on: October 23, 2010, 03:18:37 pm »
pack textures into pk3, put pk3 into /base/ folder. They will appear for sure (if your editor paths is ok)
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

CorSair

  • Posts: 430
  • Turrets: +14/-0
Re: Common Mapping Q&A
« Reply #9 on: October 23, 2010, 03:45:32 pm »
pack textures into pk3, put pk3 into /base/ folder. They will appear for sure (if your editor paths is ok)

Not on my case. Any other path change will result in "shader not found" tiles, and the fresh textures not in list. And I packed them. Path is correct. Maybe someone else can enlighten me more on this.

Shaders appear normally, when I put them to .pk3 format. But not textures.

CATAHA

  • Posts: 539
  • Turrets: +8/-18
    • Tremulous Lair
Re: Common Mapping Q&A
« Reply #10 on: October 23, 2010, 03:49:15 pm »
Check textures. They should be in non-optimized jpeg or tga format.
Russian q3/trem mapping site: http://tremlair.krond.ru/
=[ Boxmaps suck if they have no concept ]=

Ice Trap (InstaGib)

Other maps: A.T.D*S Remake

CorSair

  • Posts: 430
  • Turrets: +14/-0
Re: Common Mapping Q&A
« Reply #11 on: October 23, 2010, 04:18:18 pm »
[deleted the last reply]

Fuckin hell! How stupid I can be.... How embarrasing... :-[ :-[ :-[

Fixed the problem.... nevermind that, life goes on....

(And I had "Show Shaders Only" checked, showed only shaders, and no textures)
« Last Edit: October 23, 2010, 05:21:06 pm by CorSair »

Kaxorian

  • Posts: 1
  • Turrets: +0/-0
Re: Common Mapping Q&A
« Reply #12 on: February 28, 2013, 10:50:13 pm »
I am having the same problem with not having any textures, except i don't have any textures period. My directory is correct, and I have tried putting a textures folder in my base folder, along with a pk3 in my base folder, none of which are working. Help would be appreciated