There are several ways to export classes. This tutorial will explore the most common methods.
Ucc BatchExport
Exporting classes using Ucc is very simple. Open up a new DOS command window Start>Run>Type cmd in the Open drop down menu and click OK. Navigate to your UT2004\System folder. The Ucc command is “ucc batchexport <name and if needed, the location of the .u file> <type of file> <file extension> <export path>“. So for example, if you wanted to export the ExplodeBunny.u file from the UT2004\System folder to the folder UT2004\ExplodeBunny\Classes the command would look like this:
Unreal Editor Export
You can export classes through the editor. To do this you must first open the .u file in the Actor browser. Then select Export All Scripts from the Actor browser>File menu. This will also export all of the packages in your UT2004.ini file that are listed in the EditPackages section, under the [Editor.EditorEngine] heading and any packages they rely on.
UTPT can also be used to view and decompile code. Simply open the desired .u file in UTPT. Right click the class in the class list and click Decompile. The decompiled class should appear on the right hand side. Simply click the Save button at the top to save the .uc file.
The WOTgreal Package Tool can be used to view and extract resources, including .uc files from packages. Open the desired package in WOTgreal. Make sure “Classes” button is selected to view any classes that might be in the package. Select all of the .uc files you wish to export/decompile. Then click the Export To .uc button or the Decompile To .uc file button. By default the Export Path should be the UT2004 base directory. The .uc files should be saved to a folder of the same name as the package. If the folder doesn’t exist it will be created.
Hello Iniquitous, thank you for this amazing tutorial. I was wondering if there is a way to export cache for Monster Classes? Like the ucc exportcache *u command, but that it supports like creating a list with class names for monsters? I know ucc exportcache doesn’t look for monster classes, but maybe there is a tool for it? Do you know something?
Greets, pete9516
Hi Pete
Thanks for the nice comment.
I don’t think there is a tool for something that specific but looking for monster classes is quite simple, all I would do is load the file in the editor and navigate to the monster class in the actor browser. Any new monsters in the package should appear as a child of “Monster”. The classname for the monster will always be the package name plus the monster class name in the browser.