Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Save more on your purchases! discount-offer-chevron-icon
Savings automatically calculated. No voucher code required.
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletter Hub
Free Learning
Arrow right icon
timer SALE ENDS IN
0 Days
:
00 Hours
:
00 Minutes
:
00 Seconds
Source SDK Game Development Essentials
Source SDK Game Development Essentials

Source SDK Game Development Essentials: Develop engaging and immersive mods with Source SDK.

eBook
€25.99 €28.99
Paperback
€37.99
Subscription
Free Trial
Renews at €18.99p/m

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Table of content icon View table of contents Preview book icon Preview Book

Source SDK Game Development Essentials

Chapter 1. Getting Started with the Source SDK

The Source SDK is a collection of software used to create custom content for games made with Valve's Source engine. Also known as authoring tools, the Source SDK contains all the tools you need to start creating your own levels. In order to get started with the Source SDK, you first need to get a hold of Steam. Steam is Valve's entertainment platform that allows its users to download and play a multitude of different games.

In this chapter, we will cover the following topics:

  • Downloading and installing Steam

  • Gaining access to the SDK

  • Glancing at the tools

  • Creating your own modification (mod) with the Source SDK

So, let's get started!

Installing Steam


You might ask yourself what is Steam, and why do I need it? First and foremost, the only way to gain access to the Source SDK is by downloading the SDK or a Valve game that uses the Source engine. All of Valve's Source engine games are downloaded and managed with a program called Steam. Steam lets you purchase, organize, and update thousands of games, and it's completely free.

In order to download and install Steam, you need to visit store.steampowered.com, and click on the Install Steam button in the top-right corner of the web page, as shown in the following screenshot:

This will redirect you to another page where you can download the actual installation file. After you have downloaded and installed Steam, you need to log in or create a new user account if you do not already have one. All you need is a valid e-mail address in order to create a new Steam account.

Getting your tools


Great! You have installed Steam. Now what? There are a multitude of games that run on the Source engine. There are also many different versions of the Source engine: 2006, 2007, 2013, and multiplayer and single player variants for each. This book will focus on Half-Life 2: Episode Two (HL2: EP2) since it's the most recent single player build of the Source engine at the time of writing this book. In order to create content for HL2: EP2, you just need to own a copy of the game. Steam makes it easy to install games. So, if you haven't already, purchase and install HL2: EP2.

Tip

You don't need HL2: EP2 to follow this book. The principles taught cover the Source SDK tools, which are applicable to multiple games.

Instructions for installing Half-Life 2: Episode Two

Downloading and installing games with Steam is easy! Steam lets you securely purchase any game and will automatically install them once downloaded. The steps for installing Half-Life 2: Episode Two are as follows:

  1. Open Steam and log in.

  2. In Steam, just below the main toolbar, you will see STORE, LIBRARY, COMMUNITY, and your username in a large white font. Click on STORE.

  3. Search for Half-Life 2: Episode Two, purchase it, and install it.

  4. You can monitor the download progress within the Downloads tab in the LIBRARY drop-down menu. HL2: EP2 will begin to install automatically once the download is complete.

The STORE is located in the top-left corner of Steam as shown in the following screenshot:

Browse for Half-Life 2: Episode Two as shown in the following screenshot. You can also get any other Source game.

Once the download and install is complete, launch the game and play around with the engine you will be developing for, as shown in the following screenshot:

The Source SDK tools overview


All the SDK tools come with the game, so you don't need to install anything extra. (This also means you don't need to wait for something else to download!) The tools are located in the Steam\steamapps\common\Half-Life 2\bin folder. The folder is packed with applications, batch files, and DLLs, but there are a few key programs that we're interested in right now. In the bin folder, you will see Hammer, HLMV, and HLFacePoser. Hammer Editor is the tool you will most likely use; it is the application that you use to actually create the levels (maps). HLMV or Half-Life Model Viewer is a tool you can use to inspect game models in detail. HLFacePoser is used to sync lips to speech, and create custom scenes and NPC interactions.

Tip

At the time of writing this book, FacePoser is broken—this will not be covered.

The Source SDK


Half-Life 2: Episode Two ships with its own set of authoring tools, but if you want to make your own mod, you need the Source SDK. The Source SDK is a program that organizes all the authoring tools for specific mods and engine builds and has the ability to automatically create a mod based on the code from Half-Life 2: Episode Two. If you want to create your own mod, you will need to grab the Source SDK.

