-
Notifications
You must be signed in to change notification settings - Fork 61
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Occassionally Selects Wrong Player #31
Comments
this is a known bug and currently there is no approach to detect which Unit(PlayerData) is controlled by yourself |
For now let players specify the player name within D2RMH.INI if this is a suitable workaround for multiplayer. (if this is possible with what can currently be read) |
Personally I'm switching characters so often, I'm not sure this would be very effective - at least for me. It would be interesting to see all of the players on the map though. Then it would only be a matter of a different character being highlighted temporarily. |
I know its not ideal, but if theres no way to differentiate which Unit is controlled by you in multiplayer games, but player names are available in PlayerData or some other means, it's probably the best workaround at this stage. You could list all your character names in the config, separated by commas, assigned to strings or an array etc. Im only saying all this because I'm wanting to use this in Multiplayer games, and its currently an issue for me as well. |
think can add a hotkey to switch between players |
Hello @soarqin, love the change so we can see all players now. Thank you for that. One suggestion for you is offset 0x70 from the player unit should be the pointer to the inventory. I believe this offset returns 0x00 when checked against a non-local player. If it returns a value, then you've selected the current local player. |
actually inventoryPtr is player unit offset 0x90(see https://github.com/soarqin/D2RMH/blob/master/src/d2rdefs.h#L598), and it is not 0x00 for all players. close this first, you are welcome to reopen the issue if there's anything wrong within this solution |
Sometimes seems to select wrong player to display.
The text was updated successfully, but these errors were encountered: