i need to write an diff tools for unreal asset, and i found the commandlet UDiffPackagesCommandlet, but i cannot run it correctly.
i googled and cannot found any document introduction about this commandlet, any suggestions are appreciated.
Tulpuh
(Tulpuh)
February 25, 2021, 7:21am
2
According to the documentation, UDiffPackagesCommandlet is depreciated as of at least 4.26 and redefined as UDEPRECATED_DiffPackagesCommandlet. Use with caution. As far as how to use them see UCommandlet | Unreal Engine 5.2 Documentation .
Commandlet (command-line applet) class.
Commandlets are executed from the ucc.exe command line utility, using the following syntax: yourgame.exe package_name.commandlet_class_name [parm=value]…
for example: yourgame.exe Core.HelloWorldCommandlet yourgame.exe UnrealEd.CookCommandlet
As a convenience, if a user tries to run a commandlet and the exact name he types isn’t found, then ucc.exe appends the text “commandlet” onto the name and tries again. Therefore, the following shortcuts perform identically to the above: yourgame.exe Core.HelloWorld yourgame.exe UnrealEd.Make
Commandlets are executed in a “raw” environment, in which the game isn’t loaded, the client code isn’t loaded, no levels are loaded, and no actors exist.
To disable shader compiling during the run of the commandlet add “-NoShaderCompile” to the commandline. This would be added as data member setting except that the shader compiler is initialized before a commandlet is created so it cannot be queried soon enough.