Once I get that upgrade to 36-hour days, I will tackle that. – Mychaeel

Difference between revisions of "UPKG File"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
m (moved Legacy:UPKG File to UPKG File: removed legacy, about to update article)
(Rewrote the article.)
 
Line 1: Line 1:
This type of file is used to tell ucc what flags to set to the current package. They are placed in the ''Classes'' folder.
+
A .UPKG file is a simple text file that the [[UnrealScript]] compiler will look for to know what initial PackageFlags to use for the compiling package, the file must be placed within the ''Classes'' folder.
 
+
The '''upkg''' file is a helper file (such as the [[Legacy:INI File|INI file]] or [[Legacy:INT File|INT file]]). As with the other two, this, as well, is a simple text file which can simply be edited in Notepad. This is very similar to the '''int''' file in behavior, with the difference that the int is used after compilation to add new things to the game, while the ukpg is used before compilation.
+
 
+
They consist of one or more sections which start with the section '''Flags''' marked in brackets followed by Key=Value boolean pairs.
+
  
 +
The content of a .UPKG looks like
 
<uscript>
 
<uscript>
 
[Flags]
 
[Flags]
Line 10: Line 7:
 
ClientOptional=False
 
ClientOptional=False
 
ServerSideOnly=True
 
ServerSideOnly=True
...
 
 
</uscript>
 
</uscript>
  
==Related Topics ==
+
this would flag the package as don't send the package to any clients that request it from the server and flag the package as ''ServerSideOnly'' which means only the server may load this package.
 +
 
 +
The default flag values are
 +
<uscript>
 +
[Flags]
 +
AllowDownload=True
 +
ClientOptional=False
 +
ServerSideOnly=False
 +
</uscript>
  
* [[Legacy:File Format|File Format]]
+
{{navbox unrealscript}}
* [[Legacy:Localization|Localization]]
+
* [[Legacy:Unreal Engine|Unreal Engine]]
+

Latest revision as of 22:20, 21 April 2010

A .UPKG file is a simple text file that the UnrealScript compiler will look for to know what initial PackageFlags to use for the compiling package, the file must be placed within the Classes folder.

The content of a .UPKG looks like

[Flags]
AllowDownload=False
ClientOptional=False
ServerSideOnly=True

this would flag the package as don't send the package to any clients that request it from the server and flag the package as ServerSideOnly which means only the server may load this package.

The default flag values are

[Flags]
AllowDownload=True
ClientOptional=False
ServerSideOnly=False