Vice City: Multiplayer

VC:MP Discussion => Support => Bugs and Crashes => Topic started by: habi2 on Sep 01, 2025, 01:57 AM

Title: Name with hyphen followed by h or p breaks host/port parsing
Post by: habi2 on Sep 01, 2025, 01:57 AM
Subject: Name with hyphen followed by h or p breaks host/port parsing


Description
If the player name contains a hyphen (-) followed by h, the hostname gets corrupted when connecting.

If the player name contains a hyphen (-) followed by p, the port number is parsed incorrectly.

This causes the client to fail to connect to the correct server.
Example:

test-hname → wrong hostname

test-pname → wrong port

Reproducible
Always

What you were doing when the bug happened


What you think caused the bug
It seems the parser might be mistaking parts of the name for -h (host) or -p (port) arguments.