Assistance Requests

From Valve Developer Community
Revision as of 20:45, 8 November 2007 by LieltChicb (talk | contribs)
Jump to navigation Jump to search

synchronizing act the black power speech interactive computer animation two hangmen school blackboard le lingerie club print shop 8 soda club music area bay day event memorial weekend architectural schools in michigan out off touch anova calculations machine safety vending kailua high abc design fonts mirage las vegas review you do not have permission to log on. naruto midi file user interaction design for secure systems sample job interview thank you notes vw hot rod parts ups in canada shake speare poems im king remix am fm radio history whats up my niggas swimming cap manufacturers lining of heart chambers stop trying to make fetch happen manufactured housing community lexus interior part twin lake resort last minute travel yahoo scott county iowa new york film academy summer more confidence plate plastic same boy i used to be lyrics mill spring school machine barrier password manager 1.0 your so fine intense neck pain shoulder resell computer resident evil movie poster asian online wedding iron sy mandala design free solid suspended propaganda stalin nextel cellphones agusta golf national allan king real estate worldwatch institute orlando executive suite truck floor mates online library science programs trend micro mobile security version 1.0 king juan carlos i of spain my chemist australia sabarnes oxley act network diagram of internet 1920s golf history minneapolis minnesota attorney american forrest rain south used hair salon equipment super sized me impact prospects listen songs for free woman owned small business loan 2005 grammy performance videos the affect of music on teenager top 100 engineering college in india self divorce texas medical terminology a living language kowloon hotel opera bastille paris france malaysians airlines illinois auctioneers realtors in galveston texas pirate portland ticket poly phenylene oxide strip darts i need to learn to dance earth temperature profile auto tv tuner some distant memory rss bar codes ati bios flashing land for sale rhode island production planning and scheduling new hampshire craftsman massachusetts school closings tuesday 1996 packer security and cooperation in europe turbocharger honda le hoi truyen thong used mack engine illinois auctioneers image reject filters

Introduction

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.

Programming

  • 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.

Thanks!

  • 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, doesnt the smg also have a "lazer" 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.

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 overlayed 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.

Modeling

  • 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 turnicates unanimated [properly rigged] sections of the geometry. Also, in hammer when the model is applied to a prop_dynamic entery it only uses one piece of the complete collision mesh. I'm basicly 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 verticies 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 modelling 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 physiscs - ie. it acts relistically 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)

Audio

  • 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

Mods

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. (BTW: 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)

Misc

  • 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 thru 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 thru 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 presense 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 availible. --Created by: X 12:47, 18 Sep 2005 (PDT)
  • Need a tutorial on setting up a custom surface type, ie "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 existance, but can't find the tools themselves. --Ljb2of3

HDR

It would useful to have more technical detail about the implementation of HDR, specifically the range of values and the way that the autoexposure controls work. In its current version, the autoexposure 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 daylit 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 autoexposure 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, everytime 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.

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)