|
|
|
Right now this utility performs two functions - cleaning ESP/ESM files and merging leveled lists for ESP/ESM files. I may include some other features in the future (I am thinking about dialog merger and some helper function for the The Lighting Mod (to generate ambient light settings for all cells in all plugins) next). But for now it is just cleaning and leveled list merging. Before I go on describing them - THIS IS STILL BETA. I tested it but I am not sure that all bugs are taken care of. So treat with caution.
CLEANING ESP/ESM FILES
This function will do several things:
- Remove any default GMST records (all 72 of them);
- Remove any records that are identical to the records found in the morrowind.esm, tribunal.esm or bloodmoon.esm. This includes objects, dialogs, scripts, NPCs, lists - everything (with some exceptions noted below). This should take care of many situations when plugin does not modify some object, but it is marked as modified in TESCS and therefore saved within plugin.
- Remove any object references inside CELL records that are identical to the references in the morrowind.esm, tribunal.esm or bloodmoon.esm.
- Remove AMBI(ambient light) and WGHT(water level) fields from the CELL records identical to the morrowind.esm, tribunal.esm or bloodmoon.esm.
There are couple, of course, some exceptions:
- Land texture (LTEX) records are never removed - for some reasons removing them sometimes causes errors and I was not able to find a cause. So they are not touched for now.
- Cell (CELL) records are just cleaned inside - records themselves are not removed either.
Comparison is done against morrowind.esm, tribunal.esm and bloodmoon.esm. However, out of those 3, I use only those that are currently enabled in the morrowind.ini file. So if you have both expansions, but want to clean only against morrowind.esm (e.g., because you are creating a mod for Morrowind only), just uncheck tribunal.esm and bloodmoon.esm and cleaning process will use only morrowind.esm.
MERGING LEVELED LISTS
This function is very similar to the well known Horatio's utility "Leveled List Merger", however it is not based on the Horatio's code/algorithm and may (and probably does) perform merging somewhat differently.
Leveled lists will be merged only for the ENABLED ESP/ESM plugins - any non-active plugin in the "Data Files" folder will be ignored. Both leveled creature and leveled item lists are supported - and both are merged according to the same set of rules, described below. Resulting lists are saved in the file "Merged_Leveled_Lists.esp" in the "Data Files" folder. As usual, make sure that this file loaded AFTER all other plugins.
Now, rules of merging:
- If any of original leveled lists had "PC Level" toggle enabled, final list also will have it enabled.
- If any of original lists had "Each item" toggle enabled, final list also will have it enabled.
- "None chance" value will be set to the MINIMUM non-zero value out of all original lists. Of course, if ALL original lists had it at 0, final value also will be 0.
- When merging list items, only NEW items will be added.
Last point requires an example. Suppose current list has two "3, skeleton" items (both level and name identify unique item - "2, skeleton" is considered to be different from "3, skeleton"). If another plugin contains same list and it has only one or two "3, skeleton" entries - they will be ignored and not merged. If it has three "3, skeleton" entries, resulting list also will have three "3, skeleton" entries, since that third entry was not present in the first list. Of course, if second list contains "25, lich" entry that was absent in the first list, it will also be added. So, basically, only NEW entries will be added during merging.
Other stuff Link to the current version (0.9 BETA) of TES Plugin Tool can be found at the end of this post. Detail instructions on how to use utility can be found in the text file included into the archive (READ IT!). Any bug reports are welcome - PM me or post here.
Of course, I welcome any feedback and ideas in regard to cleaning functions and merging of leveled lists - please post it in this thread or PM me.
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
thwhip
|
|
Initiate
|
|
|
|
|
Reged: 09/22/03
|
|
Posts: 96
|
|
|
|
|
I've just downloaded this and will play with it in a little while. I want to say that you have been very busy just lately creating utilities which will be very useful for modders. Isn't this the third one in just a week or two? I had used your bsapack and registration programs some time ago, and now all of a sudden there is an explosion with tes rename, nif duplicator and tes plugin tool. Very impressive.
Post Extras:
|
|
FofA
|
|
Curate
|
|
|
|
|
Reged: 09/30/03
|
|
Posts: 427
|
|
|
|
|
Wow, this is very impressive and looks to be like a great tool for the community. Excellent work.
Any reason why you chose to do the lvled list merger differently than horotio's? If you ask him, I think he would give out the source code.
Post Extras:
|
|
Greevar
|
|
Adept
|
|
|
|
|
Reged: 10/17/03
|
|
Posts: 234
|
|
Loc: The frozen tundra of Minnesota
|
|
|
Hey that is great man! Many 's for you!
-------------------- Everyone looks at me funny when I tell them I kill people online...
Post Extras:
|
|
|
|
Sounds like a God-send for multiple mod users! Great work!
Post Extras:
|
|
|
|
Quote:
I've just downloaded this and will play with it in a little while. I want to say that you have been very busy just lately creating utilities which will be very useful for modders. Isn't this the third one in just a week or two? I had used your bsapack and registration programs some time ago, and now all of a sudden there is an explosion with tes rename, nif duplicator and tes plugin tool. Very impressive.
Just several hours of free time. They dont take long to implement, actually, since most of the code (e.g, ESP/BSA handling) has been written long time ago. And keeping GUI to the minimum certainly helps a lot .
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
Harlequin
|
|
Curate
|
|
|
|
|
Reged: 05/20/03
|
|
Posts: 919
|
|
Loc: Austin, Tx
|
|
|
I love you.
-------------------- Founder and sole member of the "Malleable Modding" school of thought.
I take my jokes very seriously. Humor is no laughing matter.
Post Extras:
|
|
FilthyMcNasty
|
|
Adept
|
|
|
|
|
Reged: 06/07/03
|
|
Posts: 274
|
|
Loc: In the deepest realms of HELL. Looking for a glass of ice water. And hanging out at Carnithus weapon shop. Trading dead puppy stories.
|
|
|
Thanks Ghost for making my Morrowind experiance even more idiot proof. These utilities are great for those of us that aren't all that computrer savey. I appreciate all the effort that you put into making these great tools.
-------------------- Don't be lazy. Read the frickin README
If you don't have anything nice to say... join the club.
"Keep your stick on the ice." _ Red Green.
Post Extras:
|
|
|
|
thank you so much for your hard work here Ghostwheel! A utility like this will be a great help.
Post Extras:
|
|
SerpentMa
|
|
Acolyte
|
|
|
|
|
Reged: 03/25/03
|
|
Posts: 131
|
|
Loc: Atlanta, GA
|
|
|
Great utility ghostwheel , but I have had some problems with it. When cleaning my plugins the utility crashed when it got partway through LadyE's Dragon's Breech Alpha 1 esp file. I tried again, making sure not to select Dragon's Breech and it seemed to work, until it came to the Illumnated Order v1.0c esp file and crashed partway through it.
On the third try I made sure to have the Illuminated Order plugin and Dragon's Breech plugin not selected. Again, it seemed to work, except this time after a while it came up with an error about a buffer overrun being detected while cleaning Nemon's Balmora Interiorator and it exited. So, I tried again, this time making sure not to select all three of the previously mentioned plugins and it worked fine, reporting it cleaned 74 files successfully.
Just for testing sake however I deleted the clean files (which I did between the previous testings) and tried once again, making sure that Dragon's Breech Alpha 1 and Illuminated Order 1.0c were not selected, but I made sure Nemon's Balmora Interiorator was selected (the only change is that I removed the _Clean part off the end of the filename that I had added a while back). To my surprise it worked fine, until it came to Nemon's Vivec Interiorator (which was to be cleaned right after Nemon's Balmora Interiorator) during which it promptly crashed like the first two times.
Afterwards I tried each plugin that crashed the utility individually and none of them crashed it by themselves, so it looks like this may be a problem with going through large amounts of plugins/data quickly in one sweep.
-------------------- You talk to the arena master.
"Ye have won more fights than anybody else."
"Nobody is betting against ye any longer and we believe, that ye art invincible."
"Sorry, no more fights."
Post Extras:
|
|
|
|
Sounds like a memory leak. I'll check those plugins to see what is going on. Thanks for the information.
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
Daduke
|
|
Disciple
|
|
|
|
|
Reged: 07/13/02
|
|
Posts: 1770
|
|
Loc: Canada
|
|
|
maybe instead of having to check uncheck the master files you could be asked a quick question of which one you want the file cleaned for
great prog
-------------------- In the Morrowind.ini file, add the following to the [General] section:
AllowYesToAll=1
This will add a "Yes To All" button to the warning popups.
----------
My Website
Post Extras:
|
|
|
|
Quote:
maybe instead of having to check uncheck the master files you could be asked a quick question of which one you want the file cleaned for
As I mentioned - I hate programming GUI and try to keep it to the minimum . Maybe in the future I'll add that.
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
|
|
Thanks to SerpentMa I found and (hopefully) fixed a bug that may cause TESTool to crash when processing objects with very long names. New version 0.91 BETA can be downloaded from the same page.
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
Hitto
|
|
Initiate
|
|
|
|
|
Reged: 09/03/03
|
|
Posts: 75
|
|
|
|
|
Gotta try that out... Any other recommandations for using this *hopefully* excellent program? Does one need to clean savegames before, start new games?
Post Extras:
|
|
SerpentMa
|
|
Acolyte
|
|
|
|
|
Reged: 03/25/03
|
|
Posts: 131
|
|
Loc: Atlanta, GA
|
|
|
It works perfectly now without any crashes, great job ghostwheel.
// Edit //
Well, I did find one thing that is slightly irksome about TESTool, it creates new timestamps for the cleaned versions of the files rather than using the timestamps from the originals. Would it be possible to add an option that if checked the cleaned plugin files would retain the created/modified timestamps from the original mod files? This would save a lot of inconvenience of re-ordering the plugins by hand.
-------------------- You talk to the arena master.
"Ye have won more fights than anybody else."
"Nobody is betting against ye any longer and we believe, that ye art invincible."
"Sorry, no more fights."
Post Extras:
|
|
kab
|
|
Adept
|
|
|
|
|
Reged: 11/09/03
|
|
Posts: 364
|
|
Loc: California
|
|
|
Sounds like you handled leveled item lists perfectly.
Thanks.
Post Extras:
|
|
|
|
Looks good, good luck!
-------------------- Want to chat about Morrowind and the Elder Scrolls series in general? Drop by #Morrowind!
-General Edor Crespin
Captain of the SSD Shadowkeeper
Commander of Amethyst Squadron
Knight-Adventurer of Vvardenfell
Post Extras:
|
|
|
|
Quote:
Well, I did find one thing that is slightly irksome about TESTool, it creates new timestamps for the cleaned versions of the files rather than using the timestamps from the originals. Would it be possible to add an option that if checked the cleaned plugin files would retain the created/modified timestamps from the original mod files? This would save a lot of inconvenience of re-ordering the plugins by hand.
Added. Just download a new version.
-------------------- Home of BSAPACK, TESRename, TES Plugin Tool
Post Extras:
|
|
jaxalot
|
|
Curate
|
|
|
|
|
Reged: 09/02/03
|
|
Posts: 711
|
|
|
|
|
Does this fix the "crate of 10's" problem that horatio's leveled list merger caused?
-------------------- Jaxalot reserves the right to speak in the third person.
McAsmod Member
Werewolves Forums
My Website - 100% Hand-Coded
Post Extras:
|
|
zahratustra
|
|
Curate
|
|
|
|
|
Reged: 05/13/03
|
|
Posts: 549
|
|
Loc: London, England
|
|
|
Trurly excellent tool ghostwheel ! Easy to use, fast and TERRIBLY usefull
-------------------- "Give us your tired, your poor and your properly fingerprinted. -T.L. Friedman "NY Times" on US policy to fingerprint all future visa applicants.
Post Extras:
|
|
Sauron256
|
|
Curate
|
|
|
|
|
Reged: 06/29/02
|
|
Posts: 475
|
|
Loc: Minneapolis, USA
|
|
|
Great work! No more sitting for hours in front of the Advanced editor trying to figure out if that object should be in there or not.
-------------------- Author of
Caledan Keep
Sauron's Abode
TheLys Mods Page
Post Extras:
|
|
kab
|
|
Adept
|
|
|
|
|
Reged: 11/09/03
|
|
Posts: 364
|
|
Loc: California
|
|
|
Quote:
Does this fix the "crate of 10's" problem that horatio's leveled list merger caused?
Ghostwheel gives preferences to it being true which should solve that little problem.
Post Extras:
|
|
Canus
|
|
Diviner
|
|
|
|
|
Reged: 07/06/02
|
|
Posts: 2896
|
|
Loc: Atenveldt
|
|
|
Bugger. It says it can't find a Morrowind installation, despite the fact it is
-------------------- MP*Canus
Shameless Morrowind fanboy
Unleasher of the New Cliff Racer Plague!
Post Extras:
|
|
FofA
|
|
Curate
|
|
|
|
|
Reged: 09/30/03
|
|
Posts: 427
|
|
|
|
|
I just used it and it worked perfectly for me. This is such an invaluable too. In theory, all we have to do to have a clean and "undirty" game is execute "Clean ESP/ESM Files" then execute "Merge Leveled lists for active plugins" and we are good to go. I hope that's right. Thanks again for a master tool for morrowind modding.
Post Extras:
|
|
SerpentMa
|
|
Acolyte
|
|
|
|
|
Reged: 03/25/03
|
|
Posts: 131
|
|
Loc: Atlanta, GA
|
|
|
Works great, thanks. 
While on the subject of features, could there also be another option to move the original versions of the cleaned files to a seperate default directory within the morrowind installation dir? This would be another big time saver so the user wouldn't have to manually sort the original versions from the new cleaned ones.
-------------------- You talk to the arena master.
"Ye have won more fights than anybody else."
"Nobody is betting against ye any longer and we believe, that ye art invincible."
"Sorry, no more fights."
Post Extras:
|
|
Canus
|
|
Diviner
|
|
|
|
|
Reged: 07/06/02
|
|
Posts: 2896
|
|
Loc: Atenveldt
|
|
|
Except it doesn't load at all- it just gives the error message.
-------------------- MP*Canus
Shameless Morrowind fanboy
Unleasher of the New Cliff Racer Plague!
Post Extras:
|
|
|
Re: | |