My program doesn't have bugs. It just develops random features.

UE3:Setting Up Configuration Files for a New Game Project Tutorial (UDK)

From Unreal Wiki, The Unreal Engine Documentation Site
Revision as of 23:10, 28 February 2012 by Krillin6 (Talk | contribs) (Created page with '= Setting Up Configuration Files for a New Game Project = This is a step-by-step tutorial explaining precisely how to setup the configuration files for a new Game Project for th…')

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Setting Up Configuration Files for a New Game Project

This is a step-by-step tutorial explaining precisely how to setup the configuration files for a new Game Project for the UDK after installing the software and setting up your coding environment and folder structure.

This tutorial was created using the January 2012 version of the UDK.

Things to Remember

  • I'll say it again, this tutorial was created using the January 2012 version of the UDK. There is no guarantee this will work for previous releases or newer ones that come down the pipeline. The UDK is still technically in Beta, and the basic setup can and most likely will continue to change somewhat over time. I will attempt to keep this guide updated as new editions are released.
  • This tutorial assumes you know how to download and install the UDK, and have already done so.
  • The UDK isn't designed for multiple games to be developed from one installation. This is something I had to find out by reading random guides around the internet. I don't believe the online documentation mentions this, and I believe this still holds true.
  • Don't be afraid to start over. This means backing up the configuration files folder and starting from scratch; if you don't have anything you want to keep, don't hesitate to blow everything away and begin again until you get it right. It took me quite a few attempts to get this right, while piecing together information from outdated tutorials around the web with incomplete and out-dated online documentation from Epic.
  • I'm assuming you want to setup your game as an extension of the already provided code-base and configuration files that come with the UDK. This is how most people will setup their new game project.
  • I'm not an expert yet, so if I make any mistakes, please correct them and comment as to why on the discussions page.

Step 1: Finding and Changing the Configuration Files

  • In a nutshell, navigate to your Config folder, which should be similar to C:\UDK\UDK-2012-01\UDKGame\Config
  • You should be seeing something very similar to this:


UDK Config 01.png


Making the Change

  • Open the file DefaultEngineUDK.ini
  • There are two sections we're looking for. One is called [Core.System] and the other is [UnrealEd.EditorEngine]
  • Those sections are displayed here:


UDK Config 02.png


  • If you have trouble locating the sections, use the "Find" function of notepad by pressing Ctrl+F and searching for the section's title.
  • Starting with the [Core.System] section, I'm going to have you add a line at the very top. Add "+Paths=..\..\MyGameProject\Content" without the quotes. Also, replace 'MyGameProject' with whatever game name you want, just remember what you entered.
  • It wont matter where you add the line, as long as it begins with the '+' sign and is in the correct section. The '+' sign denotes you are adding another value of key-type 'Paths' into the [Core.System] section.
  • Your DefaultEngineUDK.ini file should now look similar to this (I've added the red outline to indicate the addition):


UDK Config 03.png


  • Save and close the configuration file.

Why We Did This

  • You might be asking, "Why did I just add that line?" Adding this line tells the UDK to look for packages (files ending in .upk that hold game assets and maps) and add them to the content browser every time you launch the UDK executable. Cool, huh?

Step 2: Creating the New Content Directory Structure

  • Now you need to create the folders you've just pointed to in the Configuration file, and populate them with a .upk file and test it out. If you launch the UDK right now, it won't be any different, as the folders don't even exist.
  • Navigate to the base UDK installation folder, which should be similar to C:\UDK\UDK-2012-01. If you're in the correct place, you should see something very similar to this folder structure:


UDK Config 04.png


  • Now create a new folder in this directory and name it whatever you entered for "MyGameProject" previously in the Config file. It has to be exactly the same, although it doesn't need to be case-sensitive.
  • Inside the new folder you just created, create another folder and name it "Content."
  • Your new folder structure should look like this (I've added the red box to indicate the new folders):


UDK Config 05.png


Populating the Content Folder

  • Before the UDK will care about your Configuration File changes, or the new folders you've just made, you need to copy a .upk file to the new Content folder.
  • Navigate to C:\UDK\UDK-2012-01\UDKGame\Content or its equivalent on your machine, and copy any .upk file you desire (smaller is better, but not necessary).
  • Paste the .upk file you just copied back into the C:\UDK\UDK-2012-01\MyGameProject\Content folder of its equivalent on your machine, and launch the UDK.

Success

If you've done everything correctly, you should be able to open the content browser, and see the new folders and the .upk file on the bottom left of the content browser. Like this:


UDK Config 06.png


Part 3: Changing the Configuration Files Again