Summary: This is code related. Running a player name through the console can create issue if their name has an underscore in it
Game Version: A20 experimental
Platform: PC
OS/Version: Windows
CPU Model: AMD Ryzen 5 3600
System Memory: 16 GB
GPU Model and VRAM: AMD 5500xt 4gig
Screen Resolution: 1920x1080
Video Settings: High
Game mode: Client on dedi
Did you wipe old saves? Yes
Did you start a new game? Yes
Did you validate your files? No
Are you using any mods? Yes
EAC on or off? On
Status: NEW
Bug Description: Console commands will trigger an error if a player name with an underscore is used. Example: givexp O_C 1000
Detailed steps to reproduce the bug:
1) Run a console command against a player name that has an underscore in it
2)
3)
Actual result: Console commands are passed through the ConsoleHelper.GetForNameOrId() to collect the Client Info it is to be used on. Console commands that trigger this are running the class: ClientInfoCollection and method: GetForNameOrId in the assembly code. This tries to collect the Platform Identifier using their name due to the underscore which causes an error
Expected result: No error when running console commands against player names with underscores by adjusting the method to check against their name before attempting to ascertain whether it is a platform id. This method currently checks if it is an entity id, then if it a platform id and then a player name. If you run the player name before the platform id, it will fix this
Recommended Comments
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now