[RELz] tes3cmd, a small tool for modifying TES3 plugins

Post » Tue Aug 24, 2010 3:52 am

Hello John.Moonsugar-

I'm going to cross post a few questions and point out a few things that came about in this thread: http://www.gamesas.com/index.php?/topic/1184424-q-cleaning-mods-with-tespcd/

Hopefully I'm not coming across as impatient - I just wanted to make sure that this stuff gets posted in the official thread too - and perhaps you only monitor the threads you are tending to. First off after much help from RMWChaos and Pinkertonius I got the latest version of this working and doing so with a bat file I can drag and drop into.

I rarely am around the Morrowind forums having spent most of my time and stars in the Oblivion/Fallout3 forums, but I got the bug to finally mod Morrowind the right way - having tried twice in the past and giving up in frustration. A few concerns about cleaning mods and the function of this I wanted to point out. With Oblivion there is a lot of documentation of how and what to clean from esm and esp - most collected here: http://cs.elderscrolls.com/constwiki/index.php/TES4Edit_Cleaning_Guide Is there anything equivalent to that for cleaning Morrowind mods? A break down of what kinds of records should be cleaned. I get that duplicates are not a good thing and those get cleaned as well in the Oblivion/Fallout games. Forgive me if these questions seem kind of noobish - I'm just not that knowledgeable about modding this game.

One kind of record considered more important to clean in Oblivion/Fallout though is the deletions. So say a modder deletes an item (rock or tree) - not a big deal unless a later loading mod tries to reference that same record. What is done in Oblivion/Fallout is to set these records to disabled and burried underground so that the records still exist and can be accessed by later loading mods. At the minimum doing this helps prevents ctd on game exit and in other cases I've heard claims that it directly helps prevent in game ctd. Does this get addressed in the cleaning procedures offered here or with other tools for morrowind?

Next as it is in the other games the general idea is to clean masters and then clean the mods that are dependent on the masters in that order. Does that matter as much here - is there a logic to what order mods should be cleaned in?

This brings me to a question after cleaning a bunch of mods I recalled that the DLC of Oblivion do need cleaning, so I decided to check out Tribunal and Bloodmoon esm to see what would happen if I cleaned. http://www.gamesas.com/index.php?/topic/1184424-q-cleaning-mods-with-tespcd/page__view__findpost__p__17588255 a lot of duplicates, which I assume are from Morrowind.esm. So I'm wondering if anyone has any opinions if this is a good idea to clean these. Then if so I wonder if that really matters to the mods I've already cleaned or if I should start again?

With Oblivion implicit masters to mods are those that may depend on accessing an esm or esp but do not have them as masters that are required (they will load anyway) - often though they are just edits to a mod so that conflicting data is not present such that it creates and issue with the mod it patches (implicit patching) - so when cleaning and a mod does not have as a master the esm that it claims to patch - do you think it necessary to have that mod in the data folder too?

It seems that so far a cleaning failing because of a missing master and a cleaning not needed looks the same in the log. This means that if you did not have the master loaded it could very easily look as though a plugin did not need cleaning when in fact it does. I'd suggest having the log print out a warning that a cleaning was aborted due to missing master.

As you may know with tes4edit - to clean a mod with it you first have to load it and edit will then load any masters it needs. Then the cleaning is a two step process (one for each step: clean duplicates, undelete and disable deletions). So perhaps if a GUI ever gets done - something to consider. I really like the GUI suggestions that Fliggerty Posted 2 years ago. Just putting my vote in - if ever if gets done.

And this deserves to get done.

Thank you for creating what you have - much appreciation.
User avatar
Evaa
 
Posts: 3502
Joined: Mon Dec 18, 2006 9:11 am

Post » Tue Aug 24, 2010 6:49 am

John, I've just decided to try tes3cmd, and am getting the same problem ("Not a plain file") as a user, above. Here's the syntax (and yes, it appears there is an extra space between the first two words of the actual .esm):

tes3cmd clean "Clean The Lost Artifacts of Morrowind.esm"

CLEANING "Clean The Lost Artifacts of Morrowind.esm" ...
FATAL ERROR <>: Not a plain file
" at script/tes3cmd line 4739

What differs here from the situation DarkSCR encountered is that tes3cmd is already in my Morrowind/data files directory, as is the .esm. I'm running WinXP, SP2, and using the latest version of tes3cmd. Anything you can suggest?
User avatar
Jani Eayon
 
Posts: 3435
Joined: Sun Mar 25, 2007 12:19 pm

Post » Mon Aug 23, 2010 5:17 pm

.
User avatar
Tiff Clark
 
Posts: 3297
Joined: Wed Aug 09, 2006 2:23 am

Post » Tue Aug 24, 2010 8:39 am

I'd like to expand on the above. It appears tes3cmd refuses to recognize any .esp I use for cleaning. This is typically what I get:

tes3cmd clean balm*.esp

