EliotVU / Unreal-Library

UnrealScript decompiler library for Unreal package files (.upk, .u, .uasset; etc), with support for Unreal Engine 1, 2, and 3
MIT License
367 stars 86 forks source link

Running UE via command line? #31

Closed adrianom-gh closed 3 years ago

adrianom-gh commented 3 years ago

Thanks so much for this decompiler! It's been working wonders. I was curious to know if you can run this via command line? I'm looking to write a batch script that will export a bunch of .uc files from a .upk.

EliotVU commented 3 years ago

You're welcome!

Fortunately there is indeed a way to launch UE Explorer via its console form :)

Arguments:

<file_path> (Optional)
-console : Launches UE Explorer as a console window displaying its live-log.
    -silent : The console window will automatically close when the task completes.

    -export=classes or scripts : Exports all classes or scripts from the specified package.
    -newwindow : Open the file in a new UE Explorer window.

Example:

"C:\Program Files (x86)\Eliot\UE Explorer\UE Explorer.exe" "C:\UT2004\System\Core.u" -console -export=classes