Introduction Features Requirements Installation Program start Usage Final words History Homepage |
Short: | Extract the downloaded UT2004CacheExtractor Zip file to a directory of your choice. | ||||
Detailed: | Basically, all you have to do is to download UT2004CacheExtractor (with or without SWT, depending of the
presence of SWT on your computer - see Requirements above) and extract it to an
appropriate location on your harddrive. A directory called UT2004CacheExtractor is included in the
archive and all included files are located below that directory, so you will get only one new entry in the
destination directory. What destination directoy should you choose? You can extract the archive directly to the UT 2004 game directory, if you like. If you don't want to have it there, I'd advice the following (but you can choose any other destination you like, of course):
|
Short: | Create a batch file in with the exact starting call in it. | ||||||
Detailed: |
To save the work of typing the correct call to start UT2004CacheExtractor each time you want to use
the program, you should create a batch file where you enter the call one time, so you don't need to
remember and type it for later usage. A batch file is a simple text file that can be created with any
text editor (type must be .txt) and contains shell commands that are executed one after the
other. Here's how to do it:
|
Windows: | Use the Windows Explorer to drag the file with the right mousebutton to the desktop and select "Create shortcut here" from the context menu showing up. After that, you can start UT2004CacheExtractor by double-clicking the created shortcut on the desktop. |
Linux: | Use Konqueror to drag the file with the left mousebutton to the desktop and select "Associate with file" from the context menu showing up. After that, you can start UT2004CacheExtractor by double-clicking the created shortcut on the desktop. |
MacOS: | Sorry, I have no idea how to do this under MacOS. I hope, you know it yourself! |
Once you have extracted the downloaded archive to the desired location, you are at the point where you might want to run the program. Depending on your Operating System and the variant of UT2004CacheExtractor that you have downloaded, this is done in slightly different ways.
Windows: | Simply double-click the file UT2004CacheExtractor.jar in the UT2004CacheExtractor directory. |
Linux: | In the shell, enter the UT2004CacheExtractor directory and type "java -Djava.library.path=. -jar ./UT2004CacheExtractor.jar" Note: A batch file called UT2004CacheExtractor with exactly this call is alreadey included in this version. |
MacOS: | Try the windows method. If it doesn't work, try the Linux method. Sorry, but I don't know anyone with MacOS to test it for me! |
Windows: | Locate the directory where SWT is installed (a file called swt.jar and some libraries (*.dll) should be inside there. Lets assume, the directory is C:\SWT here. Then open a command prompt, enter the UT2004CacheExtractor directory and type "java -Djava.library.path=C:\SWT -cp C:\SWT -jar UT2004CacheExtractor.jar" |
Linux: | Locate the directory where SWT is installed (a file called swt.jar and some libraries (*.so) should be inside there. Lets assume, the directory is /opt/swt here. Then open a shell, enter the UT2004CacheExtractor directory and type "java -Djava.library.path=/opt/swt -cp /opt/swt -jar ./UT2004CacheExtractor.jar" |
MacOS: | Locate the directory where SWT is installed (a file called swt.jar and some libraries (*.jnlib) should be inside there. The rest will be similar to the Linux method. Sorry, but I don't know anyone with MacOS to test it for me! |
Short: | Move the file swt.jar and all library files (*.dll, *.so or *.jnlib respectively) to the ext subdirectory inside the lib subdirectory of the JRE base directory. | ||||||
Detailed: | You must move the JAR file and the libraries of SWT to the directory where your current JRE version is installed. The default location of the JRE and the names of the SWT libraries differ from OS to OS, so they are described one by one.
|
DISCLAIMER: YOU USE THIS PROGRAM AT YOUR OWN RISK! DUE TO THE NATURE OF PROGRAMMING, IT IS IMPOSSIBLE TO GUARANTEE 100% ERROR-FREE FUNCTIONALITY FOR A COMPLEX PROGRAM. ALTHOUGH GREAT CARE WAS TAKEN DURING THE DEVELOPMENT OF THIS PROGRAM AND IT HAS BEEN TESTED INTENSIVLY BY THE AUTHOR, THERE MAY STILL EXIST PROGRAM ERRORS THAT LEAD TO UNPREDICTABLE BEHAVIOR UNDER SPECIAL CIRCUMSTANCES THAT MAY NOT HAVE BEEN CONSIDERED. IN THE WORST CASE, THIS MAY LEAD TO DATA LOSS THROUGH DELETION OR CRIPPLING OF FILES OR CAUSED BY A DEADLOCK OR SPONTANEOUS RESET OF THE PC WHEN YOU CAN'T SAVE YOUR UNSAVED WORK IN OTHER APPLICATIONS. NONE OF THESE HAS HAPPENED TO THE KNOWLEDGE OF THE AUTHOR UNTIL NOW. IN FACT, THE PROGRAM IS DESIGNED TO ALTER FILES AS CAUTIOUS AS POSSIBLE (E.G. AN .INI FILE IS WRITTEN AS A DUPLICATE AND ONLY EXCHANGED WITH THE ORIGINAL IF EVERYTHING SUCCEEDED). BUT STILL, YOU MUST BE AWARE THAT ERRORS CAN HAPPEN! SINCE THIS PROGRAM CAN BE CONFIGURED TO DELETE OR OVERWRITE EXISTING FILES, ERRORS MAY LEAD TO DATA LOSS. I SAY IT AGAIN: YOU USE THIS PROGRAM AT YOUR OWN RISK! I CAN NOT BE MADE RESPONSIBLE FOR ANY DATA LOSS CAUSED BY THE USE OF THIS PROGRAM, NOR AM I LIABLE FOR ANY RESULTING FINANCIAL LOSS. BY USING THIS PROGRAM, YOU STATE THAT YOU ARE AWARE OF THE RISK AND USE IT ON YOUR OWN RESPONSIBILITY!
Really important to know, please read this:If you don't take some care while selecting the files to extract, you may extract too many files for a map that you copy from the cache. Too many files means files that actually don't belong to the map and aren't needed to play it. This is not critical since the map will function for sure, but the redundant files will be copied to the game directory or included in archives, etc. (depending on what operation you choose) and thus waste HD space and pollute your installation of the game by the time.
Here's the explanation:
Since I don't know a method to safely check if a given file is really needed by a specific map, the method I use is the following: When connecting to an internet server for playing and files are being transfered via redirected downloading, the first files that are sent are logos, jingles, mutators and the like. Only if everything has been sent that makes the server special in any aspect, the current map file is being sent and all resources needed by the map are sent afterwards. The order of the downloads is reflected by the cache.ini file that records all files that reside in the cache. So what UT2004CacheExtractor does, is scanning the cache.ini file. When a map file is found, all succeeding files are considered to belong to this map, until a new map file is found. This works fine for one game-session. But if you connect to another server afterwards that sends special files at the beginning, too, then guess what happens? Right, these files become subsequent entries to the last map, recorded in the cache.ini. So if you start UT2004CacheExtractor after that, the files will be displayed as belonging to the last map that was downloaded from the previous game server. Only when a new map file is found after these files, the following entries are considered to belong to the new map.What can you do to avoid redundant files?
Well, the best is to use UT2004CacheExtractor directly after a gaming session on one server, before connecting to the next. If you use it irregularly every now and then (like I do), then the best you can do is to expand the map entries that you select from the list and validate the names of the files that are considered to belong to the map. In most cases, you can easily see which files have another origin than the map that you want to extract. Further on, it is impossible that a file doesn't belong to the map and files following to this one do. The order of files is important! Simply uncheck all files that don't belong to the map in your opinion. Here is an example:![]()
How can you be sure that you don't uncheck files that are really needed by the map?
Well, after (or while) extraction, you can install the map to the UT 2004 game directory. Once, it's inside there, you can open the UT 2004 map editor and load the extracted map. If there are any resources missing, you get an appropriate message. If you don't get one, everything is ok.
How to use the program:
First of all, each button has a tooltip help describing it's function or meaning. So you just need to hold the mouse over one of them to get the information. If the information disappears too quickly to read everything (that's a setting of the OS), simple hold the mouse pointer over another button for short and return to the one you're interested in. The information is then displayed again.
The first thing, you should do after starting UT2004CacheExtractor for the first time, is selecting
the Cache directory of your UT 2004 game. It's a subdirectory of the UT 2004 main directory. Only
after this, you will see the contents of your local cache. Just use the Select button to open a directory
requester to choose from. But, of course, you can also type it in the appropriate text field, if you like.
Important: Dependant on the UT 2004 game directory configuration, the UT 2004 game
directory may be considered to be the parent directory of the one you select here. So if
you select a copy of the Cache directory somewhere on your harddrive that is detached from the game itself, you
should not choose to copy extracted files to the game directory!
If you want to copy extracted files to another location but the UT 2004 game directory (or if you want to create archives from the extracted files), you should also select an appropriate destination directory. Simply use the Select button or type the path into the text field to do this.
There are basically four things that UT2004CacheExtractor can do:
The configured paths, the selected mode of operation, the options that you set and the window size and position are automatically saved in a simple config file when you exit the program (under Windows, it is located in the user's application data directory and under Linux and MacOS, you'll find it in the user's home directory). You can change this behaviour by unchecking the setting "Save settings on exit" in the settings menu. The last saved settings will then be frozen until you check this setting again one time. Besides this general setting, there are two more configuration options that will be described in the following:
Variable | Meaning | Description |
%t | Target file | This one should be sufficient for most archivers. It represents the complete path plus the archive name in one. You should use it with surrounding quotation marks for the case that the path contains spaces (this depends on the destination directory that you select for copying, as well as the map name). |
%d | Destination path | This variable should be used if you can't combine the output path and the archive name in one parameter for a specific archiver. These archivers typically have an option to set the output path (you would then specify %d here), whereas the archive name is written without any path. Like for %t, you should also enclose %d in quotation marks, since the output path may contain spaces (the path is identical to the destination directory that you select). Usually, if you used this variable, you would use %a as well (see below). |
%a | Archive name | Use this variable if you need to specify the archive name without any path for a specific archiver. In this case, you usually must set the output path in a separate option (see description for %d). Quotation marks aren't really needed here, since maps can not be redirected if their names contain space characters, but it can't harm if you use them. |
%s | Source path | This variable is being substituted with the path that becomes the current directory when the archiver is run. This is the location where the files (and subdirectories) that need to be archived are found. Usually, every archiver should be able to collect the files to be archived from the current directory, so with high probability, you won't need this variable at all. But still, there may be very exotic archivers around that want a source directory to be explicitly specified. In this case, you would use this variable. If you do, enclose it in quotation marks, because the selected destination directory will be a part of it. |
%f | Single filename | This is a special variable that lets UT2004CacheExtractor activate the single file mode when being used. In this mode, the archiver is not being called after all files of a map have been copied, but after the copying of each single file instead. This is unsuitable for the creation of archives, but necessary if you want to compress the files one by one, rather than archiving them together. I implemented this mode to enable support for UZ2 compression which is used by game server admins to compress the redirected files. This option should only be used in conjunction with %s, because otherwise the files to be compressed won't be found if the user selects the option "Create appropriate subdirs". |
RAR: | C:\Programs\WinRAR\rar a -m5 -md4096 -r -idp "%t" * |
7-Zip: | C:\Programs\7-Zip\7z a -bd -r -t7z -mx9 "%t" * |
UCC (for UZ2 compression): | E:\Games\UT2004\System\UCC COMPRESS "%s\%f" |
TinyUZ2: | C:\Programs\TinyUZ2\tinyuz2 -c -o "%d" "%s\%f" |
@ECHO OFFAnd the UCC call in the Archiver Configuration would be:
E:
CD "\Games\Unreal Tournament 2004\System"
UCC.exe %1 %2
}TCP{ Funhouse: | 84.244.162.80:7777 | (that's where I play) |
}TCP{ Funhouse #1: | 84.244.162.131:7777 | |
}TCP{ Funhouse #2: | 80.60.208.39:7777 | |
}TCP{ Funhouse #3: | 85.146.168.150:7777 |
And maybe, you'd like to take a look at the TCP Clan-Homepage ...