Installing the Source SDK

Installing the Source SDK is just as easy as any regular game. The best part is its price: free! The steps for installing the Source SDK are as follows:

  1. In the top-left corner of the games library, select the dropdown that says All Games and select Tools.

  2. Find the Source SDK in the list of Tools.

  3. Right-click on Source SDK and select Install game, or just double-click to begin the download process.

  4. You can monitor the download progress within the Downloads tab in the LIBRARY. The Source SDK will begin to install automatically once the download is complete.

The Source SDK overview

When you first launch the Source SDK, it will need a minute or so to copy files and complete the install, but once that is complete, you're ready to go! You will notice that the Source SDK contains a variety of tools, documents, and links. At the very bottom are two fields labeled Engine Version and Current Game. Engine Version is used to select which version of the Source engine you would like to develop for.

The later engine versions have more features and graphics upgrades compared to the earlier versions. There is also the Source Engine MP option, which lets you create maps for Valve's multiplayer games such as Counter-Strike: Source and Team Fortress 2.

Applications

In the APPLICATIONS list, you will see Hammer Editor, Model Viewer, Face Poser, and itemtest. Hey, doesn't this look like the set of authoring tools we had for HL2: EP2? It is, with the exception of itemtest that allows you to look into details about specific games items such as the items available in Team Fortress 2.

Documentation

In the DOCUMENTATION list, you will see Release Notes and SDK Reference Docs. The Release Notes option will link you to the Valve Developer Community website that describes the changes made to the current version of the Source SDK. SDK Reference Docs will link you to the Valve Developer Community website's collection of notes about every aspect of the Source SDK.

Utilities

In the UTILITIES list, you will see Create a Mod, Refresh SDK Content, Reset Game Configurations, and Edit Game Configurations. Create a Mod will open a wizard that allows you to create your own modification, or mod, for a certain Source game. Refresh SDK Content will refresh all the game content in the event that the Source SDK is not functioning properly. Reset Game Configurations will return all games to their default configurations. Edit Game Configurations will allow you to modify the path of any game you want.

Links

In the LINKS list, you will see Valve Developer Community and Softimage|XSI Mod Tool. Valve Developer Community will link you to the main page of Valve Developer Community. Softimage|XSI Mod Tool will link you to an Autodesk website where you can download a free version of character modeling and animation software that is compatible with the Source engine.

Creating your own modification (mod)


So you have this amazing idea for a video game and want to create your own mod. You want to include lasers and Samurai, and you want to make a fast-paced, WWII-era, team-based shoot-em-up game called Samurai Laser Paratroopers. Well, guess what—the Source engine can do this, and the Source SDK makes the mod setup easy! In this example, we will be creating a multiplayer Mod for the 2007 Source engine from a template:

  1. To create your very own Half-Life 2 mod, double-click on the Create a Mod utility.

  2. Select the Start a Multiplayer mod from a Template radio button on the first prompt of the Create a Mod wizard and then click on Next.

  3. In the first entry, specify the drive directory location where you want your game to be stored. I chose C:\SLP\ for easy access. In the second entry, specify the name of the mod you want to create, and click on Next to continue.

  4. Choose the options you want available in your mod.

  5. The wizard will then copy all the necessary files into the directory you have specified.

The instructions are pretty straightforward. Choose carefully when you select the options shown in the following screenshot; they're harder to change later on:

Have patience, we're almost done!

Now, let's take a look at the folders the wizard has created. There are four folders in your new mod's folder (shown here as C:\SLP). Three of those folders have suffixes of "src" as shown in the following screenshot:

The mapsrc folder is where all your maps should be saved (although you can always save your maps elsewhere). All texture and material files go into the materialsrc folder, while all models should be saved in the modelsrc folder. The code generated specifically for your mod is saved in the src folder. Utilizing these folders to store all your source materials will make your life easier later on.

Restart Steam and check out your library of games. Your new mod is in there!

Also take a look at the Source SDK; your mod will be listed as one of the games in the engine build you selected, as shown in the following screenshot:

When you create a mod with the Source SDK wizard, it creates a barebones game. You will need to dive into the game code to make your mod what you want it to be. This book does not cover custom code, but it's still relevant for mapping techniques for your custom mod.

Summary


