Closed nwalsh1995 closed 5 years ago
After looking through these and assuming this isn't a bug from the gathering side, it seems like these could just be recolors/model changes and their difference is not apparent from the stats side.
Hey @nwalsh1995 - yes, you are correct that there are duplicates that exist in the monsters dataset. Pretty sure it is not a bug, as the base data is extracted directly from the cache. The situation is similar to the item duplicates issue where multiple items exist and have varying uses in-game (item duplicates for quests, skill menu entries, interface interfaces etc.). I fixed this for items in #94 by adding a duplicate
property with a True/False boolean value. The same solution could be implemented for monsters - but would obviously need to be tweaked.
Brief summary: The general idea is achieved using a "first come, first served" principle. The lowest monster (based on monster ID) is considered the "original" when multiple monsters with the same properties are found. The properties that are used for comparison need to be investigated, but could include:
name
wiki_name
combat_level
members
The same solution for items seems to work pretty well. So it seems like a good choice. Also, I am not in favor of removing these duplicate entries (same position as the items database) - as it has been useful to have some of these duplicates available. So if there is a decent solution to filter duplicates out by adding the duplicate
property, it seems like the most logical solution.
Edit: Wording in last paragraph.
Hi @osrsbox, its been a while!
Taking a look at the new (to me) monster API and I was noticing some monsters appear to be duplicated. For instance, 8953 & 8954:
Admittedly I popped both of these reprs into an online diff tool and it didn't find any differences besides their IDs. I'm interested in de-duplicating, am I missing something or do duplicates exist?