Jump to content

Problem cleaning mods with tes3cmd


CrookedKnight

Recommended Posts

Hi!

 

I am relatively new to Morrowind and have just installed a pretty sizable mod collection in an attempt to overhaul it myself. Until now things have been more or less working as intended using Wrye Mash and Vortex, but I wanna start a serious playthrough and clean all those plugins up.

 

I downloaded and attempted to use tes3cmd, but my mod list is waaay too long to do them individually. Instead I tried to use the 'tes3cmd fixit' command and got the following error:

 

 

Can't use an undefined value as a symbol reference at Config/IniFiles.pm line 817, <GEN3> line 874.

 

 

I have no clue what this means or how to fix it to clean my mods. Any help would be massively appreciated!

 

 

EDIT: I seem to have figured it out for now.

Edited by CrookedKnight
Link to comment
Share on other sites

You are absolutely right. I do not know the specifics, but I seem to have had something checked in Wrye Mash that shouldn't have been (I believe a mash patch or an old multipatch).

 

Sadly, I did 'fixit' and it seems to have cleaned my esm files thoroughly enough that assets, including entire regions, have disappeared. tes3cmd is supposed to have a back-up directory, but mine doesn't where its supposed to be...

 

Please help me. XD

 

EDIT: I reinstalled and it seems to have solved the issue. Sorry for the waste of a thread.

Edited by CrookedKnight
Link to comment
Share on other sites

I have 2 "bats" that I run. One is the Multipatch that I run every time I add a mod or do something that I have to go thru the routine steps of: Mlox > Wrye Mash Repair All > Multipatch > MGExe Distant Land Gen

Here's the Bat that I use for Drag & Drop Clean Mods with Tes3cmd

 

 

