Cogito, ergo sum
Difference between revisions of "Commandlet"
(Added missing commandlets, though heavily lacking in documentation :() |
|||
Line 8: | Line 8: | ||
UT3.exe run package_name.commandlet_class_name [parm=value]... | UT3.exe run package_name.commandlet_class_name [parm=value]... | ||
Any <code>param=value</code> options on the commandline are parsed and values for parameters matching variable names of the commandlet class are assigned to those variables. | Any <code>param=value</code> options on the commandline are parsed and values for parameters matching variable names of the commandlet class are assigned to those variables. | ||
+ | |||
+ | ==Native functions== | ||
+ | ====Main==== | ||
+ | {{code|native event [[int]] '''Main''' ([[string]] '''Params''')}} | ||
+ | |||
+ | Entry point for your commandlet. Override this function '''without calling Super.Main()'''! The default implementation of this function calls the native C++ Main() function with the specified parameter string, which in turn calls this [[UnrealScript]] Main() function by default, resulting in an infinite recursion. | ||
+ | |||
+ | One might expect the return value becomes the exit value of the UCC process, but it is actually discarded. UCC always exits with code 0 (no error), unless any errors (not warnings) were logged, which causes UCC to exit with code 1. | ||
+ | An exception to this is the [[UDK]], which correctly returns the given value. | ||
+ | |||
+ | '''Parameters:''' | ||
+ | * ''Params'' - the string containing the parameters for the commandlet | ||
==Important commandlets== | ==Important commandlets== | ||
; BatchExportCommandlet : Exports resources from [[Unreal packages]]. | ; BatchExportCommandlet : Exports resources from [[Unreal packages]]. | ||
− | ; | + | ; BatchImportCommandlet<sup>UE1?, UE2</sup> : Import resources into [[Unreal packages]]. (Must prefix with Editor.) |
; HelpCommandlet : Displays help for other commandlets. (<code>ucc help ''commandletname''</code>) | ; HelpCommandlet : Displays help for other commandlets. (<code>ucc help ''commandletname''</code>) | ||
; MakeCommandlet : Compiles [[UnrealScript]] code. | ; MakeCommandlet : Compiles [[UnrealScript]] code. | ||
Line 17: | Line 29: | ||
; PkgCommandlet : A tool for editing Unreal packages from the commandline. | ; PkgCommandlet : A tool for editing Unreal packages from the commandline. | ||
; ServerCommandlet : Runs a dedicated game server. | ; ServerCommandlet : Runs a dedicated game server. | ||
+ | ; ConformCommandlet : Makes [[Unreal packages]] network-compatible. | ||
+ | ; CompressCommandlet : Compresses Unreal packages for redirected downloads. | ||
; UncompressCommandlet : Decompresses files created by the CompressCommandlet. | ; UncompressCommandlet : Decompresses files created by the CompressCommandlet. | ||
− | == | + | ==Testers== |
− | + | ; TestCompressionCommandlet<sup>UE3</sup> | |
− | + | ; TestTextureCompressionCommandlet<sup>UE3</sup> | |
+ | ; TestWordWrapCommandlet<sup>UE3</sup> | ||
− | + | ; ExamineOutersCommandlet<sup>UE3</sup> | |
+ | ; PerformMapCheckCommandlet<sup>UE3</sup> | ||
− | + | ; CheckSounds<sup>UT2004</sup> | |
− | + | ; CheckEmitters<sup>UT2004</sup> | |
+ | ; CheckStaticMeshes<sup>UT2004</sup> | ||
+ | ; CheckTextures<sup>UT2004</sup> | ||
− | + | ; CheckLightMapUVsCommandlet<sup>UE3</sup> | |
− | + | ; CheckSumCommandlet | |
+ | ; ChecksumPackageCommandlet | ||
+ | ; CheckUnicodeCommandlet | ||
+ | |||
+ | ==Listers== | ||
+ | ; ListCorruptedComponentsCommandlet<sup>UE3</sup> | ||
+ | ; ListCustomMaterialExpressionsCommandlet<sup>UE3</sup> | ||
+ | ; ListDistanceCrossFadeNodesCommandlet<sup>UE3</sup> | ||
+ | ; ListEmittersUsingModuleCommandlet<sup>UE3</sup> | ||
+ | ; ListExports<sup>UE2, UE3?</sup> | ||
+ | ; ListLoopingEmittersCommandlet<sup>UE3</sup> | ||
+ | ; ListPackagesReferencingCommandlet<sup>UE3</sup> | ||
+ | ; ListPSysFixedBoundSettingCommandlet<sup>UE3</sup> | ||
+ | ; ListScriptReferencedContentCommandlet<sup>UE3</sup> | ||
+ | ; ListSoundNodeWavesCommandlet<sup>UE3</sup> | ||
+ | |||
+ | ==Finders== | ||
+ | ; FindCinematicTexturesCommandlet<sup>UE3</sup> | ||
+ | ; FindTexturesWithMissingPhysicalMaterialsCommandlet<sup>UE3</sup> | ||
+ | ; FindQuestionableTexturesCommandlet<sup>UE3</sup> | ||
+ | ; FindSoundCuesWithMissingGroupsCommandlet<sup>UE3</sup> | ||
+ | ; FindDuplicateKismetObjectsCommandlet<sup>UE3</sup> | ||
+ | ; FindStaticMeshEmptySectionsCommandlet<sup>UE3</sup> | ||
+ | ; FindStaticMeshCanBecomeDynamicCommandlet<sup>UE3</sup> | ||
+ | ; FindAssetReferencersCommandlet<sup>UE3</sup> | ||
+ | ; FindEmitterModuleLODErrorsCommandlet<sup>UE3</sup> | ||
+ | ; FindDarkDiffuseTexturesCommandlet<sup>UE3</sup> | ||
+ | ; FindNeverStreamTexturesCommandlet<sup>UE3</sup> | ||
+ | ; FindDuplicateTexturesCommandlet<sup>UE3</sup> | ||
+ | ; FindEmitterMismatchedLODsCommandlet<sup>UE3</sup> | ||
+ | ; FindEmitterModifiedLODsCommandlet<sup>UE3</sup> | ||
+ | ; FindUniqueSpecularTextureMaterialsCommandlet<sup>UE3</sup> | ||
+ | |||
+ | ==Fixers== | ||
+ | ; FixAdditiveReferencesCommandlet<sup>UE3</sup> | ||
+ | ; FixAmbiguousMaterialParametersCommandlet<sup>UE3</sup> | ||
+ | ; FixupEmittersCommandlet<sup>UE3</sup> | ||
+ | ; FixupRedirectsCommandlet<sup>UE3</sup> | ||
+ | ; FixupSourceUVsCommandlet<sup>UE3</sup> | ||
+ | |||
+ | ==Analyzers== | ||
+ | ; AnalyzeBuildCommandlet<sup>UE2</sup> | ||
+ | ; AnalyzeContentCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeCookedContentCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeCookedTextureDXT5UsageCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeCookedTextureSingleUsageCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeCookedTextureUsageCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeDVDSpaceCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeFallbackMaterialsCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeKismetCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzePackageCommandlet<sup>UE2</sup> | ||
+ | ; AnalyzeParticleSystemsCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeShaderCachesCommandlet<sup>UE3</sup> | ||
+ | ; AnalyzeScriptCommandlet<sup>UE3</sup> | ||
+ | |||
+ | ==Other commandlets== | ||
+ | ; DataRipCommandlet | ||
+ | ; MasterServerCommandlet | ||
+ | ; MergeDXTCommandlet | ||
+ | ; PackageFlagCommandlet | ||
+ | ; PS2ConvertCommandlet | ||
+ | ; UpdateServerCommandlet | ||
+ | ; UpdateUModCommandlet | ||
+ | ; BatchingSummary | ||
+ | ; ClassFlagCommandlet | ||
+ | ; DXTConvertCommandlet | ||
+ | ; GroupRepairCommandlet | ||
+ | ; MapKillZ | ||
+ | ; ObjectRenameCommandlet | ||
+ | ; SetNormalLODCommandlet | ||
+ | ; StaticMeshConvert | ||
+ | ; StreamCommandlet | ||
+ | ; SurfaceTypeCommandlet | ||
+ | ; ConvertMaterialCommandlet<sup>UE2</sup> | ||
+ | ; DumpIntCommandlet<sup>UE2</sup> : Dumps all variable names and values marked with the flag [[localized]] into an .int file. | ||
+ | ucc.exe Editor.DumpIntCommandlet PACKAGENAME.u [-mod=MODNAME] | ||
+ | ; MasterMD5Commandlet<sup>UE2</sup> | ||
+ | ; UTVCommandlet<sup>UE2</sup> | ||
+ | ; CompareIntCommandlet<sup>UE2</sup> | ||
+ | ; CutDownContentCommandlet<sup>UE2</sup> | ||
+ | ; CutDownPackagesCommandlet | ||
+ | ; StripSourceCommandlet<sup>UT2004</sup> | ||
+ | ; DumpConfigCommandlet<sup>UT2004</sup> | ||
+ | ; ExportCacheCommandlet<sup>UT2004</sup> | ||
+ | ; GroupRepairCommandlet<sup>UT2004</sup> | ||
+ | ; MapConvertCommandlet<sup>UT2004</sup> | ||
+ | ; MergeIntCommandlet<sup>UT2004</sup> | ||
+ | ; RearrangeIntCommandlet<sup>UT2004</sup> | ||
+ | ; RebuildCommandlet<sup>UT2004</sup> | ||
+ | ; TextureInfoCommandlet<sup>UT2004</sup> | ||
+ | ; TextureLODCommandlet<sup>UT2004</sup> | ||
+ | ; TextureStripCommandlet<sup>UT2004</sup> | ||
+ | ; UModUnpackCommandlet<sup>UT2004</sup> | ||
+ | ; ReimportTexturesCommandlet | ||
+ | ; CompressTextures<sup>UT2004</sup> | ||
+ | ; ConvertTexturesCommandlet | ||
+ | ; ContentAuditCommandlet<sup>UE3</sup> | ||
+ | ; ContentComparisonCommandlet<sup>UE3</sup> | ||
+ | ; SoundCueAuditCommandlet<sup>UE3</sup> | ||
+ | ; OutputAuditSummaryCommandlet<sup>UE3</sup> | ||
+ | ; ConvertMapToNavMesh<sup>UE3</sup> | ||
+ | ; DiffPackagesCommandlet<sup>UE3</sup> | ||
+ | ; ExportLocCommandlet<sup>UE3</sup> | ||
+ | ?.exe ExportLocCommandlet [PACKAGENAME.EXT] [-full] | ||
+ | ; CompareLocCommandlet<sup>UE3</sup> | ||
+ | ?.exe CompareLocCommandlet LANGUAGEXTENSION | ||
+ | ; PatchScriptCommandlet<sup>UE3</sup> | ||
+ | ; PrecompileShadersCommandlet<sup>UE3</sup> | ||
+ | ; DumpShadersCommandlet<sup>UE3</sup> | ||
+ | ; SetMaterialUsageCommandlet<sup>UE3</sup> | ||
+ | ; ParticleSystemAuditCommandlet<sup>UE3</sup> | ||
+ | ; LensFlareAuditCommandlet<sup>UE3</sup> | ||
+ | ; MaterialAuditCommandlet<sup>UE3</sup> | ||
+ | ; PMapForceObjectCheckCommandlet<sup>UE3</sup> | ||
+ | ; UpdateKismetCommandlet<sup>UE3</sup> | ||
+ | ; SetTextureLODGroupCommandlet<sup>UE3</sup> | ||
+ | ; CompressAnimationsCommandlet<sup>UE3</sup> | ||
+ | ; WrangleContentCommandlet<sup>UE3</sup> | ||
+ | ; SetMaterialUsageCommandlet<sup>UE3</sup> | ||
+ | ; SetPackageFlagsCommandlet<sup>UE3</sup> | ||
+ | ; PIEToNormalCommandlet<sup>UE3</sup> | ||
+ | ; UT3MapStatsCommandlet<sup>UE3, UT3</sup> | ||
+ | ; OutputAuditSummaryCommandlet<sup>UE3</sup> | ||
+ | ; DumpLightmapInfoCommandlet<sup>UE3</sup> | ||
+ | ; PerformTerrainMaterialDumpCommandlet<sup>UE3</sup> | ||
+ | ; MineCookedPackagesCommandlet<sup>UE3</sup> | ||
+ | ; LoadPackage<sup>UT2004, UE3?</sup> | ||
+ | ; ConvertEmittersCommandlet<sup>UE3</sup> | ||
+ | ; DumpEmittersCommandlet<sup>UE3</sup> | ||
+ | ; ConvertUberEmittersCommandlet<sup>UE3</sup> | ||
+ | ; ReplaceActorCommandlet<sup>UE3</sup> | ||
+ | ; CheckpointGameAssetDatabaseCommandlet<sup>UE3</sup> | ||
+ | ; LocSoundInfoCommandlet<sup>UE3</sup> | ||
+ | ; DumpPropertiesCommandlet<sup>UE3</sup> | ||
+ | ; ContentAuditCommandlet<sup>UE3</sup> | ||
+ | ; ContentComparisonCommandlet<sup>UE3</sup> | ||
+ | ; SoundClassInfoCommandlet<sup>UE3</sup> | ||
+ | ; WriteGameStatsReportCommandlet<sup>UE3</sup> | ||
+ | ; TagCookedReferencedAssetsCommandlet<sup>UE3</sup> | ||
+ | ; TagReferencedAssetsCommandlet<sup>UE3</sup> | ||
+ | ; ShowTaggedPropsCommandlet<sup>UE3</sup> | ||
+ | ; ShowPropertyFlagsCommandlet<sup>UE3</sup> | ||
+ | ; ShowObjectCountCommandlet<sup>UE3</sup> | ||
+ | ; ShowStylesCommandlet<sup>UE3</sup> | ||
+ | ; CreateDefaultStyleCommandlet<sup>UE3</sup> | ||
+ | ; CreateStreamingWorldCommandlet<sup>UE3</sup> | ||
+ | ; PkgInfoCommandlet<sup>UE3</sup> | ||
+ | ; ResavePackagesCommandlet<sup>UE3</sup> | ||
+ | ; ScaleAudioVolumeCommandlet<sup>UE3</sup> | ||
+ | ; CookPackagesCommandlet<sup>UE3</sup> | ||
+ | ; CookPackagesXenonCommandlet | ||
+ | ; MergePackagesCommandlet<sup>UE3</sup> |
Latest revision as of 14:57, 26 November 2012
Object >> Commandlet |
- Direct subclass:
- HelloWorldCommandlet
- This class in other games:
- RTNP, U1, UT, UE2Runtime, UT2003, U2, U2XMP, UT2004, UDK, UT3
Commandlets are executed from the ucc.exe command line utility, using the following syntax:
ucc.exe package_name.commandlet_class_name [parm=value]...
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" to the name and tries again. Additionally, typically used commandlets do not need their package name specified. This allows users to just type ucc server ...
instead of ucc Engine.ServerCommandlet ...
. Games that do not come with ucc.exe (e.g. very early Unreal Engine 1 games and any Unreal Engine 3 games) can execute commandlets via the main executable of the game. Unreal Engine 3 may require the parameter run
for non-native commandlets, e.g.:
UT3.exe run package_name.commandlet_class_name [parm=value]...
Any param=value
options on the commandline are parsed and values for parameters matching variable names of the commandlet class are assigned to those variables.
Native functions[edit]
Main[edit]
Entry point for your commandlet. Override this function without calling Super.Main()! The default implementation of this function calls the native C++ Main() function with the specified parameter string, which in turn calls this UnrealScript Main() function by default, resulting in an infinite recursion.
One might expect the return value becomes the exit value of the UCC process, but it is actually discarded. UCC always exits with code 0 (no error), unless any errors (not warnings) were logged, which causes UCC to exit with code 1. An exception to this is the UDK, which correctly returns the given value.
Parameters:
- Params - the string containing the parameters for the commandlet
Important commandlets[edit]
- BatchExportCommandlet
- Exports resources from Unreal packages.
- BatchImportCommandletUE1?, UE2
- Import resources into Unreal packages. (Must prefix with Editor.)
- HelpCommandlet
- Displays help for other commandlets. (
ucc help commandletname
) - MakeCommandlet
- Compiles UnrealScript code.
- MasterCommandlet
- Creates UMOD files.
- PkgCommandlet
- A tool for editing Unreal packages from the commandline.
- ServerCommandlet
- Runs a dedicated game server.
- ConformCommandlet
- Makes Unreal packages network-compatible.
- CompressCommandlet
- Compresses Unreal packages for redirected downloads.
- UncompressCommandlet
- Decompresses files created by the CompressCommandlet.
Testers[edit]
- TestCompressionCommandletUE3
- TestTextureCompressionCommandletUE3
- TestWordWrapCommandletUE3
- ExamineOutersCommandletUE3
- PerformMapCheckCommandletUE3
- CheckSoundsUT2004
- CheckEmittersUT2004
- CheckStaticMeshesUT2004
- CheckTexturesUT2004
- CheckLightMapUVsCommandletUE3
- CheckSumCommandlet
- ChecksumPackageCommandlet
- CheckUnicodeCommandlet
Listers[edit]
- ListCorruptedComponentsCommandletUE3
- ListCustomMaterialExpressionsCommandletUE3
- ListDistanceCrossFadeNodesCommandletUE3
- ListEmittersUsingModuleCommandletUE3
- ListExportsUE2, UE3?
- ListLoopingEmittersCommandletUE3
- ListPackagesReferencingCommandletUE3
- ListPSysFixedBoundSettingCommandletUE3
- ListScriptReferencedContentCommandletUE3
- ListSoundNodeWavesCommandletUE3
Finders[edit]
- FindCinematicTexturesCommandletUE3
- FindTexturesWithMissingPhysicalMaterialsCommandletUE3
- FindQuestionableTexturesCommandletUE3
- FindSoundCuesWithMissingGroupsCommandletUE3
- FindDuplicateKismetObjectsCommandletUE3
- FindStaticMeshEmptySectionsCommandletUE3
- FindStaticMeshCanBecomeDynamicCommandletUE3
- FindAssetReferencersCommandletUE3
- FindEmitterModuleLODErrorsCommandletUE3
- FindDarkDiffuseTexturesCommandletUE3
- FindNeverStreamTexturesCommandletUE3
- FindDuplicateTexturesCommandletUE3
- FindEmitterMismatchedLODsCommandletUE3
- FindEmitterModifiedLODsCommandletUE3
- FindUniqueSpecularTextureMaterialsCommandletUE3
Fixers[edit]
- FixAdditiveReferencesCommandletUE3
- FixAmbiguousMaterialParametersCommandletUE3
- FixupEmittersCommandletUE3
- FixupRedirectsCommandletUE3
- FixupSourceUVsCommandletUE3
Analyzers[edit]
- AnalyzeBuildCommandletUE2
- AnalyzeContentCommandletUE3
- AnalyzeCookedContentCommandletUE3
- AnalyzeCookedTextureDXT5UsageCommandletUE3
- AnalyzeCookedTextureSingleUsageCommandletUE3
- AnalyzeCookedTextureUsageCommandletUE3
- AnalyzeDVDSpaceCommandletUE3
- AnalyzeFallbackMaterialsCommandletUE3
- AnalyzeKismetCommandletUE3
- AnalyzePackageCommandletUE2
- AnalyzeParticleSystemsCommandletUE3
- AnalyzeShaderCachesCommandletUE3
- AnalyzeScriptCommandletUE3
Other commandlets[edit]
- DataRipCommandlet
- MasterServerCommandlet
- MergeDXTCommandlet
- PackageFlagCommandlet
- PS2ConvertCommandlet
- UpdateServerCommandlet
- UpdateUModCommandlet
- BatchingSummary
- ClassFlagCommandlet
- DXTConvertCommandlet
- GroupRepairCommandlet
- MapKillZ
- ObjectRenameCommandlet
- SetNormalLODCommandlet
- StaticMeshConvert
- StreamCommandlet
- SurfaceTypeCommandlet
- ConvertMaterialCommandletUE2
- DumpIntCommandletUE2
- Dumps all variable names and values marked with the flag localized into an .int file.
ucc.exe Editor.DumpIntCommandlet PACKAGENAME.u [-mod=MODNAME]
- MasterMD5CommandletUE2
- UTVCommandletUE2
- CompareIntCommandletUE2
- CutDownContentCommandletUE2
- CutDownPackagesCommandlet
- StripSourceCommandletUT2004
- DumpConfigCommandletUT2004
- ExportCacheCommandletUT2004
- GroupRepairCommandletUT2004
- MapConvertCommandletUT2004
- MergeIntCommandletUT2004
- RearrangeIntCommandletUT2004
- RebuildCommandletUT2004
- TextureInfoCommandletUT2004
- TextureLODCommandletUT2004
- TextureStripCommandletUT2004
- UModUnpackCommandletUT2004
- ReimportTexturesCommandlet
- CompressTexturesUT2004
- ConvertTexturesCommandlet
- ContentAuditCommandletUE3
- ContentComparisonCommandletUE3
- SoundCueAuditCommandletUE3
- OutputAuditSummaryCommandletUE3
- ConvertMapToNavMeshUE3
- DiffPackagesCommandletUE3
- ExportLocCommandletUE3
?.exe ExportLocCommandlet [PACKAGENAME.EXT] [-full]
- CompareLocCommandletUE3
?.exe CompareLocCommandlet LANGUAGEXTENSION
- PatchScriptCommandletUE3
- PrecompileShadersCommandletUE3
- DumpShadersCommandletUE3
- SetMaterialUsageCommandletUE3
- ParticleSystemAuditCommandletUE3
- LensFlareAuditCommandletUE3
- MaterialAuditCommandletUE3
- PMapForceObjectCheckCommandletUE3
- UpdateKismetCommandletUE3
- SetTextureLODGroupCommandletUE3
- CompressAnimationsCommandletUE3
- WrangleContentCommandletUE3
- SetMaterialUsageCommandletUE3
- SetPackageFlagsCommandletUE3
- PIEToNormalCommandletUE3
- UT3MapStatsCommandletUE3, UT3
- OutputAuditSummaryCommandletUE3
- DumpLightmapInfoCommandletUE3
- PerformTerrainMaterialDumpCommandletUE3
- MineCookedPackagesCommandletUE3
- LoadPackageUT2004, UE3?
- ConvertEmittersCommandletUE3
- DumpEmittersCommandletUE3
- ConvertUberEmittersCommandletUE3
- ReplaceActorCommandletUE3
- CheckpointGameAssetDatabaseCommandletUE3
- LocSoundInfoCommandletUE3
- DumpPropertiesCommandletUE3
- ContentAuditCommandletUE3
- ContentComparisonCommandletUE3
- SoundClassInfoCommandletUE3
- WriteGameStatsReportCommandletUE3
- TagCookedReferencedAssetsCommandletUE3
- TagReferencedAssetsCommandletUE3
- ShowTaggedPropsCommandletUE3
- ShowPropertyFlagsCommandletUE3
- ShowObjectCountCommandletUE3
- ShowStylesCommandletUE3
- CreateDefaultStyleCommandletUE3
- CreateStreamingWorldCommandletUE3
- PkgInfoCommandletUE3
- ResavePackagesCommandletUE3
- ScaleAudioVolumeCommandletUE3
- CookPackagesCommandletUE3
- CookPackagesXenonCommandlet
- MergePackagesCommandletUE3