- Jul 28, 2015
- 2,495
- 571
- 136
Edit: Hell, just a program that uses RegEx in the replace part of "Search and replace" would be dandy. Thing is, most programs don't use RegEx in the replace field, but only in the find field. Notepad++, Expresso and ConTEXT are programs that don't use RegEx for replacing; only for finding.
'Tis me once again.
I've compiled a couple of pair-name lists for BRU, which I shall detail shortly.
The current issue, is that any renamed file that has a duplicate name will not be changed. That is, any duplicate names won't have a suffix to remedy the error, which is how Windows' UI works. If you select a bunch of files -> F2 -> type in a name, all the subsequent files will have an ever increasing suffix between two brackets.
BRU does not have such a feature for rename pairs.
As an example, here are a few rename pairs; the source file name is different, but the new names are the same.
Take note that that .fuz files are a compressed audio format; that is, they contain spoken dialogue. So whilst the files may have the same spoken words, they are delivered differently, which is why I can't simply just remove all but one of the conflicting files.
What I need, is a way to find all duplicates of the strings that lie between | and .fuz, adding a suffix before .fuz to remedy the name conflict. So the result would end up like this:
And no, this is impossible to do manually; I'm dealing with a total of over 80,000 lines of dialogue. Checking each line for conflicts is, uh, yeah.
Here's one of the rename pair list files, for those curious. https://www.mediafire.com/?z1xclh5hfr3k37h
So aye. Is there any software that can do this sort o' nonsense? Something like:
Beginning string = .fuz|
Ending string = .fuz
Suffix to add to duplicates (Regex) = ^_[0-9]{3}$
'Tis me once again.
I've compiled a couple of pair-name lists for BRU, which I shall detail shortly.
The current issue, is that any renamed file that has a duplicate name will not be changed. That is, any duplicate names won't have a suffix to remedy the error, which is how Windows' UI works. If you select a bunch of files -> F2 -> type in a name, all the subsequent files will have an ever increasing suffix between two brackets.
BRU does not have such a feature for rename pairs.
As an example, here are a few rename pairs; the source file name is different, but the new names are the same.
Take note that that .fuz files are a compressed audio format; that is, they contain spoken dialogue. So whilst the files may have the same spoken words, they are delivered differently, which is why I can't simply just remove all but one of the conflicting files.
Code:
MS04__000565FF_1.fuz|Absolutely.fuz
TGDialogueHQScene06__0003DA8B_1.fuz|Absolutely.fuz
TGLeadership__000E3F4F_1.fuz|Absolutely.fuz
WISharedIn_WISharedInfosTo_000730E6_1.fuz|Yes.fuz
DialogueGe_DialogueGeneric_00087940_1.fuz|Yes.fuz
Code:
MS04__000565FF_1.fuz|Absolutely(001).fuz
TGDialogueHQScene06__0003DA8B_1.fuz|Absolutely(002).fuz
TGLeadership__000E3F4F_1.fuz|Absolutely(003).fuz
WISharedIn_WISharedInfosTo_000730E6_1.fuz|Yes(001).fuz
DialogueGe_DialogueGeneric_00087940_1.fuz|Yes(002).fuz
Here's one of the rename pair list files, for those curious. https://www.mediafire.com/?z1xclh5hfr3k37h
So aye. Is there any software that can do this sort o' nonsense? Something like:
Beginning string = .fuz|
Ending string = .fuz
Suffix to add to duplicates (Regex) = ^_[0-9]{3}$
Last edited: