PDA

View Full Version : Multiple Text/String Replacer Tool


vollachr
05-01-2018, 05:19
Hi,

I'm here to introduce you to a new little tool I created, to be honest, I got the idea from helping KaktoR (http://fileforums.com/member.php?u=189162) via PM with something, so I guess some thanks goes to him.

Anyway, back to the topic at hand...

VR Multiple Text/String Replacer

https://vignette.wikia.nocookie.net/ucc/images/c/ce/MTSRv3a.png

It is a simple and very small tool.

It allows you to easily search and replace multiple text lines or text strings in multiple files and replace them with another, simple right?!

Of course it is, yet I couldn't find a tool to do that, so I've created one with a batch script.

Please Note: The tool will only work on Windows operating systems that have Powershell installed and available.

For a more complete information, please visit the tool's WiKi Page (http://ucc.wikia.com/wiki/Multiple_Text/String_Replacer?action=edit&section=3)

You may ask what can this tool be used for, well, for once, let's say you're making a conversion using CIUv2, you want to change the selected font color for all buttons to the same color, all you need is to input the parameters into the MTSR tool INI file and let it make the changes for you, no more need to scroll through the Setup.ini and look for all instances, possibly missing one.

This is of course only one example, it can be used for a lot of other things, conversion related or not.

Hope you like it, the tool comes bundled with a text file usage instructions.

Program Name: VR Multiple Text/String Replacer
Scripting Language: Batch
Creator: VollachR
Version: 1.2
Release Date: January 5th 2018
Latest Update: January 7th 2018

Version History:

Version 1.2

Changed variable OriginalText in INI files to OldText
Now displays version number in the in-console title (not just the window title)


Version 1.1

First Public Release


Version 1.0

Initial Pre-Release



Download available on the WiKi or as an attachment to this post.

Enjoy!

JustFun
05-01-2018, 08:24
Nice tool, but tbh Notepad++ does more than great job with this for me, but idea and tool is more than welcome. Nice to see someone else needing this lol, I thought I was the only one replacing multiple strings. :D

KaktoR
05-01-2018, 08:47
A quick conversion tool for old -> new Setup.ini would be great too.

Mini
05-01-2018, 09:33
http://fart-it.sourceforge.net/

vollachr
05-01-2018, 12:39
A quick conversion tool for old -> new Setup.ini would be great too.

I haven't done conversions in a long while so I'm not sure what the differences are but I can look into it, if you can pm me any relevant information it will really help.

Theoretically though, it shouldn't be too hard to adjust this tool and create what you want.

vollachr
06-01-2018, 03:33
Nice tool, but tbh Notepad++ does more than great job with this for me, but idea and tool is more than welcome. Nice to see someone else needing this lol, I thought I was the only one replacing multiple strings. :D

Yeah, notepad++ can handle replacing multiple instances of the same text/string in a file, but I haven't seen an option to replace multiple text/strings in multiple files at the same time in Notepad++, nor in any other tool for that matter.

My new tool makes that possible, all you need to do is make sure all the files you want to edit are in the same folder as the tool and set the .ini files in the [Settings] sub-folder correctly, the tool will do the rest automatically in a matter of seconds.

Anyway, I appreciate the comment.

Hope the tool makes someone life a little easier.

78372
07-01-2018, 02:23
Something made in 5 minutes of time based on your idea, but single text replacer.
Commands:

far.exe filename oldtext newtext

Make sure the filesize is not more than 100mb, it may cause bugs.
Thanks to vollachr for the idea.

vollachr
07-01-2018, 04:12
Updated the tool to V1.2, see OP for details.