Getting your hands on Steam is quick and easy. It is required to use the Source SDK tools, and it is also useful for keeping your games and tools organized. Once Steam is installed, downloading and installing Half-Life 2: Episode Two is a snap. Creating a mod is a great way to begin developing your own game with the source engine base code, but you still need to code to get what you want out of the game. Let's pick up the Hammer and see what we can do!

Left arrow icon Right arrow icon
Estimated delivery fee Deliver to Finland

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Feb 21, 2014
Length: 294 pages
Edition :
Language : English
ISBN-13 : 9781849695923

What do you get with Print?

Product feature icon Instant access to your digital copy whilst your Print order is Shipped
Product feature icon Paperback book shipped to your preferred address
Product feature icon Redeem a companion digital copy on all Print orders
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Shipping Address

Billing Address

Shipping Methods
Estimated delivery fee Deliver to Finland

Premium delivery 7 - 10 business days

€17.95
(Includes tracking information)

Product Details

Publication date : Feb 21, 2014
Length: 294 pages
Edition :
Language : English
ISBN-13 : 9781849695923

Packt Subscriptions

See our plans and pricing
Modal Close icon
€18.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
€189.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts
€264.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just €5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total €87.97 €98.97 €11.00 saved
Direct3D Rendering Cookbook
€45.99
Mastering CryENGINE
€41.99
Source SDK Game Development Essentials
€37.99
Total €87.97€98.97 €11.00 saved Stars icon

Table of Contents

11 Chapters
Getting Started with the Source SDK Chevron down icon Chevron up icon
Grasping Hammer Chevron down icon Chevron up icon
Shaping Your World Chevron down icon Chevron up icon
Textures, Terrain, and Props Chevron down icon Chevron up icon
Importing Custom Content Chevron down icon Chevron up icon
Lighting and Compiling Chevron down icon Chevron up icon
Triggers and the Input/Output System Chevron down icon Chevron up icon
Trains and Camera Systems Chevron down icon Chevron up icon
NPC Movement Basics Chevron down icon Chevron up icon
Advanced NPC Scripting Chevron down icon Chevron up icon
Source Particle Editor Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(1 Ratings)
5 star 0%
4 star 0%
3 star 100%
2 star 0%
1 star 0%
Maker of Images May 17, 2014
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
You can find all of the info in this book free online at the Source website. However it is nicely packaged and worth the price.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

What is the digital copy I get with my Print order? Chevron down icon Chevron up icon

When you buy any Print edition of our Books, you can redeem (for free) the eBook edition of the Print Book you’ve purchased. This gives you instant access to your book when you make an order via PDF, EPUB or our online Reader experience.

What is the delivery time and cost of print book? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela
What is custom duty/charge? Chevron down icon Chevron up icon

Customs duty are charges levied on goods when they cross international borders. It is a tax that is imposed on imported goods. These duties are charged by special authorities and bodies created by local governments and are meant to protect local industries, economies, and businesses.

Do I have to pay customs charges for the print book order? Chevron down icon Chevron up icon

The orders shipped to the countries that are listed under EU27 will not bear custom charges. They are paid by Packt as part of the order.

List of EU27 countries: www.gov.uk/eu-eea:

A custom duty or localized taxes may be applicable on the shipment and would be charged by the recipient country outside of the EU27 which should be paid by the customer and these duties are not included in the shipping charges been charged on the order.

How do I know my custom duty charges? Chevron down icon Chevron up icon

The amount of duty payable varies greatly depending on the imported goods, the country of origin and several other factors like the total invoice amount or dimensions like weight, and other such criteria applicable in your country.

For example:

  • If you live in Mexico, and the declared value of your ordered items is over $ 50, for you to receive a package, you will have to pay additional import tax of 19% which will be $ 9.50 to the courier service.
  • Whereas if you live in Turkey, and the declared value of your ordered items is over € 22, for you to receive a package, you will have to pay additional import tax of 18% which will be € 3.96 to the courier service.
How can I cancel my order? Chevron down icon Chevron up icon

Cancellation Policy for Published Printed Books:

You can cancel any order within 1 hour of placing the order. Simply contact customercare@packt.com with your order details or payment transaction id. If your order has already started the shipment process, we will do our best to stop it. However, if it is already on the way to you then when you receive it, you can contact us at customercare@packt.com using the returns and refund process.

