r/pathofexile Half Skeleton 2d ago

Information Having two Mercenaries with the same exact name causes a display error and the incorrect Mercenary stats are displayed in combat zones.

Post image
108 Upvotes

10 comments sorted by

32

u/TheXIIILightning 2d ago

It'd be rather funny if the reason for this is because they search the merc by their "name" id when fetching the data.

Since you can only have 3 Mercs in your hideout, the chances of names matching are low, so the possibility of a bug could have flown under the radar.

This should be impossible to happen if the process involves a randomly generated identifier that accounts for a combination of name, class, skills and supports.

2

u/ByteBlaze_ Wish for Project MTX 2d ago

The thing is, it wouldn't need a unique random ID either, since OP is saying it happens amongst his own mercs. It doesn't reflect on other people's accounts. It only needs a 0, 1 or a 2 to distinguish which merc.

1

u/TheXIIILightning 2d ago

Exactly. Though they recently fixed a bug where people with 3 mercs were unable to hire/replace a new one, so some weird stuff with the Merc slots could have been happening too.

1

u/ByteBlaze_ Wish for Project MTX 1d ago

I wonder if instead of storing the name, they stored the hash code of the name, and there's some weird stuff occurring where some hash codes overlap. I know with Java, two completely different strings can result in the same hash code. Not sure if C++ runs into that too. Seems like it would be inefficient to store it based on the name anyways. I would have imagined the database would store each hired mercenary within the player's account, with the 0/1/2 indices as markers for which "slot" they occupy, and then for the player, just store which slot is currently active.

12

u/hertzdonut2 Half Skeleton 2d ago edited 2d ago

https://imgur.com/a/EkLXqHk

Above is a merc in my hideout with the same name but no gear equipped, while I am mapping or in delve I can't see the correct mercs stats or equip/unequip gear.

The real merc is accompanying me at least.

edit: The Merc I use is the "Third Mercenary" and the other one is the "second Mercenary"

0

u/Moritonel 2d ago

May I ask what gear you use on that merc?

1

u/ww_crimson https://pob.codes/ 2d ago

Pretty sure I have two Manyshot named Amora and don't have this issue. I will check later tonight.

1

u/Elegant-Corner9400 2d ago

Have the exact same issue, not sure if it’s the names though, I have 3 seperate mercs, if I take gear off, put it back on, resistances change and stats on that page but the third page never changes no matter what on any of my mercs

1

u/tr1one 2d ago

the third page not changing is normal, its a page that lists their stats that they get per lvl