defaults.cs 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. //-----------------------------------------------------------------------------
  2. // Copyright (c) 2012 GarageGames, LLC
  3. //
  4. // Permission is hereby granted, free of charge, to any person obtaining a copy
  5. // of this software and associated documentation files (the "Software"), to
  6. // deal in the Software without restriction, including without limitation the
  7. // rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  8. // sell copies of the Software, and to permit persons to whom the Software is
  9. // furnished to do so, subject to the following conditions:
  10. //
  11. // The above copyright notice and this permission notice shall be included in
  12. // all copies or substantial portions of the Software.
  13. //
  14. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  15. // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  16. // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  17. // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
  18. // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  19. // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
  20. // IN THE SOFTWARE.
  21. //-----------------------------------------------------------------------------
  22. //Firstly, set up our standard server prefs
  23. // List of master servers to query, each one is tried in order
  24. // until one responds
  25. $Pref::Server::RegionMask = 2;
  26. $pref::Master[0] = "2:master.garagegames.com:28002";
  27. // Information about the server
  28. $Pref::Server::Name = "Torque 3D Server";
  29. $Pref::Server::Info = "This is a Torque 3D server.";
  30. // The connection error message is transmitted to the client immediatly
  31. // on connection, if any further error occures during the connection
  32. // process, such as network traffic mismatch, or missing files, this error
  33. // message is display. This message should be replaced with information
  34. // usefull to the client, such as the url or ftp address of where the
  35. // latest version of the game can be obtained.
  36. $Pref::Server::ConnectionError =
  37. "You do not have the correct version of "@$appName@" or "@
  38. "the related art needed to play on this server, please contact "@
  39. "the server administrator.";
  40. // The network port is also defined by the client, this value
  41. // overrides pref::net::port for dedicated servers
  42. $Pref::Server::Port = 28000;
  43. // If the password is set, clients must provide it in order
  44. // to connect to the server
  45. $Pref::Server::Password = "";
  46. // Password for admin clients
  47. $Pref::Server::AdminPassword = "";
  48. // Misc server settings.
  49. $Pref::Server::MaxPlayers = 64;
  50. $Pref::Server::TimeLimit = 20; // In minutes
  51. $Pref::Server::KickBanTime = 300; // specified in seconds
  52. $Pref::Server::BanTime = 1800; // specified in seconds
  53. $Pref::Server::FloodProtectionEnabled = 1;
  54. $Pref::Server::MaxChatLen = 120;