CLEANING: "Balmora Council Club.esp" ...
Loading master: morrowind.esm
ERROR: Balmora Council Club.esp: FATAL ERROR: Balmora Council Club.esp: no plugin specified!
" at script/tes3cmd line 4702

I tried repeatedly entering the entire mod name. Finally, I used only part of it as above, and as you can see, tes3cmd recognizes the mod, despite my use of *. However, it doesn't consider it a plugin. The same is true of all my active plugins. Not sure why. Any ideas? I'm running on WinXP, tes3cmd is in my data files directory, and just to be sure, I also added it to my path statement.
User avatar
Amie Mccubbing
 
Posts: 3497
Joined: Thu Aug 31, 2006 11:33 pm

Post » Tue Aug 24, 2010 6:32 am

Could be MS-DOS and filenames with spaces in. What about:
tes3cmd clean "balm*.esp"
Although I'm not sure if that'd pick up the wildcard :unsure:

Maybe just
tes3cmd clean *.esp
;)
User avatar
NAtIVe GOddess
 
Posts: 3348
Joined: Tue Aug 15, 2006 6:46 am

Post » Mon Aug 23, 2010 10:56 pm

Could be MS-DOS and filenames with spaces in. What about:
tes3cmd clean "balm*.esp"
Although I'm not sure if that'd pick up the wildcard :unsure:


Same thing, unfortunately. Nice try, though.

Maybe just
tes3cmd clean *.esp
;)


If that worked, it would grab everything (210+ mods) in the directory. And there are at least some that probably shouldn't be cleaned.

Plus, it really should work on a per .esp basis. It does for most users. The odd thing is, it sees the file in question. It just doesn't recognize it as being an active plugin. Not sure why.
User avatar
Richus Dude
 
Posts: 3381
Joined: Fri Jun 16, 2006 1:17 am

Post » Tue Aug 24, 2010 6:08 am

Same thing, unfortunately. Nice try, though.



If that worked, it would grab everything (210+ mods) in the directory. And there are at least some that probably shouldn't be cleaned.

Plus, it really should work on a per .esp basis. It does for most users. The odd thing is, it sees the file in question. It just doesn't recognize it as being an active plugin. Not sure why.


I always get this error when the ESM file isn't in the Data directory. I checked and Balmora Council Club requires Morrowind, Tribunal and Bloodmoon (checked via Enchanted Editor). It worked for me, but it's not very dirty.

CLEANING: "E:\Morrowind Mods\BalmoraCouncilClub\Balmora Council Club.esp" ...Loaded cached Master: /morrowind.esmLoaded cached Master: /tribunal.esmLoaded cached Master: /bloodmoon.esm Cleaned junk-CELL: molag mar region (12, -4) Cleaned junk-CELL: molag mar region (12, -5) Cleaned junk-CELL: molag mar region (11, -4) Cleaned duplicate object instance (Ex_DE_ship_cabindoor FRMR: 32796) from CELL: ebonheart (2, -13) Cleaned redundant AMBI,WHGT from CELL: balmora, guild of mages Cleaned redundant AMBI,WHGT from CELL: solstheim, gandrung cavernsOutput saved in: "E:\Morrowind Mods\BalmoraCouncilClub\Clean_Balmora Council Club.esp"Original unaltered: "E:\Morrowind Mods\BalmoraCouncilClub\Balmora Council Club.esp"Cleaning Stats for "E:\Morrowind Mods\BalmoraCouncilClub\Balmora Council Club.esp":       duplicate object instance:     1                       junk-CELL:     3             redundant CELL.AMBI:     2             redundant CELL.WHGT:     2

User avatar
Spencey!
 
Posts: 3221
Joined: Thu Aug 17, 2006 12:18 am

Post » Tue Aug 24, 2010 6:49 am

I always get this error when the ESM file isn't in the Data directory. I checked and Balmora Council Club requires Morrowind, Tribunal and Bloodmoon (checked via Enchanted Editor). It worked for me, but it's not very dirty.


Regrettably, I've already got all three ESM files for the game in the data directory. (Wrye Mash would require them there, in any case.) Great idea, though. Honestly wish that was it.

EDIT: An odd thought, but--does everybody use C: drive for the game? I'm using E:. Logically, that should not be in the code to check for plugins, but still, when all else fails...
User avatar
sam westover
 
Posts: 3420
Joined: Sun Jun 10, 2007 2:00 pm

Post » Tue Aug 24, 2010 4:35 am

Regrettably, I've already got all three ESM files for the game in the data directory. (Wrye Mash would require them there, in any case.) Great idea, though. Honestly wish that was it.

EDIT: An odd thought, but--does everybody use C: drive for the game? I'm using E:. Logically, that should not be in the code to check for plugins, but still, when all else fails...


I don't use Mash when cleaning mods so maybe that could be a cause as to why it worked for me and not you. You might want to go in and delete the cache files (data directory then tes3cmd directory). Tes3cmd will regenerate the ESM cache files. Then try again.

I don't actually use the C: Drive. I use the E: drive also (have 3 different Morrowind installs there).

