########################
#Der Arx Static Cleaner#
##Version: 03.04.2013 ##
####Von GM Alandriel####
########################

**See below for English Version!**

**ZWECK**
Der Arx Static Cleaner hilft dabei, fragmentierte und mit ungenutzten Art-Slots
verseuchte Statics zu bereinigen und zu defragmentieren. Er funktioniert im
Zusammenspiel mit dem MUL Patcher, beziehungsweise der Option des MUL Patchers,
sich eine Liste der leeren Art.mul IDs erstellen zu lassen, die als Löschungsliste
herangezogen wird. Bei Bedarf kann diese Liste auch Händisch um weitere Art-IDs
ergänzt werden, um zum Beispiel gezielt Items komplett aus den Statics zu löschen. 
Gleichzeitig neben diesem Löschungsprozess ist der Arx Static Cleaner auch in
der Lage, fragmentierte Statics (also solche über 8 MB Größe) zu defragmentieren, 
und sie auf diese Art enorm zu komprimieren. Diese Funktion ist vor allem für 
Nutzer von Bau-Programmen wie dem MUL Patcher, dem UOFiddler oder CentrED sehr 
interessant.

**BENUTZUNG**
Das Programm besteht nur aus der "ArxStaticCleaner.exe", und sollte in einen 
eigenen Ordner entpackt werden. Die zu bearbeitenden Static Files, also die
"statics0.mul" und die "staidx0.mul" müssen dorthin kopiert werden. Zusätzlich 
wird ein Text-File namens "todelete.txt" benötigt. Möchte man gezielt die 
ungenutzten Art-IDs kontrollieren lassen, kann man zuerst den MUL-Patcher mit den 
shardeigenen Art.mul und Art.idx Dateien laden, und dort den Button "Sedins Krasser 
Lochbutton"
benutzen, der automatisch eine Liste von ungenutzten IDs ausspuckt.
Diese Datei wird auf "todelete.txt" umbenannt. Wenn man gezielt zusätzliche IDs
herauslöschen will, kann man diese im selben Format an eine beliebige Stelle
der Liste einfügen.
Sobald dies geschehen ist, reicht es aus, die EXE-Datei mit einem Doppelklick
zu starten, und sie ihr Werk tun zu lassen. Die Dateien werden nun auf die zu
löschenden IDs durchsucht, und gleichzeitig werden alte Löschungs-Einträge 
entfernt, und die Statics in korrekter Reihenfolge in neue Dateien geschrieben.
Diese neuen Dateien heißen "statics0_n.mul" und "staidx0_n.mul", und können nach
Umbenennung ganz normal im Betrieb genutzt werden.

**PROBLEME**
Es sind keinerlei Probleme mit diesem Programm bekannt! Wenn es doch einmal zu
Fehlern kommt, kann ich über den Shard "Arx Obscura" (http://www.arx-obscura.de) 
als GM Alandriel kontaktiert werden. 

####################ENGLISH VERSION######################

**FUNCTION**
The Arx Static Cleaner cleans and defragments static files that have been inflated
by building and deleting static items. It works best with an export file from
a program called "MUL Patcher", using its option to export a list of unused art
IDs as a basis. That list can be expanded with manual entries if you want to
delete specific items from your statics.
The Static Cleaner also sorts and writes your static files new, thereby compressing
them to a size of about 8 MB. This can be a godsend if you use tools like 
MUL Patcher, UOFiddler or CentrED for your world building purposes.

**USAGE**
The program consists of a single file named "ArxStaticCleaner.exe". You need to
extract it into a new folder, then copy your "statics0.mul" and "staidx0.mul" into
the same folder, and create a "todelete.txt" file. Since most of the non-German
users probably don't know that program, I've copied 4 Lines of our own "todelete"
file in here. Please DO NOT USE THIS AS-IS! This is just an example of how the
file should be formatted!   

0xCE8
0x2251
0x2257
0x232D

 If you want to try out the TDV MUL Patcher, you can load your art-files in the
 settings-tab there, then go to Art (S) and use the button "Sedins Krasser 
 Lochbutton" to generate an "EmptyId.txt". You can simply rename and use this 
 file for your purposes.
 If you want to delete specific arts, you will have to manually add them to the
 list whereever you want.
 The process is started via the exe-file. The Static Cleaner will first look
 through your statics to find and delete IDs from the todelete-file, then it will
 defragment and re-sort your static files by writing them into new files named
 "statics0_n.mul" and "staidx0_n.mul". When the program is done, you can copy and
 rename those files, and use them without any hassle.
 
 **PROBLEMS**
 There are no known problems whatsoever with this program. If you do stumble
 upon an error, please feel free to contact me via my home shard "Arx Obscura"
 (http://www.arx-obscura.de) under the nickname "Alandriel". 