Book Image

Unreal Development Kit Game Programming with UnrealScript: Beginner's Guide

By : Rachel Cordone
Book Image

Unreal Development Kit Game Programming with UnrealScript: Beginner's Guide

By: Rachel Cordone

Overview of this book

Unreal Development Kit is the free edition of Unreal Engine—the largest game engine in existence with hundreds of shipped commercial titles. The Unreal Engine is a very powerful tool for game development but with something so complex it's hard to know where to start.This book will teach you how to use the UnrealScript language to create your own games with the Unreal Development Kit by using an example game that you can create and play for yourself. It breaks down the UnrealScript language into easy to follow chapters that will quickly bring you up to speed with UnrealScript game programming.Unreal Development Kit Game Programming with UnrealScript takes you through the UnrealScript language for the Unreal Development Kit. It starts by walking through a project setup and setting up programs to write and browse code. It then takes you through using variables, functions, and custom classes to alter the game's behavior and create our own functionality. The use and creation of Kismet is also covered. Later, using replication to create and test multiplayer games is discussed. The book closes with code optimization and error handling as well as a few of the less common but useful features of UnrealScript.
Table of Contents (18 chapters)
Unreal Development Kit Game Programming with UnrealScript
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Time for action – Using the profiler


To use the profiler we don't need to do anything in UnrealScript itself; we'll use a built-in function of the Unreal engine for it.

  1. Double-click on the batch file to run BrokenMap.

  2. Hit the tilde key ( ~ ) to bring up the console.

  3. Type profilegame start into the console and hit Enter. We'll see this message on screen:

    PROFILING WITH AI LOGGING ON!
    

    As well as this message in the log:

    [0009.46] Log: GameplayProfiler STARTING capture.
  4. Run around for a little bit to give the profiler time to collect information. Around ten seconds is good.

  5. When you're ready, hit tilde (~) to bring up the console again, and type profilegame stop and hit Enter. The message on screen will go away and we'll see this message in the log:

    [0036.62] Log: GameplayProfiler STOPPING capture.
  6. Exit the game.

  7. If we look in the UDKGame folder, we'll see a new folder has appeared called Profiling. If we look in that folder, we'll see a file with the time that we ran the profiler in its file name:...