Gildor's Forums

Author Topic: -save option apears to do nothing?  (Read 62 times)
giwayume
Newbie
*
Posts: 5


View Profile
-save option apears to do nothing?
« on: June 10, 2022, 04:35 »

I'm trying this command, but doesn't appear to save the .uasset file to "PATH_TO_PACKS"

Code:
umodel_64 -path="PATH_TO_PAKS" -out="PATH_TO_PAKS" -save NAME_OF_UASSET

If I replace the "-save" part with "-extract" or "-list", it works.

The only output is this:
Code:
Pak PATH_TO_PAKS/pakchunk0-WindowsNoEditor.pak: 95443 files, version 8
Found 95443 game files (12 skipped) in 3834 folders at path "PATH_TO_PAKS"
Scanned game directory in 0.2 sec, 99692 allocs, 18.27 MBytes serialized in 12 c
alls.

Version: Apr 16 2022 (build 1587)
« Last Edit: June 10, 2022, 04:38 by giwayume » Logged
giwayume
Newbie
*
Posts: 5


View Profile
Re: -save option apears to do nothing?
« Reply #1 on: June 10, 2022, 05:40 »

Looking at the code, the "out" option only affects export, not save. That would need to be fixed.

Also it would be nice if "KeepDirectoryStructure" could be exposed as a command-line option (to turn it off).
« Last Edit: June 10, 2022, 05:44 by giwayume » Logged
spiritovod
Hero Member
*****
Posts: 1253


View Profile
Re: -save option apears to do nothing?
« Reply #2 on: June 15, 2022, 21:36 »

@giwayume: Actually it works without "-out" argument, umodel is using contents of umodel.cfg for various parameters, including save packages path and keep structure option (if you've saved something via GUI once, you should have that config). With that config set and placed near umodel, some command line parameters are read from there.
Alternatively, you can use specific build from this topic - it can now use "-out" argument for saving packages into particular folder as well, and also keep structure option is exposed via "-nokeep" argument.

Sample command:
Code:
umodel -save -nokeep -path="Path to paks" -out="Path to saved assets" asset_name
« Last Edit: June 16, 2022, 01:25 by spiritovod » Logged
Jump to:  

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