PDA

View Full Version : How exactly does SetPackageFlags work?



BattleMode
11-27-2007, 08:44 AM
I have created a UPK file (containing some UI Scenes) and I want to change it's flags so people autodownload it when they connect to a server which has this UPK file.

This is the help for the SetPackageFlags commandlet:

Name: Editor.SetPackageFlags
Description: Sets certain allowed package flags on the specified package(s)
Usage: gamename.exe SetPackageFlags <package/wildcard> <flag1=value> <flag2=value>...
Options:
package/wildcard - The package(s) to modify flags for
flagX=value - List of flags to modify and the desired value (true or false). Supported flags: ServerSideOnly, ClientOptional, AllowDownload

What is unclear to me is where the UPK file has to be for this commandlet to work. And how exactly I specify which UPK file it has to change. When I call it from the directory where the UPK file is and use the name of the file (with or without UPK extension) it does not seem to work.

I was also wondering if there is some way to extract the flags from a UPK so I can check if the settings are ok.

Mysterial
11-27-2007, 12:47 PM
Packages by default are autodownloaded, so you don't need to do anything unless you want to turn that off.

To answer your question, you might have to give it the full path to the package in order for it to be found; the commandlet wasn't really tested with the user path stuff.

GeneralSoundwave
10-14-2008, 10:55 AM
Mr Mysterial hooked us up over here too!

http://utforums.epicgames.com/showthread.php?t=587830&highlight=SetPackageFlags