Jump to content

[Guide] Mass Renaming Images to Merge Picture Packs


Recommended Posts

With the influx of new picture packs that'll be dropping soon it's going to be really hard to choose between your favourites and nobody has time to sit and compare individual characters before dropping them into your picture folder.

For this guide I'll use Microsoft Powertoys, a free official extension for Windows.  More powerful unofficial programs exist like Bulk Rename Utility and Advanced Renamer but today I'll focus on Powertoys as it's official Microsoft software. Once you've got Powertoys installed you'll be able to access more options from your right click menu.  

rename1.thumb.png.7dfa9a2900b742ff5b7b651f6fc12fe1.png

Here I've unzipped a picture pack to it's own folder, I've pressed CTRL + A to select all of the images, then I'll use shift + right click to open a longer version of the right click menu. Then click Rename with PowerRename.

rename2.thumb.png.4923571c084f4a45b54864336f85b2de.png

Inside PowerRename I told it to search for (.*).gif which means any gif selected, tick "use regular expressions". For the replace option I've told it to take the existing filename and add _EdJames on the end so I can remember who made those renders. That'd read as $1_EdJames.gif ($1 representing the existing filename). Click apply and it'll rename the lot, you can then drop them into your existing TEW picture folder.

https://learn.microsoft.com/en-us/windows/powertoys/powerrename

Microsoft have a page about the syntax used if you wanna make your own fancier naming format.

rename3.thumb.png.6a92b089b8f53c8b8d4142c5d6b182db.png

Here's an example use case, you've signed a guy, you can open up their character info, compare their pictures and choose the cooler Daniel.

Powertoys also has a batch image resizer with customisable presets which I imagine some of you will find useful! 

  • Like 8
  • Thanks 1
Link to comment
Share on other sites

Do you know if there's a way on this to do the opposite and get rid of part of the file name? For example all of @WalterSobchak renders have alt5/6/7 at the end of them. Am I right in thinking if I was able to delete those bits, when I then transferred them to my picture file it would let me overwrite the default pictures and make these show up in game?

 

I could be over thinking this and there might be an easier way. 

 

Link to comment
Share on other sites

It probably wouldn't be worth doing it for that purpose, Windows won't allow files of the exact same name to exist in the same folder, it'd chop off the alt1, alt2 etc but it'd put a number like (1) (2) (3) on the end of all your files. Somebody clever enough could probably figure it but I'm not that great at regular expressions.

Link to comment
Share on other sites

8 minutes ago, HHUK said:

It probably wouldn't be worth doing it for that purpose, Windows won't allow files of the exact same name to exist in the same folder, it'd chop off the alt1, alt2 etc but it'd put a number like (1) (2) (3) on the end of all your files. Somebody clever enough could probably figure it but I'm not that great at regular expressions.

But I guess that's the point right? If I want one set of pictures to overwrite another set I want them to have the same name, but right now they all have alt5 on so I'd have to manually pick for the game to use that one for each worker. But if they had the same I could skip a lot of work. 

Sorry if I'm not explaining it clearly. I've confused myself... 

Link to comment
Share on other sites

1 hour ago, christmas_ape said:

But I guess that's the point right? If I want one set of pictures to overwrite another set I want them to have the same name, but right now they all have alt5 on so I'd have to manually pick for the game to use that one for each worker. But if they had the same I could skip a lot of work. 

Sorry if I'm not explaining it clearly. I've confused myself... 

You could use this tool as follows to do what you are trying to do.

1) move the current/original pics to another folder

2) paste in the new/updated pictures (after renaming them to the correct names en masse if needed)

3) paste the original pics that you have moved out of the people folder back into the folder and allow windows to rename any that are "duplicate names"

 

That method will get you the updates with the correct file names and all of the originals as "alts" that you can still access easily in your PEOPLE folder.

Edited by BigDPW
Link to comment
Share on other sites

8 minutes ago, BigDPW said:

You could use this tool as follows to do what you are trying to do.

1) move the current/original pics to another folder

2) paste in the new/updated pictures (after renaming them to the correct names en masse if needed)

3) paste the original pics that you have moved out of the people folder back into the folder and allow windows to rename any that are "duplicate names"

 

That method will get you the updates with the correct file names and all of the originals as "alts" that you can still access easily in your PEOPLE folder.

Cheers, you're right but it's the step 2 where the issue is. Renaming them all en masse that I'm struggling with. 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...