Searching random duplicate numbers/values in Notepad++

There’s an awesome application for Football Manager that lets you run AI-generated images for computer generated players.

However this program comes with a bug, and I found a nice workaround for it to generate new faces for an existing config.ini with all the text

I am using this for a while. However I noticed it would also have duplicate ID’s in the text. These ID are numbers/values that said players/staff etc in the game has.

Now lets say the code is

<record from="African/African1642" to="graphics/pictures/person/2001438633/portrait"/>  
<record from="Scandinavian/Scandinavian1363" to="graphics/pictures/person/2000650194/portrait"/>
<record from="South American/South American2712" to="graphics/pictures/person/2000677450/portrait"/>
<record from="African/African384" to="graphics/pictures/person/2000679316/portrait"/>
<record from="African/African8860" to="graphics/pictures/person/2000679751/portrait"/>
<record from="Scandinavian/Scandinavian3147" to="graphics/pictures/person/2000679938/portrait"/>
<record from="Scandinavian/Scandinavian2945" to="graphics/pictures/person/2000680076/portrait"/>
<record from="Scandinavian/Scandinavian1778" to="graphics/pictures/person/2000680138/portrait"/>
<record from="Asian/Asian1230" to="graphics/pictures/person/2000683034/portrait"/>
<record from="Italmed/ItalMed909" to="graphics/pictures/person/2000683836/portrait"/>
<record from="Central European/Central European1210" to="graphics/pictures/person/2000684528/portrait"/>
<record from="Central European/Central European9698" to="graphics/pictures/person/2000686319/portrait"/>
<record from="SpanMed/SpanMed7651" to="graphics/pictures/person/2000686467/portrait"/>
<record from="Scandinavian/Scandinavian1005" to="graphics/pictures/person/2000700048/portrait"/>

For example 2000686319 is an ID code. I’ve now 1033239 lines and probably half of them likely has duplicate ID’s. With a different “from=”. The game picks whenever line is first and adjusts said generated image to the player. So it just works ingame. However, What I want is to remove the duplicates & tidy up the file, and also help other users tidying up their config.ini.

Thank you for reading and I hope to learn a lot about this. I’ve been trying for 2 hours now, haha. I am stubborn.

I tried everything I could think of. Rexeg stuff I found over the internet, the normal notepad++ stuff to find duplicates, etc. Nothing works.

Leave a Comment