bakkesmodorg / BakkesModSDK

The current BakkesModSDK (Unofficial SDK for Rocket League)
http://bakkesmod.com
223 stars 49 forks source link

server.HasPlayerNamed() doesn't like certain names. #34

Open Syntaxxor opened 2 years ago

Syntaxxor commented 2 years ago

I'm using server.HasPlayerNamed() in my plugin. When a user named Hazmat used it, the result was always false. When I replaced it with a custom little loop over all the player controllers and their names, comparing the names and seeing if any matched, that worked. This does happen with other names too, though I'm waiting for feedback on what names do it there. I will edit this post to add any further names as I find them.

TO REPRODUCE: Use server.HasPlayerNamed() to check if a player in the server is named Hazmat, and set your name to the same. It will return false.

KNOWN PROBLEM NAMES:

Martinii89 commented 2 years ago

The internal game function it wraps might be broken. I suggest you rather iterate the PRIS and check their names yourself

Syntaxxor commented 2 years ago

The internal game function it wraps might be broken. I suggest you rather iterate the PRIS and check their names yourself

That's what I ended up doing instead, but I figured I'd report it here as well in case there's some easy fix.