Difference between revisions of "Assistance Requests"

From Valve Developer Community
Jump to: navigation, search
(Face Poser)
(Face Poser)
Line 148: Line 148:
I can't seem to open faceposer, every time I try to, it crashes. Any idea? I'm running a 3.2ghz p4, with a 6800 256mb card. I also have 1gb of ram.
I can't seem to open faceposer, every time I try to, it crashes. Any idea? I'm running a 3.2ghz p4, with a 6800 256mb card. I also have 1gb of ram.
:Same thing happens to me. [[User:Kausill|Kausill]] 12:14, 14 July 2009 (UTC)
:Same thing happens to me. [[User:Kausill|Kausill]] 12:14, 14 July 2009 (UTC)
:I have Windows XP, 8.61 gigs. [[User:Kausill|Kausill]] 03:42, 16 July 2009 (UTC)
== Variable weapon accuracy ==
== Variable weapon accuracy ==

Revision as of 03:42, 16 July 2009


This page is intended for questions not already covered within the Source SDK FAQ or the Tutorials sections. For level design and Hammer Editor questions, make sure you've looked at the Level Design FAQ.

This page is for:

  • Tutorial/article requests.
  • General material requests. Materials should be provided in a raw format, such as .vmf, so others can see how it was done. Be vague. General requests will be more helpful for the community.
  • Questions towards the Valve team. This should keep their Talk pages clean, especially if the person to direct the question to may not be obvious.
  • Answering questions posed here. Simply place the answer directly after the question, indented to be a clear difference. Further discussion should be kept to Talk pages to keep this page clear, if it does not clearly benefit the community.
  • Posting requested materials. Upload them to your own webspace, and put the links here.

This page is not for:

  • Editorializing. If you don't like someone's idea leave them alone.
  • Mod recruiting. Create a page in the appropriate category (HL2 or HL1 Mods) and request help from there. Feel free to use the Template:Recruiting template.
  • Specific requests. Do not ask someone to create a player model for you, but you can ask for details about making your own.

This page will be split into more specific pages if it is needed.


  • A more in depth tutorial or sample of advanced material shaders would be nice. I am trying to implement dynamic lighting and dynamic environment reflections on an object, and am having some difficulty.
    • Why are only 2 lights created in the common_vs_fxc.h file (cLightInfo[2]).
    • Where do these lights get passed in (in the .cpp file?)?
    • Can I have 5 render targets and render 5 passes of the world each frame (or at least to one view each frame, switching views each frame)?
    • Can I manipulate the camera with my own transforms and remove the object (the one I want to have reflections) when I'm rendering the reflection render targets?
    • Is there already functionality to do all or some of the features I'm trying to implement?

I'm already solid with the post-processing effects pipeline, but the material shader system seems to function a bit differently. While I've been able to pass variables from the render to post-processing shaders, I haven't been able to pass variables to material shaders. It would be really nice to have the TDD or some official docs for the shader system, but I know that's not possible, so if there is any way to answer some of these issues, I would greatly appreciate the help.


  • Details on how to change a sprite on a weapon (special effects attached to nodes?) when changing firing mode. Anyone have any ideas?
  • Is there a Source-Code Solution-Map? (like displaying the dependencies, where you can find what and so on...)
  • Tutorials on how to put players in two teams as opposed to deathmatch.
  • I'd like one on adding a targeting laser to a weapon, like the rpg but without guiding.

Just look up attachments and check out the rocket launcher code, doesn't the smg also have a "laser" for the ironsights? --Theholygod 09:14, 11 Sep 2007 (PDT)

  • I'd like to find a tutorial on creating a round system (similar to CSS) in which a round will end on a certain event, such as running out of time, an objective being achieved, players dying, or whatever.
  • How do I create/edit a weapon in Single Player? I have tried to use the tutorials here but I can't seem to find the right bits of the file for weapon clip size and stuff? Sorry for being a complete noob.
  • I'd like to see a tutorial on how to make a brush based entity (mapper can create something like a round pedestal, where the item is created on the center of the brush) that when used brings up a menu where you can select what kind of a entity you want to spawn with it(medkit, shotgun, or basic mechanical npc's like rollermines), and displays a visual effect on the spot the item is spawned at the time of creation(like a bright flash of light). And if just possible, a tutorial how to assign a owner to a npc like rollermine based on playerid & team of who used the brush entity to create that npc(replacing monster relationship tables, instead monster should just attack anything that is not its owner by team or name depending on is it teamplay or deatchmatch). I know how to precache the entities i want to spawn, but making the brush usable, and creating the spawning code & menu code just stumps me, and i have no clue on the ownership thing.

