Always snap to grid

Difference between revisions of "UE3:Setting Up a Scripting Environment (UT3)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (Added tutorials category)
m (no Legacy: links, and no underscores unless it's a class name)
 
Line 1: Line 1:
 
==Directories (Windows)==
 
==Directories (Windows)==
  
[[Legacy:UT3|UT3]]'s directory structure is somewhat different from previous versions.
+
[[UT3]]'s directory structure is somewhat different from previous versions.
  
 
*All user files are stored in "My Documents" ('''Vista:''' C:\Users\<user name>\Documents\My Games\Unreal Tournament 3\, '''XP:''' C:\Documents and Settings\<user name>\My Documents\My Games\Unreal Tournament 3).  This includes all custom made maps, source code, profile data etc..
 
*All user files are stored in "My Documents" ('''Vista:''' C:\Users\<user name>\Documents\My Games\Unreal Tournament 3\, '''XP:''' C:\Documents and Settings\<user name>\My Documents\My Games\Unreal Tournament 3).  This includes all custom made maps, source code, profile data etc..
Line 34: Line 34:
 
'''Note:''' You can use -nohomedir to get UT3 to not use the My Documents system. Instead, the UT3 main install directory will be used.
 
'''Note:''' You can use -nohomedir to get UT3 to not use the My Documents system. Instead, the UT3 main install directory will be used.
  
[[Category:Programming_tutorials/UT3]]
+
[[Category:Programming tutorials (UT3)]]

Latest revision as of 02:15, 13 June 2010

Directories (Windows)[edit]

UT3's directory structure is somewhat different from previous versions.

  • All user files are stored in "My Documents" (Vista: C:\Users\<user name>\Documents\My Games\Unreal Tournament 3\, XP: C:\Documents and Settings\<user name>\My Documents\My Games\Unreal Tournament 3). This includes all custom made maps, source code, profile data etc..
  • There is no longer an UnrealEd.exe, instead you run "UT3.exe editor"
  • There is no longer a UCC.exe, the new method to compile is "UT3.exe make"
  • UT3 now includes a Preprocessor. Rudimentary, but functional.

Setting Up[edit]

In order for your source code to be included in the compiling, you need to add

 ModPackages=<MyPackage>

to the [ModPackages] section in UTEditor.ini. Located in "My Documents\My Games\Unreal Tournament 3\UTGame\Config"

To ease the use of testing source code create two shortcuts:

  • "UT3.exe make"
  • "UT3.exe -useunpublished"

The first will compile all scripts for packages specified in the UTEditor.ini. The files produced will be in the Unpublished folder. Any errors in your coding will be shown in the output produced.

The second will run UT3, and use the files in the Unpublished folder.

Note: If you run UT3 with the -useunpublished flag it will not scan the Published folder for mods and maps when you run the game. This means that any maps and mods installed within the Published area will not be available in-game.

Also note that the -useunpublished flag also functions when paired with make; ie the following is valid:

  • "UT3.exe make -useunpublished"

This will tell the compiler to look within the unpublished folder for any mod packages that you may have referenced in your code.

Note: You can use -nohomedir to get UT3 to not use the My Documents system. Instead, the UT3 main install directory will be used.