Configuration/Postal 2

From 333networks.com wiki
Jump to: navigation, search

333networks has it's own masterservers online. These servers are located on master.333networks.com:27900, master.noccer.de:27900 and on master.errorist.tk:27900. The These masterservers are independent and hosted by different members of various communities. With the instructions below, you can add our masterservers to your Postal2 client (for players) or add your server to our masterservers (for admins).


Steam

The Steam version masterservers already come configured to use. You should not have to make any msterserver changes unless there is downtime on the included one(s)

Linux Steam

If you are having trouble launching your game you can refer to http://wiki.333networks.com/index.php/Postal_2_ShareThePain_Steam_Install_%28Linux%29

Linux non-Steam

Multiple installs will all use a shared settings file which can cause problems, and if you have both Linux non-Steam STP and Steam version what happens is Steam's 'Single player' and your non-steam will both try to use the same Postal2.ini which can cause even worse problems because of the version difference. A workable solution is to let steam have those user directory files, and edit the way you launch your non-steam game and/or server. You can append the suffix -nohomedir to have it use/create config files that are confined within it's own System folder


Game/Player

If you are a (regular) player and you want to use the masterserver list used for this site, edit the Postal2.ini and/or Postal2MP.ini in your Postal2's System folder and adjust the following lines (highlighted) in the [UBrowserAll] section. The code should look like the following lines. Make sure there are no spaces in those lines.

Find:


[UBrowserAll]
ListFactories[0]=UBrowser.UBrowserGSpyFact,MasterServerAddress=master.gamespy.com,MasterServerTCPPort=28900,ServerRegion=0
bFallbackFactories=True

Change it to

[UBrowserAll]
ListFactories[0]=UBrowser.UBrowserGSpyFact,MasterServerAddress=master.333networks.com,MasterServerTCPPort=28900,Region=0,GameName=postal2
ListFactories[1]=UBrowser.UBrowserGSpyFact,MasterServerAddress=master.noccer.de,MasterServerTCPPort=28900,Region=0,GameName=postal2
ListFactories[2]=UBrowser.UBrowserGSpyFact,MasterServerAddress=master.errorist.tk,MasterServerTCPPort=27900,Region=0,GameName=postal2
bFallbackFactories=False

Discussion

The setting bFallbackFactories=False is subject to discussion. When this option is set to True, the first masterserver in the bFallbackFactories list will be queried. If that masterserver fails to respond with a server list, the next masterserver in line is queried (and so on). However, when the masterserver does successfully respond with a server list, the next masterserver is not queried. When the first masterserver is defective or does not provide a complete, the next masterserver is not queried and the list will be left incomplete.

When the value is set to False, all masterservers are queried for servers one by one, the result shown in the UBrowser is a server list with the equivalent of all servers provided by all masterservers. It is recommended to set this option to False in order to receive the sum of the server lists from all masterservers.

Server configuration

The default configuration file is either Postal2.ini or Postal2MP.ini depending on your game version, it resides in your game's System folder

Find:

[Engine.GameEngine]
ServerActors=IpDrv.UdpBeacon
ServerActors=IpServer.UdpServerQuery
ServerActors=IpServer.UdpServerUplink MasterServerAddress=master.gamespy.com MasterServerPort=27900


Change it to

[Engine.GameEngine]
ServerActors=IpDrv.UdpBeacon
ServerActors=IpServer.UdpServerQuery
ServerActors=IpServer.UdpServerUplink MasterServerAddress=master.333networks.com MasterServerPort=27900
ServerActors=IpServer.UdpServerUplink MasterServerAddress=master.noccer.de MasterServerPort=27900
ServerActors=IpServer.UdpServerUplink MasterServerAddress=master.errorist.tk MasterServerPort=27900


Remarks

Example of the UBrowser server list

Please take notice of the following:

  • Some servers, often on Linux, can not handle more than 3 UdpServerUplinks. If you have more than 3 lines, your server may crash or not even start properly. Use trial-and-error to determine whether this is the case with your server.
  • Older servers are vulnerable for malicious queries. You could consider using SecureValidate or alternative uplink packages.