Please understand that Packt Publishing cannot provide refunds or cancel any order except for the cases described in our Return Policy (i.e. Packt Publishing agrees to replace your printed book because it arrives damaged or material defect in book), Packt Publishing will not accept returns.

What is your returns and refunds policy? Chevron down icon Chevron up icon

Return Policy:

We want you to be happy with your purchase from Packtpub.com. We will not hassle you with returning print books to us. If the print book you receive from us is incorrect, damaged, doesn't work or is unacceptably late, please contact Customer Relations Team on customercare@packt.com with the order number and issue details as explained below:

  1. If you ordered (eBook, Video or Print Book) incorrectly or accidentally, please contact Customer Relations Team on customercare@packt.com within one hour of placing the order and we will replace/refund you the item cost.
  2. Sadly, if your eBook or Video file is faulty or a fault occurs during the eBook or Video being made available to you, i.e. during download then you should contact Customer Relations Team within 14 days of purchase on customercare@packt.com who will be able to resolve this issue for you.
  3. You will have a choice of replacement or refund of the problem items.(damaged, defective or incorrect)
  4. Once Customer Care Team confirms that you will be refunded, you should receive the refund within 10 to 12 working days.
  5. If you are only requesting a refund of one book from a multiple order, then we will refund you the appropriate single item.
  6. Where the items were shipped under a free shipping offer, there will be no shipping costs to refund.

On the off chance your printed book arrives damaged, with book material defect, contact our Customer Relation Team on customercare@packt.com within 14 days of receipt of the book with appropriate evidence of damage and we will work with you to secure a replacement copy, if necessary. Please note that each printed book you order from us is individually made by Packt's professional book-printing partner which is on a print-on-demand basis.

What tax is charged? Chevron down icon Chevron up icon

Currently, no tax is charged on the purchase of any print book (subject to change based on the laws and regulations). A localized VAT fee is charged only to our European and UK customers on eBooks, Video and subscriptions that they buy. GST is charged to Indian customers for eBooks and video purchases.

What payment methods can I use? Chevron down icon Chevron up icon

You can pay with the following card types:

  1. Visa Debit
  2. Visa Credit
  3. MasterCard
  4. PayPal
What is the delivery time and cost of print books? Chevron down icon Chevron up icon

Shipping Details

USA:

'

Economy: Delivery to most addresses in the US within 10-15 business days

Premium: Trackable Delivery to most addresses in the US within 3-8 business days

UK:

Economy: Delivery to most addresses in the U.K. within 7-9 business days.
Shipments are not trackable

Premium: Trackable delivery to most addresses in the U.K. within 3-4 business days!
Add one extra business day for deliveries to Northern Ireland and Scottish Highlands and islands

EU:

Premium: Trackable delivery to most EU destinations within 4-9 business days.

Australia:

Economy: Can deliver to P. O. Boxes and private residences.
Trackable service with delivery to addresses in Australia only.
Delivery time ranges from 7-9 business days for VIC and 8-10 business days for Interstate metro
Delivery time is up to 15 business days for remote areas of WA, NT & QLD.

Premium: Delivery to addresses in Australia only
Trackable delivery to most P. O. Boxes and private residences in Australia within 4-5 days based on the distance to a destination following dispatch.

India:

Premium: Delivery to most Indian addresses within 5-6 business days

Rest of the World:

Premium: Countries in the American continent: Trackable delivery to most countries within 4-7 business days

Asia:

Premium: Delivery to most Asian addresses within 5-9 business days

Disclaimer:
All orders received before 5 PM U.K time would start printing from the next business day. So the estimated delivery times start from the next day as well. Orders received after 5 PM U.K time (in our internal systems) on a business day or anytime on the weekend will begin printing the second to next business day. For example, an order placed at 11 AM today will begin printing tomorrow, whereas an order placed at 9 PM tonight will begin printing the day after tomorrow.


Unfortunately, due to several restrictions, we are unable to ship to the following countries:

  1. Afghanistan
  2. American Samoa
  3. Belarus
  4. Brunei Darussalam
  5. Central African Republic
  6. The Democratic Republic of Congo
  7. Eritrea
  8. Guinea-bissau
  9. Iran
  10. Lebanon
  11. Libiya Arab Jamahriya
  12. Somalia
  13. Sudan
  14. Russian Federation
  15. Syrian Arab Republic
  16. Ukraine
  17. Venezuela