Udk sets a custom game.

Source: Internet
Author: User

This post comes from http://www.theballthegame.com/tutorialudk.htm

 

The first is the directory structure of a udk game

 

Binaries: contains the executable file of the game. You do not need to modify the file here.
Development: contains the source code of the unrealscript file. udk searches for and compiles unrealscript in this directory.
Engine: Engine file, which should not be modified.
Udkgame: All files of a custom game. Most resource files are here.

Some directory-related information http://udn.epicgames.com/Three/DirectoryLayoutCH.html can be obtained from the udk website

 

Sub-Directories In udkgame:

Config: the directory contains various configuration files.
Content: stores game resource files, levels, music, models, textures, and so on.
Localization: the text here is probably used in different languages, because the literal translation of a name is localized.
Movies: stores videos.
Script: compiled unrealscript.
Splash: stores the startup screen.

The remaining directories are not important. If you need to set code version control such as SVN, the development and udkgame directories are generally set.

 

 

Unrealscript:

You can use the nfringe plug-in of Visual Studio to compile unrealscript.

Http://pixelminegames.com/nfringe/

You can also use the free uncodex

Http://sourceforge.net/projects/uncodex/

 

Create a new directory under the Development \ SRC \ directory. For example, "mygame ". All unrealscript files in this directory will be compiled into *. U files under udkgame \ script. * The Name Of The. U file will be the same as the directory name.

You can create a classes directory under the "mygame" directory and add three unrealscript files: mygameinfo. UC mypawn. UC and myplayercontroller. UC.

 

 

In the next step, let the udk know the changes we have made and open the udkgame \ config \ defaultengine. ini file. Find "[unrealed. editorengine]" and add "+ modeditpackages = mygame ".

 

+ Editpackages = utgame
+ Editpackages = uteditor
+ Editpackages = utgamecontent
+ Modeditpackages = mygame

 

Ensure the order because some codes have dependencies.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.