Gildor's Forums

Author Topic: How to list all packages in a pak file via command line?  (Read 74 times)
giwayume
Newbie
*
Posts: 5


View Profile
How to list all packages in a pak file via command line?
« on: June 10, 2022, 03:07 »

I believe pkginfo * can give me what I want for listing all of the packages. The problem is pkgver doesn't seem to work. The game is version 4.22. No matter what I specify, it still prompts in the GUI to select the version manually.

umodel_64 -path="PATH/TO/PAKS/FOLDER" -pkgver=422 -pkginfo *
umodel_64 -path="PATH/TO/PAKS/FOLDER" -pkgver=4.22 -pkginfo *
umodel_64 -path="PATH/TO/PAKS/FOLDER" -pkgver=517 -pkginfo *

How does pkgver work?
Logged
giwayume
Newbie
*
Posts: 5


View Profile
Re: How to list all packages in a pak file via command line?
« Reply #1 on: June 10, 2022, 03:11 »

Oh, that was confusing, but I figured out it's the -game option.

umodel_64 -path="PATH/TO/PAKS/FOLDER" -game=ue4.22 -pkginfo *
Logged
giwayume
Newbie
*
Posts: 5


View Profile
Re: How to list all packages in a pak file via command line?
« Reply #2 on: June 10, 2022, 03:25 »

Well, new question. How do I specify a specific .pak file to read? I can't find a way to look at a single pak file that's an alternative to the "-path" option.

If I do this, it says the package is too large.

umodel_64 "PATH/TO/PAKS/SOMEPAK.pak" -game=ue4.22 -pkginfo *

« Last Edit: June 10, 2022, 03:27 by giwayume » Logged
spiritovod
Hero Member
*****
Posts: 1253


View Profile
Re: How to list all packages in a pak file via command line?
« Reply #3 on: June 16, 2022, 01:46 »

@giwayume: It's only possible if you'll put single pak in a separate folder and use "-path" to this folder. It works like this because of design and compatibility with other engine versions (UE3 and below), so only uassets can be passed via cmd as single files for UE4.
Also, I suppose "-pkginfo" was developed more like dev option and mostly for UE3 packages. If you want to just list all available assets in a UE4 package (in txt or json), there are other tools which can do it in more user-friendly ways.
Logged
Jump to:  

Powered by SMF | SMF © 2006-2009, Simple Machines LLC
Leviathan design by Bloc | XHTML | CSS