Dupefind: Find Duplicate Items Across Inventories

Language: JP EN DE FR
New Items
2019-12-13
users online
Forum » Windower » General » Dupefind: find duplicate items across inventories
Dupefind: find duplicate items across inventories
Offline
Posts: 132
By Lili 2018-12-03 15:23:36
Link | Quote | Reply
 
Hello all,

I am releasing Dupefind, one of my endeavors to make inventory management easier.

Dupefind helps you find multiple instance of the same item across all bags of the same character, and, if you have the addon findAll installed, even multiple instances across different characters, provided you ran findAll on those characters at least once.

Download: https://pastebin.com/yXMCuDN7
(I may setup a github eventually. For now this will suffice.)

USAGE: Invoke the addon with //dupefind, //dupe, or //df.

Example result:


By default, dupefind ignores Rare items, Exclusive items, items that cannot be stacked, items that cannot be sent via POL, and only considers your current character. It is possible to override each filter with a flag:

//dupefind ex - will include Exclusive items in the search
//dupefind nostack - will include non-stackable items
//dupefind rare - will include Rare items
//dupefind findall - will search across all of your characters (see note below)

All flags can be used in any order and combination. Examples:
//dupefind nostack ex
//dupefind rare findall
etc.

PLEASE NOTE: dupefind leverages findAll offline storage. Therefore, search results will include characters that no longer exist, renamed characters, your significant other's character, etc, anything that is stored under the windower\findall\data folder. If you get search results for characters that you do not longer have access to, delete their respective file from windower\findall\data folder, or add them to the ignore list in dupefind.lua.

IGNORE FUNCTION:
Dupefind can be setup to ignore specific items, or specific characters. Simply open dupefind.lua with a text editor, and edit lines 67 and 68 accordingly. Eventually there will be an addon command, but until I dig into how the config library works, you'll have to edit the file.

KNOWN ISSUES:
- items that cannot be sent via POL never appear in the search results, even if they are stackable.
- items that can be sent via POL but are on characters linked to different POL accounts will show up in the results as duplicates anyway. Dupefind has no automatic way to know which characters are actually on the same POL account, so for now this is as good as it gets until I decide on which way I like best to deal with this.

TO-DO LIST:
- Include the config library so you can add/remove ignored items
- Add a way to tell dupefind which characters belong to the same POL account.
- Implement some sort of export function, to export the duplicates to a text file.

Feedback, bug reports, feature suggestions, unconditional praise, gifts, boobs, pizza, donations, all very welcome.

THANKS TO Arcon for patiently guiding me through a bunch of lua hoops, and Martel for some preliminary testing. To Zohno for making findAll (from which I copied a bunch of code, made my life much easier), and to all addon devs out there that make our life easier everyday.

Enjoy!
[+]
 Bahamut.Kimikryo
Offline
Server: Bahamut
Game: FFXI
user: kimikryo
Posts: 24
By Bahamut.Kimikryo 2018-12-04 02:37:20
Link | Quote | Reply
 
Nice Idea man, will look into it if I get to it :)
Offline
Posts: 188
By Spoiled 2018-12-04 02:49:44
Link | Quote | Reply
 
Great idea, thank you for your contribution. Can't wait to try it out
 Bahamut.Dannyl
Offline
Server: Bahamut
Game: FFXI
user: dannyl
Posts: 1477
By Bahamut.Dannyl 2018-12-04 08:08:17
Link | Quote | Reply
 
This is great !
Offline
Posts: 427
By Aerison 2018-12-04 09:39:47
Link | Quote | Reply
 
What's the difference between this and findall?
Offline
Posts: 132
By Lili 2018-12-04 11:31:45
Link | Quote | Reply
 
Aerison said: »
What's the difference between this and findall?

findAll lets you look for one specific item.
Dupefind searches your entire inventory (all bags on the current character, or even all characters you own) and tells you if you have items scattered across different bags (or different characters).
 Asura.Truece
Offline
Server: Asura
Game: FFXI
user: Truece
Posts: 37
By Asura.Truece 2018-12-04 12:03:12
Link | Quote | Reply
 
Findall does that, too. I must be missing something.



Found at this post.
Offline
Posts: 132
By Lili 2018-12-04 12:09:50
Link | Quote | Reply
 
Asura.Truece said: »
Findall does that, too. I must be missing something.

The output of findall and of dupefind is totally different. Try running dupefind and the difference will be self evident.

EDIT: as you can see from the image you posted, findAll is looking for a string ("ab"), and returning every and all items that have that substring in their name. You have to provide a search string in the beginning, it's sorted by character, and there's no further filtering: there's quite a few of unique items in there. By "unique" I mean an item that is only present in a single bag.

Dupefind goal is to help you discover if you have items scattered around different bags or different characters. I realize it might be confusing, so here's a better picture (that I also put in the opening post).

Run this command:

(as you can see, no arguments at all)

Get this output:


Is it more clear now?
[+]
Offline
Posts: 427
By Aerison 2018-12-04 12:21:49
Link | Quote | Reply
 
So the output is different from findall? At work and can't test it out.
Offline
Posts: 132
By Lili 2018-12-04 12:31:45
Link | Quote | Reply
 
I edited my last post, and the opening post. Hopefully it will be a bit more clear now.
 Asura.Truece
Offline
Server: Asura
Game: FFXI
user: Truece
Posts: 37
By Asura.Truece 2018-12-04 12:38:19
Link | Quote | Reply
 
Yes, thank you. That definitely helps to demonstrate functionality that you don't get from findall.
[+]
 Bismarck.Xurion
Offline
Server: Bismarck
Game: FFXI
user: Xurion
Posts: 291
By Bismarck.Xurion 2018-12-04 12:40:49
Link | Quote | Reply
 
Yeah this is way more user friendly for finding duplicate stacks than findall. Yeah you can use findall to do it, but you'd have to manually do it item by item.

As soon as I ran this I found numerous things which saved me like 15 spaces - which is more than SE have done.

Cheers Lili!
[+]
Offline
Posts: 554
By DaneBlood 2018-12-04 18:46:20
Link | Quote | Reply
 
Asura.Truece said: »
Findall does that, too. I must be missing something.



Found at this post.

yes you are missing the point. ;)

dupe finds any kind of duplicatea and duplicates.
find looks for items from a specific name parameter.
Different purpose.
 Quetzalcoatl.Commencal
Offline
Server: Quetzalcoatl
Game: FFXI
user: Scwall
Posts: 275
By Quetzalcoatl.Commencal 2018-12-04 19:17:30
Link | Quote | Reply
 
Dupefind's philosophy is to create more inventory space.

If I duped any items I'd remember where I put them.
 Shiva.Spynx
Offline
Server: Shiva
Game: FFXI
user: auron86
Posts: 350
By Shiva.Spynx 2018-12-04 21:08:37
Link | Quote | Reply
 
Thanks for this, my organizer sometimes like to split meds/food/ninja tool around for no reason and I end up wasting precious inventory space till I realize
[+]
Log in to post.