Editing FAQ - Troubleshooting & How-To: Difference between revisions

From The DarkMod Wiki
Jump to navigationJump to search
Line 86: Line 86:
'''Q. How do I make something switch from frobable to unfrobable, like a lever (or vice versa, like contents in a drawer)?'''
'''Q. How do I make something switch from frobable to unfrobable, like a lever (or vice versa, like contents in a drawer)?'''


'''A.''' Use a set_frobable entity targeting the object. Instructions are here [http://forums.thedarkmod.com/topic/9082-newbie-darkradiant-questions/page__view__findpost__p__221279]
'''A.''' Make a clip brush around the object and put a set_frobable entity inside it (affecting everything inside the brush), with a switch targeting the set_frobable entity. Instructions are repeated here [http://forums.thedarkmod.com/topic/9082-newbie-darkradiant-questions/page__view__findpost__p__221279]


'''Q. How do I make breakable glass?'''
'''Q. How do I make breakable glass?'''

Revision as of 18:41, 30 January 2012

Below are some common issues and questions mappers have had in the Editor's Guild forum with common solutions.

Troubleshooting FAQ

Q. Some of my brushes have disappeared or turned black and won't render.

A. This can happen when two touching brushes around the seam are not perfectly flush with one another and the rendering hiccups for those brushes & brushes behind it, either there's a tiny wedge or overlap or gap or weird angle between them. The usual solution is to make sure the brushes are snapped to the grid and perfectly flush against one another, or more generally to simplify the brushwork around the seam of the disappearing brushes.


Q. My AI will not pass through a visportal no matter how I set up the path nodes.

A. Check that the sides of the visportal use the nodraw texture (except for the portal-face itself of course).


Q. My visportal is not closing like it should (you can check this with by typing "r_showportals 1" in the console).

A. A common reason for that is that the two areas separated by the portal are not hermetically sealed and there's an internal leak, either (1) there may be an unportaled gap between the two, possibly covered up by func_static (which do not seal) or possibly caused by an inadvertent hole created by the first FAQ question above, or (2) an internal leak can happen when all sides of the visportal are not flush against sealing brushes. (Burying visportals into brushes also is possible but some people don't recommended it as much as making them flush with the brushes). A way to check if there's an internal leak, and locating it if there is, is described here: Visportals#Trouble-shooting. Other reasons it might fail are also described there.


Q. I can see other rooms behind a mirror through it, instead of just a reflection.

A. The area behind a mirror should be in a separate leaf (visportaled area) with a working visportal. This problem usually means the two areas aren't in separate leafs or there's an internal leak between the areas in front of and behind the mirror.


Q. My streetlight, candle, lamp, light-creating object, causes a weird shadow I want to get rid of.

A. Put the spawnarg "noshadows" "1" on the offending object.


Q. How do you get AI to walk on complex terrain patches or func_statics?

A. You can always lay down invisible monsterclip brushes and the AI can walk on it. Overlay with a brush with a "material" texture so it causes the right sound for footsteps.


Q. Some of the parallel lights I use for moonlight aren't giving off any light.

A. This is a known problem with parallel lights. For some reason in some arrangements you get no light at all. Just fiddle with it a bit - move it slightly, change the radii, move the vertex a bit - and it should suddenly work. Once you've got it working then it's stable. Likely the code chokes on certain values in its calculations.

General Editing FAQ

Q. How do I attach a door handle to a door?

A. Just position the handle and input "bind" and the door entity ID/name as a spawnarg.

Q. How do I make sure a guard can unlock a door?

A. There are a few different ways, explained here [1]

Q. How do I make an object into loot?

A. Instructions are here [2]

Q. How do I make an entity frobable?

A. See the entry for Making an Entity frobable.

Q. How do I set up a put-object-here objective?

A. Instructions are here [3]

Q. How do I set up a "ghosting" objective (e.g., you are busted if you are seen.)

A. Instructions are here [4]

Q. What's a good way to make caves?

A. Some tips are here [5]

Q. How do I add music or ambient sounds? Q. Can I dynamically adjust the ambient lighting?

A. For both of these things, check out the article for Location Settings

Q. How do I get a lever or button to open a door?

A. Instructions are here [6]

Q. How do I put some text on a sign or wall?

A. You can use this method [7]

Q. How do I bind something to a rope (like a body) so it doesn't fall?

A. Dynamic ropes are unreliable, so it's good to use a func_static like a chain or make a func_static rope from a cylinder brush. For a ragdoll, place the ragdoll so he clips into the func_static. You need to bind the ragdoll to the chain (so the spawnarg is on the ragdoll), with "bind" "func_static_...", where func_static_... is the chain. Or, through DR, you can just select the entity you want to attach (the ragdoll), then also select the thing you want to attach it to (the chain), and in the menus select "Entity" - "Bind selected entities". But it's been reported the clipping does the job, not binding. See this link [8]


Q. How do I make something switch from frobable to unfrobable, like a lever (or vice versa, like contents in a drawer)?

A. Make a clip brush around the object and put a set_frobable entity inside it (affecting everything inside the brush), with a switch targeting the set_frobable entity. Instructions are repeated here [9]

Q. How do I make breakable glass?

A. Instructions are here [10]