@ECHO OFF
:START
CLS
REM ***************************************************************************************
REM ***** "Drag-and-Droppable" TES3CMD Cleaning Batch / CMD File *****
REM ***** by: RMWChaos *****
REM ***** original concept by: Pinkertonius *****
REM ***** modified by Spirithawke ver. 2013.03.29 *****
REM ***************************************************************************************
REM *
REM * TO SETUP ...
REM *
REM * 1. Download TES3CMD v0.37u from:
REM *
REM * 2. Unzip TES3CMD to your "\Morrowind\Data Files" directory
REM *
REM * 3. Create a new "Tes3cmd clean fancy2.txt" file in the same directory
REM *
REM * 4. Copy the entire contents of this code into the text file and save it
REM *
REM * 5. Rename the text file with a ".bat" or ".cmd" extension (either works)
REM *
REM * 6. *OPTIONAL* Create a SHORTCUT to the batch file on your desktop
REM *
REM *********************************************************************************
REM *
REM * The cleaned plugin will take the place of the old 'dirty' plugin and the old
REM * plugin will be backed up to "\Data Files\tes3cmd\backups" by default.
REM *
REM * A log file called "<plugin.name>-cleaned.log" will also be created in Data Files
REM *
REM *********************************************************************************
REM *
REM * Tribunal.esm and Bloodmoon.esm will use a different cleaning method so as not
REM * to remove required GMSTs, and tes3cmd may ignore (not clean) other mods
REM * based on its own internal code.
REM *
REM *********************************************************************************
REM *
REM *********************************************************************************
REM ***** MOD CLEANING STEPS *****
REM *********************************************************************************
REM *
REM * First, make sure the mod master dependencies are already located in the
REM * "\Data Files" folder, or THE MOD WILL NOT BE CLEANED !!
REM *
REM * TO RUN ...
REM * Drag ESP/M files onto the shortcut, .bat, or .cmd file to clean mods.
REM *
REM * CLEANING ORDER ...
REM * 1. Official masters (i.e. Tribunal.esm and Bloodmoon.esm)
REM * 2. Mod masters (e.g. GIANTS.esm, etc.)
REM * 3. Mod plugins that are a Master to another Plugin
REM * 4. Mod plugins relying on Official Masters, Mod Masters, or Plugin Masters
REM * 5. All other plugins without master dependencies
REM *
REM * DO NOT CLEAN MOD "CONTROL FILES" ...
REM * Files such as "GIANTS Ultimate Control File.esp" intentionally contain
REM * records duplicated from their mod master, and should not be cleaned.
REM *
REM *********************************************************************************
REM *
REM *********************************************************************************
REM ***** CHECK for OFFICIAL ESMs, INITIATE LOG, CLEAN, and SYNC *****
REM *********************************************************************************
REM *
REM * Set initial environment variables ...
SET MOD="%~nx1"
SET TMP=".%~nx1"
SET BAK="%cd%\tes3cmd\backups\.%~nx1"
SET DBL="%cd%\tes3cmd\backups\%~n1~*%~x1"
SET LOG="%cd%\%~nx1-cleaned.log"
REM * Check for Morrowind.esm (cannot clean) ...
IF %MOD%=="Morrowind.esm" (
ECHO You cannot clean %MOD%.
PAUSE
GOTO END
)
REM * Initiate log file ...
ECHO Cleaning of %MOD% initiated on %DATE% at %TIME% > %LOG%
@ECHO: >> %LOG%
REM * Append original mod header contents to log file ...
ECHO Pre-clean / pre-sync mod header contents . . . >> %LOG%
tes3cmd dump --type TES3 %MOD% >> %LOG%
@ECHO: >> %LOG%
REM * Notify user that cleaning has begun ...
ECHO Cleaning of %MOD% has begun . . .
@ECHO:
ECHO You may not see activity for some
ECHO time, especially on larger mods . . .
@ECHO:
@ECHO:
REM * If file is NOT Tribunal or Bloodmoon ...
IF NOT %MOD%=="Tribunal.esm" (
IF NOT %MOD%=="Bloodmoon.esm" (
tes3cmd clean --hide-backups --replace %MOD% >> %LOG% 2>&1
GOTO SYNC
)
)
REM * If mod IS Tribunal or Bloodmoon ...
ECHO "EVIL GMSTs" will not be cleaned . . . >> %LOG%
@ECHO: >> %LOG%
REM * Temporarily rename mod to bypass tes3cmd no-clean behavior ...
REN %MOD% %TMP%
tes3cmd clean --hide-backups --replace --instances --cell-params --dups --junk-cells %TMP% >> %LOG% 2>&1
REM * Rename mod and backup back to original name ...
REN %TMP% %MOD%
REN %BAK% %MOD%
:SYNC
@ECHO: >> %LOG%
@ECHO: >> %LOG%
REM * Synchronize mod header ...
ECHO Syncrhonizing mod - update masters and header . . . >> %LOG%
@ECHO: >> %LOG%
tes3cmd header --hide-backups --synchronize %MOD% >> %LOG% 2>&1
@ECHO: >> %LOG%
ECHO Synchronizing complete. >> %LOG%
@ECHO: >> %LOG%
REM * Append mod header description ...
rem ECHO Update header description . . . >> %LOG%
rem tes3cmd header --hide-backups --description "+ Cleaned by tes3cmd on %DATE% at %TIME%." %MOD% >> %LOG% 2>&1
rem @ECHO: >> %LOG%
REM * Delete extra backups created during synchronization ...
IF EXIST %DBL% DEL %DBL%
REM *********************************************************************************
REM ***** TIMESTAMP LOG, OUTPUT LOG, and DISPLAY LOG LOCATION *****
REM *********************************************************************************
:DISP
REM * Append cleaned & updated mod header contents to end of log ...
rem ECHO Post-clean / post-sync mod header contents . . . >> %LOG%
rem tes3cmd dump --type TES3 %MOD% >> %LOG% 2>&1
rem @ECHO: >> %LOG%
REM * Timestamp the log file with completeion date and time ...
ECHO Cleaning finished %MOD% on %DATE% at %TIME% >> %LOG%
REM * Output log file to console ...
TYPE %LOG%
@ECHO:
REM * Display location of log file and wait for user input to close CMD window ...
ECHO The log file for this cleaning process was stored here:
@ECHO:
ECHO %LOG%
PAUSE
REM *********************************************************************************
REM ***** End of batch commands, exit CMD window. *****
REM *********************************************************************************
:END

 

 

I believe that BAT came from here =Morrowind Mod Wiki.

 

And here is my Multipatch BAT that combines Level Lists and other things:

 

 

@echo off
REM batch file to create a multipatch plugin using tes3cmd
REM put shortcut on desktop and double-click it to create multipatch
tes3cmd multipatch > multipatch.log
TYPE multipatch.log
PAUSE

 

 

You must of not setup your BAT right. Didn't add the right backup options or something. Hopefully that wiki link will help in the future. It did me. More info than what you asked but just trying to help :)

Link to comment
Share on other sites

That batch file is interesting. It looks (at least to my relatively non-technical eyes) like running the first batch file on all your mods, then running the multipatch batch file, would basically do the same thing the tes3cmd fixit command does. What's the advantage of the batch files over running the fixit command via Wyre Mash? I haven't experienced any problems with fixit so far, but I'm using a relatively short/simple load order without any of the huge new lands/overhauls like TR and Rebirth.

Link to comment
Share on other sites

@CrookedKnight: It would be useful, if you can tell us what Wrye Mash version you're using.

 

Wrye Mash 0.84 (original by Wrye)

Wrye Mash Stand Alone (Melchor)

Wrye Mash Stand Alone (Yacoby)

Wrye Mash Stand Alone (Sharlikran)

 

All stand alone versions are forks like this IIRC.

 

Wrye Mash >>> Melchor's WMSA

Melchor's WMSA >>> Yacoby's WMSA

Sharlikran's WMSA >>> both Melchor's and Yacoby's WMSA (I tested Sharlikran's WMSA in late 2017)

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...