I love the smell of UnrealEd crashing in the morning. – tarquin

Difference between revisions of "Legacy:Create An INT File"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Added simpler way to create an INT file. (dumpint))
Line 7: Line 7:
 
Use a [[Legacy:Text Editor|text editor]] to create the file (if you are using Notepad, make sure it does not save your file as "MyPackage.INT.TXT"). Make sure you don't indent any of the lines within the INT file.  The .int files are not parsed correctly by the Unreal Engine when lines are indented.
 
Use a [[Legacy:Text Editor|text editor]] to create the file (if you are using Notepad, make sure it does not save your file as "MyPackage.INT.TXT"). Make sure you don't indent any of the lines within the INT file.  The .int files are not parsed correctly by the Unreal Engine when lines are indented.
  
Another way to create an INT file is to simply go to the command prompt, find the system dir of Unreal Tournament and type " ucc dumpint (classnamehere).u (Without the brackets of course)  Be sure to add the .u extension as it is esential.  the Dumpint command will take all the (I believe) need stuff from your code and easily create an int of it.  You can then edit it as you wish.
+
Another way to create an INT file in [[Legacy:UT2003|UT2003]] and newer is to use the [[Legacy:DumpIntCommandlet|DumpIntCommandlet]].
  
 
==For a mutator==
 
==For a mutator==

Revision as of 03:05, 12 July 2004

This is a Category:Legacy Basic Procedure tutorial page. It explains how to perform a single procedure which is required in many different contexts.

Packages you compile need an INT file. This tells the game what classes are available for interrogation and/or public use within the corresponding package. So for MyPackage.U, you need a MyPackage.INT in the {Base Directory}/System directory.

All INT files are plain text so you can look at the others in the {Base Directory}/System directory if you wish. Just don't change any of them.

Use a text editor to create the file (if you are using Notepad, make sure it does not save your file as "MyPackage.INT.TXT"). Make sure you don't indent any of the lines within the INT file. The .int files are not parsed correctly by the Unreal Engine when lines are indented.

Another way to create an INT file in UT2003 and newer is to use the DumpIntCommandlet.

For a mutator

[Public]
Object=(Class=Class,MetaClass=Engine.Mutator,Name=MyPackage.MyMutatorClass,Description="Hello World Example")

The Description=... part won't be used in UT2003, but it still helps identifying the mutator if you have more than only one of them in your package.

In Unreal Tournament the description is neccessary, though. It consists of the mutator'S displayed name and the description displayed in the status bar in the form "Mutator Name,Status bar description."

For a mutator with MOD Menu item (UT)

[Public]
Object=(Name=MyPackage.MyMutatorClass,Class=Class,MetaClass=Engine.Mutator,Description="My Mutator,My status message")
Object=(Name=MyPackage.MyMenuItemClass,Class=Class,MetaClass=UMenu.UMenuModMenuItem,Description="My MOD menu item,My status message")

The Description=... part consists of two parts separated by a comma. The first part will be the name of the object (mutators, menu items show up with this name in the mutator or MOD menu respectively), while the second part is a hint text that will be shown in the status bar when the item is selected or the mouse hovers over it.

If you have several mutators or menu items in your package, you need to have a separate entry for each of those - otherwise those will not show up in the game.

Note that the MOD menu will not show up in the UT menu until there is at least one item in it.

For default values (UT)

The default values MAY be overridden by defining new default values in the INT file for the relevant class and its variables (note that only class variables can be overridden with the INT file).

The syntax is similar as before.

[YourClass]
YourVariableInt=10                               // Integer value
YourVariableFloat=10.000000                      // Floating-point value
YourVariableBool=False                           // Boolean value
YourVariableString=This is the new default value // String value

You can use this feature for example to localize dialogs, messages, etc.

If the information above is not sufficient, check the localized variable syntax in Variable_Syntax and the example in INT_File.

Also you need to remember that the extension of the INT file does matter. You can read about this in Localization.

Related Topics