- Unreal Development Kit Game Design Cookbook
- Thomas Mooney
- 596字
- 2021-08-20 15:41:17
Cooking a map in Unreal Frontend
Once you've made a level, or a set of them, you can cook the content (to distil out from the editor only what is used) and then package that to a game installer that can run on any capable PC without having to have UDK itself there too. In this recipe the cooking process is outlined for a simple test case.
Getting ready
Load any map, or the C:\UDK\~\UDKGame\Content\Yourfolder\Yourfirstmap.UDK
you made in the recent recipe Beginning, building and testing a level.
How to do it...
- Make sure that the level you've chosen has been built (Build | Build All) or press [
], because the cooking process uses the baked lighting information.
- In the level's View | World Properties | Game Type property set UTGame, if it isn't set already and save to
C:\UDK\~\UDKGame\Content\Maps\CookMe.UDK
. It is good to have a different folder for final, cookable maps and maps that are still being developed. - Close UDK, then in Windows go to Start | All Programs | Unreal Development Kit | ~ | Tools | Unreal Frontend. Frontend can be used to launch the editor, to launch a game to play, or to package a game. You can also use the search field to pop it up quickly, as shown here:
- Once Frontend launches, choose the type of game you are cooking using the preset. Two types are for mobile, and one is for PC. In this case, choose the PC version which is called DM-Deck.
- In the Maps to Cook window, highlight the entry DM-Deck and choose Remove. Then click the Add... text button, and choose it from the list (which shows all the valid maps UDK can find in UDKGame\Content). If you haven't got a map to use, the name of any map in the list will do. After all, this is just a test run.
- If you intend to bundle together several maps for cooking, you can specify the initial launch map in the field called Launch Map, by turning on Override Default and choosing one from the list, which is based on the maps to cook. Remember, if an included level depends on another (for a menu or go to map upon completion), to avoid errors you will have to include that to cook too.
- You can set the Target Directory for the output file (although to be safe, you may as well leave the default setting for this alone).
- Along the top of the Frontend interface there are big glossy icons. Click Launch to show the options for it (on mouse release), and click the checkbox to disable this feature. Then, since for now you don't need to compile any scripts, just click on Cook and choose Clean and Full Recook. Then wait till you see the report in the feedback panel showing success.
- Now click the icon for Package Game and enable its Step Enabled checkbox, and then click the embedded Package Game command. A dialog will appear asking for a GameLongName and a GameName. GameLongName determines the way your game will appear in Windows in the Start | All Programs menu. The GameName is what's given to the installer filename. Appended to this will be the prefix UDKInstall, so if you typed in MyGame as your GameName, you'd get UDKInstall-MyGame.EXE.
- Press Package Game after entering these names, and wait till you get the success notice returned in the messages in Frontend. Once finished you'll have an .EXE installer which installs the same way UDK installs in the folder you specified in the Target Directory field.
推薦閱讀
- 計(jì)算機(jī)應(yīng)用
- 網(wǎng)絡(luò)服務(wù)器架設(shè)(Windows Server+Linux Server)
- 數(shù)據(jù)中心建設(shè)與管理指南
- Getting Started with MariaDB
- 一本書玩轉(zhuǎn)數(shù)據(jù)分析(雙色圖解版)
- Java開發(fā)技術(shù)全程指南
- 數(shù)據(jù)庫原理與應(yīng)用技術(shù)學(xué)習(xí)指導(dǎo)
- 計(jì)算機(jī)網(wǎng)絡(luò)應(yīng)用基礎(chǔ)
- Visual Basic從初學(xué)到精通
- 最后一個人類
- 零起點(diǎn)學(xué)西門子S7-200 PLC
- 寒江獨(dú)釣:Windows內(nèi)核安全編程
- Mastering OpenStack(Second Edition)
- PowerPoint 2010幻燈片制作高手速成
- PostgreSQL 10 High Performance