config.sample.yaml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ### AgarHub gamme server ###
  2. ## Network config ##
  3. # It is recommended to restrict bind_address to your local system (127.0.0.1) and make it available through
  4. # an reverse proxy like lighttpd or Apache that can add advanced features like TLS encrypted connections
  5. # Set bind_address to 0.0.0.0 to expose access to the whole internet
  6. network:
  7. bind_address: "127.0.0.1"
  8. port: 3000
  9. ## Basic game config ##
  10. # The basic configuration of you game.
  11. # height and width define the size of the game area in pixels, merge_timer is the time until two cells
  12. # can merge together again. With admin_pass you can set a password to enter admin mode using the chat.
  13. # And that's probably all that makes sense to change
  14. game:
  15. width: 5000
  16. height: 5000
  17. mass: 20000
  18. merge_timer: 15
  19. admin_pass: "[Your super secret password here]"
  20. ## Debugging options ##
  21. logging:
  22. join_leave: true
  23. kill: true
  24. chat: true
  25. chat_connect: true
  26. ## Internal magic ##
  27. # Some internal magic, do not touch this unless you know exactly what you're doing!
  28. magic:
  29. slow_base: 4.5
  30. net_update_factor: 40
  31. max_heartbeat_interval: 10000
  32. mass_loss_rate: 1
  33. min_mass_loss: 50
  34. ## Player configuration ##
  35. # mass defines the default mass everyone gets when they join. split_limit defines how many parts a
  36. # player can split into. fire_food defines how much mass you throw at the w key.
  37. player:
  38. mass: 10
  39. split_limit: 16
  40. fire_food: 20
  41. uniform_disposition: true
  42. ## Game objects ##
  43. # That's the thing you want to customize to create different game-modes.
  44. # The default config enables everything that this software supports, however only food and viruses are
  45. # needed to recreate the default Free For All game from agar.io
  46. # mass can be set to either an integer (number), then always this number is used, or to an array
  47. # with two numbers as shown in the example, then a random number between those two is used
  48. food:
  49. mass: [1, 5]
  50. limit: 1000
  51. uniform_disposition: true
  52. virus:
  53. enable: true
  54. mass: [100, 150]
  55. limit: 50
  56. uniform_disposition: false
  57. split_mass: 180
  58. split_parts: 8
  59. style:
  60. fill: "#33FF33"
  61. stroke: "#19D119"
  62. stroke_width: 20
  63. mothercell:
  64. enable: true
  65. mass: [200, 250]
  66. limit: 10
  67. uniform_disposition: false
  68. split_parts: 8
  69. food_speed: 30
  70. food_limit: 100
  71. style:
  72. fill: "#CE6363"
  73. stroke: "#BA5959"
  74. stroke_width: 20
  75. food_structure:
  76. spiral:
  77. enable: true
  78. limit: 10
  79. uniform_disposition: true
  80. mass:
  81. center: 50
  82. border: 1
  83. dot_circle:
  84. enable: true
  85. limit: 10
  86. uniform_disposition: true
  87. mass:
  88. center: 50
  89. border: 1
  90. border_dot: 0.1
  91. ## Chat bridge connection ##
  92. # This is totally optional and defaults to disabled. But if you want to, you can connect a external
  93. # chat bridge using our chatConnect API to your Agar server and talk to your in-game friends using a Webchat
  94. # or IRC for example.
  95. # Example implementation: https://notabug.org/agarhub/chatbridge-basic
  96. chat_connect:
  97. enable: true
  98. incoming:
  99. secret: "SuperSecretKeyHere"
  100. outgoing:
  101. secret: "SuperSecretKeyHere"
  102. host: "chat-bridge.example.com"
  103. port: 80
  104. path: "receiver.php"