Level design

  • A tutorial detailing the creation of the intro sequence of Half-Life 2, with specific focus placed upon the graphical effects used during the G-Man's speech (switching to black and white, warping the depth of field as you appear on the train, scenes from the citadel appearing overlaid on the G-Man's model, etc). I'm assuming these things are done with things already implemented in the code that can be summoned by the level designer at will. The source to this part of the intro level would also be a helpful addition to the SDK.
I thought the source to the intro level was included with the SDK. It's the first train station VMF, correct? --Campaignjunkie 15:56, 31 Aug 2005 (PDT)
Yes, and yes. --Charron 17:30, 31 Aug 2005 (PDT)
Okay, the source is there. But a tutorial explaining how to set this kind of thing up would be nice. The .vmf is very complicated, using about a million entities, and it'd be much better to have the process broken down and explained in an article as opposed to trying to work out what each of the 50 logic_relay's do. --Graham 11:53, 2 Sep 2005 (PDT)
This is a subject I know *very* well. I'll try to put something together. I wrote a quick bit on the script_intro entity a while back, but I've learned a bit since, and need to make a second pass at it to explain it more fully. Expect an article on this in a week or so. --Spektre1 05:53, 12 Jan 2006 (PST)
UPDATE: I did this a while back but forgot to link it from here. :( This is the overview for how to use the script_intro entity, which is the primary controller for the introduction scene in HL2. Go see Script_intro. --Talia 18:36, 28 Jul 2006 (PDT)
  • In HL2 savegames are named by their chapter title but there's no clear way to achieve the same thing for custom maps (their saves take the map filename). Anyone know? I'm pretty sure it's nothing to do with worldspawn. --TomEdwards 03:21, 1 Sep 2005 (PDT)
I think it's done in codes. When I changed gTitleComments[] content in gameinterface.cpp to make chapter unlocking work, I noticed the savegame name changed, too. CServerGameDLL::GetSaveComment names savefile. It compares map filename with gTitleComments[], and if the map is a part of a chapter, the chapter name will be used as savefile name. Otherwise the map filename is used. -n-neko 17:46, 12 Dec 2005 (PST)
  • Haven't been able to get func_trackautochange to work in HL2, even when triggered. --wisemx 08:21, 2 Sep 2005 (PDT)
It isn't used in any of the HL2 maps, so may well be in a similar position as terrain morphing. --TomEdwards 14:51, 2 Sep 2005 (PDT)
Indeed, however the SDK code for it appears to be valid plus it can be made to return errors. --wisemx 04:14, 3 Sep 2005 (PDT)
  • I'm curious if anyone has figured out a decent waterfall. If so, how was it done? --Charron 17:17, 30 Nov 2005 (PST)
    • Can probably be done with a trigger_push and a non-solid func_brush covered with a custom semitransparent material. Have a look at the material I used for the shoreline waves in Metastasis as a possible basis... —Cargo Cult (info, talk) 10:19, 1 Dec 2005 (PST)
      • Could work. I'd also need something (sprite, probably) for the splash point, and the audio effect (should be easy to find). I'll work on it. Thanks. --Charron 12:08, 1 Dec 2005 (PST)
    • Turtle Rock used a model to create the waterfall on cs_militia. They simply created a plane, mapped a scrolling texture across it and then placed this plane atop of a normal water brush. The effect is superior to any brush-based alternative. I'll ask my modeling friend if we can do a tutorial on it, he did say it was laughably easy. `zozart .chat @ 03:44, 21 Jan 2006 (PST)
    • I use a translucent texture, a dozen env_splashes, some ambient_generics and a trigger_push, adding in a func_precipitation sometimes.


  • There is no tutorial on how to make breakable models (like the table or board) that allows you to pick up the broken pieces again. For example... I try to make a new exploding barrel, but I cannot pick up the pieces of the barrel like you can with the valve exploding barrel. How do you do this? Is it possible?
    • Try Modeling_props_with_Blender. Some of the techniques described are Blender specific, but the concepts are there for any program. Perhaps somebody with XSI experience could duplicate the essence of the tutorial? Hectate 07:20, 7 Nov 2007 (PST)
  • How many frames per second do the animations play at in HL2?
    • They play at whichever the animation specifies to play at—ts2do (Talk | @) 17:21, 12 Dec 2005 (PST)
      • It is entirely specified by the QC files that compiled the animation, as well how the code sets the framerate.--Mflux 15:53, 14 Aug 2006 (PDT)
  • I am trying to make an animated prop that is a door that slides open ala Star Trek. I have the animations working, but I cannot get the collision model to move. I looked at Ravendoor.mdl in props_lab and the collision mesh moves with the animations set there, what do I need to do to have my collision mesh move as part of an animation?
  • I have been having problems getting a prop into a map, its a large prop that requires and animated collision model however when i use $collisionjoints it truncates un-animated [properly rigged] sections of the geometry. Also, in hammer when the model is applied to a prop_dynamic entry it only uses one piece of the complete collision mesh. I'm basically left with a giant sphere and players are free to walk threw animated pieces. a Player_collision brush isn't going to fix this simply because of the animations. I've managed to figure out that having $concave in the QC will prevent it from loading as a prop_dynamic but it still isn't working correctly.Ryoku
  • I am trying to export a collision model that I made in XSI, but when I click on the SMD exporter in the valvesource menu, a blank window comes up. This is the only model that it does this with, all other models export perfectly.MisterMashu
  • Can we get a tutorial on weapon/character rigging via Physique modifier in 3D Studio MAX? Specifically what settings should be set via the physique initialization screen. What is supported, what is not. I hear hl2 support two vertices per link or bone?--Damian 22:24, 12 Jan 2007 (PST)
    • Speaking personally, all the modellers I know who use Max for Source use the Skin modifier rather than Physique. Also, I believe the limit is 4 bones per vertex.--Wunderboy 23:40, 12 Jan 2007 (PST)
  • I am currently modeling a NPC using the XSI software. However, I am at a bit of a loss at the moment as I am unsure of how to implement a cloak for this character which will be effected by physics - ie. it acts realistically when the NPC moves. Any feedback would be appreciated. Thanks.Schrodinger 19:29 GMT, 01 May 2007
  • Whenever I run hlmv, it always shows the models from the HL2 GCF, no matter what I've specified in Source SDK as the game I want to work with. If I try to open it with the command-line option of -game [path of game I want to use], it doesn't open at all, and if I try dragging an .mdl file to it it ALWAYS says "error loading model", even when that model is from a commercial game like Counter Strike: Source or Portal, or from a working mod. Is there any way to open models in hlmv that aren't the ones in the HL2 GCF? Luvcraft 22:18, 3 Nov 2007 (PDT)
    • I found the answer to the first half of my question here; basically, hlmv loads the models for HL2 AND the models for whatever game you have selected. Still can't view individual .mdl files, though. Luvcraft 22:53, 3 Nov 2007 (PDT)
  • I am in the works of making many cutom models for CS:S As like Zombies and Chickens for my Chicken mod. I have created Custom animtions for them because I am useing a custom skeleton and I can no longer use the shared player animations, Well all the ($sequence)animations work perfect in the HL model viewer but in game the JUMP animation will not play and i have tried everything i can think of in the QC to get it to work... I am stuck. this is what I have in the QC for jump and it will not work.

$sequence Jump "Jump" ACT_HOP -1 fps 30.00 {

 { event 7001 23 "lfoot" }
 { event 7001 23 "rfoot" }


If i can only have someone tell me what will trigger the jump $sequence when a player JUMPS. And without the shared player animations for it to over write it won't work. Please Give a Guy some help so i can get some sleep... Email me at batsouttahell@roadrunner.com TechKnow 06:05, 29 March 2008 (PST)

  • I've made a few maps in Goldsource and even tried to make a MOD, but I'm a begginer in Source so I have a few questions: 1.How many world models can be used in a map ? Is there a limit ? If not, why bother with world geometry ? 2.What about wpoly and epoly, what are the maximum values for a mid-range PC ? 3.Does the engine support open edges on models ? Those are the questions that I haven't found on VDC. I may have others but none comes to mind at the moment. Thank you. Cskiller86


  • How do you make a looping sound file? --TomEdwards 01:01, 21 Dec 2005 (PST)
Make an ambient_generic with its Is NOT Looped flag not checked, or are you talking about something else? --Andreasen 03:21, 19 Feb 2006 (PST)
The wave file itself should have "Cue" points at the start and end of the file so the engine knows when the sound is finished and where to loop. I know this was true in Half-Life 1, haven't tested it in Half-Life 2.
  • What directory would you put wave files in order to use them in your Mod? Or what path prefixes the wave files used in you soundscape file? ex. ambient/levels/citadel/strange_talk3.wav


No Chapter Title
  • I am trying to figure out how to get the chapter title to appear when you start a new game for a mod I am making. I have gotten as far as getting the first chapter to appear in the new game dialog (no problem there), as well as getting a image to be displayed properly for the chapter (also easy) but I can't seem to figure out how to get the Chapter title to appear. All I get is #destiny_Chapter1_Title for a chapter title. (By The Way: Destiny is the name of my mod.) See thumbnail image. It would really help if there was a clear easy tutorial that showed how to create new chapters for a mod and have the chapter title be displayed.
Try resources/modname_english.txt and friends - the HL2 originals should be a decent guide as to what to do. I think they live in source_engine.gcf or similar. A tutorial is still definitely needed! --Cargo Cult 15:18, 30 Aug 2005 (PDT)
I have completed a tutorial on how to add chapters to your mod. See Adding chapters to your mod --Created by: X 13:29, 31 Aug 2005 (PDT)


  • Need a tutorial on how to setup and use multiple computers to compile maps using the VMPI tool? --Created by: X 15:00, 31 Aug 2005 (PDT)
It isn't out yet. --TomEdwards 01:35, 2 Sep 2005 (PDT)
Can we expect it? I run my own MySQL server, and wouldn't have an issue with the licensing, I believe? I realize the issue of distributing with a commercial product. And some of us in the community could really make use of this feature; I have 6 boxes here, 5 sitting unused. --Spektre1 00:40, 18 Sep 2005 (PDT)
  • REQUEST FULFILLED I am seeking a way of unlocking chapters in my mod but I do not know how. For example when playing HL2 you play a few maps through the game and then when you goto the new game dialog and you see that chapter 2 has been unlocked and you can start a new game starting from chapter 2. How do we unlock chapters for our own mods? Do we do it in the maps using hammer or is there a script file or source code we need to edit? I have already provided a tutorial on how to Add chapters to your mod. But the last thing I need to figure out is how to unlock chapters as the player plays through the game. A tutorial or quick description on this would be really helpful --Created by: X 14:54, 1 Sep 2005 (PDT)
Search for sv_unlockedchapters in your sdk code -ts2do
I am aware of the sv_unlockedchapters console command, as well as it's presence in cfg/config.cfg that does not help me. I need to find out how valve unlocked there chapters simply by playing thru a sequence of maps. Or better yet, a way to unlock chapters by setting up triggering an entity in hammer. --Created by: X 22:30, 1 Sep 2005 (PDT)
I've no idea if it's the 'right' way of doing it, but there's always the point_clientcommand entity... --Cargo Cult 01:58, 2 Sep 2005 (PDT)
A tutorial on Unlocking chapters in your mod is now available. --Created by: X 12:47, 18 Sep 2005 (PDT)
  • Need a tutorial on setting up a custom surface type, i.e. "glass" "water" etc, with different sounds for that surface and so on. --Pon 23:06, 2 Sep 2005 (PDT)
  • Are the distributed compile tools available to the public? I keep finding references to their existence, but can't find the tools themselves. --Ljb2of3


It would useful to have more technical detail about the implementation of HDR, specifically the range of values and the way that the auto exposure controls work. In its current version, the auto exposure seems to lower and raise contrast, varying the size of the displayed dynamic range, but keeping the shadow point constant, rather than keeping the size of the displayed range constant and sliding the whole thing up and down.

This means that while bright areas 'white-out', dark areas never 'black out' only become increasingly gray and low contrast. This implementation works well for HL2 style daylight areas but is very limited in usefulness for dark maps.

Also, it would be helpful to know if it is possible to control the speed at which the auto exposure adjusts to changes. At the moment it seems to adjust very quickly to darkening, but more slowly to brightening, which is the opposite of the human eye. I would be good if the tonemap_controller could also have parameters to allow level designers to control this kind of behavior, Like iris_speed_open and iris_speed_close for example.

I can answer your second question: mat_hdr_manual_tonemap_rate. --TomEdwards 02:02, 21 Dec 2005 (PST)
mat_hdr_manual_tonemap_rate is not exactly an answer.

Face Poser

I can't seem to open faceposer, every time I try to, it crashes. Any idea? I'm running a 3.2ghz p4, with a 6800 256mb card. I also have 1gb of ram.

Same thing happens to me. Kausill 12:14, 14 July 2009 (UTC)
I have Windows XP, 8.61 gigs. Kausill 03:42, 16 July 2009 (UTC)

Variable weapon accuracy

I'm trying to make a HL2 mod with tactical gameplay, but I can't figure out how to change weapons' accuracy so that, say, when I walk or run my character's accuracy changes. I know its been done in Source, I believe with DoD in addition to many 3rd party mods, but I don't know how. Thanks for the help. Farmboyjad 23:01, 28 Oct 2007 (PDT)