Tuesday, October 16, 2012

Cookbook: UDK command lines

There are many things that can simplify your work and increase productivity. I think that in case of UDK that requires restarting editor and recompiling after each minor script change you can save some time by using batch files for starting everything you want without the need to manually open some level, etc.

You can find some additional tips on getting started with UDK in this tutorial.

So here are some useful command lines (use them in your batches):
  • compile script

call Binaries\Win64\UDK.exe make
  • run editor with your level + show log

call Binaries\Win64\UDK.exe editor YOUR_LEVEL_NAME -log -NoGADWarnings

Aforementioned command lines are for 64bit systems, in case you're using older 32bit systems, please replace Win64 with Win32. Create those batches in your UDK install dir and put only a shortcut on your desktop to make it work with relative paths.

Using UnrealFrontend:

When packaging your game and cooking your levels you'll need to work with Unreal Frontend (%UDK_INSTALLDIR%\Binaries\UnrealFrontend.exe).

  • don't forget to have all your maps/levels listed in Maps to Cook window prior to any cooking
  • don't forget to use Script/Full recompile after changes to script
  • this has to be followed by Cook/Clean and Full Recook of levels (to actually use changes in script)
  • after cooking, launch your game to make sure everything is intact and up to date
  • only after doing the check (in case everything is ok) do the actual packaging
And last but not least, don't forget that you cannot compile scripts with editor running (this will cause compilation warnings and errors)!

No comments:

Post a Comment