OBJECT (not Package, dumbass) Flags question

Discussions about Coding and Scripting
Post Reply
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

OBJECT (not Package, dumbass) Flags question

Post by JackGriffin »

A couple of years back I was messing with package flags and hex editing of UEngine packages. There was a page that listed all the default package flags native to the engine but I can't find it now. Does this ring a bell with anyone? Did someone happen to cache it by chance?

The reason I ask is that I found a file I needed to edit so it was downloadable from my coop server. I ran into something else I want to look at while I had it open.
Last edited by JackGriffin on Sun Sep 20, 2015 3:44 pm, edited 1 time in total.
So long, and thanks for all the fish
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Package Flags question

Post by Higor »

ucc packageflag Package.u PackageEdited.u -ServerSideOnly +AllowDownload
Replace Package.u with PackageEdited.u

PD: If the file is a map, XC_Engine on the server solves it without altering the map.


EDIT:

Code: Select all

enum EPackageFlags
{
	PKG_AllowDownload	= 0x0001,	// Allow downloading package.
	PKG_ClientOptional  = 0x0002,	// Purely optional for clients.
	PKG_ServerSideOnly  = 0x0004,   // Only needed on the server side.
	PKG_BrokenLinks     = 0x0008,   // Loaded from linker with broken import links.
	PKG_Unsecure        = 0x0010,   // Not trusted.
	PKG_Need			= 0x8000,	// Client needs to download this package.
};
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Package Flags question

Post by JackGriffin »

There used to be a page that listed a ton of the flags. Do you remember it Higor? As far as I can remember it was the only full source of the flags that I ever found. I really want to dig deep into something via hex editing and I need guidance.
I'm back working on this: http://www.unrealadmin.org/forums/showt ... hp?t=30936
Higor wrote: PD: If the file is a map, XC_Engine on the server solves it without altering the map.
It's actually a set of music files that for some reason were flagged not to download. I've fixed them but now I'm thinking about some other things I was working on a few years back.
Last edited by JackGriffin on Sun Sep 20, 2015 3:38 pm, edited 1 time in total.
So long, and thanks for all the fish
Higor
Godlike
Posts: 1866
Joined: Sun Mar 04, 2012 6:47 pm

Re: Package Flags question

Post by Higor »

Lol @AnthraX gave the same reply.
Just open the file and alter the package flags at offset 8

(EDIT: only use AllowDownload)
User avatar
Wormbo
Adept
Posts: 258
Joined: Sat Aug 24, 2013 6:04 pm
Contact:

Re: Package Flags question

Post by Wormbo »

Whatever list you had in mind, for packages there's only one important flag, which is ServerSideOnly. Technically, ClientOptional and AllowDownload might also be of interest, but under normal circumstances you should not have any reason to use package flags at all other than marking server-side packages with ServerSideOnly.
JackGriffin
Godlike
Posts: 3774
Joined: Fri Jan 14, 2011 1:53 pm
Personal rank: -Retired-

Re: Package Flags question

Post by JackGriffin »

Goddammit, I did it again.
Image

Higor, I meant the object flags. WTF can't I keep it straight in my mind....

Edit: Found it. Here's a copy for anyone interested:
ut-package-file-format.zip
(206.54 KiB) Downloaded 92 times
It's a PDF file, author:
http://www.acordero.org/author/antonio-cordero/
So long, and thanks for all the fish
Post Reply