In response to post #8396454. #8396528, #8396661, #8396893, #8397467, #8397568, #8397711, #8397757, #8399150, #8399725 are all replies on the same post.
Alright, thanks for the report.
Merge Plugins TES5Edit Script
Started by
Site Bot
, Jul 05 2013 06:42 PM
2390 replies to this topic
#61
Posted 06 July 2013 - 05:13 PM
#62
Posted 06 July 2013 - 05:14 PM
In response to post #8396495. #8397006, #8397186, #8397428, #8397451, #8397557, #8397565, #8397723, #8398787, #8400573 are all replies on the same post.
hmm, well. it seems that for certain not-extremely script-heavy mods merging is fine, but others don't seem to work. I'm just going to tell people that merging mods with scripts in them doesn't work all the time and see if I can figure out exactly when it works and when it doesn't.
#63
Posted 06 July 2013 - 05:20 PM
I haven't had to rename my BSAs, but this renaming is a good idea. I'll let people know.
@Avoiding ESMs:
Because of how ESMs are often referenced by other mods (that's kind of the entire point of them being ESMs ye' know) renumbering the FormIDs in them and copying records out of them into a new file is going to break any other mod's associations with them.
There's other problems I can imagine as well. I could be wrong of course. I'm just an amateur coder.
@Avoiding ESMs:
Because of how ESMs are often referenced by other mods (that's kind of the entire point of them being ESMs ye' know) renumbering the FormIDs in them and copying records out of them into a new file is going to break any other mod's associations with them.
There's other problems I can imagine as well. I could be wrong of course. I'm just an amateur coder.
#64
Posted 06 July 2013 - 05:32 PM
I'm glad you like the script Osmanli.
I'll do some more BSA testing here soon, as I don't know if I had already extracted certain BSAs before merging and forgotten about it.
I think Renumbering the FormIDs is an important step regardless of what sort of records you're copying. If the records in the file reference each other I think renumbering the forms helps TES5Edit to get them to reference each other in-file after merging (rather than attempting to reference something out-of-file). Renumbering also makes sure there aren't any records with the same FormID in the file after merging. I don't know if/when you can get away with not renumbering, but you're free to try it out and let me know what happens!
Thanks for the vote!
I'll do some more BSA testing here soon, as I don't know if I had already extracted certain BSAs before merging and forgotten about it.
I think Renumbering the FormIDs is an important step regardless of what sort of records you're copying. If the records in the file reference each other I think renumbering the forms helps TES5Edit to get them to reference each other in-file after merging (rather than attempting to reference something out-of-file). Renumbering also makes sure there aren't any records with the same FormID in the file after merging. I don't know if/when you can get away with not renumbering, but you're free to try it out and let me know what happens!
Thanks for the vote!
Edited by matortheeternal, 06 July 2013 - 06:02 PM.
#65
Posted 06 July 2013 - 06:08 PM
The BSA would be loaded when your esp would be loaded. Once a BSA is loaded, whatever it contains can be used by any mod.
#66
Posted 06 July 2013 - 06:13 PM
My purpose is the reverse
I want to merge everything into an ESM, and then I can reference that ESM from other mods!
I have been toying with your script all afternoon, I'll show what I got later.
Current issue I have seen, for your intended purpose, is that the loop renaming the forms does not apply to groups of groups (like in children of Cell, Worldspace or, most likely, Topic
EDIT: To avoid the issue, loop using RecordCount/RecordByIndex rahter than ElementCount/ElementByIndex.
I want to merge everything into an ESM, and then I can reference that ESM from other mods!
I have been toying with your script all afternoon, I'll show what I got later.
Current issue I have seen, for your intended purpose, is that the loop renaming the forms does not apply to groups of groups (like in children of Cell, Worldspace or, most likely, Topic
EDIT: To avoid the issue, loop using RecordCount/RecordByIndex rahter than ElementCount/ElementByIndex.
Edited by hlp, 06 July 2013 - 06:36 PM.
#67
Posted 06 July 2013 - 06:26 PM
#68
Posted 06 July 2013 - 06:39 PM
In response to post #8400589. #8401878, #8401999, #8402309, #8402339 are all replies on the same post.
Merging everything into an existing ESM is easy and supported. When asked "If you already have a plugin which you would like to serve as your merged file please specify its name below" just type in:"MyAwesomeMergedMaster.esm"
(or whatever the name of the esm is)
without quotes. the script doesn't support the creation of new master files, but I'm sure that you know how to do that in TES5Edit. ;P
hmmm... the loop renumbering forms doesn't apply to child groups you say?
ah yes. it wouldn't. I can fix that in an update pretty easily. just gotta have an extra check to see if the elements in the group are child groups, and if they are I go into an additional for-do loop to check inside of those child groups. do child groups ever have child groups, or can I just use another for-do loop to cover this entire problem?
well I haven't had problems with merging mods that modify cells/worldspaces, so I think it still works?
looking forward to hear about what you've found, hlp.
@Edit: I couldn't get RecordCount and RecordByIndex to work. I tried them but RecordByIndex gave me empty results for the majority of indices. It was almost as if there were 100 blank indices between each filled one.
But that might not be the case on 3.0.30. I was using an old version of TES5Edit when I did that test, so I better try again on 3.0.30.
Edited by matortheeternal, 06 July 2013 - 06:50 PM.
#69
Posted 06 July 2013 - 06:57 PM
In response to post #8400589. #8401878, #8401999, #8402309, #8402339, #8402484 are all replies on the same post.
I just tried using GetRecordIndex without any explicit issue.
Maybe my test ESP are too simple ?
The copy itself doesn't care as it will enforce a newFormID during DeepCopy anyway.
On my first try toward an ESM I had a crash, because the ESM loadOrder was lower than the ESP being copied into it. AddMaster did not work very well in that case.
#70
Posted 06 July 2013 - 07:11 PM
In response to post #8400589. #8401878, #8401999, #8402309, #8402339, #8402484, #8402592 are all replies on the same post.
the recordbyindex stuff is probably just because i was on an older version of tes5edit when i tested that. gimme a minute and i'll test again. it probably works.
I don't think deepcopy will enforce a new formID when it's deepcopying as an override.
ah, that would be a problem then... lol.
I can't not add masters because then wbCopyElementToFile will result in an error (if I remember right). So copying stuff into an existing master file probably won't work.
What could be done is copying the stuff from a single master file into an already merged patch then convert the merged patch to a master file and give it the same name as the master file you copied stuff from.
Edited by matortheeternal, 06 July 2013 - 07:15 PM.



Sign In
Create Account

Back to top







