Search and Replace Mistake

Post » Sat May 28, 2011 1:25 am

Okay, I was working my way through an extremely long list of search and replaces, when I discovered that I had accidently replaced in_v_s_int_wall01 and in_v_s_int_wall02 with in_tb_v_s_int_wall01. Does anyone have any idea how I would reverse this? I have been playing around with TESAME, TESTool, and MWEdit, but whatever I am doing only seems to only delete the new reference, not revert to the old references. Help! *chuckle*
User avatar
Cccurly
 
Posts: 3381
Joined: Mon Apr 09, 2007 8:18 pm

Post » Sat May 28, 2011 2:35 am

Okay, I was working my way through an extremely long list of search and replaces, when I discovered that I had accidently replaced in_v_s_int_wall01 and in_v_s_int_wall02 with in_tb_v_s_int_wall01. Does anyone have any idea how I would reverse this? I have been playing around with TESAME, TESTool, and MWEdit, but whatever I am doing only seems to only delete the new reference, not revert to the old references. Help! *chuckle*


You'd have to either -
1) load an earlier save or
2) Use the "selection only" option of the search & replace after manually selecting the ones you want to revert/change.
User avatar
Scared humanity
 
Posts: 3470
Joined: Tue Oct 16, 2007 3:41 am

Post » Sat May 28, 2011 6:19 am

Really. So there is no way to, say, delete in_tb_v_s_intwall01 and clean the esp to have it use the original references again? *thinks* Could I do something silly like make a seperate mod that correctly switches wall01 to tbwall01 and wall02 to tbwall02 and then merge in with unique tombs?
User avatar
Chenae Butler
 
Posts: 3485
Joined: Sat Feb 17, 2007 3:54 pm

Post » Fri May 27, 2011 7:27 pm

Really. So there is no way to, say, delete in_tb_v_s_intwall01 and clean the esp to have it use the original references again?

Enchanted Editor or TESAME should be able to.
Just delete the objects you changed, and they will be returned to normal in your esp.
(I've noticed sometimes you have to save twice to get the changes to take hold.)
User avatar
Yvonne
 
Posts: 3577
Joined: Sat Sep 23, 2006 3:05 am

Post » Sat May 28, 2011 11:06 am

Thanks. I thought I should be able to do that, but I must have been doing something subtly wrong, because I was getting a warning that the onject for 700 plus references was missing, or something to that effect. I'll try it again.
User avatar
Andrew Lang
 
Posts: 3489
Joined: Thu Oct 11, 2007 8:50 pm

Post » Sat May 28, 2011 2:46 am

Thanks. I thought I should be able to do that, but I must have been doing something subtly wrong, because I was getting a warning that the onject for 700 plus references was missing, or something to that effect. I'll try it again.


To do that you would need to, within each cell that has a reference to in_tb_v_s_intwall01, check the 2 or 3 data lines for each such reference. Then the checked references could be deleted. Finding and checking each reference in EE without a) incorrectly checking the wrong box or B) having an EE data error corrupt your mod would be a daunting task. Unfortunately if you don't have a back up then your best option is to use the search & replace with selection only option.
User avatar
QuinDINGDONGcey
 
Posts: 3369
Joined: Mon Jul 23, 2007 4:11 pm

Post » Sat May 28, 2011 11:35 am

To do that you would need to, within each cell that has a reference to in_tb_v_s_intwall01, check the 2 or 3 data lines for each such reference. Then the checked references could be deleted. Finding and checking each reference in EE without a) incorrectly checking the wrong box or B) having an EE data error corrupt your mod would be a daunting task. Unfortunately if you don't have a back up then your best option is to use the search & replace with selection only option.

You could try http://code.google.com/p/mlox/wiki/Tes3cmd, it has the ability to delete references from cells, including all the data for each reference.

Show all the stuff you want to delete:

tes3cmd dump --type cell --instance-match in_tb_v_s_int_wall01 myplugin.esp

If that looks good, then delete it:

tes3cmd delete --type cell --instance-match in_tb_v_s_int_wall01 myplugin.esp

This feature is somewhat experimental, but I've used it to clean up plugins before.
User avatar
Erika Ellsworth
 
Posts: 3333
Joined: Sat Jan 06, 2007 5:52 am


Return to III - Morrowind