In the original release it was necessary to manually specify a large number of settings in the command line. As part of the patch a significant amount of these settings are no longer required. In fact, they may actually be HURTING you. The software now automatically detects some settings that used to be required. Other settings have been optionally moved into the .ini files.
If your server no longer appears in the browser, the problem may be caused by unnecessary settings in the command line.
It used to be that this was a 'standard' command line:
Since applying the patch, this exact same command line can be shortened to this:
In fact, if I really wanted to push this to be as short as possible, this works too:
So, how did I get it so short? Its simple, yet complicated.
The short answer is that almost all of these settings are now located in the .ini files. If you know what to change then you can change it, and remove it from the command line. When the server starts it will read the .ini files and load your desired settings.
The long answer is that these settings are scattered throughout the .ini file(s) so there are a lot of places to edit them. Below are some examples. Obviously you will have to modify these to suit your desired gametype and settings.
-----
Old commandline setting:
- ?Game=UTGameContent.UTVehicleCTFGame_Content
New UTGame.ini file setting:
- [Engine.GameInfo]
- DefaultServerGame=UTGameContent.UTVehicleCTFGame_C ontent
-----
Old commandline setting:
- ?GameMode=3
New UTGame.ini file setting:
- [not needed] - The server now knows to set the GameMode to 3 when its set to load a UTVehicleCTFGame. Same goes for any other gametype.
-----
Old commandline setting:
- ?numplay=4
New UTGame.ini file setting:
- [not found] - I can't find an .ini setting that states the desired # of bots
-----
Old commandline setting:
- ?maxplayers=12
New UTGame.ini file setting:
- [Engine.GameInfo]
- MaxPlayers=12
-----
Old commandline settings:
- ?NumPublicConnections=12
- ?NumPrivateConnections=0
- ?NumOpenPublicConnections=12
- ?NumOpenPrivateConnections=0
New UTGame.ini file setting:
- [not needed] - The server automatically determines these settings.
-----
Old commandline setting:
- ?bShouldAdvertise=True
New UTGame.ini file setting:
- [not needed / none found] - The server now advertises itself by default. I could find no setting in an .ini file to control this. I suspect that you can disable server advertisement by using this in the commandline as '?ShouldAdvertise=False' if you wanted.
-----
Old commandline setting:
- ?bIsDedicated=True
New UTGame.ini file setting:
- [not needed] - The server now knows whether it is operating in dedicated mode or not.
-----
Old commandline setting:
- ?PureServer=1
New UTGame.ini file setting:
- [not needed] - The server now knows whether it is "pure" or not.
-----
Old commandline setting:
- ?timelimit=20
New UTGame.ini file setting:
- [UTGameContent.UTVehicleCTFGame_Content]
- TimeLimit=20
-----
Old commandline setting:
- ?goalscore=5
New UTGame.ini file setting:
- [UTGameContent.UTVehicleCTFGame_Content]
- GoalScore=5
-----
Old commandline setting:
- ?botskill=3
New UTGame.ini file setting:
- [not found] - I can't find an .ini setting that states the desired botskill. Leaving this out of the commandline sets the botskill to Average.
-----
Old commandline setting:
- ?ServerDescription=This Is My Server Description
New UTGame.ini file setting:
- [Engine.GameReplicationInfo]
- ServerName=This Is My Server Description
-----
Old commandline setting:
- ?AdminPassword=MyAdminPassword
New UTGame.ini file setting:
- [Engine.AccessControl]
- AdminPassword=MyAdminPassword
-----
Old commandline setting:
- ?GamePassword=MyGamePassword
New UTGame.ini file setting:
- [Engine.AccessControl]
- GamePassword=MyGamePassword
-----
So there you have it. Your commandline can be VERY short as long as you hard-code the settings in your .ini files.
If your server no longer appears in the browser, the problem may be caused by unnecessary settings in the command line.
It used to be that this was a 'standard' command line:
Code:
ut3.exe server vCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?GameMode=3?numplay=4?maxplayers=12?NumPublicConnections=12?NumPrivateConnections=0?NumOpenPublicConnections=12?NumOpenPrivateConnections=0?bShouldAdvertise=True?bIsDedicated=True?PureServer=1?timelimit=20?goalscore=5?botskill=3?AdminPassword=MyAdminPassword -login=MyGamespyLogin -password=MyGamespyPassword -unattended
Code:
ut3.exe server vCTF-Suspense?Game=UTGameContent.UTVehicleCTFGame_Content?numplay=4?maxplayers=12?botskill=5?AdminPassword=MyAdminPassword -login=MyGamespyLogin -password=MyGamespyPassword -unattended
Code:
ut3.exe server vCTF-Suspense?numplay=4?Botskill=5 -login=MyGamespyLogin -password=MyGamespyPassword -unattended
So, how did I get it so short? Its simple, yet complicated.
The short answer is that almost all of these settings are now located in the .ini files. If you know what to change then you can change it, and remove it from the command line. When the server starts it will read the .ini files and load your desired settings.
The long answer is that these settings are scattered throughout the .ini file(s) so there are a lot of places to edit them. Below are some examples. Obviously you will have to modify these to suit your desired gametype and settings.
-----
Old commandline setting:
- ?Game=UTGameContent.UTVehicleCTFGame_Content
New UTGame.ini file setting:
- [Engine.GameInfo]
- DefaultServerGame=UTGameContent.UTVehicleCTFGame_C ontent
-----
Old commandline setting:
- ?GameMode=3
New UTGame.ini file setting:
- [not needed] - The server now knows to set the GameMode to 3 when its set to load a UTVehicleCTFGame. Same goes for any other gametype.
-----
Old commandline setting:
- ?numplay=4
New UTGame.ini file setting:
- [not found] - I can't find an .ini setting that states the desired # of bots
-----
Old commandline setting:
- ?maxplayers=12
New UTGame.ini file setting:
- [Engine.GameInfo]
- MaxPlayers=12
-----
Old commandline settings:
- ?NumPublicConnections=12
- ?NumPrivateConnections=0
- ?NumOpenPublicConnections=12
- ?NumOpenPrivateConnections=0
New UTGame.ini file setting:
- [not needed] - The server automatically determines these settings.
-----
Old commandline setting:
- ?bShouldAdvertise=True
New UTGame.ini file setting:
- [not needed / none found] - The server now advertises itself by default. I could find no setting in an .ini file to control this. I suspect that you can disable server advertisement by using this in the commandline as '?ShouldAdvertise=False' if you wanted.
-----
Old commandline setting:
- ?bIsDedicated=True
New UTGame.ini file setting:
- [not needed] - The server now knows whether it is operating in dedicated mode or not.
-----
Old commandline setting:
- ?PureServer=1
New UTGame.ini file setting:
- [not needed] - The server now knows whether it is "pure" or not.
-----
Old commandline setting:
- ?timelimit=20
New UTGame.ini file setting:
- [UTGameContent.UTVehicleCTFGame_Content]
- TimeLimit=20
-----
Old commandline setting:
- ?goalscore=5
New UTGame.ini file setting:
- [UTGameContent.UTVehicleCTFGame_Content]
- GoalScore=5
-----
Old commandline setting:
- ?botskill=3
New UTGame.ini file setting:
- [not found] - I can't find an .ini setting that states the desired botskill. Leaving this out of the commandline sets the botskill to Average.
-----
Old commandline setting:
- ?ServerDescription=This Is My Server Description
New UTGame.ini file setting:
- [Engine.GameReplicationInfo]
- ServerName=This Is My Server Description
-----
Old commandline setting:
- ?AdminPassword=MyAdminPassword
New UTGame.ini file setting:
- [Engine.AccessControl]
- AdminPassword=MyAdminPassword
-----
Old commandline setting:
- ?GamePassword=MyGamePassword
New UTGame.ini file setting:
- [Engine.AccessControl]
- GamePassword=MyGamePassword
-----
So there you have it. Your commandline can be VERY short as long as you hard-code the settings in your .ini files.
Comment