EDIT: fixed tragic grammer error
User avatar
Jeff Tingler
 
Posts: 3609
Joined: Sat Oct 13, 2007 7:55 pm

Post » Mon Aug 23, 2010 6:47 pm

I don't use Mash when cleaning mods so maybe that could be a cause as to why it worked for me and not you. You might want to go in and delete the cache files (data directory then tes3cmd directory). Tes3cmd will regenerate the ESM cache files. Then try again.


I don't use Wrye Mash to clean files--just to clean the saved game, coordinate it with the master mod list, and generate Mashed Lists.esp.

Perhaps it's something in the way the tes3cmd code deals with XP. I'm out of ideas. I'm willing to consider greater pentagram rituals and the summoning of Bill Gates, at this point. :shakehead:
User avatar
Eve(G)
 
Posts: 3546
Joined: Tue Oct 23, 2007 11:45 am

Post » Mon Aug 23, 2010 9:40 pm

I don't use Wrye Mash to clean files--just to clean the saved game, coordinate it with the master mod list, and generate Mashed Lists.esp.

Perhaps it's something in the way the tes3cmd code deals with XP. I'm out of ideas. I'm willing to consider greater pentagram rituals and the summoning of Bill Gates, at this point. :shakehead:


Have you tried using ......tes3cmd clean "Balmora Council Club.esp" ?

option 2: I use a simple bat file that I created. Then I drag and drop on top of a shortcut on the desktop that points to the bat file...but another modder took that idea and exploded it 100 fold into an amazing super-tes3cmd bat file with complete instructions...

http://www.gamesas.com/index.php?/topic/1184424-q-cleaning-mods-with-tespcd/ for more details
User avatar
~Amy~
 
Posts: 3478
Joined: Sat Aug 12, 2006 5:38 am

Post » Tue Aug 24, 2010 8:36 am

Have you tried using ......tes3cmd clean "Balmora Council Club.esp" ?


First thing I tried. The report line is the same in all instances:

CLEANING: "Balmora Council Club.esp" ...
Loading master: morrowind.esm
ERROR: Balmora Council Club.esp: FATAL ERROR: Balmora Council Club.esp: no plugin specified!
" at script/tes3cmd line 4702

So it sees the ESP, but it says it isn't a plugin. Or perhaps it means it isn't an active plugin. Can't tell.

option 2: I use a simple bat file that I created. Then I drag and drop on top of a shortcut on the desktop that points to the bat file...but another modder took that idea and exploded it 100 fold into an amazing super-tes3cmd bat file with complete instructions...

http://www.gamesas.com/index.php?/topic/1184424-q-cleaning-mods-with-tespcd/ for more details


Got the batch file working--thanks for suggesting that--but the response is, well, strange. I'm still getting the "no plugin specified! at script/tes3cmd line 4702," then the program states that it is cleaning the mod, then concludes by saying it was not modified. Now I know there are dirty references in that ESP, so I tried several others with some dirty references. It's not cleaning. The way I figure it, the program states it can't find the plugin, and then reverts to the batch file, which states that the cleaning is taking place.
User avatar
Tracey Duncan
 
Posts: 3299
Joined: Wed Apr 18, 2007 9:32 am

Post » Mon Aug 23, 2010 9:54 pm

It appears the problem was an old mis-install issue: a data files subdirectory in the data files subdirectory, used once, and never removed. Seems it saw that data files/data files, and balked at accepting any plugins under data files as real. Might need a check for that, at some point. Once it was deleted, the tes3cmd batchfile worked perfectly.

Now, it's only a matter of assessing which mods are "safe" to clean.
User avatar
Theodore Walling
 
Posts: 3420
Joined: Sat Jun 02, 2007 12:48 pm

Post » Mon Aug 23, 2010 6:10 pm

Did you get the latest batch file in the other thread.

Working good for me, but have not tried to clean that esp.
User avatar
Kathryn Medows
 
Posts: 3547
Joined: Sun Nov 19, 2006 12:10 pm

Post » Tue Aug 24, 2010 1:06 am

Did you get the latest batch file in the other thread.

Working good for me, but have not tried to clean that esp.


Yes, I'm using it. Just tried it out on the supposedly clean Clean Lost Artifacts of Morrowind, which is known to be pretty dirty. And was.
User avatar
Bethany Watkin
 
Posts: 3445
Joined: Sun Jul 23, 2006 4:13 pm

Post » Mon Aug 23, 2010 9:19 pm

I've cleaned a couple of my mods using the batch file and TES3CMD v0.37, and have had no problems... so far. :)

This is actually a terrific tool. I've had it one day, and I already love it. I've only noticed one oddity... My BAK files are timestamped for 9:50am 5/23/2011, but it's just now 9pm 5/22/2011. I have achieved time travel. I'm also wondering why I get two BAK files for one use with two different version numbers... Does it back up both before and after?
User avatar
Janette Segura
 
Posts: 3512
Joined: Wed Aug 22, 2007 12:36 am

Previous

Return to III - Morrowind