The Rcon port that TF2 runs on can be changed by adding -port <whatever> to the TF2 launch parameters. The client will need a way to also change this if the user so wants.
This should work around the iTunes issue that's popped up with a few people, perhaps we should default to using a different port because some people don't realise they have iTunes or whatever other Apple software installed.
Necessary steps would be:
Add a field to Settings for the rcon port
Make sure to set it to 27015 in the default
Maybe rename the existing port variable to api_port or something more specific
Add a field to CommandManager for the rcon port, and add a new CommandManagerMessage to update it (will resemble SetRconPassword)
Change CommandManager::try_connect() to use the stored port instead of the hardcoded one.
Add a field to InternalPreferences for the API and update it in put_prefs (will have to send an IOManagerMessage like with the rcon password)
The Rcon port that TF2 runs on can be changed by adding
-port <whatever>
to the TF2 launch parameters. The client will need a way to also change this if the user so wants.This should work around the iTunes issue that's popped up with a few people, perhaps we should default to using a different port because some people don't realise they have iTunes or whatever other Apple software installed.
Necessary steps would be:
Settings
for the rcon portport
variable toapi_port
or something more specificCommandManager
for the rcon port, and add a newCommandManagerMessage
to update it (will resembleSetRconPassword
)CommandManager::try_connect()
to use the stored port instead of the hardcoded one.InternalPreferences
for the API and update it input_prefs
(will have to send anIOManagerMessage
like with the rcon password)