User:Createdbyx: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
 
(13 intermediate revisions by 4 users not shown)
Line 1: Line 1:
[[Category:Tutorials]]This is the place where I Created by: X will post my tutorials for modding HL2. Please only make changes to this page related to spell checking, and factual errors.
This is the place where I, Created by: X, will post my tutorials for modding HL2. Please only make changes to this page related to spell checking, and factual errors.


----
----


== Mini Mods ==
== Mini Mods ==
=== Changing the appearence and behavior of the HL2 GUI. ===
* [[Changing the appearence and behavior of the HL2 GUI]]
* [[Changing the fading speed of the GUI Windows]]
* [[Manipulating the game menu items]]
* [[Startup Videos]]
* [[Adding chapters to your mod]]
* [[Unlocking chapters in your mod]]


Changing the appearence of the HL2 GUI is as easy as changing the values in the <code>SteamApps\YourMod\Resource\SourceScheme.res</code> using notepad. If you have not started to create your own hl2 mod you will need to extract the SourceScheme.res file from the <code>SteamApps\source engine.gcf</code> group file. I personally use [[GCFScape]]. to extract the files I need. Look under <code>root\hl2\resource\SourceScheme.res</code> to find the file. You will need to extract the SourceScheme.res file into the <code>SteamApps\youremail\half-life2\hl2\resource</code> folder. Or if you want to customize your own mod then extract the file to <code>SteamApps\YourMod\Resource\SourceScheme.res</code>.
== Mods ==
 
* [[Compiling under VS2002]]
Lets take a look at changing the color of all GUI items to a blue tint. Open the SourceScheme.res file in notepad and scroll down to about line 63 you should see something like this...
 
<pre>
Frame.TitleTextInsetX 16
Frame.ClientInsetX 8
Frame.ClientInsetY 6
Frame.BgColor "160 160 160 128"
Frame.OutOfFocusBgColor "160 160 160 32"
Frame.FocusTransitionEffectTime "0.3" // time it takes for a window to fade in/out on focus/out of focus
Frame.TransitionEffectTime "0.08" // time it takes for a window to fade in/out on open/close
Frame.AutoSnapRange "0"
</pre>
Simply change the values for <code>Frame.BgColor</code> to <code>160 160 255 128</code>. Colors are ordered RGBA (Red-Green-Blue-Alpha). Now save the file and run your mod. Voila! You now have a blue tinted GUI.
 
=== Changing the fading speed of the GUI Windows ===
To change the speed that the GUI fades in and out, as well as the fading speed of switiching between tabs, review the previous mini mod entitled <code>Changing the appearence and behavior of the HL2 GUI.</code>
 
Once you have opened the SourceScheme.res file scroll down to about line 63 and you should see this...
<pre>
Frame.TitleTextInsetX 16
Frame.ClientInsetX 8
Frame.ClientInsetY 6
Frame.BgColor "160 160 160 128"
Frame.OutOfFocusBgColor "160 160 160 32"
Frame.FocusTransitionEffectTime "0.3" // time it takes for a window to fade in/out on focus/out of focus
Frame.TransitionEffectTime "0.08" // time it takes for a window to fade in/out on open/close
Frame.AutoSnapRange "0"
</pre>
To change the speed that windows fade in and out change the value of <code>Frame.FocusTransitionEffectTime</code> to <code>0.08</code>. I have mine set to 0.08, because I feel it makes it more responsive and you don'y feel like you are waiting for the dialog to fade in.
 
To change the fading speed when switching between tabs scroll down to about line 117 and you should see this ...
<pre>
PropertySheet.TextColor "OffWhite"
PropertySheet.SelectedTextColor "White"
PropertySheet.TransitionEffectTime "0.08" // time to change from one tab to another
</pre>
Again to change the speed that tabs fade in and out change the value of <code>PropertySheet.TransitionEffectTime</code> to <code>0.08</code>. Again I have mine set to 0.08.


== Todo List ==
* write an explanation of how to get trigger_changelevel entity working properly
* show people how to compile there maps using multiple computers
* show how to create models in 3DS MAX and export and convert them for use in your game mods.


== External Links ==
== External Links ==


* [http://www.createdbyx.com/ Created by: X Web site]
* [http://www.createdbyx.com/ Created by: X Web site]

Latest revision as of 18:22, 19 September 2005

This is the place where I, Created by: X, will post my tutorials for modding HL2. Please only make changes to this page related to spell checking, and factual errors.


Mini Mods

Mods

Todo List

  • write an explanation of how to get trigger_changelevel entity working properly
  • show people how to compile there maps using multiple computers
  • show how to create models in 3DS MAX and export and convert them for use in your game mods.

External Links